/* ==========================================================================
   LIVE WIRE — style-v5.css
   Sports App Version 5 — full visual redesign.
   Forked from style.css (which stays untouched for admin.html). Every
   selector below targets the exact ids/classes already used by index.html
   and app.js — nothing renamed, only reskinned. See the plan file for the
   full safety audit this was built against.
   ========================================================================== */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-2xl: 40px; --r-pill: 999px;

    --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 420ms;
    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-io: cubic-bezier(.65,0,.35,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);

    --rail-w: 252px; --rail-w-collapsed: 66px;
    --tabbar-h: 64px; --topbar-h: 72px; --datestrip-h: 60px;

    /* status */
    --live: #FF3363; --live-2: #FF7A59; --soon: #FFC24B; --soon-2: #FFA23E;
    --finished: #6B7094; --success: #22E0A0; --warn: #FFB020;

    /* glass — baseline (desktop/phone); reduced further under body.is-tv below */
    --glass-blur-sm: 14px; --glass-blur-md: 22px; --glass-blur-lg: 34px;
    --glass-sat: 165%;
    --glass-sheen: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%);
    --glass-hairline: rgba(255,255,255,.08);

    --sh-sm: 0 2px 10px rgba(0,0,0,.35);
    --sh-md: 0 8px 28px rgba(0,0,0,.42), 0 2px 8px rgba(0,0,0,.3);
    --sh-lg: 0 20px 60px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);

    --pad-card: 10px; --gap-rail: 16px; --card-h: 162px;
}

/* ----- Depth themes: Void / Eclipse / Twilight (all dark, indigo undertone) ----- */
body[data-theme="oled"] {  /* Void */
    --bg-0:#020204; --bg-1:#06060c; --bg-2:#0a0a15; --bg-3:#10101f; --bg-4:#17172c; --bg-5:#1f1f3d;
    --glass: rgba(18,18,34,.52); --glass-strong: rgba(22,22,40,.72);
    --border-soft: rgba(255,255,255,.06); --border-mid: rgba(255,255,255,.11); --border-strong: rgba(255,255,255,.18);
    --text-1:#F5F6FF; --text-2:#B9BCDD; --text-3:#7E82A8; --text-4:#565A7C;
}
body[data-theme="dark"] {  /* Eclipse */
    --bg-0:#08080f; --bg-1:#0d0d18; --bg-2:#131322; --bg-3:#191930; --bg-4:#212140; --bg-5:#2b2b54;
    --glass: rgba(26,26,46,.54); --glass-strong: rgba(30,30,52,.74);
    --border-soft: rgba(255,255,255,.07); --border-mid: rgba(255,255,255,.12); --border-strong: rgba(255,255,255,.19);
    --text-1:#F6F7FF; --text-2:#C0C3E4; --text-3:#8589AF; --text-4:#5C6086;
}
body[data-theme="dim"] {  /* Twilight */
    --bg-0:#12121e; --bg-1:#17172a; --bg-2:#1e1e36; --bg-3:#262645; --bg-4:#2f2f56; --bg-5:#3a3a68;
    --glass: rgba(38,38,66,.56); --glass-strong: rgba(42,42,72,.76);
    --border-soft: rgba(255,255,255,.08); --border-mid: rgba(255,255,255,.14); --border-strong: rgba(255,255,255,.22);
    --text-1:#F8F8FF; --text-2:#C9CCEA; --text-3:#9296BC; --text-4:#686C94;
}

/* ----- Accent hues — jewel-tone gradient pairs ----- */
body[data-accent="yellow"] { --accent:#D8FF3E; --accent-2:#E8FF8A; --accent-rgb:216,255,62; }
body[data-accent="red"]    { --accent:#FF3B5C; --accent-2:#FF7A45; --accent-rgb:255,59,92; }
body[data-accent="white"]  { --accent:#EDEFFC; --accent-2:#B9C4FF; --accent-rgb:237,239,252; }
body[data-accent="cyan"]   { --accent:#00D9FF; --accent-2:#00A3FF; --accent-rgb:0,217,255; }
body[data-accent="green"]  { --accent:#1FE08A; --accent-2:#00C2A8; --accent-rgb:31,224,138; }
body[data-accent="orange"] { --accent:#FF9A2E; --accent-2:#FF5F6D; --accent-rgb:255,154,46; }
body[data-accent="void"]   { --accent:#B45CFF; --accent-2:#6D28D9; --accent-rgb:180,92,255; }

body { --accent-glow: 0 0 32px rgba(var(--accent-rgb),.35); --accent-bg: rgba(var(--accent-rgb),.14);
       --aurora-a: rgba(var(--accent-rgb),.22); --aurora-b: rgba(var(--accent-rgb),.08); }

/* Android WebView is the weakest GPU target in the fleet — cut blur cost there, never raise it */
body.is-tv { --glass-blur-sm: 6px; --glass-blur-md: 10px; --glass-blur-lg: 14px; }

/* ============================================================
   BASE / RESET
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* The `hidden` attribute must always win over any class's `display` rule below —
   without this, an author rule like `.live-empty { display: flex }` ties the UA
   stylesheet's `[hidden] { display: none }` on specificity and wins by source
   order, silently showing elements app.js has explicitly hidden. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
    margin: 0; font-family: var(--font-body); background: var(--bg-0); color: var(--text-1);
    overflow-x: hidden; font-size: 15px; line-height: 1.4;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(var(--accent-rgb),.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* `reduce-motion` only gates the ambient background (the "Animated Background"
   setting, off by default to save battery) — it is NOT a general accessibility
   prefers-reduced-motion switch, so it must not touch unrelated animations like
   the live ticker marquee, live-pulse dots, or card transitions. A wildcard
   `body.reduce-motion *` rule here previously froze nearly every animation in
   the app by default. */
body.reduce-motion .bg-orb, body.reduce-motion .bg-grain { animation: none; }
body.reduce-motion #bgCanvas { display: none; }

/* ============================================================
   FOCUS SYSTEM — real :focus/:focus-visible only (D-pad relies on this)
   ============================================================ */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}
body.is-tv button:focus-visible, body.is-tv a:focus-visible, body.is-tv [tabindex="0"]:focus-visible,
body.is-tv input:focus-visible, body.is-tv select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--bg-1), 0 0 0 5px var(--accent), 0 0 22px rgba(var(--accent-rgb),.55);
    transform: translateY(-1px) scale(1.015);
    transition: box-shadow var(--dur-base) var(--ease-spring), transform var(--dur-base) var(--ease-spring);
    z-index: 2; position: relative;
}
body.is-tv .rail-item:focus-visible, body.is-tv .tab-btn:focus-visible { transform: none; }

/* ============================================================
   AMBIENT BACKDROP
   ============================================================ */
.bg-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-0); }
.bg-grain {
    position: absolute; inset: -20%; opacity: .035; mix-blend-mode: overlay;
    background-image: radial-gradient(rgba(255,255,255,.9) 0.6px, transparent 0.6px);
    background-size: 3px 3px;
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.bg-orb-1 { width: 46vw; height: 46vw; top: -14vw; left: -10vw; background: radial-gradient(circle, var(--aurora-a), transparent 70%); animation: orbDrift1 26s ease-in-out infinite; }
.bg-orb-2 { width: 38vw; height: 38vw; bottom: -12vw; right: -8vw; background: radial-gradient(circle, var(--aurora-b), transparent 70%); animation: orbDrift2 32s ease-in-out infinite; }
.bg-orb-3 { width: 28vw; height: 28vw; top: 30%; right: 12%; background: radial-gradient(circle, rgba(var(--accent-rgb),.10), transparent 70%); animation: orbDrift3 22s ease-in-out infinite; }
.bg-orb-4 { width: 20vw; height: 20vw; bottom: 20%; left: 18%; background: radial-gradient(circle, rgba(var(--accent-rgb),.08), transparent 70%); animation: orbDrift2 28s ease-in-out infinite reverse; }
#bgCanvas { position: absolute; inset: 0; opacity: .6; }
@keyframes orbDrift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(4vw,3vw)} }
@keyframes orbDrift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-3vw,-4vw)} }
@keyframes orbDrift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-2vw,2vw) scale(1.1)} }

/* ============================================================
   LOGIN GATE
   ============================================================ */
