/* ════════════════════════════════════════════════
   AMANJ TV — Premium Liquid Glass UI  (v27)
   ════════════════════════════════════════════════ */

:root {
    --bg:           #05030B;
    --accent:       #A855F7;
    --accent-glow:  rgba(168, 85, 247, 0.35);
    --text:         #FFFFFF;
    --text-muted:   #94A3B8;
    --glass-bg:     rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur:   blur(32px) saturate(200%);
    --radius-card:  24px;
    --radius-pill:  99px;
    --gpu:          translateZ(0); /* Force GPU acceleration */
}

.desktop-only { display: flex !important; }
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}
.mobile-only { display: none !important; }
@media (max-width: 768px) {
    .mobile-only { display: flex !important; }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { width: 100%; margin: 0; padding: 0; background: #05030B; }
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(168,85,247,.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(0,229,255,.10) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ─── LAYOUT ─────────────────────────────────────── */
/* Always LTR layout — sidebar stays LEFT regardless of language direction */
.app-container { 
    display: flex; 
    height: 100vh;
    flex-direction: row !important;
    direction: ltr !important;
    background: transparent;
}
.main-content  { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
    direction: inherit; 
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: transparent;
}

/* Sidebar always on left — text inside can still be RTL */
.sidebar { direction: ltr; }
.sidebar-nav li, .logo { direction: ltr; }


/* ═══════════════════════════════════════════════════
   DESKTOP SIDEBAR
   ═══════════════════════════════════════════════════ */
.sidebar {
    width: 300px;
    background: rgba(14, 9, 32, 0.55);
    backdrop-filter: blur(40px) saturate(210%);
    -webkit-backdrop-filter: blur(40px) saturate(210%);
    border-right: 1px solid rgba(168,85,247,.2);
    padding: 2.5rem 1.5rem;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 100;
    overflow: hidden;
    box-shadow: inset 1px 0 0 rgba(255,255,255,.06), 4px 0 30px rgba(0,0,0,.3);
}
.sidebar::before {
    content: '';
    position: absolute;
    top: -30%; left: -30%;
    width: 160%; height: 160%;
    background: radial-gradient(circle at 40% 40%, rgba(168,85,247,.08) 0%, transparent 60%);
    animation: sidebarPulse 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
@keyframes sidebarPulse {
    from { transform: var(--gpu) translate(0,0) scale(1); }
    to   { transform: var(--gpu) translate(5%,5%) scale(1.1); }
}
.logo {
    display: flex; align-items: center; gap: .8rem;
    padding: .5rem .2rem;
    margin-bottom: 2.5rem;
    position: relative; z-index: 1;
}
.amanj-logo { 
    width: 38px; height: 38px; border-radius: 10px; 
    object-fit: contain; background: #000;
    border: 1px solid rgba(168,85,247,.4);
}
.logo-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
.logo-fallback {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #7C3AED);
    color: #fff; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(168,85,247,0.3);
}
.logo-name { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.social-links { display: flex; gap: .6rem; align-items: center; }
.social-links a { 
    color: var(--text-muted); transition: .3s; 
    display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { transform: scale(1.2); }
.social-links a[title="Facebook"]:hover { color: #1877F2; filter: drop-shadow(0 0 5px rgba(24,119,242,.5)); }
.social-links a[title="TikTok"]:hover { color: #ff0050; filter: drop-shadow(0 0 5px rgba(255,0,80,.5)); }
.social-links a[title="YouTube"]:hover { color: #FF0000; filter: drop-shadow(0 0 5px rgba(255,0,0,.5)); }
.social-links a[title="Instagram"]:hover { color: #E4405F; filter: drop-shadow(0 0 5px rgba(228,64,95,.5)); }

.sidebar-label {
    font-size: .7rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--text-muted);
    font-weight: 600; margin-bottom: .75rem;
    position: relative; z-index: 1;
}
.sidebar-nav {
    list-style: none; display: flex;
    flex-direction: column; gap: .4rem;
    position: relative; z-index: 1;
}
.sidebar-nav li {
    display: flex; align-items: center; gap: .9rem;
    padding: .9rem 1.1rem; border-radius: 16px;
    cursor: pointer; color: var(--text-muted);
    font-weight: 500; transition: all .3s;
    border: 1px solid transparent;
}
.sidebar-nav li:hover { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sidebar-nav li.active {
    background: rgba(168,85,247,.1); color: var(--text);
    border-color: rgba(168,85,247,.35);
    box-shadow: 0 4px 20px rgba(168,85,247,.12), inset 0 1px 0 rgba(255,255,255,.08);
}
/* Removed redundant sidebar bottom styles */


/* ═══════════════════════════════════════════════════
   DESKTOP TOP BAR  — search + lang btn side by side
   ═══════════════════════════════════════════════════ */
.top-bar {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 1rem 2.5rem;
    gap: 1.5rem;
    position: sticky; top: 0; z-index: 400;
    background: rgba(10, 8, 25, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar .social-links { display: flex; gap: .8rem; align-items: center; }
.top-bar .social-links a { color: var(--text-muted); transition: .3s; display: flex; align-items: center; }
.top-bar .social-links a:hover { color: var(--accent); transform: translateY(-2px); }

.topbar-center {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.search-wrap {
    display: flex; align-items: center; gap: .8rem;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; padding: .75rem 1.2rem;
    flex: 1; max-width: 520px; backdrop-filter: blur(15px); transition: .3s;
}
.search-wrap:focus-within { border-color: var(--accent); background: rgba(168,85,247,.08); box-shadow: 0 0 20px rgba(168,85,247,.15); }
.search-wrap input { 
    background: none; border: none; color: var(--text); width: 100%; outline: none; font-size: 1rem; 
}
.search-wrap input::-webkit-search-decoration,
.search-wrap input::-webkit-search-cancel-button,
.search-wrap input::-webkit-search-results-button,
.search-wrap input::-webkit-search-results-decoration { display: none; }
.search-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.search-wrap.big { max-width: 100%; }
.mobile-only-search { display: none; }

.lang-container { position: relative; }
.topbar-lang-btn {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1.1rem;
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px; color: var(--text);
    font-size: .9rem; font-weight: 600; cursor: pointer; transition: .3s;
    white-space: nowrap; flex-shrink: 0;
    backdrop-filter: blur(20px);
}
.topbar-lang-btn:hover { border-color: var(--accent); background: rgba(168,85,247,.08); }

.lang-dropdown {
    position: absolute; top: 120%; right: 0;
    width: 220px; background: rgba(18,12,40,.95);
    backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid var(--glass-border); border-radius: 18px;
    display: none; flex-direction: column; padding: .6rem;
    z-index: 500; box-shadow: 0 15px 40px rgba(0,0,0,.6);
    animation: dropIn .3s cubic-bezier(.4, 0, .2, 1);
}
.lang-dropdown.show { display: flex; }
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-10px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.top-home-btn {
    display: flex !important; align-items: center; gap: .7rem;
    padding: .75rem 1.4rem;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px; color: rgba(255, 255, 255, 0.7);
    cursor: pointer; transition: all .3s ease;
    white-space: nowrap; flex-shrink: 0;
    font-family: inherit;
    visibility: visible !important; opacity: 1 !important;
}
.top-home-btn span {
    font-size: .95rem; font-weight: 800; color: inherit;
    letter-spacing: 0.01em;
    font-family: 'Inter', system-ui, sans-serif;
}
.top-home-btn:hover { 
    border-color: rgba(168, 85, 247, 0.4); 
    background: rgba(168, 85, 247, 0.08); 
    color: #fff;
    transform: translateY(-1px); 
}
.top-home-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.lang-drop-item {
    display: flex; align-items: center; gap: .8rem;
    padding: .8rem 1rem; border-radius: 12px;
    cursor: pointer; transition: .3s; color: var(--text-muted);
}
.lang-drop-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.lang-drop-item .flag { font-size: 1.1rem; }


/* ═══════════════════════════════════════════════════
   MOBILE HEADER  — logo only
   ═══════════════════════════════════════════════════ */
.mobile-header {
    display: none; /* shown in mobile query */
    align-items: center;
    flex-direction: column;
    gap: .8rem;
    padding: calc(.8rem + env(safe-area-inset-top, 0px)) 1.4rem 1rem;
    background: rgba(14, 9, 32, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky; top: 0; z-index: 500;
}

.mobile-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    width: 100%;
}


.mobile-logo {
    display: flex; align-items: center;
    gap: .75rem;
}
.mobile-logo .amanj-logo { width: 36px; height: 36px; }
.mobile-logo .logo-name { font-size: 1.15rem; }
.mobile-logo .social-links { gap: .5rem; }
.mobile-logo .social-links svg { width: 14px; height: 14px; }


/* ═══════════════════════════════════════════════════
   CHANNEL GRID
   ═══════════════════════════════════════════════════ */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    padding-bottom: 4rem;
}
.channel-card {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-card); padding: 2rem 1.2rem 1.5rem;
    text-align: center; cursor: pointer;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
    position: relative; overflow: hidden;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 16px rgba(0,0,0,.2);
}
.channel-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 0%, rgba(168,85,247,.12) 0%, transparent 60%);
    opacity: 0; transition: opacity .4s;
}
.channel-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(168,85,247,.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 50px rgba(0,0,0,.4), 0 0 30px rgba(168,85,247,.12);
}
.channel-card:hover::before { opacity: 1; }
.channel-logo-container {
    width: 90px; height: 90px; margin: 0 auto 1.2rem;
    border-radius: 28%; overflow: hidden; background: #000;
    border: 1.5px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 25px rgba(0,0,0,.4);
}
.channel-logo-container img { width: 100%; height: 100%; object-fit: contain; }
.channel-name { font-weight: 700; font-size: 1rem; color: var(--text); }

.loading-state { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem; color: var(--text-muted); }
.spinner { width: 40px; height: 40px; border: 3px solid var(--glass-border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ═══════════════════════════════════════════════════
   MOBILE PILLS BAR — liquid glass tray above bottom nav
   Hidden on desktop
   ═══════════════════════════════════════════════════ */
.mobile-pills-bar {
    width: 100%;
    z-index: 490;
    padding: .4rem 0;
    margin-top: 0.2rem;
    /* No tray — pills float freely */
    background: transparent;
    border: none;
    box-shadow: none;
    display: none;
    pointer-events: auto;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
}
.mobile-pills-bar.show {
    animation: pillsTrayIn .35s cubic-bezier(.34,1.56,.64,1) forwards;
    pointer-events: auto;
}
@keyframes pillsTrayIn {
    from { transform: translateY(16px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)     scale(1);    opacity: 1; }
}
.pills-row {
    display: flex; gap: .5rem;
    overflow-x: auto; scrollbar-width: none;
    padding: .1rem .1rem;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
}
.pills-row::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0; padding: .45rem .9rem;
    font-size: 0.85rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.65);
    font-size: .82rem; font-weight: 600;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.2);
}
.pill:hover {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 2px 12px rgba(168,85,247,.2);
}
.pill.active {
    background: linear-gradient(145deg,
        rgba(168, 85, 247, 0.88),
        rgba(109, 40, 217, 0.92));
    border: 1px solid rgba(200, 140, 255, 0.55);
    border-top: 1px solid rgba(220, 180, 255, 0.75);
    color: #fff;
    /* Pill-shaped glow — tight to the shape, not spreading outward */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.38),
        inset 0 -1px 0 rgba(0,0,0,.2),
        0 0 0 2px rgba(168, 85, 247, 0.25),
        0 0 8px rgba(168, 85, 247, 0.55),
        0 0 18px rgba(168, 85, 247, 0.28),
        0 3px 10px rgba(109, 40, 217, 0.45);
    text-shadow: 0 0 8px rgba(255,255,255,.4);
}


/* ═══════════════════════════════════════════════════
   MOBILE BOTTOM NAV — Split Liquid Glass Trays
   ═══════════════════════════════════════════════════ */
.mobile-nav-container {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 1rem; right: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    z-index: 800;
    pointer-events: none;
    animation: navFloat 7s ease-in-out infinite;
}
.nav-tray {
    pointer-events: auto;
    background: rgba(8, 4, 18, 0.9);
    backdrop-filter: blur(60px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(1.1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1.5px solid rgba(255, 255, 255, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 8px 20px rgba(0, 0, 0, 0.6);
}
.tray-left {
    display: flex;
    align-items: center;
    padding: 0 0.4rem;
    height: 72px;
}
.tray-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 36px;
    /* Pure neon electric blue glow for hub tray */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(0, 229, 255, 0.22);
}
@keyframes navFloat {
    0%, 100% { transform: translateY(0); }
    50%        { transform: translateY(-5px); }
}
@keyframes navFloat {
    0%, 100% { transform: translateY(0); }
    50%        { transform: translateY(-4px); }
}
.bar-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.42);
    background: none; border: none;
    padding: .5rem 1.1rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
    min-width: 68px;
}
.bar-item svg {
    width: 22px; height: 22px;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
}
.bar-item span {
    font-size: .56rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
}
.bar-item:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
}
/* Active: solid frosted oval pill — matches reference */
.bar-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,.22),
        inset 0 -1px 0 rgba(0,0,0,.18),
        0 3px 14px rgba(0,0,0,.4);
}
.bar-item.active svg {
    color: #d8b4fe;
    filter: drop-shadow(0 0 3px rgba(192,132,252,0.5));
}
.bar-item.active span {
    color: #d8b4fe;
}
/* Hub button — glowing circle, right side */
.bar-hub {
    width: 52px; height: 52px; border-radius: 50%;
    /* Cyan / Pure Blue gradient */
    background: linear-gradient(145deg,
        rgba(0, 229, 255, 0.95),
        rgba(37, 99, 235, 0.96));
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    outline: 1.5px solid rgba(0, 229, 255, 0.45);
    outline-offset: 2.5px;
    display: flex; align-items: center; justify-content: center;
    color: #FFF; cursor: pointer; flex-shrink: 0;
    box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,.35),
        0 0 18px rgba(0, 229, 255, 0.75),
        0 0 36px rgba(0, 229, 255, 0.45),
        0 0 72px rgba(0, 229, 255, 0.25),
        0 4px 16px rgba(29, 78, 216, 0.65);
    transition: all .22s cubic-bezier(.4,0,.2,1);
    animation: hubPulse 3s ease-in-out infinite;
}
@keyframes hubPulse {
    0%, 100% { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35), 0 0 18px rgba(0, 229, 255, 0.75), 0 0 36px rgba(0, 229, 255, 0.45), 0 0 72px rgba(0, 229, 255, 0.25), 0 4px 16px rgba(29, 78, 216, 0.65); }
    50%       { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35), 0 0 28px rgba(0, 229, 255, 0.95), 0 0 56px rgba(0, 229, 255, 0.65), 0 0 112px rgba(0, 229, 255, 0.35), 0 6px 32px rgba(29, 78, 216, 0.8); }
}
.bar-hub:hover { transform: scale(1.08); }
.bar-search { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg,rgba(168,85,247,.9),rgba(109,40,217,.95)); border: 1px solid rgba(220,180,255,.5); display: flex; align-items: center; justify-content: center; color: #FFF; cursor: pointer; box-shadow: 0 0 16px rgba(168,85,247,.7), 0 0 32px rgba(168,85,247,.4); transition: .3s; flex-shrink: 0; }
.bar-search:hover { transform: scale(1.1); }


/* ═══════════════════════════════════════════════════
   MOBILE SEARCH OVERLAY
   ═══════════════════════════════════════════════════ */
.overlay {
    position: fixed; inset: 0;
    background: rgba(5,3,11,.96); backdrop-filter: blur(20px);
    z-index: 800; display: none; flex-direction: column;
    padding: 1.5rem; gap: 1rem;
}
.overlay.open { display: flex; }
.overlay-header { display: flex; align-items: center; gap: 1rem; }
.overlay-close {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text); width: 40px; height: 40px;
    border-radius: 12px; font-size: 1.1rem; cursor: pointer; transition: .3s; flex-shrink: 0;
}
.overlay-close:hover { border-color: var(--accent); }


