/* ══════════════════════════════════════════════════════════════
   CROWSTICK TV — THEME (Matched to LiveApp_Source AppColors)
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

:root {
    /* ── Core Palette (from decompiled AppColors.java) ── */
    --black: #000000;
    --dark-surface: #121212;
    --surface: #1A1A1A;
    --elevated: #222222;

    /* ── Accent Colors ── */
    --neon-green: #00E641;
    --orange: #FF8800;
    --purple: #6200EA;
    --cursor-color: #FFB344;

    /* ── Text ── */
    --text-primary: #E6E6FA;
    /* Lavender Mist - No Pure White */
    --text-secondary: #888888;
    --text-dim: #444444;

    /* ── Glow (derived from accents) ── */
    --glow-green: rgba(0, 230, 65, 0.5);
    --glow-green-strong: rgba(0, 230, 65, 0.8);
    --glow-orange: rgba(255, 136, 0, 0.5);
    --glow-purple: rgba(98, 0, 234, 0.5);

    /* ── Glass ── */
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(200, 200, 255, 0.1);
    --glass-border-hover: rgba(200, 200, 255, 0.25);
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */

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

body {
    background: var(--black);
    color: var(--text-primary);
    font-family: var(--font-primary, 'Inter'), -apple-system, sans-serif;
    font-weight: 300;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* ══════════════════════════════════════════════════════════════
   INK IN WATER (CANVAS) BACKGROUND
   ══════════════════════════════════════════════════════════════ */

#ink-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #000;
    pointer-events: none;
    /* Increased blur/contrast for stronger 'gooey' mixing */
    filter: blur(60px) contrast(1.5) brightness(0.9);
}

/* Glass Hub Buttons - Adjusted for Ink */
.glass-button.hub-btn {
    min-width: 160px;
    height: 60px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 12px;
    background: rgba(200, 200, 255, 0.04);
    border-color: rgba(200, 200, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-button.hub-btn:hover,
.glass-button.hub-btn.active {
    background: rgba(200, 200, 255, 0.12);
    box-shadow: 0 0 30px rgba(200, 200, 255, 0.15);
    border-color: rgba(200, 200, 255, 0.4);
    transform: translateY(-4px);
}

/* Specific Hub Colors */
.hub-btn[data-mode="movie"].active {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px var(--glow-green);
}

.hub-btn[data-mode="tv"].active {
    border-color: var(--orange);
    box-shadow: 0 0 30px var(--glow-orange);
}

.hub-btn[data-mode="music"].active {
    border-color: var(--purple);
    box-shadow: 0 0 30px var(--glow-purple);
}

.hub-btn[data-mode="youtube"].active {
    border-color: #ff0000;
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.4);
}

/* Hide Old Aurora Container */
#aurora-container {
    display: none !important;
}

/* Home Buttons Sizing Update */
.home-btn {
    width: auto !important;
    /* Allow width to fit content */
    min-width: 200px;
    /* Minimum width for consistency */
    max-width: 300px;
    height: 60px;
    /* Smaller height */
    padding: 0 30px;
    /* Reduced padding */
    font-size: 0.95rem;
    /* Smaller font */
    margin: 0 auto;
    /* Center buttons */
    justify-content: center;
    /* Center content */
}

/* ── Particle Background (non-home screens) ── */
/* Particles removed for cleaner UI */

/* Small dot particles */
.particle {
    position: absolute;
    background: rgba(0, 230, 65, 0.2);
    border-radius: 50%;
    bottom: -10px;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.2;
    }

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

/* Legacy ink for backward compat */
#bg-ink-container {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   GLASS BUTTONS (matches MenuButton + BreathingButton)
   ══════════════════════════════════════════════════════════════ */

.glass-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 1.5px;
    padding: 14px 28px;
    border-radius: 16px;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.glass-button:focus,