.login-gate { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.login-card {
    width: 100%; max-width: 420px; padding: 36px 32px; border-radius: var(--r-2xl);
    background: var(--glass-strong); backdrop-filter: blur(var(--glass-blur-lg)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur-lg)) saturate(var(--glass-sat));
    border: 1px solid var(--border-mid); box-shadow: var(--sh-lg);
    animation: loginIn var(--dur-slow) var(--ease-out);
    position: relative; overflow: hidden;
}
.login-card::before { content: ''; position: absolute; inset: 0; background: var(--glass-sheen); pointer-events: none; }
.login-card.login-shake { animation: shake .4s; }
@keyframes loginIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.login-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.login-logo-wrap { width: 52px; height: 52px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.login-logo { width: 100%; height: 100%; object-fit: cover; }
.login-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 0; letter-spacing: -.02em; background: linear-gradient(120deg, var(--text-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-sub { margin: 2px 0 0; font-size: .82rem; color: var(--text-3); }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 20px; color: var(--text-4); font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-label { font-size: .74rem; font-weight: 600; color: var(--text-3); }
.login-input-wrap { position: relative; }
.login-field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-4); }
.login-input {
    width: 100%; padding: 13px 14px 13px 42px; border-radius: var(--r-md); border: 1px solid var(--border-soft);
    background: var(--bg-2); color: var(--text-1); font-size: .92rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.login-input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.login-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255,51,99,.12); border: 1px solid rgba(255,51,99,.3); color: #FF9BAF; font-size: .82rem; }
.login-error svg { width: 18px; height: 18px; flex-shrink: 0; }
.login-btn {
    margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px; border: none; border-radius: var(--r-md); font-weight: 700; font-size: .95rem;
    color: #0b0b12; background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: var(--accent-glow); transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast);
}
.login-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.login-btn svg { width: 18px; height: 18px; }
.login-foot { text-align: center; margin-top: 18px; font-size: .74rem; color: var(--text-4); }
.login-foot kbd { display: inline-block; padding: 2px 6px; background: var(--bg-3); border: 1px solid var(--border-mid); border-radius: 4px; font-family: ui-monospace, monospace; font-size: .68rem; }

/* ============================================================
   APP SHELL
   ============================================================ */
/* Not a grid: .rail is position:fixed (fully out of normal flow), and CSS
   Grid auto-placement skips out-of-flow items when assigning DOM-order
   children to cells — .main (the next child, no explicit grid-column) was
   sliding into the FIRST track instead of the second, squeezing all page
   content into a ~rail-width sliver with the rest of the viewport left
   empty. A plain margin-left on .main (below) has no such ambiguity. */
.app { display: block; min-height: 100vh; }

/* ----- Rail (left nav) ----- */
.rail {
    /* position:fixed, not sticky — a sticky element's own overflow-y:auto is
       unreliable for scrolling ITS OWN content independently of the page in
       combination with this grid layout: on shorter/smaller TV screens where
       the rail's items+logos genuinely don't fit in the viewport height, the
       page ended up scrolling instead of the rail. The mobile breakpoint
       below already (correctly) used position:fixed for its off-canvas
       drawer for this same reason — this makes desktop/TV consistent with
       that proven-working pattern. Grid layout is unaffected: a fixed
       element still reserves no track space, but .app's first grid column
       (sized by the same --rail-w) stays empty in exactly the place this
       renders, so .main still starts in the right spot with no extra markup. */
    display: flex; flex-direction: column; padding: 14px 10px; gap: 2px;
    background: var(--glass); backdrop-filter: blur(var(--glass-blur-md)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur-md)) saturate(var(--glass-sat));
    border-right: 1px solid var(--border-soft);
    position: fixed; left: 0; top: 0; width: var(--rail-w); height: 100vh;
    overflow-y: auto; overflow-x: hidden; z-index: 50;
}
/* Sized to fit every item + labels within one viewport height with no
   scrolling needed (a TV remote has no natural scroll gesture) — tighter
   padding/gaps/icon size throughout, not smaller text at the expense of
   legibility: label font-sizes only came down slightly, and every row still
   has enough line-height/padding for its text to render without clipping. */
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.rail-logo-img { width: 30px; height: 30px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.rail-logo-text { display: flex; flex-direction: column; min-width: 0; }
.rail-name { font-family: var(--font-display); font-weight: 700; font-size: .86rem; line-height: 1.2; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: linear-gradient(120deg, var(--text-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rail-sub { font-size: .62rem; line-height: 1.3; color: var(--text-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-section { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rail-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: none; background: transparent;
    border-radius: var(--r-md); color: var(--text-3); font-size: .8rem; line-height: 1.3; font-weight: 600; text-align: left;
    transition: background var(--dur-fast), color var(--dur-fast);
    position: relative; overflow: hidden;
}
.rail-item:hover { background: var(--bg-2); color: var(--text-1); }
.rail-item.active { color: var(--text-1); background: linear-gradient(90deg, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),.02)); }
.rail-item.active::before { content: ''; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px; border-radius: var(--r-pill); background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(var(--accent-rgb),.6); }
.rail-icon { width: 18px; height: 18px; flex-shrink: 0; }
.rail-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-live-icon { display: flex; align-items: center; justify-content: center; }
.rail-badge { margin-left: auto; padding: 1px 7px; border-radius: var(--r-pill); background: linear-gradient(120deg, var(--live), var(--live-2)); color: #fff; font-size: .64rem; font-weight: 800; }
.rail-bottom { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.rail-cp { color: var(--accent); }
.rail-logout { color: var(--text-4); }
.rail-user { display: flex; align-items: center; gap: 8px; padding: 8px 10px 2px; }
.rail-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; font-family: var(--font-display); color: #0b0b12; flex-shrink: 0; }
.rail-user-info { display: flex; flex-direction: column; min-width: 0; }
.rail-user-name { font-size: .76rem; line-height: 1.3; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-user-meta { font-size: .62rem; line-height: 1.3; color: var(--text-4); }
.rail-user-dot { margin: 0 4px; }
.rail-user-meta .warn { color: var(--soon); }

/* live pulse dot (shared by rail/tab-bar/ticker) */
.live-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); position: relative; }
.live-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--live); animation: livePulseRing 1.6s ease-out infinite; }
.live-pulse-sm { width: 6px; height: 6px; }
@keyframes livePulseRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 5px; animation: pulseWhite 1.4s ease-in-out infinite; }
@keyframes pulseWhite { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ----- Main column ----- */
/* margin-left reserves the space .rail's fixed position occupies — see the
   .app comment above. Reset to 0 in the ≤900px breakpoint, where .rail
   becomes an off-canvas overlay instead and shouldn't push content over. */
.main { display: flex; flex-direction: column; min-width: 0; margin-left: var(--rail-w); }

/* ----- Live ticker (marquee) ----- */
.live-ticker { display: flex; align-items: center; gap: 14px; padding: 8px 20px; background: linear-gradient(90deg, rgba(var(--accent-rgb),.10), transparent 60%); border-bottom: 1px solid var(--border-soft); }
.live-ticker-label { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: linear-gradient(120deg, var(--live), var(--live-2)); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; flex-shrink: 0; }
.live-ticker-clip { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.live-ticker-track { display: inline-flex; gap: 32px; white-space: nowrap; animation: tickerScroll 26s linear infinite; }
.live-ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-2); }
.live-ticker-item strong { color: var(--text-1); font-weight: 700; }
.live-ticker-item .dot { color: var(--live); font-size: .6rem; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----- Topbar ----- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 24px; height: var(--topbar-h); flex-shrink: 0; }
/* Always visible, not just on mobile — this is the only control that expands
   the collapsed icon-only rail on desktop/TV (body.is-tv), so hiding it there
   left no way to see labels/identify icons at all. */
.tb-menu { display: flex; width: 38px; height: 38px; border: none; border-radius: var(--r-sm); background: var(--bg-2); align-items: center; justify-content: center; }
.tb-menu svg { width: 20px; height: 20px; }
.tb-view-title { min-width: 0; }
.tb-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.tb-subtitle { font-size: .78rem; color: var(--text-3); }
.tb-date-pills { display: flex; align-items: center; gap: 8px; margin-left: 8px; flex: 1; min-width: 0; }
.ds-arrow { width: 30px; height: 30px; border: 1px solid var(--border-soft); background: var(--bg-2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-2); }
.ds-arrow svg { width: 16px; height: 16px; }
/* Padding matters here, not just cosmetic: overflow-x:auto forces the other
   axis to auto too (per spec, when one axis isn't visible), which clips
   anything a focused pill's :focus-visible ring/scale renders outside its own
   box unless there's room for it inside this container. */
.ds-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 6px; }
.ds-pills::-webkit-scrollbar { display: none; }
.date-pill { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 4px 12px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--bg-2); color: var(--text-3); min-width: 46px; }
.date-pill.active { background: linear-gradient(150deg, rgba(var(--accent-rgb),.28), rgba(var(--accent-rgb),.08)); border-color: rgba(var(--accent-rgb),.4); color: var(--text-1); }
.dp-day { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.dp-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.tb-actions { display: flex; align-items: center; gap: 10px; }
.tb-search { position: relative; display: flex; align-items: center; }
.tb-search-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-4); pointer-events: none; }
.tb-search-input { width: 220px; padding: 9px 30px 9px 34px; border-radius: var(--r-pill); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .84rem; transition: width var(--dur-base) var(--ease-out), border-color var(--dur-fast); }
.tb-search-input:focus-visible { width: 280px; border-color: var(--accent); }
.tb-search-clear { position: absolute; right: 8px; width: 20px; height: 20px; border: none; background: none; color: var(--text-4); font-size: 1.1rem; line-height: 1; }
.tb-icon-btn { width: 38px; height: 38px; border: 1px solid var(--border-soft); border-radius: var(--r-sm); background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: transform var(--dur-fast); flex-shrink: 0; }
.tb-icon-btn svg { width: 18px; height: 18px; }
.tb-icon-btn:active { transform: rotate(180deg); }