/* ═══════════════════════════════════════════════════
   VIDEO PLAYER MODAL
   ═══════════════════════════════════════════════════ */
.modal {
    position: fixed; inset: 0; z-index: 900;
    display: none; align-items: center; justify-content: center; padding: 2rem;
}
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(2,1,8,.82); backdrop-filter: blur(20px) saturate(150%); cursor: pointer; }
.modal-box { 
    position: relative; width: 100%; max-width: 1200px; 
    max-height: 92vh;
    background: rgba(8,4,20,.92); border-radius: 28px; overflow: hidden; 
    border: 1px solid rgba(255,255,255,.1); 
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 80px rgba(0,0,0,.8), 0 0 60px rgba(168,85,247,.08); 
    display: flex; flex-direction: column;
}
.small-modal { max-width: 420px; }
.large-modal { max-width: 1100px; height: 90vh; }

.admin-body { padding: 1.8rem; }
.admin-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-field { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-label { 
    font-size: 0.7rem; font-weight: 700; color: var(--text-muted); 
    text-transform: uppercase; letter-spacing: 0.08em; padding-left: 0.2rem;
}
.admin-input-wrap { position: relative; width: 100%; }
.admin-input-wrap i {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-size: 0.9rem; opacity: 0.7; pointer-events: none;
}
.admin-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem 1rem 1rem 2.8rem;
    color: #fff;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.admin-input:focus { 
    border-color: var(--accent); 
    background: rgba(168,85,247,0.08); 
    box-shadow: 0 0 20px rgba(168,85,247,0.1);
}
select.admin-input { appearance: none; cursor: pointer; }
.admin-btn-primary {
    background: linear-gradient(135deg, var(--accent), #7C3AED);
    border: none; border-radius: 14px; padding: 1rem;
    color: #fff; font-weight: 800; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 15px rgba(168,85,247,0.25);
}
.admin-btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(168,85,247,0.4);
    filter: brightness(1.1);
}