.glass-button:hover,
.glass-button.active {
    outline: none;
    border-color: var(--neon-green);
    transform: scale(1.04);
    box-shadow: 0 0 20px var(--glow-green), 0 0 60px rgba(0, 230, 65, 0.15);
}

/* Glow Variants */
.glow-standard:focus,
.glow-standard:hover {
    box-shadow: 0 0 20px var(--glow-green), 0 0 60px rgba(0, 230, 65, 0.15) !important;
    border-color: var(--neon-green) !important;
}

.glow-orange:focus,
.glow-orange:hover {
    box-shadow: 0 0 20px var(--glow-orange), 0 0 60px rgba(255, 136, 0, 0.15) !important;
    border-color: var(--orange) !important;
}

.glow-purple:focus,
.glow-purple:hover {
    box-shadow: 0 0 20px var(--glow-purple), 0 0 60px rgba(98, 0, 234, 0.15) !important;
    border-color: var(--purple) !important;
}

/* ── Breathing Animation (matches BreathingButton composable) ── */
.breathing {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

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

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

/* ── Pulse Ring (loading indicator) ── */
.pulse-ring {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--neon-green);
    animation: pulseRingSpin 1s linear infinite, pulseRingGlow 2s ease-in-out infinite;
}

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

@keyframes pulseRingGlow {

    0%,
    100% {
        box-shadow: 0 0 10px var(--glow-green);
    }

    50% {
        box-shadow: 0 0 30px var(--glow-green-strong), 0 0 60px var(--glow-green);
    }
}

/* Pulsing text/loading */
.pulsing {
    animation: pulseText 1.5s ease-in-out infinite alternate;
}

@keyframes pulseText {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT
   ══════════════════════════════════════════════════════════════ */

#app {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: 100vh;
}

.screen {
    padding: 50px;
    height: 100vh;
    overflow-y: auto;
    position: relative;
}

/* ══════════════════════════════════════════════════════════════
   HOME SCREEN (matches HomeScreen composable)
   ══════════════════════════════════════════════════════════════ */

.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 0;
    position: relative;
}

.home-logo {
    width: 90px;
    opacity: 0.7;
    margin-bottom: 50px;
    filter: drop-shadow(0 0 20px rgba(0, 230, 65, 0.3));
    animation: logoBreath 6s ease-in-out infinite;
}

@keyframes logoBreath {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 230, 65, 0.2));
        opacity: 0.6;
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(0, 230, 65, 0.5));
        opacity: 0.9;
    }
}

.home-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    /* Constrain width for a sleek vertical stack */
    margin: 0 auto;
    width: 100%;
}

.home-btn {
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: flex-start;
    padding: 0 40px;
    gap: 30px;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.home-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.home-btn:focus,
.home-btn:hover {
    outline: none;
    transform: scale(1.02);
    background: var(--surface);
    border-color: var(--glass-border-hover);
}

.home-btn .btn-icon {
    font-size: 2rem;
    margin-bottom: 0;
    width: 40px;
    text-align: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.home-btn:focus .btn-icon,
.home-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Per-button glow */
#btn-search:focus,
#btn-search:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 40px var(--glow-green), 0 0 80px rgba(0, 230, 65, 0.1), inset 0 0 30px rgba(0, 230, 65, 0.05);
}

#btn-library:focus,
#btn-library:hover {
    border-color: var(--orange);
    box-shadow: 0 0 40px var(--glow-orange), 0 0 80px rgba(255, 136, 0, 0.1), inset 0 0 30px rgba(255, 136, 0, 0.05);
}

#btn-music:focus,
#btn-music:hover {
    border-color: var(--purple);
    box-shadow: 0 0 40px var(--glow-purple), 0 0 80px rgba(98, 0, 234, 0.1), inset 0 0 30px rgba(98, 0, 234, 0.05);
}

#btn-adult:focus,
#btn-adult:hover {
    border-color: #e91e63;
    box-shadow: 0 0 40px rgba(233, 30, 99, 0.5), 0 0 80px rgba(233, 30, 99, 0.1), inset 0 0 30px rgba(233, 30, 99, 0.05);
}