/* ----- Date strip ----- */
/* #ds-stats/#headerStats (this section's only children) are never actually
   populated anywhere in app.js - kept in the DOM only because #dateStrip is
   a registered D-pad focus zone (data-focus-zone="datestrip") and gets
   shown/hidden per-view - but the old min-height/padding reserved a fixed
   ~74px of empty space between the date picker and the sport filter chips
   for content that never renders. Zeroed out since there's nothing to fit. */
.date-strip { display: flex; align-items: center; gap: 16px; padding: 0; min-height: 0; flex-shrink: 0; }
.ds-stats { display: flex; gap: 14px; font-size: .78rem; color: var(--text-3); }
.ds-status-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-finished-toggle { margin-left: auto; }
.ds-switch { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-3); cursor: pointer; }
.ds-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-switch-slider { width: 34px; height: 19px; border-radius: var(--r-pill); background: var(--bg-3); border: 1px solid var(--border-soft); position: relative; transition: background var(--dur-base); }
.ds-switch-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text-3); transition: transform var(--dur-base) var(--ease-out), background var(--dur-base); }
.ds-switch input:checked + .ds-switch-slider { background: rgba(var(--accent-rgb),.35); }
.ds-switch input:checked + .ds-switch-slider::after { transform: translateX(15px); background: var(--accent); }
.ds-switch input:focus-visible + .ds-switch-slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-soft); background: var(--bg-2); color: var(--text-3); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.filter-chip.active { background: linear-gradient(120deg, rgba(var(--accent-rgb),.3), rgba(var(--accent-rgb),.12)); border-color: rgba(var(--accent-rgb),.5); color: var(--text-1); }

/* ============================================================
   VIEWPORT / VIEWS
   ============================================================ */
.viewport { flex: 1; padding: 4px 0 20px; }
.view { padding: 0 24px; animation: viewIn var(--dur-base) var(--ease-out); }
.view[hidden] { display: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----- Hero / Spotlight ----- */
.hero { margin-bottom: 22px; }
.hero[hidden] { display: none; }
.hero-inner { position: relative; }
.hero-spotlight { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.hero-spotlight-side { display: flex; flex-direction: column; gap: 12px; }

.hero-slide {
    position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 20px;
    min-height: 300px; padding: 32px; border-radius: var(--r-2xl); overflow: hidden;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(var(--sc-rgb,var(--accent-rgb)),.28), transparent 60%),
        linear-gradient(150deg, var(--bg-3), var(--bg-1));
    border: 1px solid var(--border-mid); box-shadow: var(--sh-lg);
}
.hero-slide::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: linear-gradient(120deg, rgba(var(--sc-rgb,var(--accent-rgb)),.7), transparent 40%, transparent 60%, rgba(var(--sc-rgb,var(--accent-rgb)),.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; z-index: 1; }
.hero-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.hero-status-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 12px; border-radius: var(--r-pill); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.hero-status-tag.live { background: linear-gradient(120deg, var(--live), var(--live-2)); color: #fff; box-shadow: 0 0 20px rgba(255,51,99,.4); }
.hero-status-tag.live .live-pulse { background: #fff; }
.hero-status-tag.live .live-pulse::after { border-color: #fff; }
/* Same fix as above, same reason: .live-pulse defaults to var(--live) (red),
   which is invisible sitting on .live-ticker-label's own red gradient
   background - white gives it the contrast it needs. */
.live-ticker-label .live-pulse { background: #fff; }
.live-ticker-label .live-pulse::after { border-color: #fff; }
.hero-status-tag.soon { background: linear-gradient(120deg, var(--soon), var(--soon-2)); color: #201400; }
.hero-status-tag.ft { background: var(--bg-4); color: var(--text-3); }
.hero-status-tag.upcoming { background: rgba(var(--sc-rgb,var(--accent-rgb)),.2); color: var(--text-1); }
.hero-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 700; margin: 0; line-height: 1.1; letter-spacing: -.01em; }
.hero-vs { color: var(--text-4); font-weight: 500; font-size: .8em; margin: 0 4px; }
.hero-time { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); }
.hero-time svg { width: 16px; height: 16px; color: var(--text-4); }
.hero-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.hero-watch-btn { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border: none; border-radius: var(--r-md); font-weight: 700; font-size: .88rem; color: #0b0b12; background: linear-gradient(120deg, var(--sc,var(--accent)), var(--accent-2)); box-shadow: 0 6px 22px rgba(var(--sc-rgb,var(--accent-rgb)),.4); }
.hero-watch-btn svg { width: 16px; height: 16px; fill: currentColor; }
.hero-action-btn { display: flex; align-items: center; gap: 7px; padding: 12px 18px; border-radius: var(--r-md); border: 1px solid var(--border-mid); background: var(--glass); color: var(--text-2); font-weight: 600; font-size: .86rem; }
.hero-action-btn svg { width: 16px; height: 16px; }
.hero-action-btn.is-faved { color: var(--accent); border-color: rgba(var(--accent-rgb),.5); }
.hero-art { display: flex; align-items: center; justify-content: center; z-index: 1; }
.hero-teams { display: flex; align-items: center; gap: 18px; }
.hero-team-block { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; }
.hero-team-logo { width: 68px; height: 68px; border-radius: var(--r-lg); background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; overflow: hidden; box-shadow: var(--sh-sm); }
.hero-team-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.hero-team-name { font-size: .82rem; font-weight: 700; text-align: center; }
.hero-vs-cell { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-4); }
.hero-single { font-size: 4.5rem; }

/* Secondary spotlight cards */
.hero-spotlight-card {
    display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: var(--r-xl);
    background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--border-soft);
    box-shadow: var(--sh-sm); position: relative; overflow: hidden; flex: 1;
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.hero-spotlight-card:hover { border-color: rgba(var(--sc-rgb,var(--accent-rgb)),.5); transform: translateY(-2px); }
.hero-spotlight-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--sc,var(--accent)), var(--accent-2)); }
.hero-side-teams { display: flex; align-items: center; gap: 8px; }
.hero-side-logo { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: .9rem; }
.hero-side-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-side-vs { font-size: .68rem; color: var(--text-4); font-weight: 700; }
.hero-side-icon { font-size: 1.4rem; }
.hero-side-title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.hero-side-meta { font-size: .72rem; color: var(--text-3); }

/* ----- Quick chips (sport filter row) ----- */
.quick-chips-row { margin-bottom: 16px; }
/* Full padding, not just bottom — same overflow-x:auto clipping reason as
   .ds-pills above (the focus ring extends past the chip on every side). */
.quick-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 6px; }
.quick-chips::-webkit-scrollbar { display: none; }
.chip-count { opacity: .7; font-size: .84em; margin-left: 2px; }

/* ----- Rails + cards ----- */
.rails { display: flex; flex-direction: column; gap: 28px; }
.rail-section-block { min-width: 0; }
.rail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rail-head-icon { width: 30px; height: 30px; border-radius: var(--r-sm); background: rgba(var(--sc-rgb,var(--accent-rgb)),.16); color: var(--sc,var(--accent)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rail-head-icon svg { width: 17px; height: 17px; }
.rail-head-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-head-count { font-size: .74rem; color: var(--text-4); font-weight: 600; }
.rail-head-action { font-size: .78rem; color: var(--accent); font-weight: 600; flex-shrink: 0; }
/* 3-up wrapping grid — cards fill their cell and wrap to new rows underneath
   instead of a horizontally-scrolling row. */
.rail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-rail); padding: 4px 4px 10px; }
.fav-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-rail); }