.admin-dash-body { 
    display: flex; flex-direction: column; gap: 1.5rem; 
    padding: 1.5rem; flex: 1; min-height: 0; overflow: hidden;
}
.admin-add-section { flex-shrink: 0; }
.admin-list-section { 
    flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1rem;
    overflow-y: auto; padding-right: 0.5rem;
    scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.admin-list-section::-webkit-scrollbar { width: 6px; }
.admin-dash-body { 
    height: 60vh; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    padding: 0 !important; 
}
.admin-tabs {
    display: flex; gap: 0.5rem; padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.admin-tab {
    padding: 1rem 1.2rem; background: none; border: none;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; position: relative; transition: 0.3s;
    display: flex; align-items: center; gap: 0.6rem;
}
.admin-tab i { font-size: 1rem; }
.admin-tab.active { color: var(--accent); }
.admin-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 2px; background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.admin-tab-content { display: none; flex: 1; overflow-y: auto; padding: 1.5rem; }
.admin-tab-content.active { display: block; }

.admin-grid-form { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; 
    background: rgba(255,255,255,0.02); padding: 1.5rem; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
@media (max-width: 600px) {
    .admin-grid-form { grid-template-columns: 1fr; }
    .admin-grid-form > div[style*="grid-column: span 2"] { grid-column: span 1 !important; }
}
@media (max-width: 600px) { 
    .admin-tab span { display: none; }
    .admin-tab { padding: 1rem 1.5rem; justify-content: center; flex: 1; }
}
.admin-grid-form input, .admin-grid-form select {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: .7rem; color: #fff; outline: none;
}
.admin-channel-list { display: flex; flex-direction: column; gap: .6rem; }
.admin-ch-item {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s, transform 0.2s;
    user-select: none;
}
.admin-ch-item:last-child { border-bottom: none; }
.admin-ch-item:active { cursor: grabbing; }
.admin-ch-item.dragging {
    opacity: 0.4;
    background: var(--accent-glow);
    border: 1px dashed var(--accent);
    transform: scale(0.98);
}
.admin-ch-item.drag-over {
    border-top: 2px solid var(--accent);
    background: rgba(168, 85, 247, 0.05);
}
.admin-ch-item:hover { background: rgba(255,255,255,0.06); }
.admin-ch-index {
    min-width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.admin-ch-index:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.1);
}
.admin-ch-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #000; border: 1px solid rgba(255,255,255,0.08); }
.admin-ch-info { flex: 1; min-width: 0; }
.admin-ch-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.admin-ch-tag { font-size: 0.65rem; background: rgba(168,85,247,0.15); color: var(--accent); padding: 2px 6px; border-radius: 4px; font-weight: 800; text-transform: uppercase; }
.admin-ch-url { font-size: 0.7rem; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.7; }
.admin-ch-actions { display: flex; gap: 0.4rem; }
.admin-btn-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted); cursor: pointer; transition: 0.2s; font-size: 0.85rem;
}
.admin-btn-icon:hover { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.05); }
.btn-edit:hover { border-color: var(--accent); color: var(--accent); }
.btn-del:hover { border-color: #ef4444; color: #ef4444; }

@media (max-width: 600px) {
    .admin-ch-item { gap: 0.7rem; padding: 0.7rem; }
    .admin-ch-logo { width: 38px; height: 38px; }
    .admin-ch-name { max-width: 100px; font-size: 0.85rem; }
    .admin-btn-icon { width: 30px; height: 30px; font-size: 0.75rem; }
}

#saveCloudBtn:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
#exportDataBtn:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }

.admin-grid-form input:focus { border-color: var(--accent); background: rgba(168, 85, 247, 0.08); }

.modal-head { 
    display: flex; align-items: center; justify-content: space-between; 
    padding: calc(0.8rem + env(safe-area-inset-top, 0px)) 1.2rem 0.8rem; 
    border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,.03); 
    min-height: 70px;
}
.hub-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-close-hub {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.modal-close-hub:hover { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.4); }

