/* ── type ─────────────────────────────────────────────────────────────── */
/* Instrument Sans (SIL OFL, see /fonts/OFL.txt), served from here so a TV never waits on Google */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(/fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── tokens ─────────────────────────────────────────────────────────────── */
/* Warm charcoal, champagne accent used sparingly (primary action, selection, progress, focus),
   frosted surfaces with a hairline edge. Red is only ever "live". */
:root {
  --bg: #131312;
  --raised: #1c1c1b;
  --raised-2: #272726;
  --tile: #2c2c2a;
  --stage: #000;
  --text: #f4f3f1;
  --dim: #a09d98;
  --faint: #6c6a65;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .12);
  --accent: #efdcc6;
  --on-accent: #1d1913;
  --accent-tint: color-mix(in srgb, var(--accent) 14%, transparent);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --live: #ff4d3d;
  --r: 14px;
  --r-sm: 10px;
  --gap: 12px;
  --pad: 24px;
  --t: 160ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@supports not (color: color-mix(in srgb, red, blue)) { :root { --accent-tint: rgba(239, 220, 198, .14); } }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; }
h1, h2, h3, p { margin: 0; }

:focus { outline: none; }
:focus-visible, .tv :focus { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.tv input:focus, input:focus-visible { outline-offset: 0; }

/* ── shell layouts (set by JS: wide / mid / narrow) ───────────────────── */
.app { display: grid; height: 100vh; height: 100dvh; }


.sidebar { grid-area: side; overflow-y: auto; overflow-x: hidden; padding: 14px 12px 24px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar > * { flex-shrink: 0; } /* scroll rather than squash the items */
.topbar { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 0 var(--pad); min-width: 0; }
.content { grid-area: content; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--pad) 40px; min-width: 0; scroll-padding: 16px; }
.stage { grid-area: stage; min-width: 0; min-height: 0; }
.tabbar { grid-area: tabs; display: none; }

[data-layout="narrow"] .sidebar { display: none; }
[data-layout="narrow"] .tabbar {
  display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(24, 24, 23, .82); border-top: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
[data-layout="narrow"] .topbar { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
[data-layout="narrow"] .content { padding: 4px 16px 32px; }
:root { --side: 236px; }
[data-layout="wide"] .topbar .brand, [data-layout="mid"] .topbar .brand { display: none; }

/* collapsible sidebar (wide / mid): hidden → the top bar gets the brand and an open button */
.sidebar .nav-toggle, .topbar .nav-toggle { display: none; }
[data-layout="wide"]:not(.tv) .sidebar .nav-toggle, [data-layout="mid"]:not(.tv) .sidebar .nav-toggle { display: grid; margin-left: auto; }
html[data-nav="hidden"]:not(.tv) { --side: 0px; }
html[data-nav="hidden"]:not(.tv) .sidebar { display: none; }
html[data-nav="hidden"]:not(.tv)[data-layout="wide"] .topbar .nav-toggle, html[data-nav="hidden"]:not(.tv)[data-layout="mid"] .topbar .nav-toggle { display: grid; }
html[data-nav="hidden"]:not(.tv)[data-layout="wide"] .topbar .brand, html[data-nav="hidden"]:not(.tv)[data-layout="mid"] .topbar .brand { display: inline-flex; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 14px 10px; height: 52px; flex: none; }
.side-head .brand { font-size: 18px; }
.tv .side-head .brand span, .tv .side-head .nav-toggle { display: none; }
.app { transition: grid-template-columns 220ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .app { transition: none; } }


/* TV: icon rail that expands when focused */
.tv .sidebar { position: relative; z-index: 5; width: 76px; overflow: hidden; background: var(--bg); transition: width var(--t); }
.tv .sidebar:focus-within { width: 236px; box-shadow: 24px 0 40px rgba(0, 0, 0, .55); }
.tv .sidebar .nav-label, .tv .sidebar .nav-heading, .tv .sidebar .nav-count { opacity: 0; transition: opacity var(--t); }
.tv .sidebar:focus-within .nav-label, .tv .sidebar:focus-within .nav-heading, .tv .sidebar:focus-within .nav-count { opacity: 1; }
.tv .search-key { display: none; }

/* ── sidebar nav ──────────────────────────────────────────────────────── */
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 11px;
  color: var(--dim); white-space: nowrap; transition: background var(--t), color var(--t); width: 100%; font-size: 14.5px;
}
.nav-item .i { width: 19px; height: 19px; }
.nav-item:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.nav-item[aria-current="page"] { background: rgba(255, 255, 255, .075); color: var(--text); box-shadow: var(--glass-hi); }
.nav-item[aria-current="page"] .i { color: var(--accent); }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav-live { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--live); font-variant-numeric: tabular-nums; }
.nav-heading { font-size: 12px; color: var(--faint); padding: 20px 12px 6px; white-space: nowrap; letter-spacing: .01em; }
.nav-gap { height: 14px; flex: none; }

.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--dim); padding: 4px 0; border-radius: var(--r); }
.tab .i { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab-live { position: relative; }
.tab-live::after { content: ""; position: absolute; top: 3px; right: calc(50% - 15px); width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* ── top bar / search ─────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; flex: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line); border-radius: 999px; color: var(--dim); transition: background var(--t), border-color var(--t);
}
.search:hover { background: rgba(255, 255, 255, .06); }
.search:focus-within { background: rgba(255, 255, 255, .07); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 4px var(--accent-tint); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); height: 100%; }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.search-key { font: 12px var(--font); color: var(--faint); border: 1px solid var(--line-2); border-radius: 7px; padding: 1px 7px; }
.search:focus-within .search-key { display: none; }