.ev-card {
    /* Fixed height, not min-height: a flex row/grid row default-stretches every
       card to match its tallest sibling, so one card with wrapped 2-line team
       names was inflating the whole row's height uniformly. Width comes from
       the grid cell (see .rail-row/.fav-list above), not a fixed px value. */
    height: var(--card-h); overflow: hidden; position: relative;
    display: flex; flex-direction: column; gap: 7px; padding: var(--pad-card);
    border-radius: var(--r-lg); background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--border-soft); box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,.04);
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.ev-card:hover { transform: translateY(-3px); border-color: rgba(var(--sc-rgb),.45); box-shadow: var(--sh-md); }
.ev-card::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--sc,var(--accent)), transparent); opacity: .8; }
.ev-card-live { border-color: rgba(255,51,99,.4); background: linear-gradient(165deg, rgba(255,51,99,.08), var(--bg-2)); }
.ev-card-live::before { background: linear-gradient(90deg, var(--live), var(--live-2)); background-size: 200% 100%; animation: liveWireSweep 2.4s linear infinite; height: 3px; box-shadow: 0 0 10px rgba(255,51,99,.6); }
.ev-card-soon::before { background: linear-gradient(90deg, var(--soon), transparent); }
@keyframes liveWireSweep { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* Sized/positioned for the compact card: at the old top:12px/30px these
   collided with the card-top row's time text once padding and row gaps
   were tightened - shrunk and tucked closer to the true corner instead. */
.ev-fav-btn, .ev-remind-btn {
    position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border: none; border-radius: 50%;
    background: rgba(0,0,0,.4); backdrop-filter: blur(6px); color: var(--text-2); display: flex; align-items: center; justify-content: center;
    transition: color var(--dur-fast), background var(--dur-fast);
    z-index: 1;
}
.ev-remind-btn { right: 35px; }
.ev-fav-btn svg, .ev-remind-btn svg { width: 12px; height: 12px; }
.ev-fav-btn.is-faved, .ev-remind-btn.is-reminded { color: var(--live); background: rgba(255,51,99,.18); }
.ev-fav-btn:hover, .ev-remind-btn:hover { background: rgba(0,0,0,.5); }

.ev-league-row { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-3); font-weight: 600; }
.ev-league-row img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.ev-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ev-status-area { min-height: 22px; }
.ev-status-live, .ev-status-badge.ev-status-live { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill); background: linear-gradient(120deg, var(--live), var(--live-2)); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .03em; }
.ev-viewers { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); color: var(--text-2); font-size: .64rem; font-weight: 700; letter-spacing: .02em; }
.ev-viewers::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #4F6DFF); box-shadow: 0 0 0 2px rgba(79,109,255,.25); }
.ev-status-soon { padding: 3px 9px; border-radius: var(--r-pill); background: rgba(255,194,75,.18); color: var(--soon); font-size: .66rem; font-weight: 800; }
.ev-status-ft, .ev-status-badge.ev-status-ft { padding: 3px 9px; border-radius: var(--r-pill); background: var(--bg-4); color: var(--text-4); font-size: .66rem; font-weight: 700; }
.ev-status-ppd { padding: 3px 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); color: var(--text-3); font-size: .66rem; font-weight: 700; }
.ev-time-block { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); }
.ev-time-num { font-size: 1rem; font-weight: 700; }
.ev-time-ampm { font-size: .62rem; color: var(--text-4); font-weight: 700; }
.ev-card-time { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--text-3); }

/* overflow:hidden here is a safety net, not the primary fix - --card-h at
   every breakpoint is sized to actually fit this row's content (logo +
   label) without needing it. But min-height:0 alone only lets a flex item
   shrink below its content's natural size, it doesn't clip that content -
   without this, a card that's still too short for some edge case (a very
   long 2-line-wrapped name) would have team-side content visually bleed
   down into the channels row below instead of just clipping cleanly. */
.ev-vs-layout { display: flex; align-items: center; justify-content: space-between; flex: 1; min-height: 0; overflow: hidden; }
.ev-team-side { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 44%; min-height: 0; overflow: hidden; }
/* bg-4 + a real border, not bg-3 blending straight into the card's own
   bg-3→bg-2 gradient - these were reading as "unstyled" because they had
   almost no contrast against their own container. */
.ev-team-logo, .ev-team-ph {
    width: 44px; height: 44px; border-radius: var(--r-md);
    background: var(--bg-4); border: 1px solid var(--border-mid);
    display: flex; align-items: center; justify-content: center; object-fit: contain;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    overflow: hidden; flex-shrink: 0;
}
.ev-team-logo { padding: 5px; }
/* 2-line clamp instead of single-line ellipsis — full names like "Manchester
   United" were truncating to a few characters at card width. */
.ev-team-label { font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.2; width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev-vs-center {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 50%; background: var(--bg-4); border: 1px solid var(--border-mid);
    color: var(--text-4); font-weight: 800; font-size: .62rem;
}
.ev-single-layout { display: flex; align-items: center; gap: 10px; flex: 1; min-height: 0; overflow: hidden; }
.ev-single-icon {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: var(--r-md); background: var(--bg-4); border: 1px solid var(--border-mid);
    font-size: 1.1rem;
}
.ev-single-info { min-width: 0; }
.ev-single-name { font-weight: 700; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev-single-venue { font-size: .68rem; color: var(--text-4); margin-top: 2px; }

/* Border-top separator so the channel pills read as a defined footer strip
   instead of floating loose on the card's own background. */
/* margin-top:auto pushes this to the bottom of the fixed-height card, but
   that auto margin shrinks toward zero once a 2-line team/event name fills
   more of the available space - leaving only the flex gap as the sole
   separation from the pills below, which read as cramped/touching once
   names wrapped to their full 2 lines. padding-top here is fixed (not part
   of the auto margin), so it holds a guaranteed minimum gap regardless of
   how much the auto margin itself shrinks. */
/* flex-wrap:wrap treated the "+N" badge as just another item competing for
   space - when the 3 channel pills (width varies by channel name length)
   left only a sliver of room, the small +N badge didn't fit in that sliver
   and got bumped to its own second line, where it read as stranded/oddly
   gapped rather than part of the row. nowrap + hidden keeps everything on
   one line and clips whatever doesn't fit instead of wrapping it. */
.ev-channels-row { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.ch-pill { flex-shrink: 0; }
.ch-more { flex-shrink: 0; }
.ch-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--bg-4); border: 1px solid var(--border-soft); font-size: .64rem; color: var(--text-3); }
.ch-pill-playable { background: rgba(var(--accent-rgb),.16); border-color: rgba(var(--accent-rgb),.3); color: var(--text-1); }
.ch-flag { display: flex; align-items: center; }
.ch-flag-img, .ch-flag-emoji { display: inline-block; }
.ch-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-more { padding: 3px 8px; border-radius: var(--r-pill); background: var(--bg-4); color: var(--text-4); font-size: .68rem; }

/* ----- Sport grid ----- */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.sport-card {
    display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--border-soft);
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.sport-card:hover { transform: translateY(-2px); border-color: rgba(var(--sc-rgb),.45); }
.sport-card-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(var(--sc-rgb),.16); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.sport-card-name { font-weight: 700; font-size: .9rem; }
.sport-card-count { font-size: .74rem; color: var(--text-4); }

/* ----- Scores view ----- */
.sc-body { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.sc-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.sc-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-team-logo { width: 26px; height: 26px; border-radius: 50%; font-size: .78rem; }
.sc-team-name { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.sc-team-name.sc-score-winner { color: var(--text-1); }
.sc-score { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-3); }
.sc-score.sc-score-winner { color: var(--text-1); }
.sc-live-badge { margin-left: 8px; }
.ev-comp-logo { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.ev-comp-logo-fallback { display: flex; align-items: center; justify-content: center; font-size: .8rem; }

/* ----- Live view / Favorites / Search shared empty states ----- */
.state-msg, .live-empty, .fav-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 60px 20px; gap: 10px; color: var(--text-3);
}
.state-msg-icon, .fav-empty .icon { font-size: 2.6rem; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb),.16), transparent 70%); margin-bottom: 4px; }
.state-msg-icon-sm { font-size: 1.8rem; width: 56px; height: 56px; }
.state-msg-title, .fav-empty h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0; color: var(--text-1); }
.state-msg-sub, .fav-empty p { font-size: .84rem; margin: 0; max-width: 320px; }
.loader-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--bg-4); border-top-color: var(--accent); animation: spin .9s linear infinite; margin-bottom: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Search view ----- */
.search-hero { padding: 20px 0 24px; }
.search-big-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.search-big-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-4); }
.search-big-input { width: 100%; padding: 16px 20px 16px 50px; border-radius: var(--r-xl); border: 1px solid var(--border-mid); background: var(--glass); backdrop-filter: blur(var(--glass-blur-sm)); font-size: 1rem; }
.search-big-input:focus-visible { border-color: var(--accent); }
.search-hist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }
.search-hist-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--border-soft); color: var(--text-2); font-size: .82rem; }
.search-hist-pill svg { width: 14px; height: 14px; color: var(--text-4); }
.search-section { margin-bottom: 26px; }
.search-section-title { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .03em; color: var(--text-3); text-transform: uppercase; margin: 0 0 12px; }

/* ----- Skeletons ----- */
.skel-rail { display: flex; flex-direction: column; gap: 28px; }
.skel-row-head { width: 160px; height: 20px; border-radius: var(--r-sm); margin-bottom: 12px; background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 37%, var(--bg-3) 63%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skel-row-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-rail); }
.skel-card { height: var(--card-h); border-radius: var(--r-lg); background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 37%, var(--bg-3) 63%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   TAB BAR (mobile)
   ============================================================ */
.tab-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: var(--tabbar-h); z-index: 40;
    background: var(--glass-strong); backdrop-filter: blur(var(--glass-blur-md)) saturate(var(--glass-sat));
    border-top: 1px solid var(--border-soft); align-items: center; justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom); }
