/* Bouquet TV - Premium Animated Design */
/* Animated neon gradient background with smooth transitions */

:root {
    /* Neon Color Palette */
    --neon-blue: #00d4ff;
    --neon-purple: #7b2dff;
    --neon-pink: #ff2d7c;
    --neon-violet: #9d4edd;
    --neon-magenta: #f72585;

    /* Core Colors */
    --primary: #7b2dff;
    --primary-glow: rgba(123, 45, 255, 0.5);
    --secondary: #ff2d7c;
    --accent: #00d4ff;
    --success: #00ff88;
    --live-red: #ff0055;

    /* Dark Theme */
    --bg-pure-black: #000000;
    --bg-dark: #050510;
    --bg-surface: rgba(15, 10, 30, 0.9);
    --bg-elevated: rgba(30, 20, 50, 0.95);
    --bg-glass: rgba(20, 15, 40, 0.7);
    --border-glow: rgba(123, 45, 255, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Text */
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);

    /* Effects */
    --gradient-neon: linear-gradient(135deg, #7b2dff, #ff2d7c, #00d4ff);
    --gradient-bg: linear-gradient(135deg, #0a0015, #150025, #0f0030, #050510);
    --shadow-neon: 0 0 30px rgba(123, 45, 255, 0.4);
    --shadow-pink: 0 0 30px rgba(255, 45, 124, 0.4);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);

    /* Layout */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== ANIMATED BACKGROUND ==================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-pure-black);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Orbs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(123, 45, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 45, 124, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(157, 78, 221, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(247, 37, 133, 0.12) 0%, transparent 35%);
    animation: backgroundPulse 15s ease-in-out infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(123, 45, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(255, 45, 124, 0.15) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes backgroundPulse {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }

    25% {
        transform: translate(2%, -2%) rotate(1deg);
        opacity: 0.9;
    }

    50% {
        transform: translate(-1%, 1%) rotate(-1deg);
        opacity: 1;
    }

    75% {
        transform: translate(1%, 2%) rotate(0.5deg);
        opacity: 0.95;
    }
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.1) translateY(-5%);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-purple);
    animation: float 10s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    padding: 10px 0;
    height: 60px;
    transition: var(--transition);
}

.header:hover {
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 30px rgba(123, 45, 255, 0.2);
}

.header .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--neon-purple));
    display: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo .highlight {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-neon);
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::before {
    opacity: 0.1;
}

.nav a.active {
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border-glow);
}

/* ==================== MAIN LAYOUT ==================== */
.main-content {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* ==================== PLAYER SECTION ==================== */
.player-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    min-width: 0;
    position: relative;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px;
    margin-right: 0;
    box-shadow: var(--shadow-neon);
    border: 1px solid var(--border-glow);
    transition: var(--transition-slow);
}

.player-wrapper:hover {
    box-shadow: 0 0 50px rgba(123, 45, 255, 0.5), 0 0 100px rgba(255, 45, 124, 0.3);
    border-color: var(--primary);
}

.player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Player Controls Overlay */
.player-controls {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.player-wrapper:hover .player-controls {
    opacity: 1;
    pointer-events: auto;
}

/* Top Controls */
.player-top-bar {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-live-badge {
    background: linear-gradient(135deg, var(--live-red), #ff3366);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
    animation: pulseLive 1.5s ease-in-out infinite;
}

@keyframes pulseLive {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 0, 85, 0.9);
    }
}

.player-top-bar h2 {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Center Play Button */
.player-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-pause-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(123, 45, 255, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-neon);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
    box-shadow: 0 0 40px rgba(123, 45, 255, 0.8);
}

/* Bottom Controls */
.player-bottom-bar {
    padding: 16px;
}

.progress-container {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 12px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-neon);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: var(--glow-blue);
}

.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(123, 45, 255, 0.5);
    box-shadow: var(--shadow-neon);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--glow-blue);
}

.time-display {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 8px;
}

.quality-badge {
    background: var(--gradient-neon);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Loading & Placeholder */
.player-loading,
.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, 0.95);
    color: var(--text-muted);
}

.player-loading {
    display: none;
}

.player-loading.active {
    display: flex;
}

.player-placeholder.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-glow);
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
    box-shadow: var(--shadow-neon);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.player-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    background: var(--gradient-neon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Player Info Bar */
.player-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin: 0 16px 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    transition: var(--transition);
}

.player-info-bar:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.current-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.current-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-neon);
    border: 2px solid var(--border-glow);
}

.current-logo canvas {
    width: 100%;
    height: 100%;
}

.current-details h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    background: var(--gradient-neon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.current-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.current-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glow);
    color: var(--text);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