/* ── video stage ──────────────────────────────────────────────────────── */
.overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; padding: 24px; }
.overlay > * { pointer-events: auto; }
.overlay[data-state="error"], .overlay[data-state="switching"] { background: rgba(0, 0, 0, .78); align-content: center; gap: 10px; }
.overlay[data-state=""] { place-items: start end; padding: 12px; }
.ov-title { font-size: 17px; font-weight: 600; }
.ov-sub { color: var(--dim); font-size: 13px; max-width: 34ch; }
.mute-hint { background: rgba(0, 0, 0, .7); color: var(--text); font-size: 13px; padding: 7px 12px; border-radius: 999px; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .18); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* now playing */
.np { padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.np:empty { display: none; }
.np-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-logo { width: 52px; height: 36px; border-radius: var(--r-sm); background: var(--tile); display: grid; place-items: center; flex: none; overflow: hidden; }
.np-logo img { max-width: 82%; max-height: 78%; object-fit: contain; }
.np-title { flex: 1; min-width: 0; }
.np-title h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title .meta { display: flex; gap: 6px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.np-actions { display: flex; gap: 4px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; color: var(--dim); transition: background var(--t), color var(--t); flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.icon-btn.on { color: var(--accent); }
.icon-btn.on .i { fill: currentColor; }
.np-section h3 { font-size: 13px; font-weight: 500; color: var(--dim); margin-bottom: 8px; }
.prog-title { font-size: 15px; font-weight: 600; }
.prog-time { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; margin-top: 2px; }
.prog-desc { font-size: 13px; color: var(--dim); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bar { height: 3px; border-radius: 2px; background: var(--raised-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.sched { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.sched time { color: var(--dim); font-variant-numeric: tabular-nums; }
.sched span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-warn { font-size: 13px; color: var(--dim); background: var(--raised-2); border-radius: var(--r); padding: 10px 12px; }
[data-layout="wide"] .np-score { background: var(--bg); }
.np-toggle { display: none; }
[data-layout="narrow"] .np-toggle { display: grid; }

/* ── content: headings, rows, grids ───────────────────────────────────── */
.view-head { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; min-height: 64px; flex-wrap: wrap; }
.view-head h1 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; flex: 1; min-width: 0; }
.view-head .sub { color: var(--dim); font-size: 13px; font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.section { margin-top: 34px; }
.section:first-child { margin-top: 8px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; flex: 1; }
.section-head .link { font-size: 13px; color: var(--dim); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); transition: color var(--t), border-color var(--t), background var(--t); }
.section-head .link:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.empty { color: var(--dim); text-align: center; padding: 48px 16px; font-size: 14px; }
.empty .btn { margin-top: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--dim); font-size: 13.5px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: background var(--t), color var(--t), box-shadow var(--t); flex: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: #121211; box-shadow: none; font-weight: 550; }
.chip .n { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12px; }
.chip[aria-pressed="true"] .n { color: #121211; opacity: .5; }

.btn { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--glass), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2), var(--glass-hi); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background var(--t), transform var(--t) var(--ease), box-shadow var(--t); white-space: nowrap; }
.btn:hover { background: var(--glass), rgba(255, 255, 255, .08); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 600; }
.btn-primary:hover { background: #f6e8d8; }
.btn-danger { color: var(--live); }
.btn .i { width: 18px; height: 18px; }

.badge { font-size: 10.5px; font-weight: 600; line-height: 1; padding: 4px 6px 3px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--dim); letter-spacing: .02em; }
.badge.q { color: var(--text); }
.badge.hevc { color: #ffb340; }

/* channel cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--gap); }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: var(--gap); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scroll-padding: 0 var(--pad); }
.row::-webkit-scrollbar { display: none; }
.card { position: relative; min-width: 0; }
.ch {
  display: flex; flex-direction: column; gap: 9px; width: 100%; height: 100%; padding: 8px 8px 11px; border-radius: var(--r);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); transition: background var(--t), box-shadow var(--t), transform var(--t) var(--ease); position: relative; overflow: hidden;
}
.ch:hover { background: var(--glass), rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2), var(--glass-hi); }
.ch:active { transform: scale(.985); }
.ch.playing::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.ch-logo { aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: radial-gradient(120% 90% at 50% 0%, #34332f, #262624); display: grid; place-items: center; overflow: hidden; }
.ch-logo img { max-width: 72%; max-height: 66%; object-fit: contain; }
.mono { font-size: 15px; font-weight: 700; color: var(--dim); letter-spacing: .02em; }
.ch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.ch-name { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.ch-name > span { overflow: hidden; text-overflow: ellipsis; }
.ch-now { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 17px; }
.ch .bar { margin-top: 4px; height: 2px; }
.ch-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 4px; }
.ch-tags .badge { background: rgba(0, 0, 0, .55); }
.card .star, .card .add {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .55); color: var(--text); opacity: 0; transition: opacity var(--t);
}
.card .star .i, .card .add .i { width: 17px; height: 17px; }
.card:hover .star, .card:focus-within .star, .card .star.on, .card .add, .editing .card .add { opacity: 1; }
.card .star.on { color: #ffd60a; }
.card .star.on .i { fill: currentColor; }
.card .remove { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--live); color: #fff; }
.card .remove .i { width: 16px; height: 16px; }
.card.missing .ch { opacity: .45; }

/* narrow: channel lists become rows (easier to scan on a phone than 3 tiny columns) */
[data-layout="narrow"] .grid { grid-template-columns: 1fr; gap: 2px; }
[data-layout="narrow"] .grid .ch { flex-direction: row; align-items: center; gap: 12px; padding: 8px 48px 8px 8px; background: none; border-radius: var(--r); }
[data-layout="narrow"] .grid .ch:active { background: var(--raised); }
[data-layout="narrow"] .grid .ch-logo { width: 64px; flex: none; }
[data-layout="narrow"] .grid .ch-text { flex: 1; }
[data-layout="narrow"] .grid .ch-name { font-size: 15px; }
[data-layout="narrow"] .grid .ch-now { font-size: 13px; }
[data-layout="narrow"] .grid .ch-tags { display: none; }
[data-layout="narrow"] .grid .card .star, [data-layout="narrow"] .grid .card .add, [data-layout="narrow"] .grid .card .remove { top: 50%; transform: translateY(-50%); right: 4px; opacity: 1; background: none; color: var(--faint); }
[data-layout="narrow"] .grid .card .remove { color: var(--live); }
[data-layout="narrow"] .grid .card .star.on { color: #ffd60a; }
[data-layout="narrow"] .row { grid-auto-columns: 128px; margin: 0 -16px; padding: 2px 16px 6px; }
[data-layout="narrow"] .chips.scroll { margin: 0 -16px; padding: 2px 16px 4px; }

/* ── football ─────────────────────────────────────────────────────────── */
.matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.row.matches-row { grid-auto-columns: minmax(300px, 340px); }
[data-layout="narrow"] .row.matches-row { grid-auto-columns: 86%; }
.match { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; }
.match-main { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 10px; border-radius: var(--r) var(--r) 0 0; transition: background var(--t); width: 100%; }
.match-main:hover { background: rgba(255, 255, 255, .035); }
.match.is-playing .match-main { box-shadow: inset 3px 0 0 var(--accent); }
.match-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); }
.match-meta .league { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.status.live { color: var(--live); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.status.ft { color: var(--faint); }
.status.ko { color: var(--text); }
.team { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; }
.team img, .team .tlogo { width: 24px; height: 24px; object-fit: contain; }
.team .tlogo { border-radius: 50%; background: var(--tile); }
.team-name { font-size: 15px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1ch; text-align: right; line-height: 1.1; }
.match.post .team:not(.won) .team-name, .match.post .team:not(.won) .score { color: var(--dim); }
.match.pre .score { display: none; }
.fav-mark { color: #ffd60a; }
.match-ch { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px; }
.match-ch .chip { height: 28px; padding: 0 11px; font-size: 12px; background: rgba(255, 255, 255, .06); box-shadow: none; }
.match-ch .chip:hover { background: rgba(255, 255, 255, .11); }
.match-ch .chip.best { color: var(--text); }
.match-ch .chip.best .i { color: var(--accent); width: 14px; height: 14px; }
.match-ch .chip.weak { color: var(--faint); }
.match-ch .chip.playing { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--text); }
.match-none { font-size: 12px; color: var(--faint); padding: 0 14px 12px; }
.via-note { font-size: 12px; color: var(--faint); margin-top: 10px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); cursor: pointer; height: 32px; padding: 0 4px; border-radius: var(--r); }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--raised-2); position: relative; margin: 0; transition: background var(--t); cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: transform var(--t), background var(--t); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(14px); background: var(--on-accent); }
details.more-block summary { cursor: pointer; color: var(--dim); font-size: 14px; padding: 8px 0; list-style: none; display: flex; gap: 8px; align-items: center; border-radius: var(--r); }
details.more-block summary::-webkit-details-marker { display: none; }
details.more-block[open] summary .i { transform: rotate(180deg); }
.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px var(--gap); }
.listing button { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r); font-size: 13px; min-width: 0; }
.listing button:hover { background: var(--raised); }
.listing .l-main { flex: 1; min-width: 0; }
.listing .l-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.listing .l-sub { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ── browse ───────────────────────────────────────────────────────────── */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.group { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; transition: background var(--t); min-width: 0; }
.group:hover { background: var(--glass), rgba(255, 255, 255, .04); }
.group-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--dim); }

/* ── settings ─────────────────────────────────────────────────────────── */
.settings { max-width: 720px; display: flex; flex-direction: column; gap: 32px; }
.set-list { display: flex; flex-direction: column; gap: 2px; }
.set-row { display: flex; align-items: center; gap: 10px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 8px 8px 16px; border-radius: var(--r); min-height: 54px; }
.set-row .grow { flex: 1; min-width: 0; }
.set-row .hint { font-size: 12px; color: var(--dim); }
.field { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: var(--r-sm); height: 36px; padding: 0 10px; color: var(--text); width: 100%; outline: none; }
.field:focus { box-shadow: 0 0 0 2px var(--accent); }
.set-label { font-size: 14px; font-weight: 500; }
.status-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; }
.status-grid dt { color: var(--dim); }
.status-grid dd { margin: 0; }
.dot-ok { color: #30d158; }
.dot-bad { color: var(--live); }

/* ── modal / toast / login / boot ─────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(8, 8, 7, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.sheet { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 120px), #1b1b1a; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -20px rgba(0, 0, 0, .7); width: min(420px, 100%); max-height: min(640px, 90vh); overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.sheet h2 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.sheet .sub { color: var(--dim); font-size: 13px; margin-top: -6px; }
.sheet-list { display: flex; flex-direction: column; gap: 2px; }
.sheet-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--r); width: 100%; }
.sheet-item:hover { background: rgba(255, 255, 255, .06); }
.sheet-item .grow { flex: 1; }
.sheet-item .check { color: var(--accent); }
.sheet-row { display: flex; gap: 8px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pick .icon-btn[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); }
[data-layout="narrow"] .modal { place-items: end stretch; padding: 0; }
[data-layout="narrow"] .sheet { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: rgba(40, 40, 38, .88); color: var(--text);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 40px -12px rgba(0, 0, 0, .6);
  padding: 11px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t);
  z-index: 60; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[data-layout="narrow"] .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; }
.login-form { width: min(320px, 100%); display: flex; flex-direction: column; gap: 10px; }
.login-form label { font-size: 13px; color: var(--dim); }
.login-form input { height: 48px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); padding: 0 14px; color: var(--text); outline: none; }
.login-form input:focus { box-shadow: 0 0 0 2px var(--accent); }
.login-form .btn { height: 44px; justify-content: center; }
.login-error { color: var(--live); font-size: 13px; min-height: 18px; }

.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--dim); font-size: 14px; text-align: center; padding: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 1.6s !important; }
}

.content:focus, .content:focus-visible { outline: none; }
.np-more { display: flex; flex-direction: column; gap: 18px; }
[data-layout="narrow"] .np-actions [data-act="fullscreen"] { display: none; }
[data-layout="narrow"] .toolbar .chips { flex-basis: 100%; }

/* ── stage modes: off · dock · theatre · mini ─────────────────────────── */
/* off / mini: the player takes no space in the layout */
[data-layout="wide"] .app, [data-layout="mid"] .app {
  grid-template-columns: var(--side) minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-areas: "side top" "side content";
}
[data-layout="narrow"] .app {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top" "content" "tabs";
}
.tv .app { grid-template-columns: 76px minmax(0, 1fr) !important; }
.stage { display: none; }

/* dock */
[data-layout="wide"] .app[data-stage="dock"] {
  grid-template-columns: var(--side) minmax(0, 1fr) clamp(380px, 38vw, 760px);
  grid-template-areas: "side top stage" "side content stage";
}
.tv .app[data-stage="dock"] { grid-template-columns: 76px minmax(0, 1fr) clamp(340px, 40vw, 760px) !important; }
[data-layout="wide"] .app[data-stage="dock"] .stage { display: flex; flex-direction: column; background: #181817; border-left: 1px solid var(--line); overflow-y: auto; }
[data-layout="mid"] .app[data-stage="dock"] { grid-template-rows: 64px auto minmax(0, 1fr); grid-template-areas: "side top" "side stage" "side content"; }
[data-layout="mid"] .app[data-stage="dock"] .stage { display: flex; gap: 20px; padding: 0 var(--pad) 16px; align-items: flex-start; }
[data-layout="mid"] .app[data-stage="dock"] .screens { width: min(58%, calc(44vh * 16 / 9)); flex: none; border-radius: var(--r); overflow: hidden; }
[data-layout="mid"] .app[data-stage="dock"] .np { padding: 0; flex: 1; max-height: 44vh; overflow-y: auto; }
[data-layout="narrow"] .app[data-stage="dock"] { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "top" "stage" "content" "tabs"; }
[data-layout="narrow"] .app[data-stage="dock"] .stage { display: block; }
[data-layout="narrow"] .np { padding: 10px 16px 12px; }
[data-layout="narrow"] .app[data-stage="dock"] .np-more { display: none; }
[data-layout="narrow"] .app[data-stage="dock"] .np.open .np-more { display: flex; }

/* theatre: the player replaces the content area */
.app[data-stage="theatre"] .content { display: none; }
[data-layout="wide"] .app[data-stage="theatre"], [data-layout="mid"] .app[data-stage="theatre"] { grid-template-areas: "side top" "side stage"; }
[data-layout="narrow"] .app[data-stage="theatre"] { grid-template-areas: "top" "stage" "tabs"; }
.app[data-stage="theatre"] .stage { display: flex; gap: 20px; padding: 0 var(--pad) 20px; min-height: 0; overflow: hidden; }
.app[data-stage="theatre"] .screens { flex: 1; min-width: 0; align-self: flex-start; max-height: 100%; }
.app[data-stage="theatre"] .np { width: 340px; flex: none; padding: 0; overflow-y: auto; max-height: 100%; }
[data-layout="mid"] .app[data-stage="theatre"] .stage, [data-layout="narrow"] .app[data-stage="theatre"] .stage { flex-direction: column; overflow-y: auto; }
[data-layout="mid"] .app[data-stage="theatre"] .np, [data-layout="narrow"] .app[data-stage="theatre"] .np { width: auto; max-height: none; overflow: visible; }
[data-layout="narrow"] .app[data-stage="theatre"] .stage { padding: 0 0 16px; }
[data-layout="narrow"] .app[data-stage="theatre"] .np { padding: 0 16px; }
/* single screen in theatre: as big as fits */
.app[data-stage="theatre"] .screens[data-n="1"] { max-width: calc((100dvh - 110px) * 16 / 9); }

/* mini: floating window while you browse */
.app[data-stage="mini"] .stage {
  display: block; position: fixed; z-index: 40; right: 20px; bottom: 20px; width: min(380px, 46vw);
  background: #1b1b1a; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -12px rgba(0, 0, 0, .75);
}
[data-layout="narrow"] .app[data-stage="mini"] .stage { right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 58vw; }
.app[data-stage="mini"] .np { display: none; }
.mini-bar { display: none; }
.app[data-stage="mini"] .mini-bar { display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; font-size: 13px; }
.mini-bar .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mini-bar .icon-btn { width: 34px; height: 34px; }

/* ── screens (1–4) ────────────────────────────────────────────────────── */
.screens { display: grid; gap: 4px; background: var(--stage); width: 100%; flex: none; }
.screens[data-n="2"], .screens[data-n="3"], .screens[data-n="4"] { grid-template-columns: 1fr 1fr; }
.screens:fullscreen { align-content: center; padding: 0; }
.screen { position: relative; aspect-ratio: 16 / 9; background: var(--stage); min-width: 0; overflow: hidden; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--stage); }
.screen:fullscreen { aspect-ratio: auto; }
.screens:not([data-n="1"]) .screen.active { box-shadow: inset 0 0 0 2px var(--accent); }
.screens:not([data-n="1"]) .screen.active video { padding: 2px; }
.tile-select { position: absolute; inset: 0; display: none; z-index: 3; }
.screens:not([data-n="1"]) .screen:not(.active) .tile-select { display: block; }
.tile-bar { position: absolute; top: 6px; left: 6px; right: 6px; z-index: 4; display: none; align-items: center; gap: 6px; pointer-events: none; }
.screens:not([data-n="1"]) .tile-bar { display: flex; }
.tile-name { background: rgba(0, 0, 0, .66); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; gap: 5px; align-items: center; }
.tile-name .i { width: 14px; height: 14px; color: var(--accent); }
.tile-bar .grow { flex: 1; }
.tile-bar button { pointer-events: auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; background: rgba(0, 0, 0, .66); }
.tile-bar button .i { width: 15px; height: 15px; }
.app[data-stage="mini"] .tile-bar button { display: none; }

/* on-screen info banner (now / next), like a TV's info bar */
.osd {
  position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; pointer-events: none;
  background: rgba(20, 20, 19, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px;
  opacity: 0; transform: translateY(-6px); transition: opacity 200ms, transform 200ms; max-width: 560px;
}
.osd.show { opacity: 1; transform: none; }
.osd .np-logo { grid-row: span 3; width: 56px; height: 40px; }
.osd-ch { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-line { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.osd-line b { color: var(--text); font-weight: 600; }
.osd-line .lbl { color: var(--faint); margin-right: 6px; }
.osd .bar { grid-column: 2; margin-top: 4px; }
.screens:not([data-n="1"]) .osd { top: 38px; left: 6px; right: 6px; padding: 6px 8px; }
.screens:not([data-n="1"]) .osd .np-logo, .screens:not([data-n="1"]) .osd .osd-next, .app[data-stage="mini"] .osd { display: none; }

.pick-bar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 45; background: var(--accent); color: var(--on-accent);
  border-radius: 999px; padding: 6px 6px 6px 14px; display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 500;
  max-width: calc(100vw - 24px);
}
.pick-bar .btn { height: 30px; background: rgba(0, 0, 0, .12); box-shadow: none; color: var(--on-accent); }

.resume { height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); color: var(--text); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.resume .i { width: 16px; height: 16px; color: var(--accent); }
.resume:hover { background: rgba(255, 255, 255, .08); }
.top-settings { display: none; margin-left: auto; }
[data-layout="narrow"] .top-settings { display: grid; }
[data-layout="narrow"] .resume { max-width: 40vw; }

/* now / next in the player panel */
.nn { display: grid; grid-template-columns: 52px 1fr; gap: 10px 12px; align-items: baseline; }
.nn .lbl { font-size: 12px; color: var(--dim); }
.nn .lbl.now { color: var(--accent); font-weight: 600; }
.nn-title { font-size: 15px; font-weight: 600; }
.nn-time { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; margin-left: 8px; font-weight: 400; }
.nn .bar { margin-top: 6px; }
.nn .prog-desc { margin-top: 6px; }
.nn-next { font-size: 14px; }
.nn-later { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 13px; color: var(--dim); }
.nn-later time { font-variant-numeric: tabular-nums; }
.nn-later span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.no-guide { font-size: 13px; color: var(--faint); }
.np-links { display: flex; gap: 8px; flex-wrap: wrap; }
[data-layout="narrow"] .np-actions .wide-only { display: none; }

/* ── TV guide grid ────────────────────────────────────────────────────── */
.guide { --chw: 190px; position: relative; overflow: auto; max-height: calc(100dvh - 210px); border-radius: var(--r); background: var(--bg); overscroll-behavior: contain; }
[data-layout="narrow"] .guide { --chw: 112px; max-height: calc(100dvh - 250px); }
.g-inner { position: relative; width: max-content; min-width: 100%; }
.g-head { position: sticky; top: 0; z-index: 4; display: flex; background: var(--bg); height: 34px; }
.g-corner { position: sticky; left: 0; z-index: 5; width: var(--chw); flex: none; background: var(--bg); font-size: 12px; color: var(--dim); display: flex; align-items: center; padding-left: 4px; }
.g-ruler { position: relative; flex: none; }
.g-ruler span { position: absolute; top: 9px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; padding-left: 6px; border-left: 1px solid var(--raised-2); height: 25px; }
.g-row { display: flex; height: 60px; margin-bottom: 4px; }
.g-ch { position: sticky; left: 0; z-index: 3; width: var(--chw); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 6px; background: var(--bg); border-radius: var(--r) 0 0 var(--r); font-size: 13px; font-weight: 600; min-width: 0; }
.g-ch .ch-logo { width: 54px; flex: none; }
.g-ch span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-ch.playing { color: var(--accent); }
[data-layout="narrow"] .g-ch span.nm { display: none; }
.g-track { position: relative; flex: none; }
.g-cell {
  position: absolute; top: 0; bottom: 0; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-sm); padding: 8px 10px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; transition: background var(--t);
}
.g-cell:hover { background: rgba(255, 255, 255, .07); }
.g-cell.now { background: rgba(255, 255, 255, .075); box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line-2); }
.g-cell .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cell .tm { font-size: 11.5px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-empty { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 12px; font-size: 12px; color: var(--faint); background: var(--raised); border-radius: var(--r-sm); opacity: .6; }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 2; pointer-events: none; }
.g-now::before { content: ""; position: absolute; top: 28px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* header wraps its buttons onto a second row instead of squeezing the channel name out */
.np-head { flex-wrap: wrap; row-gap: 8px; }
.np-title { flex: 1 1 200px; }
.np-actions { flex-wrap: wrap; }
[data-layout="narrow"] .np-title { flex-basis: 120px; }
/* phone: the player never takes the whole screen; its info scrolls inside */
[data-layout="narrow"] .app[data-stage="dock"] .stage { max-height: 64dvh; overflow-y: auto; overscroll-behavior: contain; }
[data-layout="narrow"] .search-key { display: none; }

/* ── segmented switch between sibling pages (Football | PPV, Sports | Cinema | All) ── */
.seg { display: inline-flex; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a { height: 32px; padding: 0 15px; border-radius: 999px; transition: background var(--t), color var(--t); display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.seg a .i { width: 16px; height: 16px; }
.seg a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: var(--glass-hi); }
.seg a:hover { color: var(--text); }

.badge.live { background: var(--live); color: #fff; }
.ch-tags .badge.live { background: var(--live); }

/* ── PPV events ───────────────────────────────────────────────────────── */
.ppv-title { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; }
.ppv-fx { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.ppv-fx b { color: var(--text); font-variant-numeric: tabular-nums; }
.status.approx { color: var(--dim); font-weight: 400; }
.status.listed { color: var(--faint); font-weight: 400; }
.match.ended .ppv-title { color: var(--dim); }
.sport-chip .n { margin-left: 2px; }
.prov { margin-bottom: 14px; }
.prov h3 { font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.toolbar .switch { white-space: nowrap; }
.net-more { margin-top: 10px; }
[data-layout="narrow"] .resume span { display: none; }
[data-layout="narrow"] .resume { padding: 0 11px; }

.match-meta .lg { width: 16px; height: 16px; object-fit: contain; display: inline-block; vertical-align: -3px; margin-right: 6px; }
.score.sets { font-size: 15px; letter-spacing: .08em; font-weight: 650; }
.match-main .ppv-title + .team { margin-top: 2px; }

/* ── movies & series (Netflix-style) ───────────────────────────────────── */
.vod .seg { margin-top: 10px; }
.hero { position: relative; margin: 0 calc(-1 * var(--pad)) 8px; height: clamp(320px, 52vh, 600px); overflow: hidden; background: #000; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* scrims keep the text readable over any artwork */
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 19, 18, .94) 0%, rgba(19, 19, 18, .58) 38%, rgba(19, 19, 18, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(19, 19, 18, 0) 30%); }
.hero-body { position: absolute; left: var(--pad); bottom: 44px; max-width: min(560px, 80%); display: flex; flex-direction: column; gap: 12px; }
.hero-svc { font-size: 13px; font-weight: 600; color: var(--dim); }
.hero h1 { font-size: clamp(34px, 5vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.hero-meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #d2d4d8; flex-wrap: wrap; }
.hero-plot { font-size: 15px; line-height: 1.45; color: #e2e3e6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn-play { background: var(--accent); color: var(--on-accent); height: 46px; padding: 0 26px; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-play:hover { background: #f6e8d8; }
.btn-play .i { fill: currentColor; }
.btn-info { background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #fff; height: 46px; padding: 0 22px; font-weight: 500; font-size: 15px; }
.btn-info:hover { background: rgba(255, 255, 255, .16); }
[data-layout="narrow"] .hero { height: 62vh; margin: 0 -16px 8px; }
[data-layout="narrow"] .hero-body { left: 16px; right: 16px; bottom: 28px; max-width: none; }
[data-layout="narrow"] .hero-scrim { background: linear-gradient(0deg, var(--bg) 0%, rgba(19, 19, 18, .75) 40%, rgba(19, 19, 18, 0) 75%); }
.vod-cats { margin-top: 4px; }
.chip-label { font-size: 13px; color: var(--faint); align-self: center; padding-right: 4px; flex: none; }

.prow { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 8px; scroll-padding: 0 var(--pad); }
.prow::-webkit-scrollbar { display: none; }
[data-layout="narrow"] .prow { grid-auto-columns: 112px; margin: 0 -16px; padding: 4px 16px 8px; gap: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 18px 12px; }
.pgrid.small { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
[data-layout="narrow"] .pgrid { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.pcard { position: relative; min-width: 0; }
.poster { display: block; width: 100%; border-radius: var(--r-sm); position: relative; transition: transform 220ms var(--ease); }
.poster:hover { transform: translateY(-3px) scale(1.03); }
.pimg { display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line), 0 10px 28px -14px rgba(0, 0, 0, .7); transition: box-shadow 220ms var(--ease); }
.poster:hover .pimg { box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -14px rgba(0, 0, 0, .85); }
.pimg { position: relative; }
.pimg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg .mono { font-size: 13px; padding: 8px; text-align: center; white-space: normal; }
.pbadges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.pbadges .badge { background: rgba(0, 0, 0, .7); }
.badge.new { background: var(--accent) !important; color: var(--on-accent); }
.pbar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--live); }
.ptitle { display: block; margin-top: 8px; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.premove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .7); display: grid; place-items: center; opacity: 0; transition: opacity var(--t); }
.premove .i { width: 14px; height: 14px; }
.pcard:hover .premove, .pcard:focus-within .premove { opacity: 1; }
[data-layout="narrow"] .premove { opacity: 1; }

/* title page */
.sheet.vm { width: min(920px, 100%); max-height: 94vh; padding: 0; gap: 0; background: #1a1a19; overflow-y: auto; }
[data-layout="narrow"] .sheet.vm { max-height: 92vh; border-radius: var(--r) var(--r) 0 0; }
.vm-loading { display: grid; place-items: center; height: 320px; }
.vm-hero { position: relative; aspect-ratio: 16 / 8; background: #000; flex: none; }
.vm-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vm-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, #1a1a19 0%, rgba(26, 26, 25, .55) 35%, rgba(26, 26, 25, 0) 70%); }
.vm-close { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 50%; z-index: 2; }
.vm-hero-body { position: absolute; left: 32px; right: 32px; bottom: 26px; display: flex; flex-direction: column; gap: 14px; }
.vm-hero-body h2 { font-size: clamp(28px, 4vw, 50px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.vm-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-round { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; background: rgba(42, 42, 42, .7); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); color: #fff; }
.btn-round.on { box-shadow: inset 0 0 0 2px #fff; }
.vm-left { font-size: 13px; color: var(--dim); }
.vm-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; padding: 6px 32px 18px; }
[data-layout="narrow"] .vm-body { grid-template-columns: 1fr; padding: 6px 18px 14px; gap: 14px; }
[data-layout="narrow"] .vm-hero-body { left: 18px; right: 18px; bottom: 16px; }
.vm-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: #c9cbd0; }
.vm-score { color: #46d369; font-weight: 700; }
.vm-plot { font-size: 15px; line-height: 1.5; margin-top: 12px; }
.vm-side { font-size: 13px; color: #c9cbd0; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.vm-side span { color: var(--faint); }
.vm-sec { padding: 8px 32px 24px; }
[data-layout="narrow"] .vm-sec { padding: 8px 18px 20px; }
.vm-sec h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 12px; }
.vm-eps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.vm-eps-head h3 { margin: 0; }
.eps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ep { display: grid; grid-template-columns: 34px 150px 1fr; gap: 16px; align-items: center; width: 100%; padding: 14px 12px; border-radius: var(--r); border-bottom: 1px solid var(--line); text-align: left; transition: background var(--t); }
.ep:hover { background: rgba(255, 255, 255, .04); }
.ep-n { font-size: 22px; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.ep-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); }
.ep-img img { width: 100%; height: 100%; object-fit: cover; }
.ep-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity var(--t); }
.ep-play .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(0, 0, 0, .6); box-shadow: inset 0 0 0 1.5px #fff; fill: #fff; }
.ep:hover .ep-play, .ep:focus-visible .ep-play { opacity: 1; }
.ep-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ep-title { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ep-title span { color: var(--dim); font-size: 13px; flex: none; }
.ep-plot { font-size: 13px; color: var(--dim); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[data-layout="narrow"] .ep { grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 6px; }
[data-layout="narrow"] .ep-n { display: none; }

/* player panel for movies / episodes */
.np-vod { display: flex; flex-direction: column; gap: 12px; }
.np-vod-ep { font-size: 14px; color: var(--dim); }
.np-seek input { width: 100%; accent-color: var(--accent); }
.np-seek-t { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.overlay[data-state="next"] { background: rgba(0, 0, 0, .78); align-content: center; gap: 10px; }

[data-layout="mid"] .app[data-stage="theatre"] .screens, [data-layout="narrow"] .app[data-stage="theatre"] .screens { flex: none; }

/* service hubs */
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 14px; }
.svc-head h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.04em; }
.svc-netflix .svc-head h1 { color: #e50914; }
.svc-disney .svc-head h1 { color: #3d8bff; }
.svc-prime .svc-head h1 { color: #1fa9e6; }
.svc-paramountplus .svc-head h1 { color: #2f7bff; }
.hero-svc { color: var(--dim); }
.hero-svc:hover { color: var(--text); text-decoration: underline; }
.svc-others { margin-top: 30px; }
/* Top 10: big rank numerals beside the poster, like the apps */
.prow.top10 { grid-auto-columns: 214px; padding-bottom: 14px; }
[data-layout="narrow"] .prow.top10 { grid-auto-columns: 168px; }
.tcard { display: flex; align-items: flex-end; min-width: 0; }
.trank { flex: none; width: 86px; margin-right: -14px; font-size: 128px; line-height: .78; font-weight: 700; letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: 2.5px #77736c; text-align: right; font-variant-numeric: lining-nums; user-select: none; }
.tcard:nth-child(n+10) .trank { font-size: 104px; letter-spacing: -.12em; }
[data-layout="narrow"] .trank { width: 64px; font-size: 100px; margin-right: -14px; }
.tcard .pcard { flex: none; width: 138px; position: relative; z-index: 1; }
.tcard .ptitle { display: none; }
[data-layout="narrow"] .tcard .pcard { width: 112px; }
.vm-side a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

[data-layout="narrow"] .section-head .via-note { display: none; }

/* stream quality */
.np-quality { font-size: 12px; color: var(--dim); margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-quality:empty { display: none; }
.stats { position: absolute; top: 10px; left: 10px; z-index: 6; background: rgba(16, 16, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 10px 12px 12px; min-width: 250px; max-width: calc(100% - 20px); font-size: 12px; }
.stats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stats-head .icon-btn { width: 26px; height: 26px; }
.stats dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; }
.stats dt { color: var(--dim); }
.stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.screens:not([data-n="1"]) .stats { font-size: 11px; min-width: 0; }

/* skip intro / next episode */
/* The screen is a size container, so the button scales with the player (phone, docked, theatre,
   fullscreen, 2-4 tiles). --ctl keeps it clear of the browser's control bar (about 64-70px tall). */
.screen { container-type: inline-size; --ctl: 74px; --skip-h: clamp(30px, 4.2cqw, 50px); }
.skip { position: absolute; right: max(12px, 3cqw); bottom: var(--ctl); z-index: 5; display: flex; justify-content: flex-end; max-width: calc(100% - 24px); }
.skip:empty { display: none; }
.skip-btn { background: rgba(20, 20, 19, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; height: var(--skip-h); padding: 0 clamp(10px, 1.8cqw, 22px); gap: clamp(5px, .7cqw, 9px); font-size: clamp(12px, 1.45cqw, 18px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); font-weight: 600; }
.skip-btn .i { width: clamp(13px, 1.5cqw, 20px); height: clamp(13px, 1.5cqw, 20px); }
.skip-btn:hover { background: #fff; color: #000; }
.skip-learn { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; background: rgba(16, 16, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 10px 12px; border-radius: var(--r); font-size: 13px; }
.skip-learn .btn { height: 32px; }
.next-card { position: relative; display: flex; gap: 12px; align-items: center; background: rgba(16, 16, 15, .84); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 10px; width: min(460px, 100%); overflow: hidden; }
.next-img { width: 132px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); flex: none; }
.next-img img { width: 100%; height: 100%; object-fit: cover; }
.next-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.next-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-label { color: var(--dim); font-size: 12px; }
.next-text .btn { height: 32px; }
.next-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.next-bar i { display: block; height: 100%; background: var(--accent); transition: width .5s linear; }
.screens:not([data-n="1"]) .next-img, [data-layout="narrow"] .next-img { display: none; }
.app[data-stage="mini"] .skip, .app[data-stage="mini"] .stats { display: none; }

/* top rated */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
table.hist { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
table.hist th { text-align: left; font-weight: 500; color: var(--dim); padding: 6px 8px; }
table.hist td { padding: 6px 8px; background: rgba(255, 255, 255, .035); font-variant-numeric: tabular-nums; }
table.hist tr td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
table.hist tr td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
table.hist { border-spacing: 0 3px; border-collapse: separate; }

/* language pages (Hindi & Bollywood, Bangla) */
.view-note { color: var(--dim); font-size: 13px; margin: -6px 0 12px; max-width: 70ch; }

/* audio & subtitles */
.subs { position: absolute; left: 6%; right: 6%; bottom: 8%; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; text-align: center; }
.subs:empty { display: none; }
.subs span { background: rgba(0, 0, 0, .72); color: #fff; padding: 2px 10px; border-radius: 4px; font-size: clamp(13px, 2.5cqw, 40px); line-height: 1.35; font-weight: 500; text-shadow: 0 1px 2px #000; white-space: pre-wrap; }
/* subtitles sit above the control bar, and above the Skip intro button while it's showing */
.subs { bottom: max(9%, var(--ctl)); }
.subs:has(~ .skip .skip-btn), .subs:has(~ .skip .skip-learn) { bottom: calc(var(--ctl) + var(--skip-h) + 12px); }
.subs:has(~ .skip .next-card) { display: none; }
@container (max-width: 520px) {
  .screen { --ctl: 62px; }
  .skip-learn { padding: 6px 8px; gap: 6px; font-size: 12px; }
  .skip-learn .btn { height: 28px; padding: 0 9px; font-size: 12px; }
  .next-card { padding: 6px; gap: 8px; }
}
@container (max-width: 360px) {
  .next-card .next-img { display: none; }
}
.sheet.sheet-wide { width: min(720px, 100%); }
.tk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; min-height: 0; }
.tk-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tk-col h3 { font-size: 13px; color: var(--dim); font-weight: 600; margin: 0; }
.tk-col .sheet-list { max-height: min(52vh, 440px); overflow-y: auto; }
.tk-col .sheet-item[aria-pressed="true"] { background: var(--raised-2); }
.tk-col .sheet-item .i { width: 18px; height: 18px; color: var(--accent); }
.icon-btn.cc-on { color: var(--accent); }

/* ── movie & episode controls (Netflix-style) ─────────────────────────────
   Sized from the player's own width (cqw), so they fit a phone, a docked player, a 2×2 tile,
   theatre mode and fullscreen on a TV. */
.overlay[data-state="error"], .overlay[data-state="switching"] { z-index: 6; }
.vctl { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: auto 1fr auto; color: #fff; opacity: 0; transition: opacity .25s ease; cursor: none; -webkit-tap-highlight-color: transparent; user-select: none; }
.vctl[hidden] { display: none; }
.screen.vc-on .vctl { opacity: 1; cursor: default; }
.screen:not(.vc-on) .vctl * { pointer-events: none; }
.vctl::before, .vctl::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: -1; }
.vctl::before { top: 0; height: 34%; background: linear-gradient(rgba(0, 0, 0, .62), transparent); }
.vctl::after { bottom: 0; height: 46%; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }

.vc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: clamp(10px, 2cqw, 28px) clamp(10px, 2.2cqw, 30px) 0 clamp(12px, 2.6cqw, 36px); }
.vc-title { display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); max-width: 70%; }
.vc-title b { font-size: clamp(13px, 1.9cqw, 28px); font-weight: 650; line-height: 1.2; }
.vc-title span { font-size: clamp(11px, 1.35cqw, 19px); color: rgba(255, 255, 255, .82); }

.vc-mid { display: flex; align-items: center; justify-content: center; gap: clamp(26px, 9cqw, 150px); }
.vc-big { position: relative; display: grid; place-items: center; width: clamp(44px, 7.4cqw, 104px); height: clamp(44px, 7.4cqw, 104px); border-radius: 50%; color: #fff; transition: transform .12s ease, background .15s; }
.vc-big .i { width: 62%; height: 62%; stroke-width: 1.6; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
.vc-big.vc-play { width: clamp(54px, 9.6cqw, 132px); height: clamp(54px, 9.6cqw, 132px); background: rgba(0, 0, 0, .34); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vc-big.vc-play .i { width: 46%; height: 46%; fill: currentColor; stroke-width: 1; }
.vc-big:hover { background: rgba(255, 255, 255, .14); }
.vc-big:active { transform: scale(.92); }
.vc-big:focus-visible, .vc-btn:focus-visible, .vc-bar:focus-visible { outline: 2.5px solid #fff; outline-offset: 3px; }
.vc-ripple { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: clamp(12px, 1.5cqw, 20px); font-weight: 700; opacity: 0; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.vc-seek.pulse .vc-ripple { animation: vc-ripple .9s ease-out; }
.vc-seek.pulse .i { animation: vc-spin-l .35s ease-out; }
.vc-seek[data-k="1"].pulse .i { animation-name: vc-spin-r; }
@keyframes vc-ripple { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vc-spin-l { from { transform: rotate(30deg); } to { transform: none; } }
@keyframes vc-spin-r { from { transform: rotate(-30deg); } to { transform: none; } }

.vc-bot { padding: 0 clamp(10px, 2.4cqw, 34px) clamp(6px, 1.4cqw, 20px); display: flex; flex-direction: column; gap: clamp(2px, .6cqw, 10px); }
.vc-bar { position: relative; height: clamp(18px, 2.4cqw, 30px); display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vc-track { position: relative; width: 100%; height: clamp(3px, .42cqw, 6px); background: rgba(255, 255, 255, .28); border-radius: 3px; overflow: hidden; transition: height .12s; }
.vc-bar:hover .vc-track, .vctl.scrubbing .vc-track, .vc-bar:focus-visible .vc-track { height: clamp(5px, .62cqw, 9px); }
.vc-buf, .vc-prog { position: absolute; left: 0; top: 0; bottom: 0; }
.vc-buf { background: rgba(255, 255, 255, .42); }
.vc-prog { background: var(--accent); }
.vc-knob { position: absolute; top: 50%; width: clamp(11px, 1.35cqw, 19px); height: clamp(11px, 1.35cqw, 19px); margin: calc(clamp(11px, 1.35cqw, 19px) / -2) 0 0 calc(clamp(11px, 1.35cqw, 19px) / -2); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); transform: scale(.75); transition: transform .12s; }
.vc-bar:hover .vc-knob, .vctl.scrubbing .vc-knob, .vc-bar:focus-visible .vc-knob { transform: scale(1); }
.vc-tip { position: absolute; bottom: 100%; transform: translateX(-50%); margin-bottom: 6px; background: rgba(0, 0, 0, .85); padding: 3px 8px; border-radius: 4px; font-size: clamp(11px, 1.15cqw, 15px); font-variant-numeric: tabular-nums; }
.vc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vc-left, .vc-right { display: flex; align-items: center; gap: clamp(2px, .7cqw, 12px); min-width: 0; }
.vc-scrub { display: flex; align-items: center; gap: clamp(8px, 1.2cqw, 16px); }
.vc-scrub .vc-bar { flex: 1; min-width: 0; }
.vc-cur, .vc-dur { font-size: clamp(11px, 1.2cqw, 16px); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .9); min-width: 4ch; white-space: nowrap; }
.vc-dur { text-align: right; color: rgba(255, 255, 255, .62); }
/* top-right tools over the picture: audio & subtitles, mini player, close */
.vc-tools, .scr-top { display: flex; align-items: center; gap: clamp(4px, .6cqw, 10px); flex: none; }
.vc-btn.vc-round { width: clamp(34px, 3.8cqw, 50px); height: clamp(34px, 3.8cqw, 50px); min-width: 0; padding: 0; border-radius: 50%;
  background: rgba(20, 20, 19, .42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.vc-btn.vc-round:hover { background: rgba(255, 255, 255, .18); }
.vc-round .i { width: 46%; height: 46%; }
.vc-round.on { color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.vc-btn.vc-close:hover { background: rgba(255, 255, 255, .92); color: #111; }
.vc-lbl { white-space: nowrap; }
.vc-btn { display: inline-flex; align-items: center; gap: 8px; height: clamp(30px, 3.6cqw, 50px); min-width: clamp(30px, 3.6cqw, 50px); justify-content: center; padding: 0 4px; border-radius: 8px; color: #fff; font-size: clamp(12px, 1.25cqw, 17px); font-weight: 600; }
.vc-btn .i { width: clamp(18px, 2.1cqw, 30px); height: clamp(18px, 2.1cqw, 30px); }
.vc-play-sm .i { fill: currentColor; stroke-width: 1; }
.vc-btn:hover { background: rgba(255, 255, 255, .14); }
.vc-btn[hidden] { display: none; }
.vc-vol { display: inline-flex; align-items: center; }
.vc-volr { width: 0; opacity: 0; transition: width .15s, opacity .15s; accent-color: #fff; }
.vc-vol:hover .vc-volr, .vc-volr:focus { width: clamp(60px, 8cqw, 110px); opacity: 1; margin-right: 6px; }

/* while loading, the spinner owns the centre */
.screen:has(.overlay[data-state="loading"]) .vc-mid { visibility: hidden; }
/* only the screen with the sound gets controls in multi-view; the mini player keeps play/pause */
#screens[data-n="2"] .screen:not(.active) .vctl, #screens[data-n="3"] .screen:not(.active) .vctl, #screens[data-n="4"] .screen:not(.active) .vctl { display: none; }

/* Skip intro + subtitles move with the controls: above the bar when shown, near the edge when hidden */
.screen.has-vctl { --ctl: 26px; }
.screen.has-vctl.vc-on { --ctl: clamp(64px, 9cqw, 124px); }
.screen.has-vctl .skip, .screen.has-vctl .subs { transition: bottom .25s ease; }
.screen.has-vctl.vc-on .subs { bottom: calc(var(--ctl) + 8px); }

@container (max-width: 520px) {
  .vc-sm-seek, .vc-volr, .vc-next .vc-lbl, .vc-eps .vc-lbl { display: none; }
  .vc-top { padding-top: 8px; }
  .screen.has-vctl.vc-on { --ctl: 62px; }
}
@container (max-width: 380px) {
  .vc-title, .vc-vol, .vc-tracks { display: none; }
  .vc-top { justify-content: flex-end; padding: 6px 6px 0; }
  .vc-mid { gap: 18px; }
}
@container (min-width: 521px) {
  .vc-play-sm, .vc-sm-seek { display: none; } /* the big centre buttons are enough on larger players */
}
@media (prefers-reduced-motion: reduce) {
  .vctl, .vc-seek.pulse .i, .screen.has-vctl .skip, .screen.has-vctl .subs { transition: none; animation: none; }
}
.screen.has-vctl .subs:has(~ .skip .skip-btn), .screen.has-vctl .subs:has(~ .skip .skip-learn) { bottom: calc(var(--ctl) + var(--skip-h) + 12px); }

/* sign in */
.login { background: radial-gradient(80% 60% at 50% 0%, rgba(239, 220, 198, .07), transparent 70%), var(--bg); }
.login-form { width: min(360px, 100%); gap: 12px; }
.login-mark { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 8px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -16px rgba(0, 0, 0, .8); }
.login-title { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.login-sub { color: var(--dim); font-size: 15px; margin: -4px 0 14px; }
.login-form .btn { height: 48px; }

/* TV icon rail: live counts become a dot on the icon until the rail opens */
.tv .sidebar .nav-item { position: relative; }
.tv .sidebar:not(:focus-within) .nav-live { position: absolute; left: 34px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); font-size: 0; overflow: hidden; }
.tv .sidebar .side-head { padding-left: 12px; }


/* ── motion ──────────────────────────────────────────────────────────────
   One language everywhere: things arrive with an expo ease-out (fast start, long soft landing),
   leave quickly, and highlights glide rather than jump. Off entirely with reduced motion. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); }

/* page change: the old page fades away (View Transitions); the new page's sections rise in */
#content { view-transition-name: page; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(page) { animation: none; }
::view-transition-new(page) { animation: none; }
::view-transition-old(page) { animation: vt-out 150ms var(--ease-in) both; }
/* between sibling tabs the segmented switch is its own layer and holds still while the page slides */
html[data-vt="left"] .seg, html[data-vt="right"] .seg { view-transition-name: seg; }
::view-transition-group(seg) { animation: none; }
::view-transition-old(seg) { animation: none; opacity: 0; }
::view-transition-new(seg) { animation: none; }
html[data-vt="right"]::view-transition-old(page) { animation-name: vt-out-left; }
html[data-vt="left"]::view-transition-old(page) { animation-name: vt-out-right; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px) scale(.995); } }
@keyframes vt-out-left { to { opacity: 0; transform: translateX(-36px); } }
@keyframes vt-out-right { to { opacity: 0; transform: translateX(36px); } }

[data-enter] { animation: enter-up 560ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 38ms + 30ms); }
[data-enter="right"] { animation-name: enter-from-right; }
[data-enter="left"] { animation-name: enter-from-left; }
@keyframes enter-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes enter-from-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes enter-from-left { from { opacity: 0; transform: translateX(-40px); } }
/* the one slow moment: the hero artwork settles as the page opens */
.hero[data-enter] { animation-name: enter-fade; animation-duration: 500ms; }
.hero[data-enter] .hero-bg { animation: hero-settle 1600ms var(--ease-out) both; }
.hero[data-enter] .hero-body { animation: enter-up 700ms var(--ease-out) 140ms both; }
@keyframes enter-fade { from { opacity: 0; } }
@keyframes hero-settle { from { transform: scale(1.07); filter: brightness(.6); } }
.tv [data-enter] { animation-duration: 360ms; animation-delay: calc(var(--i, 0) * 30ms); }
.tv .hero[data-enter] .hero-bg { animation-duration: 900ms; }

/* gliding highlights: sidebar, phone tab bar, segmented switch */
.sidebar { position: relative; }
.sidebar > .glide { position: absolute; top: 0; left: 12px; right: 12px; border-radius: 11px; background: rgba(255, 255, 255, .075); box-shadow: var(--glass-hi); pointer-events: none; z-index: 0; opacity: 0;
  transition: transform 420ms var(--ease-out), height 420ms var(--ease-out), opacity 200ms; }
.sidebar > :not(.glide) { position: relative; z-index: 1; }
.sidebar:has(> .glide) .nav-item[aria-current="page"] { background: transparent; box-shadow: none; }
.nav-item[aria-current="page"] .i { transition: color 300ms; }

.tabbar { position: relative; }
.tabbar > .glide { position: absolute; top: 5px; left: 0; width: 56px; height: 32px; margin-left: -28px; border-radius: 999px; background: var(--accent-tint); pointer-events: none; opacity: 0;
  transition: transform 460ms var(--ease-out), opacity 200ms; }
.tabbar > .tab { position: relative; z-index: 1; }

.seg { position: relative; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: var(--glass-hi); pointer-events: none;
  transition: transform 440ms var(--ease-out), width 440ms var(--ease-out); }
.seg > a { position: relative; z-index: 1; }
.seg.has-ind a[aria-current="page"] { background: transparent; box-shadow: none; }

/* modals scale up from just below; closing fades a copy out */
.modal.in { animation: modal-bg-in 240ms ease-out both; }
.modal.in > .sheet { animation: sheet-in 420ms var(--ease-out) both; }
@keyframes modal-bg-in { from { background-color: rgba(8, 8, 7, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.965); } }
[data-layout="narrow"] .modal.in > .sheet { animation-name: sheet-up; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.modal-ghost { pointer-events: none; animation: modal-bg-out 200ms ease-in both; }
.modal-ghost > .sheet { animation: sheet-out 200ms var(--ease-in) both; }
@keyframes modal-bg-out { to { background-color: rgba(8, 8, 7, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
[data-layout="narrow"] .modal-ghost > .sheet { animation-name: sheet-down; }
@keyframes sheet-down { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  [data-enter], .hero[data-enter] .hero-bg, .hero[data-enter] .hero-body, .modal.in, .modal.in > .sheet, .modal-ghost, .modal-ghost > .sheet { animation: none !important; }
  ::view-transition-old(page) { animation: none; }
  .sidebar > .glide, .tabbar > .glide, .seg-ind { transition: none; }
}


/* ── home dashboard ───────────────────────────────────────────────────── */
.dash-head { padding: 22px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.dash-head h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.dash-head p { color: var(--dim); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin: 0 10px; }

/* hero: the biggest thing on right now, lit in the two teams' colours */
.dash-hero { position: relative; margin-top: 22px; border-radius: 26px; overflow: hidden; isolation: isolate; background: #171716;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px -30px rgba(0, 0, 0, .8); }
.dh-glow { position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 70% at 22% 50%, color-mix(in srgb, var(--c1, #efdcc6) 42%, transparent), transparent 72%),
    radial-gradient(42% 70% at 78% 50%, color-mix(in srgb, var(--c2, #8a8478) 38%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%);
  filter: blur(8px) saturate(1.15); }
.dash-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 19, 18, 0) 40%, rgba(19, 19, 18, .55)); pointer-events: none; }
.dh-body { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2vw, 24px); padding: clamp(22px, 3.2vw, 44px) clamp(18px, 3vw, 44px); text-align: center; }
.dh-meta { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .78); flex-wrap: wrap; }
.dh-meta .lg { width: 20px; height: 20px; object-fit: contain; }
.dh-meta .status.live { background: rgba(255, 77, 61, .14); padding: 4px 10px 4px 9px; border-radius: 999px; font-size: 13px; }
.dh-soon { background: rgba(255, 255, 255, .08); padding: 4px 11px; border-radius: 999px; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.dh-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 4vw, 64px); width: min(820px, 100%); }
.dh-team { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.dh-team b { font-size: clamp(16px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.025em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crest { object-fit: contain; flex: none; }
.crest.xl { width: clamp(58px, 7.5vw, 116px); height: clamp(58px, 7.5vw, 116px); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.crest-mono { display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-weight: 700; color: var(--dim); }
.dh-score { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); font-size: clamp(42px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.dh-score i { width: clamp(12px, 1.4vw, 22px); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.dh-score em { font-style: normal; font-size: clamp(18px, 2vw, 28px); color: var(--dim); letter-spacing: 0; font-weight: 500; }
.dh-rows { width: min(520px, 100%); display: flex; flex-direction: column; gap: 12px; }
.dh-rows .team-name { font-size: 20px; }
.dh-rows .score { font-size: 26px; }
.dh-title { font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.dh-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.dh-on { color: rgba(255, 255, 255, .72); font-size: 14px; }
.link-btn { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); font-size: inherit; }
.link-btn:hover { text-decoration-color: currentColor; }
.dash-film { margin: 22px 0 0; border-radius: 26px; height: clamp(300px, 44vh, 520px); box-shadow: inset 0 0 0 1px var(--line-2); }
.dash-film .hero-body { left: clamp(22px, 3vw, 44px); bottom: clamp(22px, 3vw, 40px); }
[data-layout="narrow"] .dash-film { margin: 16px 0 0; height: 56vh; }

/* continue watching: wide artwork, progress on the image, time left */
.row.cw-row { grid-auto-columns: clamp(250px, 22vw, 340px); gap: 16px; }
[data-layout="narrow"] .row.cw-row { grid-auto-columns: 72%; gap: 12px; }
.cw { position: relative; min-width: 0; }
.cw-main { display: block; width: 100%; text-align: left; border-radius: 16px; }
.cw-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--tile); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8); }
.cw-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.cw-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.cw-art.poster img { object-position: center 22%; }
.cw-main:hover .cw-art img, .cw-main:focus-visible .cw-art img { transform: scale(1.045); }
.cw-play { position: absolute; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 20, 19, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); opacity: 0; transform: scale(.85); transition: opacity 220ms, transform 320ms var(--ease-out); }
.cw-play .i { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 2px; }
.cw-main:hover .cw-play, .cw-main:focus-visible .cw-play { opacity: 1; transform: none; }
[data-layout="narrow"] .cw-play { opacity: 1; transform: none; width: 42px; height: 42px; }
.cw-bar { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 11px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.cw-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.cw-text { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; padding: 0 2px; min-width: 0; }
.cw-text b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-text span { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-text .cw-left { color: var(--faint); font-size: 12.5px; }
.cw .premove { top: 8px; right: 8px; }
.cw:hover .premove, .cw:focus-within .premove { opacity: 1; }

/* on now & coming up */
.air-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
/* phone: a swipeable row instead of a long stack */
[data-layout="narrow"] .air-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
[data-layout="narrow"] .air-grid::-webkit-scrollbar { display: none; }
[data-layout="narrow"] .air { scroll-snap-align: start; }
.air { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 15px 14px; border-radius: 16px; text-align: left; overflow: hidden; min-width: 0;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); transition: background var(--t), box-shadow var(--t), transform var(--t) var(--ease); }
.air:hover { background: var(--glass), rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2), var(--glass-hi); }
.air:active { transform: scale(.985); }
.air-logo { width: 76px; aspect-ratio: 16 / 10; flex: none; border-radius: 11px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #34332f, #262624); }
.air-logo img { width: 76%; height: 70%; object-fit: contain; }
.air-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.air-text b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.air-ch { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.air-time { font-size: 12.5px; color: var(--faint); margin-top: 3px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.air.now .air-time { color: var(--text); }
.air.live .air-time { color: var(--live); font-weight: 600; }
.air.live .air-time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.air-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.air-bar i { display: block; height: 100%; background: var(--accent); }
.air.live .air-bar i { background: var(--live); }

/* later tonight: a timeline strip */
.tonight { border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); overflow-x: auto; scrollbar-width: none; }
.tonight::-webkit-scrollbar { display: none; }
.tn-track { display: flex; min-width: max-content; }
.tn { width: 196px; flex: none; display: flex; flex-direction: column; gap: 5px; padding: 15px 16px 16px; border-left: 1px solid var(--line); transition: background var(--t); }
.tn:first-child { border-left: 0; }
.tn:hover { background: rgba(255, 255, 255, .04); }
.tn time { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.tn.hour time { color: var(--text); font-weight: 600; }
.tn.live time { color: var(--live); }
.tn b { font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tn > span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-logo { width: 26px; height: 16px; flex: none; display: grid; place-items: center; }
.tn-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tn-logo:empty { display: none; }

/* browse tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
[data-layout="narrow"] .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 16px; min-width: 0;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); transition: background var(--t), box-shadow var(--t), transform 260ms var(--ease-out); }
.tile:hover { background: var(--glass), rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line-2), var(--glass-hi); transform: translateY(-2px); }
.tile-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
.tile-ic .i { width: 22px; height: 22px; }
.tile-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tile-text b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-text span { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-layout="narrow"] .tile { padding: 12px; gap: 10px; }
[data-layout="narrow"] .tile-ic { width: 38px; height: 38px; border-radius: 11px; }

@media (prefers-reduced-motion: reduce) { .cw-art img, .cw-play, .tile { transition: none; } }

/* hero showing a live channel (no fixture): logo, programme, time left */
.dh-chan { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(720px, 100%); }
.dh-chlogo { width: clamp(120px, 12vw, 180px); aspect-ratio: 16 / 9; border-radius: 18px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #3a3934, #262624); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(0, 0, 0, .8); }
.dh-chlogo { position: relative; }
.dh-chlogo img { position: absolute; inset: 15% 13%; width: 74%; height: 70%; object-fit: contain; }
.dh-prog { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; width: min(460px, 100%); }
.dh-progbar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dh-progbar i { display: block; height: 100%; background: var(--live); border-radius: 4px; }
.dh-channel .dh-glow { background:
    radial-gradient(40% 70% at 50% 30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%),
    radial-gradient(30% 60% at 18% 80%, rgba(255, 77, 61, .14), transparent 70%),
    radial-gradient(30% 60% at 82% 80%, rgba(120, 140, 255, .1), transparent 70%); }

/* film fallback: grow with the title instead of clipping it */
.dash-film { height: auto; min-height: clamp(300px, 42vh, 500px); display: flex; align-items: flex-end; }
.dash-film .hero-body { position: relative; left: auto; bottom: auto; padding: clamp(90px, 12vh, 150px) clamp(22px, 3vw, 44px) clamp(24px, 3vw, 40px); max-width: min(620px, 86%); }
.dash-film .hero-body h1 { font-size: clamp(30px, 3.8vw, 56px); }

/* live TV: mini + close appear top-right while you hover the picture (single screen, mouse) */
.scr-top { position: absolute; top: clamp(8px, 1.6cqw, 20px); right: clamp(8px, 1.6cqw, 20px); z-index: 5; opacity: 0; pointer-events: none; transition: opacity 220ms; }
.screen.has-vctl .scr-top, #screens:not([data-n="1"]) .scr-top, .app[data-stage="mini"] .scr-top { display: none; }
@media (hover: hover) {
  .screen:hover .scr-top, .scr-top:focus-within { opacity: 1; pointer-events: auto; }
}
.tv .scr-top:focus-within { opacity: 1; pointer-events: auto; }


/* ── sources ──────────────────────────────────────────────────────────── */
.view-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.srcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 18px; }
[data-layout="narrow"] .srcs { grid-template-columns: 1fr; }
.src { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; min-width: 0; text-align: left;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); }
.src.is-bad { box-shadow: inset 0 0 0 1px rgba(255, 77, 61, .35), var(--glass-hi); }
.src-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--dim); }
.src.is-main .src-ic { background: var(--accent-tint); color: var(--accent); }
.src-ic .i { width: 22px; height: 22px; }
.src-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.src-text b, .src-add b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.src-host, .src-when { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.src-when { color: var(--faint); }
.src-state { font-size: 13px; margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; }
.src-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.src-state.ok::before { background: #46d369; }
.src-state.bad { color: #ff8a7a; }
.src-state.bad::before { background: var(--live); }
.src-state.busy::before { background: var(--accent); animation: pulse-dot 1s ease-in-out infinite alternate; }
@keyframes pulse-dot { to { opacity: .3; } }
.src-acts { display: flex; gap: 2px; flex: none; align-self: flex-start; }
.icon-btn.spinning .i { animation: spin .9s linear infinite; }
.src-add { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-2); min-height: 88px; transition: border-color var(--t), background var(--t); }
.src-add:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(255, 255, 255, .025); }
.src-plus { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.src-form { display: flex; flex-direction: column; gap: 12px; }
.src-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
.src-form .field { height: 42px; font-size: 14.5px; }
.src-form .opt { color: var(--faint); font-size: 12px; }
.src-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.src-err { color: #ff8a7a; font-size: 13.5px; background: rgba(255, 77, 61, .1); border-radius: 12px; padding: 10px 12px; margin: 0; }
.chips .chip .i { width: 16px; height: 16px; }
.spinner.sm { width: 15px; height: 15px; border-width: 2px; border-color: rgba(0, 0, 0, .2); border-top-color: currentColor; }

/* ── addons (Stremio-style sources + subtitles) ──────────────────────── */
.view-note code, .sheet code, .via-note code { font-size: .92em; background: rgba(255, 255, 255, .07); padding: 1px 5px; border-radius: 5px; }
.btn.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn.btn-sm .i { width: 15px; height: 15px; }
.addon { flex-direction: column; align-items: stretch; gap: 10px; }
.addon-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.addon-top .switch { flex: none; align-self: flex-start; }
.addon-logo { overflow: hidden; }
.addon-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.addon-desc { font-size: 12.5px; color: var(--dim); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addon-sugg .addon-desc { -webkit-line-clamp: 3; margin-top: 2px; }
.addon-acts { display: flex; align-items: center; gap: 2px; margin: 0 -6px -6px; }
.addon-acts .grow { flex: 1; }
.addon-acts .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.addon.is-off .addon-top, .addon.is-off .addon-desc { opacity: .5; }
.addon-h { margin-top: 30px; }
.addon-h + .srcs { margin-top: 0; }
.addon-foot { margin-top: 12px; }
.as-list { display: flex; flex-direction: column; gap: 2px; }
.as-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r); text-align: left; transition: background var(--t); }
.as-item:hover { background: rgba(255, 255, 255, .05); }
.as-item[aria-pressed="true"] { background: var(--raised-2); }
.as-q { font-size: 12.5px; font-weight: 650; color: var(--dim); text-align: center; padding: 5px 0; border-radius: 8px; background: rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; display: grid; place-items: center; min-height: 26px; }
.as-q .i { width: 15px; height: 15px; fill: currentColor; }
.as-q.hi { color: var(--on-accent); background: var(--accent); }
.as-q.lo { color: #ffb340; }
.as-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-text b { font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-detail, .as-meta { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-meta { color: var(--faint); }
.as-tags { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 190px; }
.as-tags .i { width: 18px; height: 18px; color: var(--accent); }
.as-more { margin-top: 8px; }
.as-best { margin-left: auto; }
.as-best .i { fill: currentColor; }
.as-meta i { font-style: normal; color: var(--dim); }
.as-verdict { font-size: 10.5px; font-weight: 600; line-height: 1; padding: 4px 7px 3px; border-radius: 6px; letter-spacing: .02em; color: var(--dim); background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; gap: 5px; }
.as-verdict::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.as-verdict.ok { color: #6fdc8c; background: rgba(70, 211, 105, .1); }
.as-verdict.warn { color: #ffb340; background: rgba(255, 179, 64, .1); }
/* how a source gets here: Instant (cached on the debrid service) stands out; "fetch" warns it may take minutes */
.badge.speed { display: inline-flex; align-items: center; gap: 3px; }
.as-tags .badge.speed .i { width: 11px; height: 11px; margin: -2px 0 -1px; color: inherit; }
.badge.instant .i { fill: currentColor; }
.badge.instant { color: #0b2614; background: #6fdc8c; }
.badge.fetch { color: #ffb340; background: rgba(255, 179, 64, .12); }
.badge.snd { color: var(--text); }
.badge.snd.hi { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); background: transparent; }
.as-verdict.bad { color: #ff8a7a; background: rgba(255, 77, 61, .1); }
.engine-grid { margin-top: 0; grid-template-columns: minmax(0, 760px); }
.engine-set { margin-top: 12px; max-width: 760px; }
.set-select { width: auto; min-width: 150px; flex: none; }
.as-body .via-note a, .as-modal .via-note a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.as-wait { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13.5px; margin: 4px 0; }
.as-wait .spinner.sm { border-color: rgba(255, 255, 255, .15); border-top-color: var(--text); }
.as-modal .tk-col h3 { margin-top: 4px; }
.as-modal .as-body .as-list { max-height: min(50vh, 460px); overflow-y: auto; }
[data-layout="narrow"] .as-item { grid-template-columns: 44px minmax(0, 1fr); }
[data-layout="narrow"] .as-tags { grid-column: 2; justify-content: flex-start; max-width: none; }
.eps.has-src li { display: flex; align-items: center; gap: 4px; }
.eps.has-src .ep { flex: 1; min-width: 0; }
.ep-src { opacity: .55; }
.ep-src:hover, .ep-src:focus-visible, .ep-src.on { opacity: 1; }
.tk-sub-h { font-size: 12px; color: var(--faint); margin: 10px 12px 2px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.sheet-item.tk-ext { height: auto; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.tk-ext .grow { display: flex; flex-direction: column; min-width: 0; }
.tk-rel { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-more { color: var(--dim); }

/* ── scores (football, cricket, NBA) ──────────────────────────────────── */
.sc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-tabs .chip .i { width: 16px; height: 16px; }
.sc-livecount { margin-left: 4px; font-size: 11.5px; font-weight: 600; color: var(--live); display: inline-flex; align-items: center; gap: 5px; }
.sc-livecount::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.chip[aria-pressed="true"] .sc-livecount { color: #c0261a; }
.sc-cols { columns: 380px; column-gap: 12px; }
.sc-cols.compact { columns: 360px 3; }
.sc-group { break-inside: avoid; margin-bottom: 12px; border-radius: 18px; overflow: hidden; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); }
.sc-league { display: flex; align-items: center; gap: 9px; padding: 11px 14px 9px; font-size: 13px; font-weight: 600; color: var(--dim); border-bottom: 1px solid var(--line); }
.sc-league img { width: 18px; height: 18px; object-fit: contain; }
.sc-league span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.sc-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.sc-row:last-of-type { border-bottom: 0; }
.sc-row.is-fav { box-shadow: inset 3px 0 0 var(--accent); }
.sc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 14px; text-align: left; transition: background var(--t); }
.sc-main:hover { background: rgba(255, 255, 255, .035); }
.sc-st { width: 46px; flex: none; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.sc-st small { font-size: 11px; color: var(--faint); }
.sc-st.live { color: var(--live); font-weight: 650; }
.sc-st.done { color: var(--faint); }
.sc-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sc-t { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; }
.sc-t img, .sc-noimg { width: 20px; height: 20px; object-fit: contain; flex: none; }
.sc-noimg { display: inline-block; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.sc-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-s { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sc-s small { font-weight: 400; color: var(--faint); font-size: 11.5px; margin-left: 5px; }
.sc-row:not(.is-live) .sc-t:not(.won) .sc-s, .sc-row:not(.is-live) .sc-t:not(.won) .sc-n { color: inherit; }
.sc-group .sc-row .sc-main:has(.sc-st.done) .sc-t:not(.won) { color: var(--dim); }
.sc-t.bat .sc-n::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 7px; vertical-align: 2px; }
.sc-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.sc-goals span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-sum { font-size: 12px; color: var(--dim); line-height: 1.35; }
.sc-watch { width: 46px; flex: none; display: grid; place-items: center; color: var(--accent); border-left: 1px solid var(--line); transition: background var(--t); }
.sc-watch .i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.sc-watch:hover { background: var(--accent-tint); }
.sc-watch.none { border-left-color: transparent; }
.sc-more { display: block; padding: 9px 14px; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); }
.sc-more:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
[data-layout="narrow"] .sc-cols, [data-layout="narrow"] .sc-cols.compact { columns: 1; }

/* match sheet */
.sheet.sheet-match { width: min(720px, 100%); padding: 0; gap: 0; position: relative; }
.sm-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .06); }
.sm-head { padding: 22px 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, rgba(239, 220, 198, .09), transparent 70%); border-bottom: 1px solid var(--line); }
.sm-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.sm-meta .sc-st { width: auto; flex-direction: row; gap: 6px; }
.sm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: 100%; }
.sm-team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.sm-team b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sm-crest { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.sm-score { display: flex; align-items: center; gap: 12px; font-size: 46px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sm-score i { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.sm-score em { font-style: normal; font-size: 22px; color: var(--dim); letter-spacing: 0; }
.sm-cricket { display: flex; flex-direction: column; gap: 10px; width: min(460px, 100%); }
.sm-ct { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; text-align: left; }
.sm-ct .sm-crest { width: 36px; height: 36px; }
.sm-ct b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-ct span { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sm-ct.bat b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: 2px; }
.sm-sum { font-size: 14px; color: var(--text); max-width: 46ch; }
.sm-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; font-size: 12.5px; color: var(--dim); }
.sm-goals div { display: flex; flex-direction: column; gap: 3px; }
.sm-goals div:first-child { align-items: flex-end; }
.sm-goals div:last-child { align-items: flex-start; }
.sm-goals span { display: inline-flex; align-items: center; gap: 6px; }
.sm-goals .i { width: 13px; height: 13px; }
.sm-watch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sm-watch .btn-play { height: 42px; padding: 0 20px; }
.sm-body { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.sm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.bookcard { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: #f5c518; }
.bookcard.red { background: #e5372b; }
/* timeline: home events on the left, away on the right, minute down the middle */
.sm-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; position: relative; }
.sm-tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.sm-tl li { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 10px; min-height: 38px; }
.tl-min { grid-column: 2; grid-row: 1; justify-self: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--dim); background: var(--raised); border-radius: 999px; padding: 2px 7px; position: relative; z-index: 1; }
.tl-home .tl-ic { grid-column: 1; grid-row: 1; justify-self: end; }
.tl-home .tl-what { grid-column: 1; grid-row: 1; justify-self: end; margin-right: 26px; text-align: right; }
.tl-away .tl-ic { grid-column: 3; grid-row: 1; justify-self: start; }
.tl-away .tl-what { grid-column: 3; grid-row: 1; justify-self: start; margin-left: 26px; }
.tl-ic { display: grid; place-items: center; width: 18px; }
.tl-ic .i { width: 16px; height: 16px; }
.sub-ic { color: #46d369; font-size: 14px; }
.tl-what { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.25; }
.tl-what small { font-size: 11.5px; color: var(--dim); }
.tl-goal .tl-what b, .tl-pen .tl-what b, .tl-og .tl-what b { font-weight: 650; }
.sm-stats { display: flex; flex-direction: column; gap: 12px; }
.sm-stat-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--dim); margin-bottom: 5px; }
.sm-stat-top b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; min-width: 3ch; }
.sm-stat-top b:last-child { text-align: right; }
.sm-stat-top b.lead { color: var(--accent); }
.sm-bars { display: flex; gap: 4px; height: 6px; }
.sm-bars i { display: block; height: 100%; border-radius: 4px; background: rgba(255, 255, 255, .16); min-width: 2px; }
.sm-bars i:first-child { background: var(--accent); }
.sm-lineups, .sm-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sm-lineups h4, .sm-leaders h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.sm-lineups h4 span { color: var(--dim); font-weight: 500; }
.sm-lineups h5 { font-size: 12px; color: var(--faint); font-weight: 500; margin: 10px 0 4px; }
.sm-lineups ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sm-lineups li { display: flex; gap: 8px; align-items: center; }
.ln { width: 22px; color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; flex: none; }
.lp { margin-left: auto; color: var(--faint); font-size: 11.5px; }
.lo { color: #ff8a7a; font-size: 12px; }
.sm-leaders p { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; margin: 0 0 6px; font-size: 13px; }
.sm-leaders p span { color: var(--dim); }
.sm-leaders p em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
.sm-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sm-table th, .sm-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.sm-table thead th { color: var(--faint); font-size: 12px; }
.sm-table th:first-child, .sm-table td:first-child { text-align: left; }
.sm-table tbody th { font-weight: 500; }
.sm-table tbody th small { display: block; color: var(--faint); font-size: 11.5px; font-weight: 400; }
.sm-table tr.notout th { color: var(--accent); }
.sm-inn-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.sm-inn-head span { font-weight: 650; font-variant-numeric: tabular-nums; }
[data-layout="narrow"] .sm-lineups, [data-layout="narrow"] .sm-leaders { grid-template-columns: 1fr; }
[data-layout="narrow"] .sm-score { font-size: 36px; }


/* ── TV-app touches: focused artwork, paused label, time left, "more like it", big picker rows ── */
/* focused artwork gets a clear white ring and a small lift (remote / keyboard) */
.poster:focus-visible, .cw-main:focus-visible, .tv .poster:focus, .tv .cw-main:focus { outline: none; }
.poster:focus-visible .pimg, .tv .poster:focus .pimg, .cw-main:focus-visible .cw-art, .tv .cw-main:focus .cw-art {
  box-shadow: 0 0 0 3px #fff, 0 22px 44px -16px rgba(0, 0, 0, .9); transform: scale(1.04); }
.pimg, .cw-art { transition: box-shadow 220ms var(--ease-out), transform 320ms var(--ease-out); }
.poster:focus-visible, .tv .poster:focus { transform: none; }
/* the hero follows the focused title: a soft cross-fade when it changes */
#hero.swap .hero-bg { animation: hero-swap 700ms var(--ease-out) both; }
#hero.swap .hero-body { animation: enter-up 480ms var(--ease-out) both; }
@keyframes hero-swap { from { opacity: .25; transform: scale(1.03); } }
/* player */
.vc-paused { display: none; align-self: flex-start; font-size: clamp(10px, 1cqw, 13px); font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.vctl[data-paused="true"] .vc-paused { display: block; }
button.vc-dur { padding: 2px 4px; border-radius: 6px; cursor: pointer; }
button.vc-dur:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.similar { pointer-events: auto; width: min(420px, 100%); border-radius: 16px; padding: 12px; background: rgba(16, 16, 15, .84); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.similar-head { display: flex; align-items: baseline; gap: 8px; }
.similar-head span { font-size: 12px; color: var(--dim); }
.similar-head b { font-size: 14px; font-weight: 600; flex: 1; }
.similar-x { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); }
.similar-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.similar-x .i { width: 15px; height: 15px; }
.similar-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.similar-item { display: flex; flex-direction: column; gap: 5px; text-align: left; min-width: 0; }
.similar-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 9px; transition: transform 220ms var(--ease-out), box-shadow 220ms; }
.similar-item:hover img, .similar-item:focus-visible img { transform: translateY(-2px); box-shadow: 0 0 0 2px #fff; }
.similar-item span { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 520px) { .similar-row { grid-template-columns: repeat(3, 1fr); } .similar-item span { display: none; } .similar { width: 220px; padding: 8px; } }
/* TV: big, high-contrast rows in pickers (audio & subtitles, add to category…) */
.tv .sheet-item { height: 56px; font-size: 18px; border-radius: 14px; padding: 0 18px; }
.tv .sheet-item:focus { background: #fff; color: #111; outline: none; }
.tv .sheet-item:focus .badge { background: rgba(0, 0, 0, .08); color: #333; }
.tv .sheet-item:focus .i { color: #111; }
/* TV: the hero stays pinned while the rows scroll beneath it, so it can follow the focused title */
.tv .vod > .hero { position: sticky; top: 0; z-index: 3; height: 50vh; margin-bottom: 0; box-shadow: 0 -12px 0 var(--bg); }
.tv .content:has(.vod > .hero) { scroll-padding-top: calc(50vh + 16px); }
.tv .vod > .hero .hero-scrim { background: linear-gradient(90deg, rgba(19, 19, 18, .95) 0%, rgba(19, 19, 18, .6) 40%, rgba(19, 19, 18, 0) 72%), linear-gradient(0deg, var(--bg) 0%, rgba(19, 19, 18, 0) 34%); }


/* ── home: "Right now" (compact live cards; replaces the single big hero) ── */
.row.rn-row { grid-auto-columns: clamp(270px, 22vw, 320px); gap: 12px; padding-bottom: 10px; }
[data-layout="narrow"] .row.rn-row { grid-auto-columns: 78%; }
.rn { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 150px; padding: 13px 14px 12px; border-radius: 18px; text-align: left;
  background: #1a1a19; box-shadow: inset 0 0 0 1px var(--line), var(--glass-hi); transition: transform 260ms var(--ease-out), box-shadow var(--t); }
.rn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--glass-hi), 0 18px 36px -22px rgba(0, 0, 0, .9); }
.rn:active { transform: scale(.985); }
.rn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 18px 36px -18px rgba(0, 0, 0, .9); }
/* the two teams' colours, faintly, from opposite corners */
.rn-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background: radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--c1, transparent) 26%, transparent), transparent 70%),
              radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--c2, transparent) 22%, transparent), transparent 70%); }
.rn-ch .rn-glow { background: radial-gradient(80% 100% at 100% 100%, rgba(255, 77, 61, .12), transparent 70%); }
.rn-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); min-width: 0; }
.rn-lg { width: 16px; height: 16px; object-fit: contain; flex: none; }
.rn-league { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-st { flex: none; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .08); padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.rn-st.live { color: #fff; background: var(--live); }
.rn-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.rn-t { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.rn-t .crest { width: 38px; height: 38px; }
.rn-t .crest-mono { width: 38px; height: 38px; font-size: 12px; }
.rn-t b { font-size: 13.5px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-score { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.rn-score i { font-style: normal; color: var(--faint); font-weight: 400; }
.rn-score em { font-style: normal; font-size: 15px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.rn-rows { display: flex; flex-direction: column; gap: 7px; }
.rn-line { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; font-size: 14px; }
.rn-line .crest { width: 22px; height: 22px; }
.rn-line em { font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.rn-title { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rn-chrow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rn-logo { width: 64px; aspect-ratio: 16 / 10; flex: none; border-radius: 10px; display: grid; place-items: center; overflow: hidden; position: relative; background: radial-gradient(120% 90% at 50% 0%, #34332f, #262624); }
.rn-logo img { position: absolute; inset: 15% 12%; width: 76%; height: 70%; object-fit: contain; }
.rn-chrow b { font-size: 16px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rn-foot { margin-top: auto; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); min-width: 0; }
.rn-foot .i { width: 14px; height: 14px; fill: var(--accent); stroke: none; flex: none; }
.rn-foot > span:not(.rn-more):not(.rn-prog) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-more { flex: none; font-size: 11.5px; color: var(--faint); }
.rn-progfoot { gap: 10px; }
.rn-prog { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.rn-prog i { display: block; height: 100%; background: var(--live); }


/* ── home: launcher-style lobby ───────────────────────────────────────────
   The artwork is the background of the whole area right of the menu; the first screen is just a
   clock, the date, one line, a caption for the artwork, and a dock of big tiles. */
.topbar, .content { position: relative; z-index: 1; }
#ambient { position: fixed; top: 0; bottom: 0; right: 0; left: var(--side); z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 600ms ease; background: var(--bg); --dim: 0; }
.tv #ambient { left: 76px; }
[data-layout="narrow"] #ambient { left: 0; }
html[data-route="home"] #ambient { opacity: 1; }
html[data-route="home"] .app[data-stage="dock"] #ambient, html[data-route="home"] .app[data-stage="theatre"] #ambient { opacity: .35; }
.amb-img { position: absolute; inset: -3%; background: center 25% / cover no-repeat; opacity: 0; transition: opacity 1600ms ease; }
.amb-img.on { opacity: 1; animation: amb-drift 40s ease-in-out infinite alternate; }
@keyframes amb-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.amb-veil { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 19, 18, .78) 0%, rgba(19, 19, 18, .35) 45%, rgba(19, 19, 18, .12) 75%),
    linear-gradient(180deg, rgba(19, 19, 18, .7) 0%, rgba(19, 19, 18, .1) 24%, rgba(19, 19, 18, .1) 50%, rgba(19, 19, 18, .92) 86%, var(--bg) 100%),
    rgba(19, 19, 18, calc(.18 + var(--dim) * .7)); }
.amb-img { filter: saturate(.9) brightness(.82); }
.tv .amb-img.on { animation: none; }
@media (prefers-reduced-motion: reduce) { .amb-img.on { animation: none; } .amb-img { transition: none; } }

.lobby-stage { position: relative; display: flex; flex-direction: column; min-height: calc(100dvh - 64px - 8px); padding: clamp(8px, 4vh, 48px) 0 clamp(18px, 3vh, 34px); }
[data-layout="narrow"] .lobby-stage { min-height: calc(100dvh - 210px); padding-top: 12px; }
.lobby-top { display: flex; flex-direction: column; gap: 4px; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.lobby-clock { font-size: clamp(68px, 9vw, 144px); font-weight: 400; letter-spacing: -.045em; line-height: .9; font-variant-numeric: tabular-nums; color: #fff; }
.lobby-date { font-size: clamp(16px, 1.5vw, 22px); color: rgba(255, 255, 255, .86); margin-top: 10px; }
.lobby-sub { font-size: clamp(14px, 1.1vw, 16px); color: rgba(255, 255, 255, .66); display: flex; align-items: center; flex-wrap: wrap; }
.lobby-live { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.lobby-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 77, 61, .25); }
.lobby-cap { margin-top: auto; align-self: flex-end; margin-bottom: 18px; min-height: 52px; }
.cap { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; text-align: left; max-width: min(380px, 70vw);
  background: rgba(20, 20, 19, .42); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  animation: enter-fade 600ms var(--ease-out) both; transition: background var(--t); }
.cap:hover { background: rgba(255, 255, 255, .16); }
.cap-k { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; }
.cap-k .i { width: 15px; height: 15px; fill: currentColor; stroke: none; margin-left: 2px; }
.cap b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap span span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the dock: one row of large tiles, icon over label */
.dock { display: flex; gap: clamp(10px, 1vw, 16px); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 6px var(--pad) 4px; scroll-padding: 0 var(--pad); }
.dock::-webkit-scrollbar { display: none; }
.dk { flex: none; width: clamp(92px, 7.6vw, 124px); display: flex; flex-direction: column; align-items: center; gap: 9px; border-radius: 22px; }
.dk-tile { position: relative; width: 100%; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: rgba(28, 28, 26, .5); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 30px -18px rgba(0, 0, 0, .8);
  transition: transform 280ms var(--ease-out), background var(--t), box-shadow 200ms; }
.dk-tile .i { width: 38%; height: 38%; stroke-width: 1.6; }
.dk:hover .dk-tile { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.dk:focus-visible, .tv .dk:focus { outline: none; }
.dk:focus-visible .dk-tile, .tv .dk:focus .dk-tile { background: #f4f3f1; color: #151514; transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 20px 40px -16px rgba(0, 0, 0, .9); }
.dk-name { font-size: 13px; color: rgba(255, 255, 255, .82); text-align: center; line-height: 1.2; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.dk:focus-visible .dk-name, .tv .dk:focus .dk-name { color: #fff; }
.dk-badge { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.dk-badge.live { background: var(--live); color: #fff; }
[data-layout="narrow"] .dk { width: 82px; }
[data-layout="narrow"] .dk-tile { border-radius: 20px; }
[data-layout="narrow"] .lobby-cap { align-self: stretch; }
[data-layout="narrow"] .cap { max-width: 100%; }

/* below the fold: the rows sit on the dimmed artwork */
.lobby > .section .section-head h2 { text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.row.fav-dots { grid-auto-columns: 132px; gap: 12px; }
.fd { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
.fd-logo { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: rgba(30, 30, 28, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 260ms var(--ease-out), box-shadow 200ms; }
.fd-logo img { position: absolute; inset: 18% 16%; width: 68%; height: 64%; object-fit: contain; }
.fd:hover .fd-logo { transform: translateY(-2px); }
.fd:focus-visible, .tv .fd:focus { outline: none; }
.fd:focus-visible .fd-logo, .tv .fd:focus .fd-logo { box-shadow: 0 0 0 3px #fff; }
.fd.live .fd-logo::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 77, 61, .25); }
.fd-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-now { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }

.sidebar { z-index: 2; background: var(--bg); }

/* dock: just the eight places you use, spread evenly in one row (4 × 2 on a phone) */
.dock { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); overflow: visible; margin: 0; padding: 6px 0 4px; max-width: 1180px; }
.dk { width: auto; min-width: 0; }
.dk-tile { border-radius: clamp(18px, 1.8vw, 26px); }
.dk-tile .i { width: 34%; height: 34%; }
.dk-name { font-size: clamp(12.5px, 1vw, 15px); font-weight: 500; }
[data-layout="mid"] .dock { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
[data-layout="narrow"] .dock { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }
[data-layout="narrow"] .dk { width: auto; }
.tv .dock { max-width: none; }

/* phone sheets: grab handle + drag to close */
.sheet-grab { display: none; }
[data-layout="narrow"] .sheet { transition: transform 240ms var(--ease-out); overscroll-behavior: contain; }
[data-layout="narrow"] .sheet-grab { display: block; flex: none; align-self: center; width: 100%; height: 22px; margin: -14px 0 -6px; position: relative; z-index: 3; cursor: grab; touch-action: none; }
[data-layout="narrow"] .sheet-grab::before { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
[data-layout="narrow"] .sheet.vm .sheet-grab, [data-layout="narrow"] .sheet.sheet-match .sheet-grab { position: sticky; top: 0; margin: 0 0 -22px; background: linear-gradient(rgba(0, 0, 0, .35), transparent); }
[data-layout="narrow"] .modal { background: rgba(8, 8, 7, calc(.6 * (1 - var(--drag, 0)))); }
/* TV: the dock spreads across, but tiles stay a sensible size */
.tv .dock { max-width: 1320px; }

/* dock: nine tiles (one row on wide screens, 3 × 3 on phones / tablets) */
.dock { grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: 1280px; }
[data-layout="mid"] .dock, [data-layout="narrow"] .dock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-layout="mid"] .dock { max-width: 520px; }
[data-layout="narrow"] .dk-tile { aspect-ratio: 1.35; }
.tv .dock { max-width: 1440px; }

/* ── Live: one header with the channel categories ─────────────────────── */
.live-head { margin-bottom: 6px; }
.live-head .view-head { padding-bottom: 8px; }
.cat-tabs { margin-bottom: 14px; }
.cat-tabs .chip { height: 38px; padding: 0 16px; font-size: 14px; font-weight: 550; flex: none; }
.view-head.sub-head { min-height: 0; padding: 4px 0 10px; }
.view-head.sub-head h1 { font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.02em; }
.cat-title { display: flex; align-items: center; gap: 8px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; margin: 2px 0 12px; }
.games-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin: 0 0 16px; border-radius: var(--r); background: var(--accent-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.games-banner > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.games-banner b { font-size: 15px; font-weight: 600; }
.games-banner > span:first-child > span { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.games-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.games-go .i { width: 14px; height: 14px; fill: currentColor; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; }
.world-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); margin-top: 8px; }
.world-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--t); }
.world-tile:hover, .world-tile:focus-visible { background: var(--raised-2); }
.world-tile .i { width: 26px; height: 26px; color: var(--accent); flex: none; }
.world-tile > span { display: flex; flex-direction: column; gap: 3px; }
.world-tile b { font-size: 16px; font-weight: 600; }
.world-tile > span > span { font-size: 13px; color: var(--dim); }
/* small grey text was 3.3:1 on the cards; this passes 4.5:1 */
:root { --faint: #8f8c86; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.region { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 14px; font-weight: 550; }
.region select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; padding-right: 22px; margin-right: -22px; cursor: pointer; }
.region select:focus-visible { outline: none; }
.region:focus-within { box-shadow: inset 0 0 0 2px var(--text); }
.region .i { width: 16px; height: 16px; color: var(--dim); pointer-events: none; }
.region select option { background: #1c1c1b; color: var(--text); }

/* ── home: what you were watching first, then what's live ─────────────── */
.home { position: relative; }
.hh { position: relative; display: flex; flex-direction: column; min-height: min(74dvh, 760px); padding: 6px 0 clamp(18px, 3vh, 34px); }
[data-layout="narrow"] .hh { min-height: 62dvh; padding-top: 0; }
.tv .hh { min-height: 70dvh; }
.hh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hh-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.hh-clock time { font-size: clamp(26px, 2.4vw, 44px); font-weight: 400; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.hh-clock span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); font-weight: 500; }
[data-layout="narrow"] .hh-clock { display: none; }
.isl { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 16px 8px 14px; border-radius: 999px; background: rgba(14, 14, 13, .62); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .78); max-width: 100%; }
.isl b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.isl-live { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; white-space: nowrap; }
.isl-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 77, 61, .25); }
.isl-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .2); flex: none; }
.isl-next { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.isl-quiet { color: rgba(255, 255, 255, .86); }
a.isl:hover, a.isl:focus-visible { background: rgba(30, 30, 28, .8); }
.hh-copy { margin-top: auto; display: flex; flex-direction: column; gap: 12px; max-width: min(780px, 100%); text-shadow: 0 2px 28px rgba(0, 0, 0, .5); }
.hh-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hh-title { font-size: clamp(40px, 6.4vw, 104px); font-weight: 600; letter-spacing: -.04em; line-height: .98; color: #fff; text-wrap: balance; }
[data-layout="narrow"] .hh-title { font-size: clamp(34px, 10vw, 46px); }
.hh-meta { font-size: clamp(15px, 1.3vw, 22px); color: rgba(255, 255, 255, .86); }
.hh-meta b { color: #fff; font-weight: 600; }
.hh-plot { font-size: clamp(14px, 1.1vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .8); max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hh-bar { display: block; width: min(460px, 100%); height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.hh-bar i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; text-shadow: none; }
.hh-btn { height: 46px; padding: 0 20px; font-size: 15px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; }
.hh-btn:hover { background: rgba(255, 255, 255, .18); }
.tv .hh-actions .btn:focus { background: #f4f3f1; color: #151514; box-shadow: 0 0 0 3px rgba(0, 0, 0, .6), 0 0 0 6px #fff; transform: scale(1.04); }
.hh-jumps { margin-bottom: 8px; }
.hh-chip { flex: none; height: 40px; padding: 0 15px; gap: 8px; background: rgba(20, 20, 19, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: rgba(255, 255, 255, .9); font-weight: 550; }
.hh-chip .i { width: 17px; height: 17px; color: var(--dim); }
.hh-chip .n.live { background: var(--live); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.home > .section .section-head h2 { text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.tv .hh-title { font-size: clamp(64px, 6vw, 112px); }
.tv .hh-chip { height: 52px; padding: 0 22px; font-size: 18px; }

/* ── home, one screen (Netflix-style): details on top, rows that move up ─ */
html[data-route="home"] .content { overflow: hidden; padding-bottom: 0; }
.nf { height: 100%; display: flex; flex-direction: column; min-height: 0; --wide-w: 280px; --poster-w: 148px; --tile-w: 230px; --rows-h: 47%; }
.tv .nf { --wide-w: 360px; --poster-w: 184px; --tile-w: 300px; --rows-h: 47%; }
[data-layout="narrow"] .nf { --wide-w: 220px; --poster-w: 118px; --tile-w: 190px; --rows-h: 52%; }
.nf-top { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 4px; }
.nf-info { margin-top: auto; padding-bottom: clamp(10px, 2.2vh, 26px); max-width: min(660px, 58%); display: flex; flex-direction: column; gap: 9px; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
[data-layout="narrow"] .nf-info { max-width: 100%; gap: 7px; }
.nf-info.in { animation: nf-in .32s var(--ease); }
@keyframes nf-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .nf-info.in { animation: none; } }
.nf-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nf-title { font-size: clamp(30px, 4.2vw, 68px); font-weight: 600; letter-spacing: -.035em; line-height: 1; color: #fff; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-layout="narrow"] .nf-title { font-size: clamp(26px, 7.6vw, 34px); }
.nf-meta { font-size: clamp(14px, 1.15vw, 19px); color: rgba(255, 255, 255, .86); }
.nf-meta b { color: #fff; font-weight: 600; }
.nf-plot { font-size: clamp(13.5px, 1vw, 17px); line-height: 1.5; color: rgba(255, 255, 255, .8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
[data-layout="narrow"] .nf-plot { -webkit-line-clamp: 2; }
.nf-next { font-size: 14px; color: rgba(255, 255, 255, .74); }
.nf-bar { display: block; width: min(380px, 100%); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.nf-bar i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; text-shadow: none; }
.nf-actions .btn-play { height: 44px; }
.nf-btn { height: 44px; padding: 0 18px; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; }
.tv .nf-actions { display: none; } /* on the TV the card itself plays or opens */
.nf-rows { flex: 0 0 var(--rows-h); min-height: 0; overflow: hidden; position: relative; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); /* room for a focused card to grow */ touch-action: pan-x; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.nf-row { padding-bottom: 16px; opacity: .5; transition: opacity 240ms var(--ease); }
.nf-row.on { opacity: 1; }
.nf-h { font-size: clamp(16px, 1.25vw, 22px); font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.nf-cards { display: flex; gap: clamp(10px, .9vw, 16px); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--pad)); padding: 6px var(--pad) 8px; scroll-padding-inline: var(--pad); }
.nf-cards::-webkit-scrollbar { display: none; }
[data-layout="narrow"] .nf-cards { margin: 0 -16px; padding: 6px 16px 8px; scroll-padding-inline: 16px; }
.nf-end { height: 70vh; }
.hc { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px; text-align: left; border-radius: 14px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.hc:focus { outline: none; }
.hc.hc-w { width: var(--wide-w); }
.hc.hc-p { width: var(--poster-w); }
.hc.hc-t { width: var(--tile-w); }
.hc-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--raised-2); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.hc.hc-p .hc-art { aspect-ratio: 2 / 3; }
.hc-art img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hc-art > .mono { width: 100%; height: 100%; display: grid; place-items: center; }
.hc-ch .hc-art { display: grid; place-items: center; background: linear-gradient(160deg, #2b2b29, #1d1d1c); }
.hc-logo { width: 36%; aspect-ratio: 1; border-radius: 14px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; overflow: hidden; }
.hc-logo img { width: 78%; height: 78%; object-fit: contain; }
.hc-match .hc-art { display: grid; place-items: center; background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 60%, #121211), color-mix(in srgb, var(--c2) 60%, #121211)); }
.hc-vs { display: flex; align-items: center; gap: 14px; }
.hc-vs .crest { width: clamp(32px, 2.6vw, 50px); height: clamp(32px, 2.6vw, 50px); object-fit: contain; }
.hc-vs b { font-size: clamp(17px, 1.4vw, 26px); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.hc-bar { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.hc-bar i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.hc-bar.red i { background: var(--live); }
.hc-live, .hc-new { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 7px; border-radius: 6px; background: var(--live); color: #fff; }
.hc-new { background: var(--accent); color: var(--on-accent); }
.hc-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.hc-sub { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -3px; padding: 0 2px; }
.tv .hc-name { font-size: 18px; } .tv .hc-sub { font-size: 15px; }
.hc.sel .hc-art { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.hc:focus-visible .hc-art, .tv .hc:focus .hc-art { box-shadow: 0 0 0 3px #fff, 0 12px 30px -10px rgba(0, 0, 0, .7); transform: scale(1.04); }
@media (hover: hover) { .hc:hover .hc-art { transform: scale(1.03); } }
#ambient::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 72% 28%, color-mix(in srgb, var(--tint, transparent) 50%, transparent), transparent 72%); }

/* ── home: the two halves (Live TV / Films & Series) ──────────────────── */
.nf-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(14, 14, 13, .62); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); max-width: 100%; }
.nf-tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px; border-radius: 999px; color: rgba(255, 255, 255, .72); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background 200ms var(--ease), color 200ms var(--ease); }
.nf-tab .i { width: 18px; height: 18px; }
.nf-tab:hover { color: #fff; }
.nf-tab[aria-selected="true"] { background: #f4f3f1; color: #151514; }
.nf-tab-n { font-size: 12px; font-weight: 600; color: inherit; opacity: .7; display: inline-flex; align-items: center; gap: 5px; }
.nf-tab-n:empty { display: none; }
.nf-tab-n.live { opacity: 1; color: #ff8a7e; }
.nf-tab[aria-selected="true"] .nf-tab-n.live { color: #c42a1d; }
.nf-tab-n.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.nf-tab:focus { outline: none; }
.nf-tab:focus-visible, .tv .nf-tab:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, .6), 0 0 0 5px #fff; }
.tv .nf-tab { height: 54px; padding: 0 22px 0 18px; font-size: 19px; }
.tv .nf-tab .i { width: 22px; height: 22px; }
[data-layout="narrow"] .nf-tabs { display: flex; width: 100%; }
[data-layout="narrow"] .nf-tab { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
[data-layout="narrow"] .nf-tab-n { display: none; }
.nf-top { position: relative; }
.nf-art { position: absolute; right: 4%; top: 18%; bottom: 12%; width: 34%; display: grid; place-items: center; opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.nf-art.on { opacity: 1; }
.nf-art-logo { width: min(100%, 300px); aspect-ratio: 1; border-radius: 36px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px -30px rgba(0, 0, 0, .8); display: grid; place-items: center; overflow: hidden; }
.nf-art-logo img { width: 70%; height: 70%; object-fit: contain; }
.nf-art-logo .mono { font-size: 64px; }
.nf-art-vs { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); }
.nf-art-vs .crest { width: clamp(80px, 11vw, 190px); height: clamp(80px, 11vw, 190px); object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.nf-art-vs .crest-mono { display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 32px; font-weight: 700; }
.nf-art-vs i { font-style: normal; font-size: 22px; font-weight: 600; color: rgba(255, 255, 255, .6); }
[data-layout="narrow"] .nf-art { display: none; }
.nf[data-tab="live"] .nf-eyebrow { color: #ff8a7e; }

/* Browse shortcuts: a colour each, the icon in a chip, the name underneath */
.hc.hc-t .hc-art { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 14px 16px 13px;
  background: radial-gradient(130% 120% at 0% 0%, hsl(var(--h) var(--s) 42% / .5), transparent 62%), linear-gradient(155deg, hsl(var(--h) calc(var(--s) * .35) 20%), #191918 80%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.hc-t-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: hsl(var(--h) var(--s) 62% / .2); color: hsl(var(--h) var(--s) 76%); box-shadow: inset 0 0 0 1px hsl(var(--h) var(--s) 70% / .22); }
.hc-t-ic .i { width: 22px; height: 22px; }
.hc.hc-t .hc-art b { font-size: clamp(15px, 1.1vw, 19px); font-weight: 600; line-height: 1.2; color: #fff; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv .hc-t-ic { width: 46px; height: 46px; } .tv .hc-t-ic .i { width: 25px; height: 25px; }

/* ── ambient mode ── */
.amb-mode { position: fixed; inset: 0; z-index: 1000; background: #000; overflow: hidden; opacity: 0; visibility: hidden; cursor: none;
  transition: opacity 900ms ease, visibility 0s linear 900ms; }
.amb-mode.show { opacity: 1; visibility: visible; transition: opacity 1600ms ease; }
.am-img { position: absolute; inset: -4%; background: 62% center / cover no-repeat; opacity: 0; transition: opacity 2400ms ease; will-change: opacity, transform; }
.am-img.on { opacity: 1; animation: am-drift 80s ease-in-out infinite alternate; }
@keyframes am-drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.6%, -1%, 0); } }
.tv .am-img.on { animation: none; }
.am-veil { position: absolute; inset: 0; background: linear-gradient(15deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .18) 42%, transparent 65%); }
.am-info { position: absolute; left: max(24px, 5vw); bottom: max(28px, 8vh, env(safe-area-inset-bottom)); color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  transform: translate(var(--ax, 0), var(--ay, 0)); transition: transform 4s ease; }
.am-time { font-size: clamp(76px, 11vw, 210px); font-weight: 500; letter-spacing: -.05em; line-height: .88; font-variant-numeric: tabular-nums; }
.am-date { font-size: clamp(18px, 1.8vw, 34px); font-weight: 500; color: rgba(255, 255, 255, .86); margin-top: .5em; letter-spacing: -.01em; }
.am-glance { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(16px, 2.4vh, 30px); }
.am-glance:empty { display: none; }
.am-g { display: inline-flex; align-items: center; gap: .6em; padding: .5em 1em; border-radius: 999px; font-size: clamp(14px, 1.2vw, 22px); text-shadow: none;
  background: rgba(10, 10, 10, .38); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.am-g .crest { width: 1.35em; height: 1.35em; object-fit: contain; font-size: .7em; }
.am-g b { font-weight: 600; font-variant-numeric: tabular-nums; }
.am-g i { font-style: normal; font-weight: 600; font-size: .82em; color: #ff8a7e; }
.am-next i { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .7em; }
.am-g > span { color: rgba(255, 255, 255, .78); }
.am-name { position: absolute; right: max(24px, 5vw); bottom: max(30px, 8vh, env(safe-area-inset-bottom)); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.tv .am-name { font-size: 15px; }
@media (max-width: 600px) { .am-name { top: max(22px, env(safe-area-inset-top)); bottom: auto; } }
@media (prefers-reduced-motion: reduce) { .am-img.on { animation: none; } .am-img, .am-info { transition: none; } }

/* wallpapers in Settings: press one to preview */
.amb-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.amb-wall { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform 180ms var(--ease); }
.amb-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amb-wall span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12.5px; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.amb-wall:hover { transform: translateY(-2px); }
.amb-wall:focus { outline: none; }
.amb-wall:focus-visible, .tv .amb-wall:focus { box-shadow: 0 0 0 3px #fff; transform: scale(1.03); }
/* Browse is the first row: a compact strip, icon beside the name */
.hc.hc-t .hc-art { aspect-ratio: 2.5 / 1; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 0 16px; }
.hc.hc-t .hc-art b { -webkit-line-clamp: 2; }
.nf-row-tile .nf-h { margin-bottom: 6px; }

/* ── live TV controls (same frame as films & series) ── */
.vctl.live .vc-title { max-width: none; min-width: 0; gap: 3px; }
.lc-id { display: flex; align-items: center; gap: clamp(8px, 1.2cqw, 16px); min-width: 0; flex: 1; }
.lc-logo { flex: none; width: clamp(42px, 5.6cqw, 80px); aspect-ratio: 4 / 3; border-radius: clamp(7px, .8cqw, 12px); background: rgba(255, 255, 255, .94); display: grid; place-items: center; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.lc-logo img { width: 84%; height: 84%; object-fit: contain; }
.lc-logo .mono { color: #1b1b1a; font-size: clamp(11px, 1.3cqw, 17px); font-weight: 700; }
.lc-tag { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vctl.live .vc-title .lc-tag span { font-size: clamp(11px, 1.3cqw, 18px); color: rgba(255, 255, 255, .86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-live { flex: none; font-style: normal; font-size: clamp(9px, .9cqw, 12px); font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: var(--live); color: #fff; }
.lc-live.off { background: rgba(255, 255, 255, .25); }
.vctl.live .vc-title b.lc-prog { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-score { flex: none; align-self: center; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: clamp(12px, 1.3cqw, 18px); }
.lc-score .crest { width: 1.4em; height: 1.4em; object-fit: contain; font-size: .7em; }
.lc-score .lc-sc-n { font-variant-numeric: tabular-nums; padding: 0 2px; }
.lc-score i { font-style: normal; color: #ff8a7e; font-weight: 600; font-size: .85em; }
.lc-time[hidden], .lc-score[hidden], .lc-strip[hidden], .lc-q[hidden], .lc-two[hidden] { display: none; }
.lc-bar { cursor: default; pointer-events: none; }
.lc-bar .vc-prog { background: var(--live); }
.lc-next { font-size: clamp(11px, 1.15cqw, 16px); color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }
.lc-next:empty { display: none; }
.lc-golive { gap: 7px; padding: 0 10px; font-size: clamp(11px, 1.1cqw, 15px); letter-spacing: .04em; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 69, 58, .28); }
.lc-golive:not(.behind) { pointer-events: none; }
.lc-golive.behind { background: rgba(255, 255, 255, .16); letter-spacing: 0; }
.lc-golive.behind .lc-dot { background: rgba(255, 255, 255, .55); box-shadow: none; }
.vctl.live .vc-mid .lc-zap .i { stroke-width: 2; }
/* the channel strip takes the place of the bottom bar */
.vctl.strip-on .vc-bot, .vctl.strip-on .vc-mid { visibility: hidden; }
.vctl.strip-on::after { height: 62%; }
.lc-strip { grid-row: 3; align-self: end; display: flex; gap: clamp(8px, 1cqw, 14px); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  padding: 10px clamp(10px, 2.4cqw, 34px) clamp(12px, 2cqw, 28px); scroll-padding-inline: clamp(10px, 2.4cqw, 34px); touch-action: pan-x; }
.lc-strip::-webkit-scrollbar { display: none; }
.lc-sc { flex: none; scroll-snap-align: start; width: clamp(160px, 20cqw, 280px); display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; color: #fff;
  background: rgba(22, 22, 21, .74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .15s ease; }
.lc-sc.on { box-shadow: inset 0 0 0 2px var(--live); }
.lc-sc:hover { background: rgba(40, 40, 38, .8); }
.lc-sc:focus { outline: none; }
.lc-sc:focus-visible, .tv .lc-sc:focus { box-shadow: 0 0 0 3px #fff; transform: scale(1.04); }
.lc-sc-logo { grid-row: span 2; width: clamp(42px, 4.6cqw, 60px); aspect-ratio: 4 / 3; border-radius: 7px; background: rgba(255, 255, 255, .94); display: grid; place-items: center; overflow: hidden; }
.lc-sc-logo img { width: 84%; height: 84%; object-fit: contain; }
.lc-sc-logo .mono { color: #1b1b1a; font-size: 12px; font-weight: 700; }
.lc-sc b { font-size: clamp(12px, 1.2cqw, 16px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-sc-t { font-size: clamp(11px, 1.05cqw, 14px); color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-sc-bar { grid-column: 1 / -1; display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.lc-sc-bar i { display: block; height: 100%; background: var(--live); }
.lc-empty { color: rgba(255, 255, 255, .8); font-size: 14px; padding: 8px 0; }
/* phones & tablets: the controls own touches on the video (swipes change channel) */
@media (pointer: coarse) { .vctl.live { touch-action: none; } .vctl.live .lc-strip { touch-action: pan-x; } }
.screen.fill video { object-fit: cover; }
.app[data-stage="mini"] .vctl.live .vc-bot, .app[data-stage="mini"] .vctl.live .vc-tools, .app[data-stage="mini"] .vctl.live .lc-zap, .app[data-stage="mini"] .vctl.live .lc-strip, .app[data-stage="mini"] .vctl.live .lc-score { display: none; }
@container (max-width: 520px) {
  .vctl.live .vc-right .vc-lbl:not(.lc-qlbl), .vctl.live .lc-golive.behind .vc-lbl { display: none; }
  .vctl.live .lc-golive.behind::after { content: "Live"; }
  .lc-score b:not(.lc-sc-n) { display: none; }
}
@container (max-width: 380px) {
  .vctl.live .vc-title { display: flex; }
  .vctl.live .lc-next, .vctl.live .lc-logo { display: none; }
}
/* Quality list */
.q-list { display: flex; flex-direction: column; gap: 6px; }
.q-row { display: grid; grid-template-columns: auto 1fr 22px; align-items: center; gap: 2px 12px; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.q-row:hover { background: rgba(255, 255, 255, .07); }
.q-row.on { box-shadow: inset 0 0 0 2px var(--accent); }
.q-row .i { grid-column: 3; width: 20px; height: 20px; color: var(--accent); }
.q-main { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.q-sub { font-size: 12.5px; color: var(--dim); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--dim); }
.q-tag.bad { background: color-mix(in srgb, var(--live) 22%, transparent); color: #ff8a7e; }
.q-row:focus { outline: none; } .q-row:focus-visible, .tv .q-row:focus { box-shadow: 0 0 0 3px #fff; }

/* channel logos: the tv-logos ones are wide and drawn for dark backgrounds, so the tiles are dark and wide */
.lc-logo, .lc-sc-logo { background: rgba(18, 18, 17, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lc-logo { aspect-ratio: 16 / 10; width: clamp(56px, 7cqw, 104px); }
.lc-logo .mono, .lc-sc-logo .mono { color: #fff; }
.lc-sc-logo { aspect-ratio: 16 / 10; width: clamp(52px, 5.4cqw, 72px); }
.lc-logo img, .lc-sc-logo img { width: 80%; height: 72%; }
.hc-logo { width: 54%; aspect-ratio: 16 / 10; }
.hc-logo img { width: 80%; height: 70%; }
.nf-art-logo { aspect-ratio: 16 / 11; width: min(100%, 360px); }
.nf-art-logo img { width: 74%; height: 62%; }
.np-logo { width: 60px; height: 38px; }
.q-modes { margin: 0 0 8px; }
.q-why { margin: 0 0 12px; }
.q-row[disabled] { opacity: .45; cursor: not-allowed; }
.q-more { align-self: flex-start; margin-top: 4px; }
/* picture & sound badges: DOLBY VISION, DOLBY ATMOS, DTS-HD MA, HDR10 */
.badge.fmt { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 10.5px; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); color: #fff; }
.badge.fmt.dolby { background: rgba(255, 255, 255, .92); color: #111; box-shadow: none; }
.np-note { font-size: 12px; color: var(--dim); margin-top: 6px; }
/* Sound chip on the controls, red when nothing is heard */
.vc-snd .vc-lbl { max-width: 26cqw; overflow: hidden; text-overflow: ellipsis; }
.vc-snd.quiet { background: color-mix(in srgb, var(--live) 85%, transparent); }
.vc-snd[hidden] { display: none; }
.np-quiet { display: inline-flex; align-items: center; gap: 6px; color: #ff8a7e; font-weight: 600; padding: 0; }
.np-quiet .i { width: 15px; height: 15px; }
.snd-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.snd-st { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--dim); }
.snd-st.ok { color: #7ee2a0; background: rgba(48, 209, 88, .14); }
.snd-st.bad { color: #ff8a7e; background: color-mix(in srgb, var(--live) 22%, transparent); }
.snd-h { font-size: 13px; color: var(--dim); font-weight: 600; margin: 14px 0 6px; }
@container (max-width: 520px) { .vc-snd .vc-lbl { display: none; } .vc-snd.quiet .vc-lbl { display: inline; } }
/* smart zoom eases in; Fill covers the screen */
.screen video { transition: transform .45s var(--ease); transform-origin: 50% 50%; }
.screen.fill video { object-fit: cover; }
/* full screen with one picture: the screen is the whole display, whatever its shape (16:9, 21:9 ultrawide, 32:9…) */
.screens:fullscreen[data-n="1"] { display: block; }
.screens:fullscreen[data-n="1"] .screen, .screen:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }

/* Channel logos: the image is sized against its tile, whatever its own shape (wide, square, or taller than
   wide like Channel 5 or Al Jazeera), and centred both ways. Percentage max-heights didn't resolve inside
   tiles sized by aspect-ratio, so square and tall logos spilled out of the bottom. */
.ch-logo, .np-logo, .hc-logo, .lc-logo, .lc-sc-logo, .nf-art-logo, .air-logo { position: relative; }
.ch-logo > img, .np-logo > img, .hc-logo > img, .lc-logo > img, .lc-sc-logo > img, .nf-art-logo > img, .air-logo > img {
  position: absolute; inset: 0; margin: auto; max-width: none; max-height: none; object-fit: contain; }
.ch-logo > img { width: 72%; height: 66%; }
.np-logo > img { width: 82%; height: 76%; }
.hc-logo > img { width: 80%; height: 70%; }
.lc-logo > img, .lc-sc-logo > img { width: 80%; height: 72%; }
.nf-art-logo > img { width: 74%; height: 62%; }
.air-logo > img { width: 76%; height: 70%; }
/* a dark logo on a see-through background gets a light tile so it can be read */
.logo-light { background: linear-gradient(160deg, #f3f1ec, #dcd9d2) !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08) !important; }