.tab-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; border: none; background: none; color: var(--text-4); font-size: .64rem; font-weight: 600; flex: 1; padding: 6px 0; }
.tab-btn.active { color: var(--accent); }
/* Every other tab icon is a 22x22 SVG - this one's actual content is just
   an 8px pulsing dot (.live-pulse), which without an explicit box the same
   size as its siblings sized-to-content instead, reading as a stray dot
   floating above the label rather than a same-size icon in the row. */
.tab-live-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; }

/* ============================================================
   OVERLAYS (modal / channel browser / settings / shortcuts) — shared shell
   ============================================================ */
.modal, .settings, .shortcuts, .qe-panel { position: fixed; inset: 0; z-index: 60; }
.modal-backdrop, .settings-backdrop, .shortcuts-backdrop, .qe-backdrop, .ch-browser-backdrop {
    position: absolute; inset: 0; background: rgba(2,2,6,.68); backdrop-filter: blur(6px);
}
.modal { display: flex; align-items: flex-end; justify-content: center; }
.modal-sheet {
    position: relative; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
    background: var(--bg-1); border-radius: var(--r-2xl) var(--r-2xl) 0 0; border: 1px solid var(--border-mid); border-bottom: none;
    box-shadow: var(--sh-lg); animation: panelInUp var(--dur-slow) var(--ease-out);
}
@media (min-width: 640px) { .modal { align-items: center; } .modal-sheet { border-radius: var(--r-2xl); border-bottom: 1px solid var(--border-mid); margin: 0 20px; } }
@keyframes panelInUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-handle { width: 40px; height: 4px; border-radius: var(--r-pill); background: var(--border-strong); margin: 10px auto; }
.modal-hero { position: relative; padding: 18px 24px 22px; background: radial-gradient(120% 100% at 0% 0%, rgba(var(--sc-rgb,var(--accent-rgb)),.24), transparent 60%); }
.modal-hero-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.modal-league-info { display: flex; align-items: center; gap: 8px; }
.modal-league-info img { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; }
.modal-league-text { display: flex; flex-direction: column; }
.modal-league-name { font-weight: 700; font-size: .92rem; }
.modal-sport-name { font-size: .72rem; color: var(--text-4); }
.modal-close { width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--bg-3); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-close svg { width: 17px; height: 17px; }
.modal-matchup { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 0; }
.modal-team { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 40%; }
.modal-team-badge { width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--bg-3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-team-badge img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.modal-team-name { font-weight: 700; font-size: .92rem; text-align: center; }
.modal-vs { font-family: var(--font-display); font-weight: 700; color: var(--text-4); }
.modal-event-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-align: center; padding: 16px 0; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 0; }
.meta-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-soft); font-size: .78rem; color: var(--text-2); }
.meta-tag svg { width: 14px; height: 14px; color: var(--text-4); }
.modal-actions { display: flex; gap: 10px; padding: 16px 24px 0; flex-wrap: wrap; }
.modal-action-btn { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--border-mid); background: var(--bg-2); font-size: .84rem; font-weight: 600; }
.modal-action-btn svg { width: 16px; height: 16px; }
.modal-action-btn.is-active { color: var(--accent); border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.12); }
.modal-player-section { padding: 16px 24px 0; }
.modal-player-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal-player-label { font-weight: 700; font-size: .88rem; }
.modal-player-close { width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.modal-player-close svg { width: 15px; height: 15px; }
.modal-player-wrap { border-radius: var(--r-md); overflow: hidden; background: #000; }
.modal-player-url { display: flex; gap: 8px; margin-top: 8px; }
.modal-player-url-input { flex: 1; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .74rem; color: var(--text-3); }
.modal-player-copy { padding: 8px 14px; border-radius: var(--r-sm); border: none; background: var(--bg-3); font-size: .78rem; font-weight: 600; }
.modal-ch-section { padding: 20px 24px 28px; }
.modal-ch-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.modal-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.modal-ch-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--border-soft); opacity: .55; }
.modal-ch-item.modal-ch-playable { opacity: 1; }
.modal-ch-item.modal-ch-playable:hover { border-color: rgba(var(--accent-rgb),.5); background: var(--bg-3); }
.modal-ch-flag { display: flex; }
.modal-ch-details { flex: 1; min-width: 0; }
.modal-ch-name { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-ch-play-icon { color: var(--accent); display: flex; }
.modal-ch-country { font-size: .68rem; color: var(--text-4); }

/* ----- Channel browser + Multi-view picker (share .ch-browser shell) ----- */
.ch-browser, .mv-picker-shell { position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity var(--dur-base), visibility var(--dur-base); }
.ch-browser.ch-open { visibility: visible; opacity: 1; }
.ch-browser-panel {
    position: relative; width: 100%; max-width: 900px; max-height: 86vh; margin: 20px;
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-2xl);
    background: var(--bg-1); border: 1px solid var(--border-mid); box-shadow: var(--sh-lg);
    transform: scale(.97) translateY(10px); transition: transform var(--dur-base) var(--ease-out);
}
.ch-browser.ch-open .ch-browser-panel { transform: none; }
.ch-browser-header { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
.ch-browser-back, .ch-browser-close, .mv-grid-close { width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--bg-3); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ch-browser-back svg, .ch-browser-close svg, .mv-grid-close svg { width: 16px; height: 16px; }
.ch-browser-title-wrap { flex: 1; min-width: 0; }
.ch-browser-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.ch-browser-subtitle { display: block; font-size: .78rem; color: var(--text-4); }
.ch-browser-search-row { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
.ch-browser-search-row svg { width: 18px; height: 18px; color: var(--text-4); flex-shrink: 0; }
.ch-browser-search { flex: 1; border: none; background: none; font-size: .9rem; color: var(--text-1); }
.ch-browser-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }
/* Wider minimum tile width (was 150-160px) — fewer columns per row, more
   room for the name before wrapping. Combined with the 2-line clamp below
   (replacing single-line ellipsis) instead of just truncating harder. */
.ch-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ch-cat-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--border-soft); }
.ch-cat-btn svg { width: 24px; height: 24px; color: var(--accent); }
.ch-cat-btn span { font-size: .84rem; font-weight: 600; text-align: center; line-height: 1.3; }
.ch-channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ch-channel-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--border-soft); }
.ch-channel-tile.ch-playing { border-color: var(--accent); background: rgba(var(--accent-rgb),.12); }
.ch-channel-logo, .ch-channel-logo-placeholder { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: contain; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--text-4); flex-shrink: 0; }
.ch-channel-logo-placeholder svg { width: 20px; height: 20px; }
/* Same corner-icon treatment as .ev-fav-btn on event cards, reused here for
   per-channel favoriting - a <span role="button">, not a <button>, since
   .ch-channel-tile is itself a <button> and can't validly contain one. */
.ch-fav-btn {
    position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,.4); backdrop-filter: blur(6px); color: var(--text-2);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: color var(--dur-fast), background var(--dur-fast);
}
.ch-fav-btn svg { width: 11px; height: 11px; fill: none; }
.ch-fav-btn.is-faved { color: var(--live); background: rgba(255,51,99,.18); }
.ch-fav-btn.is-faved svg { fill: currentColor; }
.ch-fav-btn:hover { background: rgba(0,0,0,.5); }
/* Same favorite-heart treatment as .ch-fav-btn above, sized/laid out for the
   event modal's horizontal channel row instead of a corner-badge on a tile. */
.modal-ch-fav-btn { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: none; background: transparent; color: var(--text-3); cursor: pointer; flex-shrink: 0; transition: color var(--dur-fast), background var(--dur-fast); }
.modal-ch-fav-btn svg { width: 14px; height: 14px; fill: none; }
.modal-ch-fav-btn.is-faved { color: var(--live); background: rgba(255,51,99,.15); }
.modal-ch-fav-btn.is-faved svg { fill: currentColor; }
.modal-ch-fav-btn:hover { background: rgba(255,255,255,.08); }
/* 2-line clamp instead of single-line ellipsis — this is shared by channel
   tiles AND multi-view's event tiles (which pack an even longer "Team A vs
   Team B · Starts in 45m" label into the same box), so it needs the room. */