.modal-head-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.external-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.external-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}
.external-btn svg {
    color: var(--accent);
}
.modal-close { 
    width: 42px; height: 42px; border-radius: 12px; 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: var(--text); font-size: 1.4rem; cursor: pointer; 
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    flex-shrink: 0;
    z-index: 1000;
}
.modal-close:hover { 
    background: #ef4444; 
    border-color: #ef4444; 
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.modal-body { display: flex; flex: 1; height: 600px; overflow: hidden; min-height: 0; }
.video-wrap { flex: 1; background: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.video-wrap video { width: 100%; height: 100%; object-fit: contain; }

.player-sidebar {
    width: 320px;
    background: rgba(14, 9, 32, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid rgba(255,255,255,.08);
    display: flex; flex-direction: column;
    min-width: 0; flex-shrink: 0;
    box-shadow: inset 1px 0 0 rgba(255,255,255,.04);
}
.player-sidebar-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 700; font-size: .9rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}
.player-list-content {
    flex: 1;
    overflow-y: auto;
    padding: .5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}
.player-list-content::-webkit-scrollbar { width: 5px; }
.player-list-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

.player-list-item {
    display: flex; align-items: center; gap: .8rem;
    padding: .8rem; border-radius: 14px;
    cursor: pointer; transition: .3s;
    border: 1px solid transparent;
}
.player-list-item:hover { background: rgba(255,255,255,.05); }
.player-list-item.active {
    background: rgba(168,85,247,.12);
    border-color: rgba(168,85,247,.3);
}
.player-list-item img {
    width: 40px; height: 40px; border-radius: 10px;
    object-fit: contain; background: #000;
}
.player-list-name {
    font-size: .9rem; font-weight: 600; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-list-item.active .player-list-name { color: var(--text); }


/* ═══════════════════════════════════════════════════
   LANGUAGE BOTTOM SHEET
   ═══════════════════════════════════════════════════ */
#langModal { align-items: flex-end; padding: 0; }
.lang-sheet {
    position: relative; width: 100%; max-width: 480px; margin: 0 auto;
    background: rgba(20, 15, 45, 0.65); 
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-top-left-radius: 32px; border-top-right-radius: 32px;
    border: 1px solid rgba(168,85,247,.3); border-bottom: none;
    padding: 1.5rem 2rem 3.5rem;
    box-shadow: 0 -20px 60px rgba(0,0,0,.6);
}
.lang-handle { width: 40px; height: 4px; background: rgba(255,255,255,.2); border-radius: 99px; margin: 0 auto 1.5rem; }
.lang-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--text-muted); }
.lang-list { display: flex; flex-direction: column; gap: .8rem; }
.lang-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 18px; color: var(--text); cursor: pointer; transition: .3s; text-align: left; width: 100%; }
.lang-item:hover, .lang-item.active { border-color: var(--accent); background: rgba(168,85,247,.1); }
.lang-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lang-name { font-weight: 700; font-size: 1.05rem; }
.lang-sub  { font-size: .8rem; color: var(--text-muted); }