#btn-torrent:focus,
#btn-torrent:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 40px var(--glow-green), 0 0 80px rgba(0, 230, 65, 0.1), inset 0 0 30px rgba(0, 230, 65, 0.05);
}

/* ── Trending Carousel ── */
.trending-carousel {
    position: relative;
    width: 100%;
    height: 280px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%),
        linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.carousel-title {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.carousel-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.carousel-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--neon-green);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(200, 200, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--glow-green);
    transform: scale(1.2);
}

/* ── RD Status Badge ── */
.rd-status {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rd-status.connected {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.rd-status.disconnected {
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.rd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ══════════════════════════════════════════════════════════════
   SEARCH / INPUT (matches ElasticSearchTextField)
   ══════════════════════════════════════════════════════════════ */

.search-input {
    flex: 1;
    padding: 16px 24px;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    caret-color: var(--cursor-color);
}

.search-input::placeholder {
    color: var(--text-dim);
    font-weight: 200;
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--glow-green), 0 0 60px rgba(0, 230, 65, 0.08);
    transform: scaleX(1.01);
}

/* ── Search Toggle ── */
.source-toggle {
    display: flex;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
    height: 52px;
}

.toggle-btn {
    padding: 0 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.toggle-btn.active {
    background: var(--glass-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#search-source-debrid.active {
    color: var(--neon-green);
}

#search-source-youtube.active {
    color: #ff0000;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   MEDIA CARDS (matches MediaCard composable)
   ══════════════════════════════════════════════════════════════ */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.media-card {
    background: var(--dark-surface);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: staggerEntry 0.5s ease forwards;
}

.media-card:focus,
.media-card:hover {
    outline: none;
    transform: translateY(-4px) scale(1.03);
    border-color: var(--neon-green);
    box-shadow: 0 4px 30px var(--glow-green), 0 0 60px rgba(0, 230, 65, 0.1);
    z-index: 10;
}

.media-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.media-card:hover .media-poster {
    transform: scale(1.05);
}

.media-info {
    padding: 12px 14px;
    background: var(--dark-surface);
}

.media-title {
    font-weight: 400;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    color: var(--text-primary);
}

.media-type {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Staggered Entry Animation ── */
@keyframes staggerEntry {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════════
   DETAILS SCREEN (parallax hero layout)
   ══════════════════════════════════════════════════════════════ */

.details-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.details-poster-wrap {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 50px;
}

.details-poster {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 40px var(--glow-green), 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.4s ease;
}

.details-content {
    flex: 1;
    min-width: 0;
}

.details-title {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.details-overview {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* ── Source/Magnet Buttons ── */
.source-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.source-btn:focus,
.source-btn:hover {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 20px var(--glow-orange);
    transform: translateX(6px);
}

/* ══════════════════════════════════════════════════════════════
   CONNECTION OVERLAY
   ══════════════════════════════════════════════════════════════ */

.connection-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeIn 0.5s ease;
}

.connection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 50px;
    border-radius: 28px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    max-width: 420px;
    width: 90%;
}

.connection-crow {
    height: 100px;
    width: auto;
    margin-bottom: 30px;
    opacity: 0.25;
    filter: grayscale(1);
    animation: float 6s ease-in-out infinite;
}

.connection-icon {
    color: rgba(255, 60, 60, 0.8);
    margin-bottom: 24px;
    animation: pulseText 2s ease-in-out infinite alternate;
}

.connection-title {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.connection-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 6px;
}

.connection-server {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: monospace;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.connection-retry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 16px 36px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 50px;
    background: rgba(0, 230, 65, 0.08);
    border: 1px solid rgba(0, 230, 65, 0.3);
    color: var(--neon-green);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.connection-retry-btn:hover {
    background: rgba(0, 230, 65, 0.15);
    box-shadow: 0 0 30px var(--glow-green), 0 0 60px rgba(0, 230, 65, 0.15);
    border-color: var(--neon-green);
    transform: scale(1.04);
}

.retry-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: pulseRingSpin 0.8s linear infinite;
}

.connection-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.8;
}

.connection-hint code {
    background: rgba(0, 230, 65, 0.1);
    color: var(--neon-green);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* ── Connection Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes shake {

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

    20% {
        transform: translateX(-12px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(4px);
    }
}

@keyframes float {

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

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

/* ── Persistent Connection Status Dot (top-right corner) ── */
.connection-status-dot {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 2500;
    transition: all 0.5s ease;
    pointer-events: none;
}

.connection-status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--glow-green);
}

.connection-status-dot.offline {
    background: #ff3c3c;
    box-shadow: 0 0 8px rgba(255, 60, 60, 0.5);
    animation: pulseText 1s ease-in-out infinite alternate;
}

/* ══════════════════════════════════════════════════════════════
   MUSIC TRACK LIST
   ══════════════════════════════════════════════════════════════ */

.track-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border-hover);
}

.track-item.playing {
    background: rgba(140, 0, 235, 0.15);
    border-color: rgba(140, 0, 235, 0.4);
}

.track-item.playing .track-name {
    color: #c77dff;
}

.track-item.playing .track-play-icon {
    color: #c77dff;
    opacity: 1 !important;
}

/* ══════════════════════════════════════════════════════════════
   MUSIC MINI PLAYER
   ══════════════════════════════════════════════════════════════ */

.music-mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(140, 0, 235, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-mini-player.hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.mini-player-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
}

.mini-player-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8c00eb, #c77dff);
    width: 0%;
    transition: width 0.3s linear;
    border-radius: 0 2px 2px 0;
}

.mini-player-content {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 14px;
}

.mini-player-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.mini-player-artist {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mp-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mp-btn-play {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(140, 0, 235, 0.2);
    border: 1px solid rgba(140, 0, 235, 0.4);
}

.mp-btn-play:hover {
    background: rgba(140, 0, 235, 0.4);
    box-shadow: 0 0 15px rgba(140, 0, 235, 0.3);
}

.mp-btn-close {
    font-size: 0.9rem;
    opacity: 0.5;
}

.mp-btn-close:hover {
    opacity: 1;
    color: #ff3c3c;
}

/* ── Season Tabs ── */
.season-tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.season-tab:hover {
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

.season-tab.active {
    background: rgba(0, 230, 65, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* ── Episode Cards ── */
.episode-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--dark-surface);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.episode-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
}

.episode-still {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
}

.episode-number {
    font-size: 0.75rem;
    color: var(--neon-green);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.episode-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* ── Section Titles ── */
.section-title {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ── Season Tabs Container ── */
.season-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ── Accent Button Variants ── */
.accent-green {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.accent-green:hover {
    background: rgba(0, 230, 65, 0.15);
    box-shadow: 0 0 20px var(--glow-green);
}

.accent-red {
    border-color: #ff3c3c;
    color: #ff3c3c;
}

.accent-red:hover {
    background: rgba(255, 60, 60, 0.15);
    box-shadow: 0 0 20px rgba(255, 60, 60, 0.3);
}

/* ── Cache Badge ── */
.cache-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 230, 65, 0.15);
    color: var(--neon-green);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-left: 8px;
}

/* ══════════════════════════════════════════════════════════════
   SCREEN CONTENT (scrollable area for search screens)
   ══════════════════════════════════════════════════════════════ */

.screen-content {
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    padding-bottom: 100px;
    /* Leave room for mini-player */
}

/* ── YouTube Channel Link Hover ── */
.yt-channel-link:hover {
    color: #ff3c3c !important;
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   TASK 9 FIX: Ensure Back Button is Clean (No Assets)
   ══════════════════════════════════════════════════════════════ */
#header-back,
.header-left button,
.back-btn {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

.header-left {
    background: transparent !important;
    background-image: none !important;
}