.ch-channel-name { font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.3; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-browser-loading, .ch-browser-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 50px 20px; color: var(--text-3); font-size: .88rem; }
.ch-browser-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--bg-4); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.ch-browser-player-section { padding: 16px 22px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
.ch-browser-player-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ch-browser-player-label { font-weight: 700; font-size: .88rem; }
.ch-browser-player-actions { display: flex; align-items: center; gap: 8px; }
.ch-browser-stream-url { width: 160px; padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .72rem; color: var(--text-3); }
.ch-browser-copy-btn { padding: 7px 12px; border-radius: var(--r-sm); border: none; background: var(--bg-3); font-size: .76rem; font-weight: 600; }
.ch-browser-player-close { width: 28px; height: 28px; border: none; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.ch-browser-player-close svg { width: 14px; height: 14px; }
.ch-browser-player-wrap { border-radius: var(--r-md); overflow: hidden; background: #000; }
.ext-player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ext-player-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: var(--r-sm); background: var(--bg-3); font-size: .8rem; font-weight: 600; }

/* ----- Multi-view picker + grid ----- */
.mv-tabs { display: flex; gap: 8px; padding: 14px 22px 0; flex-shrink: 0; }
.mv-tab { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .82rem; font-weight: 600; color: var(--text-3); }
.mv-tab.active { background: linear-gradient(120deg, rgba(var(--accent-rgb),.3), rgba(var(--accent-rgb),.12)); color: var(--text-1); border-color: rgba(var(--accent-rgb),.5); }
.mv-conn-banner { margin: 10px 22px 0; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255,194,75,.14); color: var(--soon); font-size: .82rem; }
.mv-conn-banner:empty { display: none; }
.mv-picker-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--border-soft); flex-shrink: 0; }
.mv-selected-count { font-size: .82rem; color: var(--text-3); }
.mv-start-btn { padding: 11px 22px; border: none; border-radius: var(--r-md); font-weight: 700; font-size: .88rem; color: #0b0b12; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.mv-start-btn:disabled { opacity: .4; background: var(--bg-4); color: var(--text-4); }
/* Wider than the base channel grid — this one also holds event tiles, whose
   "Team A vs Team B · Starts in 45m" labels run noticeably longer than a
   plain channel name. */
.mv-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mv-tile-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-1); border: 2px solid var(--border-mid); }
.ch-channel-tile.is-active .mv-tile-check, .ch-cat-btn.is-active .mv-tile-check { background: var(--accent); border-color: var(--accent); }

/* ===== FOR YOU: onboarding / edit-preferences wizard ===== */
/* Header row above the personalized feed (Edit preferences button) */
.foryou-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.foryou-header-sub { font-size: .84rem; color: var(--text-3); margin: 0; }
.foryou-edit-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--border-soft); color: var(--text-2); font-size: .8rem; font-weight: 600; flex-shrink: 0; }
.foryou-edit-btn:hover { border-color: rgba(var(--accent-rgb),.5); color: var(--text-1); }

/* Selectable card grid used by all 3 wizard steps - same visual language as
   .ch-cat-btn, but with its own position:relative (needed for the checkmark
   badge) declared explicitly rather than assumed from a shared class. */
.fy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.fy-section-title { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.fy-section-title:first-child { margin-top: 0; }
.fy-section-empty { font-size: .78rem; color: var(--text-4); padding: 8px 2px 14px; }
.fy-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 10px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--border-soft); text-align: center; font-size: .84rem; font-weight: 600; min-height: 64px; }
.fy-card:hover { border-color: rgba(var(--accent-rgb),.4); }
.fy-card.fy-selected { border-color: var(--accent); background: rgba(var(--accent-rgb),.12); }
.fy-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-1); border: 2px solid var(--border-mid); display: flex; align-items: center; justify-content: center; font-size: .72rem; color: #fff; }
.fy-card.fy-selected .fy-check { background: var(--accent); border-color: var(--accent); }

/* Footer: reuses .mv-picker-footer's own layout (space-between across its
   two direct children), each side grouping its own controls. */
.foryou-footer-left, .foryou-footer-right { display: flex; align-items: center; gap: 12px; }
.foryou-selectall-btn, .foryou-skip-btn { padding: 9px 16px; border-radius: var(--r-md); font-size: .8rem; font-weight: 600; background: var(--bg-3); border: 1px solid var(--border-soft); color: var(--text-2); }
.foryou-selectall-btn:hover, .foryou-skip-btn:hover { border-color: rgba(var(--accent-rgb),.5); color: var(--text-1); }
@media (max-width: 600px) {
    .mv-picker-footer.foryou-onboard-footer { flex-wrap: wrap; gap: 10px; }
    .foryou-footer-left, .foryou-footer-right { flex: 1 1 100%; justify-content: space-between; }
}

.mv-grid-overlay { position: fixed; inset: 0; z-index: 70; background: var(--bg-0); display: flex; flex-direction: column; }
.mv-grid-overlay[hidden] { display: none; }
.mv-grid-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.mv-grid-title { font-family: var(--font-display); font-weight: 700; }
.mv-grid-tiles { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; padding: 6px; }
.mv-tile { position: relative; background: #000; border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.mv-tile-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: rgba(0,0,0,.5); position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.mv-tile-name { font-size: .78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-tile-mute-btn, .mv-tile-close-btn { width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; flex-shrink: 0; }
.mv-tile-player { width: 100%; height: 100%; }
.mv-tile-player.focused { outline: 3px solid var(--accent); outline-offset: -3px; }
.mv-tile-error { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-3); font-size: .82rem; text-align: center; padding: 10px; }

/* ============================================================
   SETTINGS PANEL
   ============================================================ */
.settings { display: flex; align-items: center; justify-content: flex-end; visibility: hidden; opacity: 0; transition: opacity var(--dur-base), visibility var(--dur-base); }
.settings.open { visibility: visible; opacity: 1; }
.settings-sheet {
    position: relative; width: 100%; max-width: 420px; height: 100%; overflow-y: auto;
    background: var(--bg-1); border-left: 1px solid var(--border-mid); box-shadow: var(--sh-lg);
    transform: translateX(20px); transition: transform var(--dur-base) var(--ease-out);
}
.settings.open .settings-sheet { transform: none; }
.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 16px; border-bottom: 1px solid var(--border-soft); }
.settings-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0; letter-spacing: -.01em; }
.settings-subtitle { font-size: .8rem; color: var(--text-3); margin: 2px 0 0; }
.settings-close { width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.settings-close svg { width: 16px; height: 16px; }
.settings-body { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 26px; }
.settings-group-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-4); margin-bottom: 10px; }
.settings-theme-row { display: flex; gap: 8px; }
.theme-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: var(--r-md); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .74rem; font-weight: 600; color: var(--text-3); }
.theme-btn span { width: 100%; height: 20px; border-radius: var(--r-sm); }
.theme-btn-oled span { background: #020204; }
.theme-btn-dark span { background: #131322; }
.theme-btn-dim span { background: #262645; }
.theme-btn.active { border-color: var(--accent); color: var(--text-1); }
.settings-accent-row { display: flex; gap: 10px; flex-wrap: wrap; }
.accent-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; background: var(--ac); position: relative; }
.accent-btn.active { border-color: var(--text-1); box-shadow: 0 0 0 3px var(--bg-1), 0 0 0 5px var(--ac); }
.settings-group { display: flex; flex-direction: column; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.settings-toggle-row { border-radius: var(--r-md); padding: 12px 12px; }
.settings-toggle-row:focus-visible { background: var(--bg-2); }
.settings-row-title { font-size: .88rem; font-weight: 600; }
.settings-row-sub { font-size: .74rem; color: var(--text-4); margin-top: 2px; max-width: 260px; }
.settings-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.settings-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.settings-switch span { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--bg-3); border: 1px solid var(--border-soft); transition: background var(--dur-base); }
.settings-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-3); transition: transform var(--dur-base) var(--ease-out), background var(--dur-base); }
.settings-switch input:checked + span { background: rgba(var(--accent-rgb),.4); }
.settings-switch input:checked + span::after { transform: translateX(18px); background: var(--accent); }
.settings-select { width: 100%; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .86rem; }
.settings-about { padding-top: 6px; border-top: 1px solid var(--border-soft); }
.settings-about-row { display: flex; align-items: center; gap: 14px; }
.settings-about-logo { width: 44px; height: 44px; border-radius: var(--r-md); object-fit: cover; }
.settings-about-name { font-weight: 700; font-family: var(--font-display); }
.settings-about-sub { font-size: .78rem; color: var(--text-3); }
.settings-about-ver { font-size: .72rem; color: var(--text-4); margin-top: 2px; }

/* ----- Shortcuts overlay ----- */
.shortcuts { display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity var(--dur-base), visibility var(--dur-base); }
.shortcuts.open { visibility: visible; opacity: 1; }
.shortcuts-sheet { position: relative; width: 100%; max-width: 720px; margin: 20px; max-height: 86vh; overflow-y: auto; background: var(--bg-1); border-radius: var(--r-2xl); border: 1px solid var(--border-mid); box-shadow: var(--sh-lg); }
.shortcuts-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--border-soft); }
.shortcuts-header h2 { font-family: var(--font-display); margin: 0; font-size: 1.2rem; }
.shortcuts-close { width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.shortcuts-close svg { width: 16px; height: 16px; }
.shortcuts-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 26px 30px; }
.shortcuts-col h3 { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-4); margin: 0 0 12px; }
.shortcut-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .84rem; color: var(--text-2); }
.shortcut-row kbd, .rkey { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 3px 8px; border-radius: var(--r-xs); background: var(--bg-3); border: 1px solid var(--border-mid); font-family: ui-monospace, monospace; font-size: .74rem; font-weight: 700; }

/* ============================================================
   MINI PLAYER
   ============================================================ */