/* ==================== CHANNEL LIST ==================== */
.channel-list-section {
    width: 420px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.channel-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    /* Reduced padding */
    border-bottom: 1px solid var(--border-glow);
    background: var(--bg-surface);
}

.channel-list-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-count-badge {
    background: var(--gradient-neon);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: var(--shadow-neon);
    animation: pulseCount 2s ease-in-out infinite;
}

@keyframes pulseCount {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Compact Search Box */
.search-box {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-glow);
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    /* Smaller padding */
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glow);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.8rem;
    /* Smaller font */
    transition: var(--transition);
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(123, 45, 255, 0.2);
}

.channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    /* Remove padding for seamless look */
}

.loading-channels {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

/* Channel Item */
.channel-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.channel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-neon);
    opacity: 0;
    transition: var(--transition);
}

.channel-item:hover {
    background: var(--bg-elevated);
}

.channel-item:hover::before {
    opacity: 0.05;
}

.channel-item.active {
    background: rgba(123, 45, 255, 0.1);
    border-left: 3px solid var(--primary);
}

.channel-item.active::before {
    opacity: 0.1;
}

.channel-thumbnail {
    position: relative;
    width: 140px;
    /* Slightly smaller */
    min-width: 140px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    transition: var(--transition);
}

.channel-item:hover .channel-thumbnail {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(123, 45, 255, 0.4);
}

.channel-thumbnail video,
.channel-thumbnail canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-video {
    position: absolute;
    inset: 0;
}

.thumbnail-fallback {
    position: absolute;
    inset: 0;
    display: none;
}

.thumbnail-live {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: linear-gradient(135deg, var(--live-red), #ff3366);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
    animation: pulseLive 1.5s ease-in-out infinite;
}

.channel-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.channel-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.channel-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text);
}

.channel-item:hover .channel-item-name,
.channel-item.active .channel-item-name {
    background: var(--gradient-neon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.channel-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.channel-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Integrated Share Button */
.channel-share-btn {
    background: transparent;
    border: 1px solid var(--border-glow);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.channel-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

.empty-state h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    background: var(--gradient-neon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
}

.toast {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-neon);
}

@keyframes toastIn {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--live-red);
}

.toast.info {
    border-left: 4px solid var(--accent);
}

/* ==================== SCROLLBAR ==================== */
.channel-list::-webkit-scrollbar {
    width: 6px;
}

.channel-list::-webkit-scrollbar-track {
    background: transparent;
}

.channel-list::-webkit-scrollbar-thumb {
    background: var(--border-glow);
    border-radius: 10px;
}

.channel-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .channel-list-section {
        width: 360px;
    }

    .channel-thumbnail {
        width: 140px;
        min-width: 140px;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #050510;
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 8px;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 1100;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        text-align: center;
        padding: 18px;
        border: 1px solid var(--border-glow);
        border-radius: var(--radius);
        color: #ffffff !important;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Mobile Layout Refinements */
    .header {
        position: fixed;
        /* Keep header fixed */
    }

    .main-content {
        margin-top: 60px;
        flex-direction: column;
        height: calc(100vh - 60px);
        overflow: hidden;
        /* Prevent body scroll, use inner scroll */
    }

    .player-section {
        width: 100%;
        flex: 0 0 auto;
        /* Don't grow, stick to content size */
        display: block;
        background: black;
        z-index: 10;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }

    .player-wrapper {
        margin: 0;
        border-radius: 0;
        border: none;
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    /* Hide desktop info bar on mobile */
    .player-info-bar {
        display: none;
    }

    /* Attach channel list directly below */
    .channel-list-section {
        width: 100%;
        border: none;
        flex: 1;
        /* Take remaining height */
        background: var(--bg-dark);
    }

    .channel-list-header {
        padding: 8px 12px;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--dark-border);
    }

    .search-box {
        padding: 6px 12px;
    }

    .search-box input {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .channel-item {
        padding: 8px 12px;
        background: var(--bg-dark);
    }

    .channel-thumbnail {
        width: 120px;
        min-width: 120px;
    }

    /* Ensure scrollability */
    .channel-list {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 60px;
        /* Space for bottom content if needed */
    }
}

@media (max-width: 500px) {
    .logo-text {
        display: none;
    }

    .player-info-bar {
        padding: 12px;
    }

    .current-logo {
        width: 44px;
        height: 44px;
    }

    .current-details h3 {
        font-size: 0.95rem;
    }

    .current-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.75rem;
    }

    .channel-thumbnail {
        width: 110px;
        min-width: 110px;
    }

    .channel-item-name {
        font-size: 0.85rem;
    }

    .channel-item-meta {
        font-size: 0.7rem;
    }

    .control-btn {
        padding: 8px;
    }

    .volume-slider {
        width: 60px;
    }
}