/* HUB MODAL REDESIGN */
.hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.4rem; /* Lowered slightly */
}
.hub-sheet {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}
.modal-close-hub {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.modal-close-hub:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}
.hub-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hub-card:hover {
    transform: translateY(-3px) scale(1.02);
}
.hub-text { display: flex; flex-direction: column; gap: 2px; }
.hub-name { font-weight: 800; font-size: 0.95rem; color: #fff; }
.hub-sub  { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }

/* BRAND COLORS */
.hub-card.fb { background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(24, 119, 242, 0.05)); border-color: rgba(24, 119, 242, 0.3); }
.hub-card.fb svg { color: #1877F2; }
.hub-card.fb:hover { box-shadow: 0 8px 24px rgba(24, 119, 242, 0.2); border-color: #1877F2; }

.hub-card.tk { background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2)); border-color: rgba(255, 255, 255, 0.2); }
.hub-card.tk svg { color: #fff; }
.hub-card.tk:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1); border-color: #fff; }

.hub-card.yt { background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255, 0, 0, 0.05)); border-color: rgba(255, 0, 0, 0.3); }
.hub-card.yt svg { color: #FF0000; }
.hub-card.yt:hover { box-shadow: 0 8px 24px rgba(255, 0, 0, 0.2); border-color: #FF0000; }

.hub-card.ig { background: linear-gradient(135deg, rgba(228, 64, 95, 0.15), rgba(228, 64, 95, 0.05)); border-color: rgba(228, 64, 95, 0.3); }
.hub-card.ig svg { color: #E4405F; }
.hub-card.ig:hover { box-shadow: 0 8px 24px rgba(228, 64, 95, 0.2); border-color: #E4405F; }

.lang-check { color: var(--accent); opacity: 0; font-size: 1.2rem; }
.lang-item.active .lang-check { opacity: 1; }
.flag { border-radius: 4px; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════
   MOBILE OVERRIDES  (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Hide all desktop-only elements */
    .sidebar, .top-bar { display: none !important; }

    /* Show mobile-only elements */
    .mobile-header    { display: flex; flex-direction: column; gap: .6rem; align-items: center; padding: calc(.6rem + env(safe-area-inset-top, 0px)) 1rem 0.6rem; }
    .mobile-only-search { 
        display: flex; width: 100%; 
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 0.5rem 0.8rem;
    }
    .mobile-only-search input { font-size: 0.9rem; }
    .mobile-logo .amanj-logo { width: 32px; height: 32px; }
    .mobile-logo .logo-name { font-size: 1.05rem; }
    
    .mobile-nav-container { display: flex; }
    .mobile-pills-bar.show { display: block; }

    /* Grid: 2 columns, with padding to clear bottom bar + pills */
    .channel-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .7rem;
        padding: 0.5rem 0.8rem calc(110px + env(safe-area-inset-bottom, 0px));
        width: 100%;
    }
    .channel-card { padding: 1.4rem .8rem 1.1rem; border-radius: 20px; }
    .channel-logo-container { width: 60px; height: 60px; margin-bottom: .9rem; border-radius: 20px; }
    .channel-name { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Player Mobile */
    .modal { padding: 0; }
    .modal-box { border-radius: 0; height: 100dvh; max-width: 100%; max-height: 100dvh; border: none; }
    .modal-head { padding-top: calc(1.2rem + env(safe-area-inset-top, 0px)); }
    .modal-body { flex-direction: column; height: calc(100dvh - 75px); min-height: 0; }
    .video-wrap { flex: none; width: 100%; aspect-ratio: 16/9; }
    .player-sidebar { width: 100%; flex: 1; border-left: none; border-top: 1px solid var(--glass-border); min-height: 0; }
    .player-list-content { height: 100%; }

    .external-btn {
        padding: 0.6rem;
        border-radius: 10px;
    }

    .lang-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem 0; }
    
    .donation-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 0.5rem;
    }
    .donation-msg {
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    .fastpay-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .fastpay-number {
        font-size: 1.2rem;
        font-weight: 800;
        color: #ff0055; /* FastPay Pink-ish */
        letter-spacing: 1px;
    }
    .fastpay-name {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text);
    }
    .qr-container {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1rem;
        background: #fff;
        border-radius: 16px;
        align-items: center;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border: 1px solid rgba(0,0,0,0.05);
    }
    .qr-code {
        width: 100%;
        max-width: 150px; /* Reduced size */
        height: auto;
        display: block;
        border-radius: 6px;
        object-fit: contain; /* Prevent distortion */
    }
}


/* ═══════════════════════════════════════════════════
   TV / SMART-TV MODE
   Applied via .tv-mode on <body> — detected by app.js
   when screen ≥ 960px AND pointer = coarse (remote)
   OR user presses an arrow key on any device.
   ═══════════════════════════════════════════════════ */

/* ── Global focus ring — vivid purple glow ── */
.tv-mode *:focus { outline: none; }
.tv-mode *:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 6px rgba(168,85,247,0.35) !important;
    border-radius: 16px;
}

/* ── Channel cards — bigger, bolder for 10-foot UI ── */
.tv-mode .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    padding: 2.5rem 3rem;
}
.tv-mode .channel-card {
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 28px;
    cursor: default; /* remote doesn't hover */
}
.tv-mode .channel-card:focus-visible {
    transform: translateY(-10px) scale(1.04) !important;
    border-color: var(--accent) !important;
    box-shadow:
        0 0 0 4px rgba(168,85,247,0.5),
        0 24px 60px rgba(0,0,0,0.5),
        0 0 40px rgba(168,85,247,0.2) !important;
}
.tv-mode .channel-logo-container {
    width: 110px; height: 110px;
}
.tv-mode .channel-name {
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

/* ── Sidebar ── */
.tv-mode .sidebar {
    width: 280px;
    padding: 2rem 1.2rem;
}
.tv-mode .sidebar-nav li {
    padding: 1.1rem 1.3rem;
    font-size: 1.05rem;
    border-radius: 18px;
}
.tv-mode .sidebar-nav li:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 2px !important;
    background: rgba(168,85,247,0.15);
}

/* ── Player modal — always fills screen on TV ── */
.tv-mode .modal-box {
    max-width: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    height: 100vh !important;
}
.tv-mode .modal {
    padding: 0 !important;
}
.tv-mode #iptvPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Hide mobile nav on TV ── */
.tv-mode .mobile-nav-container,
.tv-mode .mobile-header,
.tv-mode .mobile-pills-bar {
    display: none !important;
}

/* ── TV cursor indicator top-right ── */
.tv-indicator {
    position: fixed;
    top: 1.2rem; left: 1.5rem;
    background: rgba(168,85,247,0.18);
    border: 1px solid rgba(168,85,247,0.4);
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    z-index: 9999;
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    gap: 6px;
}
.tv-mode .tv-indicator { display: flex; }

/* ── Pill focus on TV ── */
.tv-mode .pill:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 3px !important;
    background: rgba(168,85,247,0.25) !important;
    color: #fff !important;
}

/* ── Player channel list items ── */
.tv-mode .player-list-item {
    padding: 1rem 1.2rem;
    border-radius: 14px;
}
.tv-mode .player-list-item:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 2px !important;
    background: rgba(168,85,247,0.15) !important;
}

/* ── Close & action buttons ── */
.tv-mode .modal-close:focus-visible,
.tv-mode .close-player:focus-visible,
.tv-mode .external-btn:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 3px !important;
}