.mini-player { position: fixed; bottom: 20px; right: 20px; width: 320px; z-index: 55; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1); border: 1px solid var(--border-mid); box-shadow: var(--sh-lg); animation: miniIn var(--dur-slow) var(--ease-out); }
.mini-player[hidden] { display: none; }
@keyframes miniIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.mini-player-handle { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: move; }
.mini-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: livePulseRing 1.6s ease-out infinite; flex-shrink: 0; }
.mini-player-title { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mini-player-wrap { background: #000; aspect-ratio: 16/9; }
.mini-player-actions { display: flex; gap: 6px; padding: 8px 10px; }
.mini-btn { width: 30px; height: 30px; border: none; border-radius: var(--r-sm); background: var(--bg-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.mini-btn svg { width: 15px; height: 15px; }

/* ============================================================
   TOASTS
   ============================================================ */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: var(--r-pill);
    background: var(--bg-2); border: 1px solid var(--border-mid); box-shadow: var(--sh-md);
    font-size: .84rem; font-weight: 600; line-height: 1.3;
    max-width: min(90vw, 420px);
    animation: toastIn var(--dur-base) var(--ease-out);
}
.toast.toast-out { animation: toastOut var(--dur-base) var(--ease-io) forwards; }
/* Bare <svg> with no width/height falls back to the browser's default
   replaced-element size (300x150px) - with no sizing rule here at all, the
   icon rendered enormous next to the message text. */
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.success svg { color: var(--success, #22E0A0); }
.toast.error svg { color: var(--live); }
.toast.info svg { color: var(--text-2); }
.toast span { flex: 1; min-width: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

/* ============================================================
   QUICK EDIT (mod/admin drawer)
   ============================================================ */
.qe-panel { display: flex; align-items: center; justify-content: flex-end; visibility: hidden; opacity: 0; transition: opacity var(--dur-base), visibility var(--dur-base); }
.qe-panel.qe-open { visibility: visible; opacity: 1; }
.qe-drawer { position: relative; width: 100%; max-width: 460px; height: 100%; overflow-y: auto; background: var(--bg-1); border-left: 1px solid var(--border-mid); }
.qe-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); }
.qe-header-left { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.qe-header-left svg { width: 18px; height: 18px; color: var(--accent); }
.qe-header-actions { display: flex; align-items: center; gap: 10px; }
.qe-full-cp-link { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--accent); }
.qe-full-cp-link svg { width: 14px; height: 14px; }
.qe-close-btn { width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.qe-body { padding: 18px 22px; }
.qe-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.qe-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qe-label { font-size: .74rem; font-weight: 600; color: var(--text-3); }
.qe-input { padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .86rem; }
.qe-hint { font-size: .72rem; color: var(--text-4); }
.qe-type-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.qe-type-btn { flex: 1; padding: 8px; border-radius: var(--r-sm); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .82rem; font-weight: 600; color: var(--text-3); }
.qe-type-btn.active { border-color: var(--accent); color: var(--text-1); background: rgba(var(--accent-rgb),.14); }
.qe-section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-4); margin: 18px 0 10px; }
.qe-ch-list { display: flex; flex-direction: column; gap: 6px; }
.qe-ch-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg-2); }
.qe-ch-name { flex: 1; font-size: .82rem; }
.qe-ch-remove { width: 24px; height: 24px; border: none; border-radius: 50%; background: var(--bg-3); color: var(--live); }
.qe-ch-add-row { display: flex; gap: 8px; margin-top: 10px; position: relative; }
.qe-ch-search { flex: 1; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .82rem; }
.qe-ch-dropdown { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; max-height: 200px; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border-mid); border-radius: var(--r-sm); z-index: 5; }
.qe-ch-opt { display: block; width: 100%; text-align: left; padding: 8px 12px; font-size: .82rem; border: none; background: none; }
.qe-ch-opt:hover { background: var(--bg-3); }
.qe-ch-empty { padding: 14px; text-align: center; color: var(--text-4); font-size: .82rem; }
.qe-msg { padding: 10px 14px; border-radius: var(--r-sm); font-size: .82rem; margin-bottom: 12px; }
.qe-msg-ok { background: rgba(34,224,160,.14); color: var(--success); }
.qe-msg-err { background: rgba(255,51,99,.14); color: var(--live); }
.qe-loading { padding: 30px; text-align: center; color: var(--text-4); }
.qe-footer { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border-soft); }
.qe-cancel-btn { flex: 1; padding: 11px; border-radius: var(--r-md); border: 1px solid var(--border-soft); background: var(--bg-2); font-weight: 600; }
.qe-save-btn { flex: 1; padding: 11px; border-radius: var(--r-md); border: none; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #0b0b12; font-weight: 700; }
.qe-hidden { opacity: .5; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
    body { font-size: 14.5px; }
    :root { --rail-w: 220px; }
    .hero-slide { padding: 24px; min-height: 260px; }
    .hero-spotlight { grid-template-columns: 1fr; }
    .hero-spotlight-side { flex-direction: row; }
}

@media (max-width: 900px) {
    /* .rail is an off-canvas overlay here (transform: translateX(-100%) below
       when closed), not a permanent sidebar — .main must span full width. */
    .main { margin-left: 0; }
    .rail-row, .fav-list { grid-template-columns: repeat(3, 1fr); }
    .ev-card { --card-h: 158px; --pad-card: 9px; }
    .rail {
        position: fixed; left: 0; top: 0; width: 280px; height: 100vh; z-index: 80;
        transform: translateX(-100%); transition: transform var(--dur-base) var(--ease-out);
        border-right: 1px solid var(--border-mid);
    }
    .rail.open { transform: none; }
    .tab-bar { display: flex; }
    .main { padding-bottom: var(--tabbar-h); }
    .hero-teams { gap: 10px; }
    .hero-team-block { width: 84px; }
    .hero-team-logo { width: 52px; height: 52px; }
    .modal-sheet, .ch-browser-panel, .settings-sheet, .qe-drawer { border-radius: 0 !important; height: 100vh; max-height: 100vh; margin: 0 !important; max-width: 100%; }
    .settings-sheet, .qe-drawer { width: 100%; }
}

@media (max-width: 600px) {
    .tb-view-title { display: none; }
    /* Collapsed to a plain icon-button width by default - the input itself
       stays the tap target (its own box still covers the icon), so tapping
       it focuses it like any text field, which triggers the expand below.
       Kept expanded regardless of focus whenever there's an active query
       (.has-value, toggled by _doSearch in app.js) so blurring away from
       the field - e.g. tapping a result - doesn't hide what was searched. */
    .tb-search-input { width: 38px; padding-right: 0; }
    .tb-search:focus-within .tb-search-input, .tb-search.has-value .tb-search-input {
        width: min(58vw, 220px); padding-right: 30px;
    }
    .tb-date-pills { flex: 1; }
    .ds-arrow { width: 26px; height: 26px; }
    .ds-arrow svg { width: 14px; height: 14px; }
    .date-pill { padding: 3px 9px; min-width: 38px; }
    .dp-day { font-size: .56rem; }
    .dp-num { font-size: .94rem; }
    .filter-chip { padding: 4px 9px; font-size: .7rem; gap: 4px; }
    .chip-count { font-size: .8em; }
    .rail-row, .fav-list { grid-template-columns: 1fr; }
    .ev-card { --card-h: 176px; }
    .ev-team-label { -webkit-line-clamp: 1; }
    .ev-team-logo, .ev-team-ph { width: 42px; height: 42px; }
    .hero-slide { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .shortcuts-body { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .login-card { padding: 26px 20px; }
    .topbar { padding: 0 14px; gap: 8px; height: 60px; }
    .view { padding: 0 14px; }
    .hero-slide { padding: 18px; min-height: 220px; }
    .hero-title { font-size: 1.4rem; }
    .ev-card { --card-h: 168px; --pad-card: 8px; }
    .ev-team-logo, .ev-team-ph { width: 38px; height: 38px; }
    .sport-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
    .tab-bar { height: 56px; padding-bottom: max(env(safe-area-inset-bottom), 4px); }
    .rail-row, .fav-list { gap: 10px; }
}

@media (pointer: coarse) and (hover: none) {
    .tab-btn, .rail-item, .date-pill, .ds-arrow, .tb-icon-btn { min-height: 44px; min-width: 44px; touch-action: manipulation; }
    .ev-card, .sport-card, .ch-cat-btn, .ch-channel-tile { touch-action: manipulation; }
}

/* ----- TV rail collapse (desktop/TV only, driven by tvNavOpen) ----- */
@media (min-width: 901px) {
    /* Redefine the same --rail-w the grid track already reads (line ~190), so the
       collapsed/expanded rail width and the grid column never drift apart. */
    body.is-tv { --rail-w: var(--rail-w-collapsed); }
    /* rail-badge (the numeric live-count pill) has nowhere to sit in an
       icon-only column — left visible it gets squeezed against the icon into
       a clipped half-circle. Hide it along with the label/sub text until the
       rail is expanded. */
    body.is-tv .rail .rail-label, body.is-tv .rail .rail-logo-text, body.is-tv .rail .rail-user-info,
    body.is-tv .rail .rail-badge { display: none; }
    /* With the label hidden, the icon was left-anchored by the row's default
       flex-start, leaving a wide empty gap between it and the collapsed
       rail's edge — center it instead. Only applies while collapsed; once
       expanded the base rule's default flex-start (icon-then-label) applies
       again with no override needed. */
    body.is-tv .rail:not(.open) .rail-item, body.is-tv:not(.nav-open) .rail .rail-item { justify-content: center; }
    /* --rail-w must be set on body (an ancestor of both .app and .rail) so it
       reaches .app's grid-template-columns too — setting it on .rail itself
       (a descendant of .app) would not cascade back up to the grid track.
       .rail.open and body.nav-open are always toggled together by the same
       click handler in app.js, so body.is-tv.nav-open alone covers this. */
    body.is-tv.nav-open { --rail-w: 280px; }
    body.is-tv .rail.open .rail-label, body.is-tv.nav-open .rail .rail-label { display: block; }
    /* .rail-logo-text and .rail-user-info are themselves flex containers
       (name+sub / user-name+meta stacked in a column) — restoring them to
       display:block would break that internal layout. */
    body.is-tv .rail.open .rail-logo-text, body.is-tv.nav-open .rail .rail-logo-text,
    body.is-tv .rail.open .rail-user-info, body.is-tv.nav-open .rail .rail-user-info { display: flex; }
    body.is-tv .rail.open .rail-badge, body.is-tv.nav-open .rail .rail-badge { display: inline-block; }
    body.is-tv .app { transition: none; }
    /* This is the rule that was actually overriding every other card-size
       change made so far - is-tv is added to ANY window >= 901px wide (see
       index.html), which in practice means every normal desktop/laptop
       browser, not just real TVs. 252px was ~60% larger than the compact
       base size below, silently winning on every desktop view. Kept
       slightly larger than the base --card-h for genuine 10-foot-UI
       legibility, but nowhere near what it was. */
    body.is-tv .ev-card { --card-h: 180px; }
}

/* ============================================================
   ADDITIONAL COMPONENTS (favorites tabs, quality picker, misc states)
   ============================================================ */
.ds-switch-text { font-weight: 600; }
.ev-vs-text { font-weight: 700; }
.login-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ev-card-hidden { opacity: .4; filter: grayscale(.6); }
.is-hidden { color: var(--live) !important; border-color: rgba(255,51,99,.5) !important; }

.fav-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.fav-tabs::-webkit-scrollbar { display: none; }
.fav-tab { flex-shrink: 0; padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--border-soft); background: var(--bg-2); color: var(--text-3); font-size: .84rem; font-weight: 600; }
.fav-tab.active { background: linear-gradient(120deg, rgba(var(--accent-rgb),.3), rgba(var(--accent-rgb),.12)); color: var(--text-1); border-color: rgba(var(--accent-rgb),.5); }

.quality-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 4px 0; }
.quality-btn { padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--border-soft); background: var(--bg-2); font-size: .82rem; font-weight: 600; color: var(--text-2); }
.quality-btn:hover { border-color: rgba(var(--accent-rgb),.5); color: var(--text-1); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--bg-4); border-top-color: var(--accent); animation: spin .9s linear infinite; display: inline-block; }

.qe-form { display: flex; flex-direction: column; }
.qe-label-row { display: flex; align-items: center; justify-content: space-between; }
.qe-error { padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255,51,99,.14); color: var(--live); font-size: .82rem; margin-bottom: 12px; }
.skel-row { display: flex; flex-direction: column; }

.mv-grid-tiles.mv-grid-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mv-grid-tiles.mv-grid-count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.mv-grid-tiles.mv-grid-count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mv-grid-tiles.mv-grid-count-3 .mv-tile:first-child { grid-column: 1 / -1; }
.mv-grid-tiles.mv-grid-count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* ==========================================================================
   V6 — Design tokens (light theme) + new views (Guide / Movies / Series /
   Match Center / Profiles / Notifications)
   ========================================================================== */

/* ----- Light ("Day") depth theme ----- */
body[data-theme="light"] {
    --bg-0:#f6f7fb; --bg-1:#eef0f8; --bg-2:#e6e9f4; --bg-3:#dcdfee; --bg-4:#d0d4e8; --bg-5:#c2c7df;
    --glass: rgba(255,255,255,.72); --glass-strong: rgba(255,255,255,.92);
    --border-soft: rgba(20,22,40,.08); --border-mid: rgba(20,22,40,.14); --border-strong: rgba(20,22,40,.22);
    --text-1:#14162b; --text-2:#3a3f5c; --text-3:#636889; --text-4:#8a8fad;
    --sh-sm: 0 2px 10px rgba(30,32,60,.10);
    --sh-md: 0 8px 28px rgba(30,32,60,.16), 0 2px 8px rgba(30,32,60,.08);
    --sh-lg: 0 20px 60px rgba(30,32,60,.22), 0 6px 18px rgba(30,32,60,.12);
}
.theme-btn-light span { background: linear-gradient(120deg, #eef1ff, #c7d2ff); }

/* ----- Settings extras ----- */
.settings-row-btn { background: var(--bg-4); border: 1px solid var(--border-soft); color: var(--text-2); padding: 7px 14px; border-radius: var(--r-xs); cursor: pointer; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.settings-row-btn:hover { border-color: var(--border-strong); }

/* ----- TV Guide (EPG) ----- */
.guide-toolbar { display: flex; align-items: center; gap: 14px; padding: 12px 28px; }
.guide-now-label { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; color: var(--live); letter-spacing: .05em; }
.guide-date { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-1); }
.guide-day-btn { background: var(--bg-4); border: 1px solid var(--border-soft); color: var(--text-2); width: 34px; height: 34px; border-radius: var(--r-xs); cursor: pointer; font-size: .9rem; }
.guide-day-btn:hover { border-color: var(--border-strong); }
.guide-scroll { overflow-x: auto; padding: 0 28px 24px; }
.guide-grid { min-width: 1200px; }
.guide-row { display: flex; height: 66px; border-bottom: 1px solid var(--border-soft); }
.guide-head-row { height: 34px; border-bottom: none; }
.guide-ch-head, .guide-ch-label { width: 180px; min-width: 180px; padding: 0 12px; display: flex; align-items: center; font-size: .76rem; font-weight: 700; color: var(--text-2); border-right: 1px solid var(--border-soft); position: sticky; left: 0; background: var(--bg-1); z-index: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.guide-ch-timeline { flex: 1; position: relative; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), var(--border-soft) 8.333%); }
.guide-hour { position: absolute; top: 2px; transform: translateX(-50%); font-size: .64rem; color: var(--text-4); font-weight: 600; }
.guide-event { position: absolute; top: 22px; bottom: 6px; border-radius: 8px; background: var(--bg-4); border: 1px solid var(--border-mid); overflow: hidden; text-align: left; cursor: pointer; padding: 6px 8px; }
.guide-event:hover { border-color: var(--accent); }
.guide-event-live { background: linear-gradient(120deg, rgba(255,51,99,.22), rgba(255,122,89,.12)); border-color: rgba(255,51,99,.45); }
.guide-event-time { display: block; font-size: .6rem; color: var(--text-4); font-weight: 700; }
.guide-event-name { display: block; font-size: .72rem; color: var(--text-1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ----- Movies / Series ----- */
.vod-body { padding: 14px 28px 24px; }
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.vod-card { background: var(--bg-3); border: 1px solid var(--border-soft); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; text-align: left; color: var(--text-1); transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast); padding: 0; }
.vod-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.vod-card-icon { aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: var(--bg-4); }
.vod-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.vod-card-name { display: block; padding: 10px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-detail { max-width: 860px; }
.series-cover { width: 100%; max-width: 320px; border-radius: var(--r-md); display: block; }
.series-plot { color: var(--text-2); font-size: .86rem; line-height: 1.55; }
.series-season { margin-top: 18px; }
.series-season h4 { font-size: .9rem; color: var(--text-1); margin: 0 0 8px; }
.series-ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.series-ep { background: var(--bg-4); border: 1px solid var(--border-soft); color: var(--text-2); border-radius: 8px; padding: 8px; cursor: pointer; font-size: .74rem; font-weight: 700; }
.series-ep:hover { border-color: var(--accent); color: var(--text-1); }

/* ----- Match Center scoreboard (event modal) ----- */
.mc-scoreboard { margin-top: 14px; background: var(--bg-3); border: 1px solid var(--border-soft); border-radius: var(--r-sm); padding: 12px 16px; }
.mc-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: .95rem; font-weight: 700; color: var(--text-1); }
.mc-team { display: flex; align-items: center; gap: 8px; }
.mc-score { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.mc-status { margin-top: 8px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: var(--live); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
