/* Ziggy iPTV Network — Phase 1 player styles.
   Loads AFTER /tokens.css (generated from design/design-system/tokens.json — do not edit, do not
   duplicate its values here) and /fonts/fonts.css (self-hosted OFL faces, PRD NFR4).

   The `error` pair is the ZIG-2 proposed token (handoff mocks/DECISIONS.md), now in tokens.json
   with the rest of the palette. The one cold colour on screen: first line + top rule of a Notice,
   and the status line's error variant. Never a fill, never a glow, never a border on something
   focusable.

   Target engine: Chromium 53 (LG UK6950PLB / webOS 4.0). No CSS grid, no flex `gap`, no `inset`,
   no position:sticky, no aspect-ratio, no <script type=module>. Flexbox/inline-block + margins.
   Settings form styles live in settings.css only. */

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-terminal);
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow: hidden;
}

/* The TV stage is a fixed 1920x1080 design surface; player.js scales it to the reported
   viewport with transform: scale() so the title-safe insets survive whatever CSS size the
   LG browser hands us (handoff rule: scale the whole UI, don't reflow it). */
.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--ground);
}

/* CRT scanlines: menus, notices and dark screens only — never over the picture. */
.scan {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--scanline-ink) 0, var(--scanline-ink) 1px, transparent 1px, transparent 3px);
}

/* ---------- playback ---------- */
.picture {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--ground);
}
.picture video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--ground);
}
/* placeholder so the UI can be driven without a stream (mock/probe) */
.picture .placeholder {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(135deg, var(--sky-top) 0, var(--sky-top) 28px, var(--sky-violet) 28px, var(--sky-violet) 56px);
}
.picture .placeholder span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  opacity: var(--fine-print-alpha);
  white-space: nowrap;
}
.picture.hidden-video video { visibility: hidden; }

/* info banner over playback: auto on tune, 5s, any key restarts */
.banner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 420px;
  display: none;
  background: linear-gradient(to top, var(--ground) 0%, var(--ground-a85) 45%, var(--ground-a0) 100%);
}
.banner.on { display: block; }
.banner .in {
  position: absolute;
  left: var(--safe-x);
  bottom: var(--safe-y);
}
.banner .num {
  display: inline-block;
  vertical-align: top;
  font-size: var(--type-body);
  color: var(--marquee);
  letter-spacing: 0.08em;
  margin-right: 32px;
}
.banner .meta { display: inline-block; width: 960px; vertical-align: top; }
.banner .name { font-size: var(--type-body); color: var(--ink); }
.banner .now, .banner .next { font-size: var(--type-small); color: var(--ink-muted); margin-top: 8px; }
.banner .now .t, .banner .next .t { margin-left: 16px; }
/* Progress tracks (banner, list rows, preview, search cards): a ground track in a 1px ink-muted
   frame, so the pink fill clears 3:1 against the track (6:1) and the track's end is visible on
   any surface (ink-muted is 9.7:1 on sky-violet) — the proportion never rests on colour alone. */
.banner .bar {
  height: 4px;
  background: var(--ground);
  box-shadow: 0 0 0 1px var(--ink-muted);
  margin: 12px 0 4px;
  position: relative;
  width: 100%;
}
.banner .bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--neon-pink);
  box-shadow: var(--glow-pink);
}


/* wayfinding: bottom-left inside safe area; never a D-pad stop */
.wayfind {
  position: absolute;
  left: var(--safe-x);
  bottom: var(--safe-y);
  margin: 0;
  font-size: var(--type-small);
  color: var(--ink-muted);
  z-index: 2;
}
.wayfind a {
  color: var(--ink-muted);
  text-decoration: none;
}
.wayfind a:focus {
  outline: none;
  text-decoration: underline;
  color: var(--ink);
}

/* key hints: words only, bottom right inside the safe area.
   Hidden until remote/key/click activity; player.js toggles .is-hidden. */
.hints {
  position: absolute;
  right: var(--safe-x);
  bottom: var(--safe-y);
  font-size: var(--type-small);
  color: var(--ink-muted);
  z-index: 2;
  opacity: 1;
  transition: opacity 180ms ease;
}
.hints.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.hints span { margin-left: 40px; }
.hints span:first-child { margin-left: 0; }
.hints b { color: var(--ink); font-weight: 400; margin-right: 10px; }

/* a QR code for the phone under the body (a trailer's YouTube address): the size of the search
   pairing code, on a light square; never focusable. player.js shows it only when it has one. */
.notice-qr { width: 200px; height: 200px; margin: 0 0 36px; background: var(--ink); }
.notice-qr svg { display: block; width: 100%; height: 100%; }
.btns .btn { display: inline-block; margin-right: 32px; }
.btns .btn:last-child { margin-right: 0; }
/* ALLOT-1413: a row of buttons that wraps must not have its lines touch (the focused one grows
   6%), so every button carries a bottom margin and the row takes it back at its foot. More than
   two buttons stack instead (.stack, set by showNotice): one per line, full width, so three long
   labels ("Remove from Continue watching") can never share a line or run into each other. A label
   wider than the box wraps inside its own button. Up and Down walk a stack; Left and Right a row.
   No flex gap or grid: Chromium 53. */
#notice-btns, .vod-btns { margin-bottom: -16px; }
#notice-btns .btn, .vod-btns .btn { margin-bottom: 16px; }
#notice-btns.stack .btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-right: 0;
  white-space: normal;
  word-wrap: break-word;
}

/* word button (proposed) */

/* ---------- channel list (interim grid) ---------- */
.gridscreen {
  position: absolute;
  top: var(--safe-y); right: var(--safe-x); bottom: var(--safe-y); left: var(--safe-x);
  display: none;
}
/* The pack list, Guide and Events lists sit on an opaque ground: the picture (or its placeholder)
   never shows behind a list. The box keeps the title-safe insets, so a spread shadow in ground
   carries the ground out over the 96/54 band to the stage edge. */
.gridscreen.on {
  display: block;
  background: var(--ground);
  box-shadow: 0 0 0 var(--safe-x) var(--ground);
}

/* Shared header: Wordmark at its 320px floor (Wordmark component), title, readout. Static. */
.title-row {
  height: 120px;
  margin: 0 0 10px;
  overflow: hidden;
}
.mark-header {
  float: left;
  width: 320px;
  height: 115px;
  margin: 0 44px 0 -8px;
}
/* Home: the Live / Films / Series chips already say which page this is, so the heading is for
   screen readers only. */
.homescreen .title-row #home-title {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.gridscreen .title-row .title,
.homescreen .title-row .title,
.searchscreen .title-row .title { margin-top: 30px; }

/* The loading ident covers the viewport until player.js hands over. Never focusable or clickable. */
.ident-frame {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--ground);
}
.ident-frame.on { display: block; }
/* ALLOT-1875: the Rewind ident is tapped (the tape starts it) and skipped, so its frame takes pointer events. */
.ident-frame.rewind { pointer-events: auto; }
/* Sits in the ident's clear band between the OPEN 24H sign and the status line. Sized in vmin
   like the ident itself (40px at 1080p), because it lives outside the scaled stage. */
.ident-cta {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 9.2vmin;
  z-index: 101;
  text-align: center;
  pointer-events: none;
}
.ident-cta.on { display: block; }
.ident-cta .btn,
.ident-setup .btn {
  display: inline-block;
  pointer-events: auto;
  font-size: 3.7vmin;
  padding: 0.75vmin 3vmin;
  border-width: 0.2vmin;
  transition: none;
  /* Always the focused thing while it shows (the list underneath is covered). It carries the
     ring itself rather than the .focus class, which the list's focus writer clears. */
  border-color: var(--neon-pink);
  box-shadow: var(--focus-ring);
}
.gridscreen .title,
.homescreen .title,
.searchscreen .title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--type-title);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: inline-block;
  transform: skewX(-8deg);
  margin: 0;
  vertical-align: top;
}
.cat-readout {
  float: right;
  margin: 48px 0 0 0;
  font-size: var(--type-small);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.stage.has-chrome .cat-readout {
  /* room for Back · Home · Search on the right of the title row, and a gap after the Quality chip */
  margin-right: 440px;
  margin-left: 12px;
  max-width: 36%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Home has no visible heading (the Live / Films / Series chips say where you are), so its readout
   sits on the right, under Back · Home · Search. */
.stage.has-chrome .homescreen .cat-readout {
  /* the right margin is the last nav button's padding and border, so the words end together */
  margin: 76px 27px 0 12px;
  max-width: 50%;
  text-align: right;
}
/* A pack title ('SKY SPORTS PREMIER LEAGUE' is 1073px at 56px) ends in an ellipsis instead of
   running under Back · Home · Search: title (452 + 580) + gap 36 + Quality chip (at most 320) stops
   short of the nav at 1415. The readout gives way on its own (catReadoutFit). The clip reaches 8px
   below the 61.6px line so descenders (g j p q y) stay whole; the negative margin keeps the row,
   and the skew still pivots on the line's middle (61.6 / 2), so no letter moves. */
html[data-surface="tv"] .gridscreen .title { max-width: 580px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-bottom: 8px; margin-bottom: -8px; transform-origin: 50% 30.8px; }
html[data-surface="tv"] .gridscreen .quality { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
/* The Raspberry Pi kiosk's Turn off (ZIG-38) is one more nav button, 143px and a 12px gap, so the
   nav starts at 1260: the readout's room and the pack title give way by the same 155px
   (452 + 425 + 36 + 320 = 1233). */
.stage.has-chrome.has-power .cat-readout { margin-right: 595px; }
/* Home's readout sits under the nav, not beside it: it keeps its own right edge */
.stage.has-chrome.has-power .homescreen .cat-readout { margin-right: 27px; }
html[data-surface="tv"] .stage.has-power .gridscreen .title { max-width: 425px; }
/* ALLOT-1522 G11: the TV's readouts (title, list, person) sit on the second line of the title
   row, right-aligned under the nav as Home's does, so nothing but the nav and the profile slot
   uses the nav's line. With the profile button (ALLOT-1396, a fixed 212px + 12px gap = 224px
   left of the nav, so the nav starts at 1190, or 1036 with Turn off) the pack title and the
   Quality chip give way: 452 + 400 + 36 + 278 = 1166, and 452 + 300 + 36 + 248 = 1036. */
html[data-surface="tv"] .stage.has-chrome .vodscreen .cat-readout,
html[data-surface="tv"] .stage.has-chrome .gridscreen .cat-readout,
html[data-surface="tv"] .stage.has-chrome .personscreen .cat-readout {
  position: absolute;
  top: 76px;
  right: 27px;
  float: none;
  margin: 0;
  max-width: 631px;
  text-align: right;
}
html[data-surface="tv"] .gridscreen .title-row,
html[data-surface="tv"] .personscreen .title-row { position: relative; }
html[data-surface="tv"] .stage.has-profile .gridscreen .title { max-width: 400px; }
html[data-surface="tv"] .stage.has-profile .gridscreen .quality { max-width: 278px; }
html[data-surface="tv"] .stage.has-profile.has-power .gridscreen .title { max-width: 300px; }
html[data-surface="tv"] .stage.has-profile.has-power .gridscreen .quality { max-width: 248px; }

/* Permanent browse nav (words only — brand book): title-safe top right on every non-picture screen. */
.chrome-nav {
  display: none;
  position: absolute;
  top: var(--safe-y);
  right: var(--safe-x);
  z-index: 50;
  height: 64px;
  white-space: nowrap;
  font-size: 0;
}
.chrome-nav.on { display: block; }
.chrome-btn {
  display: inline-block;
  vertical-align: top;
  min-width: 128px;
  height: 64px;
  margin-left: 12px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-tab);
  font-family: var(--font-terminal);
  font-size: var(--type-small);
  line-height: 60px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-align: center;
  background: transparent;
  box-sizing: border-box;
}
.chrome-btn:first-child { margin-left: 0; }
.chrome-btn[hidden] { display: none; }
/* The one "showing" mark (catalogue IA rule 7): ink words over a 4px ink-muted rule, never a
   box. The box, the pink ring and the sky-violet fill belong to focus alone, so exactly one
   thing on screen ever looks focused. Chips, rail items and search keys use the same mark. */
.chrome-btn.is-here { color: var(--ink); background-image: linear-gradient(var(--ink-muted), var(--ink-muted)); background-repeat: no-repeat; background-size: 50% 4px; background-position: center bottom 8px; }
.chrome-btn.focus {
  color: var(--ink);
  border-color: var(--neon-pink);
  box-shadow: var(--focus-ring);
  background: var(--sky-violet);
}

/* tiles viewport: absolute box, scrollTop-driven; bleed padding for focus ring */
/* six whole rows under the interim chip stack; the height is a multiple of the row pitch so a
   clipped row never peeks above the footer */
.tiles {
  position: absolute;
  top: 246px;
  left: 0;
  width: 1136px;
  height: 576px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ---------- channel list (slice D): one row per channel, whole rows only ----------
   The founder-locked list guide (ZIG-2 mock 4D): logo, number, name over now (title, times,
   progress), next. 40px primary, 32px supporting, nothing smaller. Rows are static: focus is a
   surface change and the ring, never a scale (a 1100px row scaling blurs the text). */
.tile {
  display: flex;
  align-items: center;
  height: 96px;
  box-sizing: border-box;
  padding: 0 24px 0 16px;
  margin: 0;
  border: 2px solid transparent;
  border-bottom-color: var(--sky-violet);
  font-size: var(--type-lead);
  overflow: hidden;
}
.tile.focus { background: var(--sky-violet); border-color: var(--neon-pink); box-shadow: var(--focus-ring); }
/* the channel on air: a 6px ink-muted bar down the row's leading edge, a shape as well as a
   colour, and never a second box beside the ring */
.tile.playing { box-shadow: inset 6px 0 0 var(--ink-muted); }
.tile.playing.focus { box-shadow: inset 6px 0 0 var(--ink-muted), var(--focus-ring); }

/* fixed logo well: letterform first, the logo swaps in on load; nothing reflows.
   The bitmap is pre-formatted (contain + inset) into the tray's pixel size in player.js, so
   the <img> always fills the well 1:1 — CSS must not re-stretch a raw upstream asset. */
.well {
  position: relative;
  display: block;
  flex: none;
  width: 120px;
  height: 68px;
  overflow: hidden;
  background: var(--sky-top);
}
/* The fill is wider than the well, so the skew leans the letters without cutting dark corner
   slivers out of the slab: skewX(-8deg) moves each corner by 0.07 of the well's height (5px on
   a 68px well, 10px on the 136px preview), and 8% of the width is more than that on every well. */
.well .lf {
  position: absolute;
  top: 0; left: -8%;
  width: 116%; height: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 68px;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
  transform: skewX(-8deg);
}
.well img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
.well.has-logo .lf { visibility: hidden; }
.well.has-logo img { visibility: visible; }

.tile .num { flex: none; width: 96px; margin-left: 24px; font-size: 32px; color: var(--marquee); letter-spacing: 0.06em; }
.tile .main { flex: 1 1 auto; min-width: 0; margin-left: 24px; }
.tile .num + .main { margin-left: 0; }
.tile .name { margin: 0; font-size: var(--type-lead); line-height: 44px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .nowline { margin: 0; font-size: 32px; line-height: 34px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .times { margin-left: 20px; }
.tile .bar { display: block; width: 320px; height: 4px; margin-top: 2px; background: var(--ground); box-shadow: 0 0 0 1px var(--ink-muted); }
.tile .bar i { display: block; height: 4px; width: 0; background: var(--neon-pink); }
.tile .side { flex: none; width: 330px; margin-left: 24px; text-align: right; }
.tile .next { margin: 0; font-size: 32px; line-height: 36px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tag { margin: 0; font-size: 32px; line-height: 36px; color: var(--ink-muted); letter-spacing: 0.06em; }

/* ---------- dwell preview panel: fixed size, never focusable, never video ---------- */
.preview {
  position: absolute;
  top: 246px;
  right: 0;
  width: 560px;
  height: 576px;
  box-sizing: border-box;
  padding: 32px;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  overflow: hidden;
  visibility: hidden;
}
.preview.on { visibility: visible; }
.preview p { margin: 0; }
.preview .pv-well .well { width: 240px; height: 136px; }
.preview .pv-well .well .lf { font-size: 60px; line-height: 136px; }
.preview .pv-name { margin-top: 20px; font-size: var(--type-lead); line-height: 44px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .pv-now { margin-top: 12px; font-size: var(--type-lead); line-height: 44px; color: var(--ink); max-height: 88px; overflow: hidden; }
.preview .pv-times, .preview .pv-next, .preview .pv-ends, .preview .pv-ctx { font-size: 32px; line-height: 38px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .pv-bar { display: block; width: 100%; height: 4px; margin: 6px 0 10px; background: var(--ground); box-shadow: 0 0 0 1px var(--ink-muted); }
.preview .pv-bar i { display: block; height: 4px; width: 0; background: var(--neon-pink); }
/* the only running text on the TV: four lines at most */
.preview .pv-desc { font-size: 32px; line-height: 36px; max-height: 144px; overflow: hidden; color: var(--ink); margin: 4px 0 8px; }
.preview .pv-ctx { margin-top: 8px; }

.tile .cap {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  font-size: var(--type-small);
  color: var(--ink-muted);
  text-align: left;
}

.tiles-status {
  position: absolute;
  top: 246px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 48px 0 0;
  font-size: 37px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-shadow: 0 0 11px var(--neon-pink);
  text-align: center;
  pointer-events: none;
  z-index: 1;
}
.tiles-status::after { content: "_"; }

.empty {
  position: absolute;
  top: 246px;
  left: 0;
  right: 0;
  font-size: var(--type-body);
  color: var(--ink-muted);
  padding: 120px 0 0;
  text-align: center;
  margin: 0;
}

/* ---------- shop-dark screens (signed out / start-up failure) ---------- */
.dark {
  position: absolute;
  top: var(--safe-y); right: var(--safe-x); bottom: var(--safe-y); left: var(--safe-x);
  display: none;
  text-align: center;
}
.dark.on { display: block; }
.dark .centre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
}
.dark svg, .dark .mark { width: 760px; height: auto; display: block; margin: 0 auto 40px; }
.neon {
  display: inline-block;
  font-family: var(--font-neon);
  font-size: 48px;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  padding: 0.3em 1.1em 0.2em;
  border: 3px solid var(--neon-red);
  border-radius: var(--radius-pill);
  color: var(--neon-red-core);
  text-shadow: 0 0 4px var(--ink), 0 0 14px var(--neon-red), 0 0 40px var(--neon-red), 0 0 80px var(--neon-red-deep);
  box-shadow: var(--glow-neon-red);
  margin-bottom: 40px;
}
.neon.off { color: var(--neon-red-deep); border-color: var(--neon-red-deep); text-shadow: none; box-shadow: none; opacity: 0.55; }
.dark .line { font-size: var(--type-small); color: var(--ink-muted); max-width: 1100px; margin: 24px auto 40px; }
.dark .statusline { margin-bottom: 8px; }
/* the small print under the unlit sign: the joke, never an instruction */
.dark .fine[hidden] { display: none; }
.dark .fine { font-size: var(--type-small); color: var(--ink-muted); letter-spacing: 0.06em; margin: 32px auto 0; }

/* ---------- boot (pre-playlist; the ident itself is Phase 2) ---------- */
.boot {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: none;
}
.boot.on { display: block; }
.boot .statusline {
  position: absolute;
  left: var(--safe-x);
  bottom: var(--safe-y);
}

@media (prefers-reduced-motion: reduce) {
  .tile, .btn, .cat, .region, .hints { transition: none; }
}

/* TV onboarding card: over the ident frame, or over the shop-dark screen. Outside the scaled
   stage, so vmin like the ident (3vmin is 32px at 1080p; nothing under 28px). One ring: Try again. */
.ident-setup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 102;
  pointer-events: none;
}
.ident-setup.on { display: block; }
.ident-setup .card {
  position: absolute;
  top: 50%; left: 50%;
  width: 122vmin;
  /* sits over the Wordmark and clear of the OPEN 24H sign and the status line beneath it */
  margin: -34.5vmin 0 0 -61vmin;
  padding: 4vmin;
  box-sizing: border-box;
  background: var(--ground);
  border: 0.2vmin solid var(--sky-plum);
  border-top: 0.4vmin solid var(--neon-pink);
  font-family: var(--font-terminal);
  letter-spacing: 0.04em;
  overflow: hidden;
}
.ident-setup .qr { float: left; width: 40vmin; height: 40vmin; }
.ident-setup .qr svg { display: block; width: 100%; height: 100%; }
.ident-setup .txt { margin-left: 45vmin; }
.ident-setup p { margin: 0; }
.ident-setup .body { font-size: 3vmin; line-height: 1.25; color: var(--ink); }
.ident-setup .pin-label { margin-top: 2.6vmin; font-size: 3vmin; color: var(--ink-muted); }
.ident-setup .pin { font-size: 8vmin; line-height: 1; color: var(--marquee); letter-spacing: 0.08em; }
.ident-setup .host { margin: 1.4vmin 0 3vmin; font-size: 3vmin; color: var(--ink-muted); }
.gridscreen.pack-mode .tiles,
.gridscreen.pack-mode .preview { top: 150px; height: 672px; }
.gridscreen.pack-mode .tiles-status,
.gridscreen.pack-mode .empty { top: 150px; }

/* ---------- Live Home: shelves of pack cards (slice E) ----------
   Opaque ground over the whole stage. Shelf pitch 240 (48 label + 168 card + 24 gap), three
   shelves in view, four 384px cards across. Labels are not focusable; cards are static. */
.homescreen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: var(--safe-y) var(--safe-x);
  box-sizing: border-box;
  /* Shop sky behind the chrome; shelves sit back on ground so posters stay readable. */
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-violet) 24%, var(--ground) 46%);
  display: none;
}
.homescreen.on { display: block; }
.home-rows {
  position: absolute;
  top: 184px;
  left: var(--safe-x);
  right: var(--safe-x);
  height: 720px;
  overflow: hidden;
}
.shelf { height: 240px; box-sizing: border-box; overflow: hidden; }
.shelf-label { margin: 0; height: 48px; line-height: 48px; white-space: nowrap; }
.shelf-label .name { font-size: var(--type-lead); color: var(--ink-muted); }
.shelf-label .scent { margin-left: 24px; font-size: 32px; color: var(--ink-muted); }
.shelf.showing .shelf-label .name { color: var(--ink); }
/* A long label ('Because you watched …' with a provider title) ends in an ellipsis and keeps its
   count: the name gives way, the scent does not. Baseline alignment keeps both where they sat. */
html[data-surface="tv"] .shelf-label { display: flex; align-items: baseline; }
html[data-surface="tv"] .shelf-label .name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html[data-surface="tv"] .shelf-label .scent { flex: none; }
.cards { height: 184px; padding: 8px 8px 0; margin: 0 -8px; overflow: hidden; white-space: nowrap; font-size: 0; }
/* 1920 stage: room for the focus glow, which reaches 34px past a card (4px ring, 28px blur, 6px
   spread), so it fades out on every side instead of stopping at the strip's edge (VIS-N5). The
   negative margins cancel the padding, so every card stays where it was (8px down, 0 in) and a
   shelf still adds 192px. The shelf lets the strip's room reach under the next label. Across,
   42px of room is clear of the next card: the 64px gap keeps the card outside the window out
   of it. Poster strips and the title detail get the same room; the filtered grid is its own
   scroller and keeps its box.
   The rows window opens 42px each side the same way (margin out, padding back in), so the
   strips' side room is not cut at the title-safe line: every row, label and card stays at
   96-1824, and only a focus glow (the first or fourth card's, the Region control's) reaches
   past it. Margins, not left/right, because the Films and Series rules reset left. */
html[data-surface="tv"] .home-rows { margin-left: -42px; margin-right: -42px; padding-left: 42px; padding-right: 42px; }
html[data-surface="tv"] .home-rows .shelf:not(.browse-grid) { overflow: visible; }
html[data-surface="tv"] .home-rows .cards:not(.pcards) { margin: -26px -42px -34px; padding: 34px 42px; height: 184px; }
.pack {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 384px;
  height: 168px;
  margin-right: 64px;
  padding: 16px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-tile);
  white-space: normal;
  overflow: hidden;
}
.pack.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.pack .cluster { height: 56px; white-space: nowrap; font-size: 0; }
.pack .cluster .well { display: inline-block; width: 56px; height: 56px; margin-right: -12px; border: 2px solid var(--sky-top); box-sizing: border-box; }
/* Two Orbitron letters inside the 52px well (a pack's letterform is two letters, founder D6), set
   as large bold text: Orbitron 900 at 20px is over the 18.7px bold threshold, so ground on
   letterform-3 (5.6:1) passes AAA for large text (4.5:1; founder D7, A11Y-15). 20px is the size
   at which the widest pair, 'WW', still fits whole: 48px with its tracking, 2px clear each side
   of the skew. 21px leaves under 1px; the old 16px was for three letters. */
.pack .cluster .well .lf { font-size: 20px; line-height: 52px; }
.pack .name { margin: 8px 0 0; font-size: var(--type-lead); line-height: 44px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack .scent { margin: 0; font-size: 32px; line-height: 34px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack .tag { position: absolute; top: 16px; right: 16px; font-size: 32px; line-height: 36px; color: var(--ink-muted); }

/* one Region control, not a row of codes */
.shelf.region-row { padding-top: 56px; }
.region-ctl {
  border-radius: var(--radius-button);
  display: inline-block;
  vertical-align: top;
  height: 96px;
  padding: 0 32px;
  line-height: 92px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  white-space: nowrap;
}
.region-ctl.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.region-ctl .name { font-size: var(--type-lead); color: var(--ink); }
.region-ctl .scent { margin-left: 32px; font-size: 32px; color: var(--ink-muted); }
.region-list {
  display: none;
  position: absolute;
  top: 184px;
  left: var(--safe-x);
  width: 760px;
  height: 672px;
  overflow: hidden;
  background: var(--ground);
  border: 2px solid var(--sky-plum);
  border-top: 4px solid var(--neon-pink);
  box-sizing: border-box;
  z-index: 2;
}
.region-list.on { display: block; }
/* 1920 stage: the sheet reaches the foot of the Live rows window (932), so no card frame or
   half-cut line of Home shows under it (TVUX-N6), and it holds eight whole options (4px top rule,
   8 x 96, 2px foot): a 748px sheet from 184 would show 70px of a ninth. From 158 it also covers
   the Section chips whole instead of leaving their top edge above it. */
html[data-surface="tv"] .region-list { top: 158px; height: 774px; }
.region-opt { height: 96px; line-height: 92px; padding: 0 32px; box-sizing: border-box; border: 2px solid transparent; white-space: nowrap; overflow: hidden; }
.region-opt.focus { background: var(--sky-violet); border-color: var(--neon-pink); box-shadow: var(--focus-ring); }
.region-opt .name { font-size: var(--type-lead); color: var(--ink); }
.region-opt .scent { margin-left: 32px; font-size: 32px; color: var(--ink-muted); }

/* what is in the focused pack; fixed height whether empty or full */
.home-sample {
  position: absolute;
  left: var(--safe-x);
  right: var(--safe-x);
  bottom: 104px;
  height: 36px;
  margin: 0;
  font-size: 32px;
  line-height: 36px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the one quality choice for a pack with several tier variants (never a second row of packs) */
.quality {
  display: inline-block;
  vertical-align: top;
  margin: 34px 0 0 36px;
  padding: 0 24px;
  height: 56px;
  line-height: 52px;
  box-sizing: border-box;
  font-size: 32px;
  color: var(--ink-muted);
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  white-space: nowrap;
}
.quality.focus { color: var(--ink); border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
/* starts hidden (index.html); qualityPaint()'s inline style.display still wins once it runs */
.quality[hidden] { display: none; }


/* ---------- Recent and Favourites: channel tiles on Home (five across) ---------- */
.ctile {
  display: inline-block;
  vertical-align: top;
  width: 384px;
  height: 168px;
  margin-right: 64px;
  padding: 12px 16px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-tile);
  white-space: normal;
  overflow: hidden;
}
.ctile.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.ctile .head { height: 54px; white-space: nowrap; overflow: hidden; }
.ctile .head .well { display: inline-block; vertical-align: top; width: 96px; height: 54px; }
.ctile .head .well .lf { font-size: 26px; line-height: 54px; }
.ctile .head .scent { display: inline-block; vertical-align: top; margin-left: 16px; font-size: 32px; line-height: 54px; color: var(--ink-muted); }
/* 1920 stage: the scent has the 236px beside the 96px well (348 - 96 - 16); anything longer
   ends in an ellipsis instead of being sliced through a glyph by the head's clip (TVUX-N1) */
html[data-surface="tv"] .ctile .head .scent { max-width: 236px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ALLOT-1522 G8: busy Home's playing tile names the device in full, on two lines (tv-7) */
html[data-surface="tv"] .ctile.is-busy-now .head .scent { white-space: normal; font-size: 26px; line-height: 27px; max-height: 54px; }
.ctile .name { margin: 6px 0 0; font-size: var(--type-lead); line-height: 40px; height: 80px; color: var(--ink); overflow: hidden; word-wrap: break-word; }
.shelf.is-empty { height: 120px; }
.shelf-empty { margin: 24px 0 0; font-size: 32px; line-height: 36px; color: var(--ink-muted); }
/* the star is the one glyph Ziggy draws; marquee yellow like a number, never a badge colour */
.star { color: var(--marquee); }
/* the status line's error variant: the only place the error colour appears here */
.home-sample.is-err { color: var(--error); }
.gridscreen .home-sample { left: 0; right: 0; bottom: 50px; }

/* number entry: the digits being typed, top-right inside the safe area */
.num-entry {
  position: absolute;
  top: var(--safe-y);
  right: var(--safe-x);
  margin: 0;
  padding: 4px 24px;
  font-size: var(--type-title);
  line-height: 64px;
  letter-spacing: 0.08em;
  color: var(--marquee);
  background: var(--ground);
  border: 2px solid var(--sky-plum);
  z-index: 3;
  display: none;
}
.num-entry.on { display: block; }

/* windowing: spacers stand in for the rows and cards that are not in the DOM */
.row-spacer { display: block; width: 100%; }
.col-spacer { display: inline-block; height: 1px; vertical-align: top; }

/* ---------- Films and Series (zig-3-vod-day-1) ----------
   List type for VOD surfaces: 40px primary, 32px supporting, nothing smaller (redesign review
   §10 #1). tokens.css keeps ui-small at 28px; these surfaces lift it to 32px here. */
.type-ui-list { font-family: var(--font-terminal); font-size: var(--type-lead); line-height: 1.1; font-weight: 400; letter-spacing: 0.04em; }
.homescreen .type-ui-small, .vodscreen .type-ui-small { font-size: 32px; }

/* Section: Live, Films, Series. Search is chrome / Red / Live Region — not a bar above
   the chips (founder, 2026-09-23). Three mode chips share the title-safe width
   (1728px = 1920 − 2×96). A mode switch, so the chip that is showing keeps a quiet
   ink-muted underline (the showing mark, see .chrome-btn.is-here); the box, the pink ring and
   the fill are only ever the focused one. */
/* Pinned above the shelves, never scrolled away: a mode switch nobody can see is not a switch.
   The shelves give up its height only when it is there (a source with no films or series keeps
   the three-shelf Live Home exactly as it was). */
.home-section { position: absolute; top: 176px; left: var(--safe-x); right: var(--safe-x); height: 100px; display: none; }
.homescreen.has-section .home-section { display: block; }
.homescreen.has-section .home-rows { top: 284px; height: 620px; }
/* 1920 stage, Live under Section: the cap is 648, so the first view (Region 240, the empty
   Favourites line 120, a shelf 240) also holds the next shelf's whole label, a sign more shelves
   follow, as on Films and Series (VIS-N7). The window ends at 932, above the sample line (940)
   and the title-safe line; homeClipRows still ends every other mix on a whole row or label. */
html[data-surface="tv"] .homescreen.has-section:not(.has-browse):not(.has-browse-values) .home-rows { height: 648px; }
.shelf.section-row { height: 100px; padding-top: 0; }
.shelf.format-row { height: 140px; padding-top: 8px; }
.shelf.format-row .chips.n4 .chip { width: 23%; min-width: 0; margin-right: 2%; }
/* Browse criteria share one horizontal row under Section so poster shelves keep six across.
   Left/Right move the row; Down reaches titles. See player.js homeKey. */
.home-browse {
  display: none;
  position: absolute;
  top: 176px;
  left: var(--safe-x);
  right: var(--safe-x);
  width: auto;
  height: 96px;
  bottom: auto;
  z-index: 2;
  box-sizing: border-box;
  padding: 6px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  font-size: 0;
}
.homescreen.has-section .home-browse { top: 280px; }
.homescreen.has-browse .home-browse { display: block; }
.homescreen.has-browse .home-rows {
  left: var(--safe-x);
  top: 384px;
  height: 528px;
}
.homescreen.has-browse-values .home-browse-values { display: block; }
.homescreen.has-browse-values.has-browse .home-rows {
  /* value chip strip sits above the shelves in the same column */
}
.home-browse-values {
  display: none;
  position: absolute;
  top: 184px;
  left: var(--safe-x);
  right: var(--safe-x);
  height: 104px;
  z-index: 2;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  font-size: 0;
}
.homescreen.has-section .home-browse-values { top: 384px; }
.homescreen.has-browse-values.has-section .home-rows { top: 496px; height: 416px; left: var(--safe-x); }
.homescreen.has-browse-values:not(.has-section) .home-rows { top: 312px; height: 592px; }
/* 1920 stage, Films and Series: the rail rides 8px higher and the rows under it 16px. With
   two-line poster names (founder D4) a poster shelf is 564px, so the first view under the rail
   holds one whole shelf, label to scent, and ends at 932 as the Live window does, above the
   sample line at 940. The next shelf's label (another 48) no longer fits above that line, so it
   is not shown at all rather than cut; the hints' Up Down still says there are shelves.
   homeClipRows ends every view on a whole shelf. Picking a value keeps the cut at the foot of
   the wells (416: the wells did not move); the filtered grid keeps its own height. */
html[data-surface="tv"] .homescreen.has-section .home-browse { top: 272px; }
html[data-surface="tv"] .homescreen.has-section .home-browse-values { top: 368px; }
html[data-surface="tv"] .homescreen.has-browse .home-rows { top: 368px; height: 564px; }
/* The filtered grid's window holds its label and one whole row of posters (48 + a 296 pitch: the
   262px poster and its glow room below), with or without the value chips above it: two rows need
   592 and there are 564 above the sample line, so a taller window only showed the next row's
   wells cut through (RSP-N8). The grid scrolls a whole row at a time (homeApplyFocus). */
html[data-surface="tv"] .homescreen.is-browse-grid .home-rows { top: 368px; height: 344px; }
html[data-surface="tv"] .homescreen.is-browse-grid.has-browse-values.has-section .home-rows { height: 344px; }
html[data-surface="tv"] .homescreen.has-browse-values.has-section .home-rows { top: 480px; height: 416px; }
.home-browse-values .chip {
  display: inline-block;
  vertical-align: top;
  width: 200px;
  height: 88px;
  margin: 8px 24px 0 0;
  padding: 8px 16px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-chip);
  overflow: hidden;
}
.home-browse-values .chip .name {
  display: block;
  font-size: 32px;
  line-height: 36px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-browse-values .chip .scent {
  display: block;
  font-size: var(--type-small);
  line-height: 32px;
  color: var(--ink-muted);
}
.home-browse-values .chip.showing { background-image: linear-gradient(var(--ink-muted), var(--ink-muted)); background-repeat: no-repeat; background-size: 50% 4px; background-position: center bottom 8px; }
.home-browse-values .chip.focus {
  border-color: var(--neon-pink);
  box-shadow: var(--focus-ring);
  background: var(--sky-violet);
}
.home-browse .rail-item.is-on { background-image: linear-gradient(var(--ink-muted), var(--ink-muted)); background-repeat: no-repeat; background-size: 50% 4px; background-position: center bottom 8px; }
/* 'Clear all' with nothing set: there is nothing to clear, so it rests quiet, never lit */
.home-browse .rail-item.is-idle .name { color: var(--ink-muted); }
.home-browse .rail-head {
  display: inline-block;
  width: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
.home-browse .rail-item {
  display: inline-block;
  vertical-align: top;
  width: 23%;
  height: 80px;
  margin: 0 2% 0 0;
  padding: 6px 16px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-button);
  overflow: hidden;
}
.home-browse .rail-item:last-child { margin-right: 0; }
.home-browse .rail-item .name {
  display: block;
  font-size: 32px;
  line-height: 36px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-browse .rail-item .scent {
  display: block;
  font-size: var(--type-small);
  line-height: 32px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-browse .rail-item.focus {
  border-color: var(--neon-pink);
  box-shadow: var(--focus-ring);
  background: var(--sky-violet);
}
.chips { height: 92px; padding: 4px 8px 0; margin: 0 -8px; overflow: visible; white-space: nowrap; font-size: 0; }
.chip {
  border-radius: var(--radius-chip);
  display: inline-block;
  vertical-align: top;
  min-width: 280px;
  height: 84px;
  margin-right: 32px;
  padding: 4px 24px 0;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  white-space: nowrap;
  overflow: hidden;
}
/* three modes share the row; percentages so a laptop window does not clip Series */
.chips.n3 .chip { width: 31%; min-width: 0; margin-right: 2%; }
/* two modes */
.chips.n2 .chip { width: 48%; min-width: 0; margin-right: 2%; }
.chip .name, .chip .scent { overflow: hidden; text-overflow: ellipsis; }
.chip .name { display: block; font-size: var(--type-body); line-height: 40px; color: var(--ink-muted); }
.chip .scent { display: block; font-size: var(--type-small); line-height: 32px; color: var(--ink-muted); }
.chip.showing { background-image: linear-gradient(var(--ink-muted), var(--ink-muted)); background-repeat: no-repeat; background-size: 50% 4px; background-position: center bottom 8px; }
.chip.showing .name { color: var(--ink); }
.chip.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }

/* Poster shelves: shelf pitch 564 (48 label + 516 strip), six 240x360 wells across at a 288
   pitch. A poster is its well, a name of up to two 44px lines and the scent under it (500px:
   founder D4 grew it by one line). The well is the fixed thing: letterform first, the poster
   swaps in on load, a 204 or an error leaves the letterform, and no row height ever changes. The
   ring sits on the well. */
.shelf.posters { height: 564px; }
.cards.pcards { height: 516px; }
/* 1920 stage: the poster strip's glow room, as for the pack strips above (VIS-N5): the wells stay
   8px down and 0px in, the shelf still adds 524px, and 42px on the left is clear of the 48px gap.
   None on the right: the last whole poster ends 48px inside the window, which holds its glow, and
   the strip's own edge there hides the next poster (it starts at the window's edge). With no end
   padding the scroll range is the same whether or not the engine counts end padding in the
   scroll width (Chromium 53 predates that), so a long shelf still ends on a whole poster. */
html[data-surface="tv"] .home-rows .cards.pcards:not(.browse-grid-cards) { margin: -26px 0 -34px -42px; padding: 34px 0 34px 42px; height: 516px; }
.poster {
  display: inline-block;
  vertical-align: top;
  width: 240px;
  height: 500px;
  margin-right: 48px;
  white-space: normal;
  overflow: visible;
}
.pwell {
  position: relative;
  display: block;
  width: 240px;
  height: 360px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-tile);
}
.pwell .lf {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 96px;
  line-height: 356px;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.pwell img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.pwell.has-art .lf { visibility: hidden; }
.pwell.has-art img { visibility: visible; }
.poster.focus .pwell { border-color: var(--neon-pink); box-shadow: var(--focus-ring); }
/* The focused well's ground keyline, 3px inside the ring: letterform-3 (sun-base) is 1.07:1
   against neon-pink, so without it the ring's inner edge melts into the fill (VIS-N1). It is
   drawn over the letterform and the art, not as an inset shadow on the well, which would sit
   under both. Only the wells carry a ring on the fill; cards ring their own border. */
.poster.focus .pwell::after,
.pcast.focus .pwell::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  box-shadow: inset 0 0 0 3px var(--ground);
  pointer-events: none;
}
.poster .name { margin: 12px 0 0; font-size: var(--type-lead); line-height: 44px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster.focus .name { color: var(--ink); }
.poster .scent { margin: 0; font-size: 32px; line-height: 36px; height: 36px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 1920 stage: a title takes up to two lines and then ends in an ellipsis ('Midnight Arcade', not
   'Midnight Arc…'; founder D4, tv-ux-15, V18). The scent sits right under the name, so a one-line
   title keeps its year beside it; the poster's 500px holds two lines either way. A single word
   longer than the well breaks rather than running under the next poster. -webkit-line-clamp is
   in Chromium 53. The filtered grid keeps one line: its 296px row pitch has no room for a second. */
html[data-surface="tv"] .poster .name {
  max-height: 88px;
  white-space: normal;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
html[data-surface="tv"] .browse-grid-cards .poster .name {
  max-height: none;
  white-space: nowrap;
  display: block;
}

/* Filtered Films/Series: posters wrap into a grid and the grid scrolls vertically.
   Value chips keep their own row; the grid fills whatever is left under them. */
.homescreen.is-browse-grid.has-section .home-rows,
.homescreen.is-browse-grid .home-rows {
  top: 384px;
  height: 528px;
  left: var(--safe-x);
  overflow: hidden;
}
.homescreen.is-browse-grid.has-browse-values.has-section .home-rows {
  top: 496px;
  height: 416px;
  left: var(--safe-x);
}
.shelf.browse-grid {
  height: 100%;
  overflow: hidden;
}
.cards.browse-grid-cards {
  /* Seven posters across the title-safe width: 7 × (200px + 28px margin). The remote steps by that count. */
  width: 1596px;
  height: calc(100% - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  font-size: 0;
  margin: 0;
  padding: 0 0 16px;
}
/* A grid row is the 262px poster and 34px under it: the same 296 pitch (BROWSE_ROW_PITCH), with
   the gap as wide as the focus glow, so the glow room above a row never shows the row before. */
.browse-grid-cards .poster {
  width: 200px;
  height: 262px;
  margin: 0 28px 34px 0;
}
.browse-grid-cards .grid-spacer {
  display: block;
  width: 100%;
}
.browse-grid-cards .pwell {
  width: 200px;
  height: 182px;
}
.browse-grid-cards .pwell .lf {
  font-size: 64px;
  line-height: 178px;
}
/* 1920 stage: the filtered grid's glow room (VIS-N5 for the grid). The grid is its own scroller,
   so it opens 34px above its rows and 42px each side (margin out, padding back in: the posters
   stay where they were, under the label and on the title-safe line), and the glow of a focused
   poster fades out instead of stopping at the grid's top edge and at x=96. The grid scrolls a
   whole row at a time (homeApplyFocus sets scrollTop to rows x 296), which puts the row in view
   34px under the scroller's top, in the room; the row before ends 34px above that, just out of
   view. Below, the window ends 34px under the row's 262px poster, as its glow does. */
html[data-surface="tv"] .home-rows .shelf.browse-grid { overflow: visible; }
html[data-surface="tv"] .home-rows .cards.browse-grid-cards { margin: -34px -42px 0; padding: 34px 42px 0; }
.browse-grid-cards .poster .name {
  margin-top: 8px;
  font-size: 32px;
  line-height: 36px;
}

/* ---------- ALLOT-1548: TV Films and Series parity (direction C+) ----------
   The 1920 stage only (player.js adds .is-parity on Films and Series; desk and phone never get
   it). Section 176-276; the controls row at 280, 84 tall; the rows window at 392, 540 tall, its
   last 72px fading so the next rail reads as more to come. A compact rail is 376 on a 396 pitch:
   a 56px label, 160x240 wells on a 196 pitch and names of up to two 32px lines, so with a rail at
   the window's top the next rail's label (396-452) and 88px of its wells are in view. */
html[data-surface="tv"] .homescreen.is-parity.has-section .home-browse { top: 280px; height: 96px; }
/* one line each: the name at 40px, its scent beside it at 32px; three 560px controls end at the
   title-safe edge, level with the Section chips (3 x 554) */
html[data-surface="tv"] .homescreen.is-parity .home-browse .rail-item {
  width: 560px; height: 84px; margin-right: 24px; padding: 0 20px; line-height: 80px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-surface="tv"] .homescreen.is-parity .home-browse .rail-item:last-child { margin-right: 0; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .rail-item .name { display: inline; font-size: var(--type-lead); line-height: 80px; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .rail-item .scent { display: inline; margin-left: 16px; font-size: 32px; line-height: 80px; }
html[data-surface="tv"] .homescreen.is-parity .section-row .chip { width: 554px; min-width: 0; margin-right: 33px; }
html[data-surface="tv"] .homescreen.is-parity .section-row .chip:last-child { margin-right: 0; }
/* busy: Watching now leads, wider (the title and the device), and the others close up */
/* busy: Watching now leads (860), All categories gives its count only, Filter and Search their names */
html[data-surface="tv"] .homescreen.is-parity .home-browse .rail-item.ctl-busy { width: 860px; margin-right: 12px; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .ctl-busy ~ .rail-item { margin-right: 12px; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .ctl-busy ~ .ctl-allcats { width: 420px; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .ctl-busy ~ .ctl-filter { width: 210px; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .ctl-busy ~ .ctl-search { width: 202px; margin-right: 0; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .ctl-busy ~ .ctl-filter .scent,
html[data-surface="tv"] .homescreen.is-parity .home-browse .ctl-busy ~ .ctl-search .scent { display: none; }
html[data-surface="tv"] .homescreen.is-parity .home-browse .ctl-busy .name::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 14px;
  border-radius: var(--radius-dot); background: var(--neon-pink); vertical-align: middle;
}
html[data-surface="tv"] .homescreen.is-parity.has-browse .home-rows { top: 392px; height: 540px; }
/* the rows window fades out over its last 72px (860-932): a gradient over it, not a mask, so
   Chromium 53 draws it; it takes no keys or pointer */
html[data-surface="tv"] .homescreen.is-parity.has-browse::after {
  content: ""; position: absolute; left: 0; right: 0; top: 860px; height: 72px; z-index: 2;
  background: linear-gradient(to bottom, var(--ground-a0), var(--ground)); pointer-events: none;
}
/* the grid that has focus fills the window whole: no fade over a focused card */
html[data-surface="tv"] .homescreen.is-parity.no-fade::after,
html[data-surface="tv"] .homescreen.is-parity.is-browse-grid::after { display: none; }
html[data-surface="tv"] .homescreen.is-parity .home-browse-values { top: 392px; }
html[data-surface="tv"] .homescreen.is-parity.has-browse-values.has-section .home-rows { top: 496px; height: 436px; }
html[data-surface="tv"] .homescreen.is-parity.is-browse-grid .home-rows { top: 392px; height: 344px; }
html[data-surface="tv"] .homescreen.is-parity .shelf-label { height: 56px; line-height: 56px; }
html[data-surface="tv"] .homescreen.is-parity .shelf.posters:not(.browse-grid) { height: 396px; }
html[data-surface="tv"] .homescreen.is-parity .home-rows .cards.pcards:not(.browse-grid-cards) { height: 316px; }
html[data-surface="tv"] .homescreen.is-parity .pcards:not(.browse-grid-cards) .poster { width: 160px; height: 316px; margin-right: 36px; }
html[data-surface="tv"] .homescreen.is-parity .pcards:not(.browse-grid-cards) .pwell { width: 160px; height: 240px; }
html[data-surface="tv"] .homescreen.is-parity .pcards:not(.browse-grid-cards) .pwell .lf { font-size: var(--type-title); line-height: 236px; }
html[data-surface="tv"] .homescreen.is-parity .pcards:not(.browse-grid-cards) .poster .name { margin-top: 8px; font-size: 32px; line-height: 34px; max-height: 68px; }
/* the year and rating read in the sample line under the rows: the card keeps its two name lines */
html[data-surface="tv"] .homescreen.is-parity .pcards:not(.browse-grid-cards) .poster .scent { display: none; }
/* any card: the S/E band sits above the progress track; another screen's title says so */
.poster .pse {
  position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; height: 34px; line-height: 34px;
  text-align: center; font-size: var(--type-small); color: var(--ink); background: var(--ground-a85);
}
/* two 30px lines: "Watching on" over the device name */
.poster .pbusy {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; max-height: 64px; line-height: 30px; padding: 2px 4px;
  box-sizing: border-box; font-size: var(--type-small); color: var(--ink); background: var(--ground-a85); overflow: hidden; word-wrap: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.poster .pbusy::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px;
  border-radius: var(--radius-dot); background: var(--neon-pink); vertical-align: middle;
}
/* the title on air: a 6px ink-muted bar down the well's leading edge, as .tile.playing; never a
   second coloured border beside the focus ring */
.poster.is-playing .pwell { box-shadow: inset 6px 0 0 var(--ink-muted); }
.poster.is-playing.focus .pwell { box-shadow: inset 6px 0 0 var(--ink-muted), var(--focus-ring); }

/* All categories: the group index (360 wide, 48px entries) beside a three-across grid of
   408x184 category cards from x 504, 48px apart on a 208 pitch, under 44px group headings */
.shelf.allcats-row { height: 540px; overflow: hidden; }
/* clipped top and bottom only, in effect: the shelf runs on into the rows' 42px right gutter so a
   grown column-3 card keeps its whole focus ring (the grid runs on with it, cards unmoved) */
html[data-surface="tv"] .home-rows .shelf.allcats-row { overflow: hidden; margin-right: -42px; }
.allcats-row .ac-body { position: relative; height: 484px; }
.allcats-row .ac-index { position: absolute; left: 0; top: 0; width: 360px; height: 100%; overflow: hidden; }
.allcats-row .ac-ix {
  position: relative; height: 48px; line-height: 44px; padding: 0 72px 0 16px; box-sizing: border-box;
  border: 2px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.allcats-row .ac-ix .name { font-size: 32px; color: var(--ink-muted); }
.allcats-row .ac-ix .scent { position: absolute; right: 16px; top: 0; width: 48px; text-align: right; font-size: var(--type-small); color: var(--ink-muted); }
.allcats-row .ac-ix.is-on { box-shadow: inset 4px 0 0 var(--ink-muted); }
.allcats-row .ac-ix.is-on .name { color: var(--ink); }
.allcats-row .ac-ix.focus { background: var(--sky-violet); border-color: var(--neon-pink); box-shadow: var(--focus-ring); }
.allcats-row .ac-ix.focus .name { color: var(--ink); }
/* 16px either side: room for a focused card's 6% growth and its ring */
.allcats-row .ac-grid {
  position: absolute; left: 392px; top: 0; width: 1378px; height: 100%;
  padding: 8px 42px 0 16px; box-sizing: border-box; overflow: hidden;
}
.allcats-row .ac-head { margin: 0; height: 44px; line-height: 44px; white-space: nowrap; }
.allcats-row .ac-head .name { font-size: var(--type-body); color: var(--ink); }
.allcats-row .ac-head .scent { margin-left: 16px; font-size: var(--type-small); color: var(--ink-muted); }
.allcats-row .ac-cards { font-size: 0; white-space: normal; }
.allcats-row .ac-card {
  position: relative; display: inline-block; vertical-align: top;
  width: 408px; height: 184px; margin: 0 48px 24px 0; box-sizing: border-box;
  background: var(--sky-top); border: 2px solid var(--sky-plum); border-radius: var(--radius-tile);
}
.allcats-row .ac-card:nth-child(3n) { margin-right: 0; }
.allcats-row .ac-card.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.allcats-row .ac-cluster { position: absolute; left: 16px; top: 16px; height: 72px; white-space: nowrap; font-size: 0; }
.allcats-row .ac-well {
  position: relative; display: inline-block; width: 48px; height: 72px; margin-left: -10px;
  box-sizing: border-box; overflow: hidden; border: 2px solid var(--ground); border-radius: var(--radius-tile);
}
.allcats-row .ac-well:first-child { margin-left: 0; }
.allcats-row .ac-well .lf {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 68px; text-align: center;
}
.allcats-row .ac-well img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.allcats-row .ac-well.has-art .lf { visibility: hidden; }
.allcats-row .ac-well.has-art img { visibility: visible; }
/* the count beside the poster cluster; the name full width under it, two lines (376px) */
.allcats-row .ac-txt { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.allcats-row .ac-txt .scent {
  position: absolute; left: 160px; right: 16px; top: 36px; font-size: 32px; line-height: 34px;
  color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.allcats-row .ac-txt .name {
  position: absolute; left: 16px; right: 16px; top: 104px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 68px; overflow: hidden;
  font-size: 32px; line-height: 34px; color: var(--ink); word-wrap: break-word;
}
.allcats-row .ac-txt .nw { white-space: nowrap; }

/* a category page: the card's name as the title, the tool row at 188 (300x80 chips) and an
   eight-across grid at 300, 632 tall (168x252 wells on a 220 pitch, rows on a 408 pitch) */
html[data-surface="tv"] .homescreen.is-catpage .home-section { display: none; }
html[data-surface="tv"] .homescreen.is-parity.is-catpage .home-browse { display: block; top: 188px; }
/* the page's tools are two lines each (frame 04b): the tool over what it is set to */
html[data-surface="tv"] .homescreen.is-parity.is-catpage .home-browse .rail-item { width: 300px; height: 80px; margin-right: 24px; padding: 4px 16px 0; line-height: normal; }
html[data-surface="tv"] .homescreen.is-parity.is-catpage .home-browse .rail-item .name { display: block; font-size: 32px; line-height: 36px; }
html[data-surface="tv"] .homescreen.is-parity.is-catpage .home-browse .rail-item .scent { display: block; margin-left: 0; font-size: var(--type-small); line-height: 32px; overflow: hidden; text-overflow: ellipsis; }
html[data-surface="tv"] .homescreen.is-parity.is-catpage .home-browse-values { top: 284px; }
html[data-surface="tv"] .homescreen.is-parity.is-catpage .home-rows { top: 300px; height: 632px; }
html[data-surface="tv"] .homescreen.is-parity.is-catpage.has-browse-values .home-rows { top: 392px; height: 540px; }
html[data-surface="tv"] .homescreen.is-catpage .cards.browse-grid-cards { width: 1760px; }
html[data-surface="tv"] .homescreen.is-catpage .browse-grid-cards .poster { width: 168px; height: 368px; margin: 0 52px 40px 0; }
html[data-surface="tv"] .homescreen.is-catpage .browse-grid-cards .pwell { width: 168px; height: 252px; }
html[data-surface="tv"] .homescreen.is-catpage .browse-grid-cards .pwell .lf { font-size: var(--type-title); line-height: 248px; }
html[data-surface="tv"] .homescreen.is-catpage .browse-grid-cards .poster .name {
  max-height: 68px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 32px; line-height: 34px;
}

/* the page's title is the card's name, visible here (Home's own heading is for screen readers) */
html[data-surface="tv"] .homescreen.is-catpage .title-row #home-title {
  position: static; width: auto; height: auto; max-width: 860px; margin: 30px 0 0; clip: auto;
  overflow: hidden; text-overflow: ellipsis; padding-bottom: 8px; margin-bottom: -8px;
  visibility: hidden;
}
/* live Orbitron text, held back until the face is ready (as the Wordmark) */
html[data-surface="tv"] .fonts-ready .homescreen.is-catpage .title-row #home-title { visibility: visible; }
.homescreen .title-row #home-title .t-suffix { font-family: var(--font-terminal); font-weight: 400; letter-spacing: 0; }

/* the Filter sheet: Genre, Decade and Sort side by side (three 360px columns of 64px options),
   Clear all at its foot. Over the rows, from 158, as the Region sheet sits */
.home-filter { display: none; }
html[data-surface="tv"] .home-filter {
  position: absolute; top: 158px; left: 340px; width: 1240px; height: 774px; z-index: 3;
  box-sizing: border-box; padding: 0 40px; background: var(--ground);
  border: 2px solid var(--sky-plum); border-top: 4px solid var(--neon-pink);
}
html[data-surface="tv"] .home-filter.on { display: block; }
/* frame 05: the screen behind the sheet dims (the settings line too), but the hint bar and the
   readout stay bright. The dim is its own layer at z 3, under the sheet (z 3, later); the hints and
   the readout rise to 4 while the sheet is up */
.home-filter-dim { display: none; }
html[data-surface="tv"] .home-filter-dim.on {
  display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3;
  background: var(--ground-a85); pointer-events: none;
}
html[data-surface="tv"] .homescreen.has-sheet .title-row .cat-readout { position: relative; z-index: 4; }
html[data-surface="tv"] .homescreen.has-sheet ~ .hints { z-index: 4; }
.home-filter .sheet-head { margin: 0; height: 96px; line-height: 96px; font-size: 44px; color: var(--ink); }
.home-filter .sheet-cols { height: 560px; white-space: nowrap; font-size: 0; }
.home-filter .sheet-col { display: inline-block; vertical-align: top; width: 360px; margin-right: 40px; }
.home-filter .sheet-col:last-child { margin-right: 0; }
.home-filter .sheet-col-head { margin: 0; height: 48px; line-height: 48px; font-size: 32px; color: var(--ink-muted); }
.home-filter .sheet-opts { height: 512px; overflow: hidden; }
.home-filter .sheet-opt {
  height: 64px; line-height: 60px; padding: 0 24px; box-sizing: border-box;
  border: 2px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-filter .sheet-opt .name { font-size: var(--type-body); color: var(--ink-muted); }
.home-filter .sheet-opt.showing { box-shadow: inset 4px 0 0 var(--ink-muted); }
.home-filter .sheet-opt.showing .name { color: var(--ink); }
.home-filter .sheet-opt.focus { background: var(--sky-violet); border-color: var(--neon-pink); box-shadow: var(--focus-ring); }
.home-filter .sheet-opt.focus .name { color: var(--ink); }
.home-filter .sheet-foot { height: 112px; padding-top: 12px; box-sizing: border-box; }
.home-filter .sheet-clear {
  display: inline-block; height: 80px; line-height: 76px; padding: 0 24px; box-sizing: border-box;
  background: var(--sky-top); border: 2px solid var(--sky-plum);
}
.home-filter .sheet-clear .name { font-size: var(--type-body); color: var(--ink); }
.home-filter .sheet-clear .scent { margin-left: 24px; font-size: var(--type-small); color: var(--ink-muted); }
.home-filter .sheet-clear.is-idle .name { color: var(--ink-muted); }
.home-filter .sheet-clear.focus { background: var(--sky-violet); border-color: var(--neon-pink); box-shadow: var(--focus-ring); }

/* focus grows the card 6%: transform only, so nothing reflows */
html[data-surface="tv"] .homescreen .poster,
html[data-surface="tv"] .allcats-row .ac-card { transition: transform 120ms ease; }
html[data-surface="tv"] .homescreen .poster.focus,
html[data-surface="tv"] .allcats-row .ac-card.focus { transition: transform 120ms ease; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  html[data-surface="tv"] .homescreen .poster, html[data-surface="tv"] .homescreen .poster.focus,
  html[data-surface="tv"] .allcats-row .ac-card, html[data-surface="tv"] .allcats-row .ac-card.focus { transition: none; }
}

/* ---------- title detail, series detail, episode list ---------- */
.vodscreen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: var(--safe-y) var(--safe-x);
  box-sizing: border-box;
  background: var(--ground);
  display: none;
}
.vodscreen.on { display: block; }
.vodscreen .title-row .title { margin-top: 30px; }
.vodscreen .title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--type-title);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: inline-block;
  transform: skewX(-8deg);
  margin: 0;
  vertical-align: top;
}
.vod-poster { position: absolute; top: 184px; left: var(--safe-x); width: 480px; height: 720px; }
.vod-poster .pwell { width: 480px; height: 720px; }
.vod-poster .pwell .lf { font-size: 180px; line-height: 716px; }
/* eight pixels of bleed on the left so a focused row or button keeps its edge */
.vod-col { position: absolute; top: 184px; left: 632px; right: 88px; height: 720px; padding: 0 8px; overflow: hidden; }
.vod-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--type-title);
  line-height: 62px;
  max-height: 124px;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow: hidden;
}
.vod-facts, .vod-note { margin: 0; height: 40px; font-size: 32px; line-height: 40px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vod-facts { margin-top: 8px; }
/* three lines: enough plot to choose, short enough that the cast row can sit on this screen. A
   longer plot ends in an ellipsis on line 3, not mid-sentence (COPY-08); desk and phone show it
   in full (ziggy-surface.css releases the clamp). */
.vod-plot { margin: 12px 0 0; height: 132px; font-size: var(--type-lead); line-height: 44px; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.vod-plot.is-muted { color: var(--ink-muted); }
.vod-btns { margin-top: 32px; padding: 8px 0 8px 8px; }
/* rows sit 8px inside the clip edge, in line with the name above, so the ring keeps its sides */
.vlist { display: none; margin: 24px -8px 0; padding: 0 8px; height: 384px; overflow: hidden; }

.vodscreen.is-series .vod-name, .vodscreen.is-episodes .vod-name { max-height: 62px; white-space: nowrap; text-overflow: ellipsis; }
.vodscreen.is-series .vod-note, .vodscreen.is-episodes .vod-note, .vodscreen.is-episodes .vod-plot { display: none; }
.vodscreen.is-series .vod-plot { height: 132px; }
.vodscreen.is-series .vlist, .vodscreen.is-episodes .vlist { display: block; }
.vodscreen.is-series .vod-btns { margin-top: 24px; }
.vodscreen.is-episodes .vod-btns { display: none; }
.vodscreen.is-episodes .vlist { margin-top: 16px; height: 576px; }
/* ALLOT-1753: the seasons list holds three whole rows on the 1920 stage. With the chips row and
   the My list button above it, four rows (384px) ran 101px past the column's 720px clip, so the
   third row was cut and a fourth season took focus out of sight. Name 62 + facts 48 + chips 56 +
   plot 144 + button row 103 + 16 + three rows 288 = 717, inside 720. Desk and phone set their own. */
html[data-surface="tv"] .vodscreen.is-series .vlist { margin-top: 16px; height: 288px; }

/* season and episode rows: whole rows only, static; focus is a surface change and the ring */
.vrow {
  height: 96px;
  box-sizing: border-box;
  padding: 4px 24px 0;
  border: 2px solid transparent;
  border-bottom-color: var(--sky-violet);
  overflow: hidden;
}
.vrow.focus { background: var(--sky-violet); border-color: var(--neon-pink); box-shadow: var(--focus-ring); }
.vrow .name { margin: 0; font-size: var(--type-lead); line-height: 46px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .meta { margin: 0; height: 38px; font-size: 32px; line-height: 38px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .meta .plot { margin-left: 24px; }
.vrow.one .name { line-height: 84px; }
/* ALLOT-1512: episode progress. Watched rows read muted; a part-watched row has the same 4px bar
   as a tile (.tile .bar); the state is also in words in .meta ("Watched", "23 min left"). */
.vrow { position: relative; }
.vrow.seen .name { color: var(--ink-muted); }
.vrow .bar { position: absolute; left: 24px; right: 24px; bottom: 4px; height: 4px; background: var(--ground); box-shadow: 0 0 0 1px var(--ink-muted); }
.vrow .bar i { display: block; height: 4px; width: 0; background: var(--neon-pink); }
.vlist-note { margin: 0; height: 96px; line-height: 96px; padding: 0 24px; font-size: 32px; color: var(--ink-muted); }

/* ---------- TMDB enrichment on the detail screens (zig-3-tmdb-metadata) ----------
   The backdrop is the title's own art behind everything, dimmed to a wash so every line of
   text keeps its contrast; the ground fades back in at the bottom. The chips row is a fixed
   well (blank when there are no genres), so nothing moves when details arrive. Cast, reviews,
   more-like-this and the attribution live below the fold in the extra zone: the column
   scrolls to the focused section, like Home's shelves. */
.vod-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; overflow: hidden; }
.vod-backdrop.on { display: block; }
.vod-backdrop img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.vod-backdrop i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to bottom, var(--ground-a0) 40%, var(--ground) 92%); }
.vodscreen .title-row { position: relative; z-index: 1; }
.vodscreen .vod-poster, .vodscreen .vod-col { z-index: 1; }

.vod-chips { height: 48px; margin-top: 8px; font-size: 0; white-space: nowrap; overflow: hidden; }
.vod-chip {
  display: inline-block;
  vertical-align: top;
  height: 40px;
  line-height: 36px;
  padding: 0 20px;
  margin-right: 16px;
  box-sizing: border-box;
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-chip);
  font-size: var(--type-small);
  color: var(--ink-muted);
}
.vodscreen.is-episodes .vod-chips, .vodscreen.is-episodes .vod-extra { display: none; }

.vod-extra { padding-bottom: 8px; }
.vod-cast, .vod-reviews, .vod-sim { margin-top: 16px; }
.vx-label { margin: 0; height: 40px; line-height: 40px; font-size: 32px; color: var(--ink-muted); white-space: nowrap; }
.vod-cast .castline { margin: 4px 0 0; font-size: 32px; line-height: 36px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vod-cast .ctiles { margin: 4px -8px 0; padding: 8px; white-space: nowrap; overflow: hidden; font-size: 0; }
/* A cast photo in the same well as every other: a 2px sky-plum frame, so the ring is the only
   bright frame on the row (V10, founder D5; the 6px ink Polaroid frame read as a second focus).
   The name sits under the print, two lines so a credit fits. */
.pcast { display: inline-block; vertical-align: top; width: 196px; margin-right: 28px; white-space: normal; }
.pcast .pwell { width: 196px; height: 220px; border: 2px solid var(--sky-plum); box-sizing: border-box; }
.pcast .pwell .lf { font-size: 64px; line-height: 216px; }
.pcast .name { margin: 8px 0 0; font-size: 32px; line-height: 36px; max-height: 72px; color: var(--ink); white-space: normal; overflow: hidden; }
.pcast .role { margin: 0; font-size: var(--type-small); line-height: 32px; height: 32px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcast.focus .pwell { border-color: var(--neon-pink); box-shadow: var(--focus-ring); }
.pcast.focus .name { color: var(--ink); }

.vreview { margin-top: 12px; }
/* two lines, ending in an ellipsis when the excerpt runs longer (COPY-08) */
.vreview .text { margin: 0; height: 72px; font-size: 32px; line-height: 36px; color: var(--ink-muted); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Same pitch as a poster shelf. The shared .cards height is the short home
   pack strip (184px), which slices these portrait wells in half. Phone and
   desk override this with a wrapping row. */
.vod-sim .cards { height: 516px; margin: 4px -8px 0; padding: 8px 8px 0; white-space: nowrap; overflow: hidden; font-size: 0; }
.vod-attr { margin: 24px 0 0; height: 32px; font-size: var(--type-small); line-height: 32px; color: var(--ink-muted); white-space: nowrap; }

/* 1920 stage. The focus glow reaches 34px past a well (4px ring, 28px blur, 6px spread): the
   cast and More like this strips carry 32px of room above and below, with negative margins that
   keep every tile where it was, and the column opens 40px on its left into the gap by the
   poster. Across, the cast strip keeps to its 28px gap between tiles (the blur's last few px
   are faint), so the tile outside the window never shows a sliver; posters sit 48px apart, so
   32px is clear. The column's last 48px fade to ground, so a section that runs past the fold reads
   as more below instead of a tile cut through (nothing focusable ever sits that low). */
html[data-surface="tv"] .vod-col { left: 600px; padding-left: 40px; }
html[data-surface="tv"] .vod-cast .ctiles { margin: -20px -28px -24px; padding: 32px 28px; }
html[data-surface="tv"] .vod-sim .cards { margin: -20px -32px 0; padding: 32px 32px 0; }
html[data-surface="tv"] .vodscreen.is-title::after {
  content: "";
  position: absolute;
  left: 600px;
  right: 88px;
  top: 856px;
  height: 48px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--ground-a0), var(--ground));
}

/* ALLOT-1971: a series detail scrolled down to its cast or More like this fades its foot as the
   title does, so the next shelf peeks as more below instead of posters cut through */
html[data-surface="tv"] .vodscreen.is-series.is-deep::after {
  content: "";
  position: absolute;
  left: 600px;
  right: 88px;
  top: 856px;
  height: 48px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--ground-a0), var(--ground));
}
/* ALLOT-1971: a synopsis longer than its three lines is a stop above the buttons; focused, it
   opens to its full length, ringed inside its own edge so the column never clips the ring */
html[data-surface="tv"] .vod-plot.is-open { height: auto; display: block; -webkit-line-clamp: none; overflow: visible; }
html[data-surface="tv"] .vod-plot.focus {
  margin-left: -24px;
  padding: 8px 24px;
  border-radius: var(--radius-field);
  background: var(--sky-violet);
  box-shadow: inset 0 0 0 4px var(--neon-pink);
}
/* ALLOT-1971: four episode rows, then the focused episode's description whole (a row has one line) */
.vod-epplot { display: none; }
html[data-surface="tv"] .vodscreen.is-episodes .vlist { height: 384px; }
html[data-surface="tv"] .vodscreen.is-episodes .vod-epplot {
  display: block;
  margin: 24px 0 0;
  padding: 0 24px;
  border-left: 4px solid var(--neon-pink);
  font-size: var(--type-small);
  line-height: 40px;
  color: var(--ink);
  max-height: 200px;
  overflow: hidden;
}

/* ---------- person sheet (zig-3-tmdb-metadata): the same shapes as the title detail ---------- */
.personscreen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: var(--safe-y) var(--safe-x);
  box-sizing: border-box;
  background: var(--ground);
  display: none;
}
.personscreen.on { display: block; }
.personscreen .title-row .title { margin-top: 30px; }
.personscreen .title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--type-title);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: inline-block;
  transform: skewX(-8deg);
  margin: 0;
  vertical-align: top;
}
.person-photo { position: absolute; top: 184px; left: var(--safe-x); width: 360px; height: 540px; }
.person-photo .pwell { width: 360px; height: 540px; }
.person-photo .pwell .lf { font-size: 144px; line-height: 536px; }
.person-col { position: absolute; top: 184px; left: 544px; right: 88px; }
.person-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--type-title);
  line-height: 62px;
  max-height: 124px;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow: hidden;
}
.person-bio { margin: 16px 0 0; height: 132px; font-size: var(--type-lead); line-height: 44px; color: var(--ink); overflow: hidden; }
.person-label { margin: 32px 0 0; height: 40px; line-height: 40px; font-size: 32px; color: var(--ink-muted); }
.person-known { margin: 4px -8px 0; padding: 8px; white-space: nowrap; overflow: hidden; font-size: 0; }
/* 1920 stage: glow room above and to the left (the 88px gap by the photo), with the tiles kept
   12px down and 0px in (VIS-N5). The right keeps its 8px: that strip shows a fifth title past the
   fourth, and wider room there would only show more of it. */
html[data-surface="tv"] .person-known { margin: -20px -8px 0 -40px; padding: 32px 8px 8px 40px; }


/* the banner over a film or an episode: no channel number, a 32px position line */
.banner .sub { display: none; font-size: 32px; color: var(--ink-muted); margin-top: 4px; }
.banner.vod .num { display: none; }
.banner.vod .sub.on { display: block; }
.banner.vod .now { font-size: 32px; }

/* ---------- search (zig-3-search) ----------
   Opaque, like Home. Left: the query line, a 7-column alphabetical keyboard of 80px keys on an
   88 x 84 pitch, the action row, the Other regions toggle and the pairing line. Right: a status
   line and rows of 312 x 200 cards, three across on a 352 pitch and three rows on a 248 pitch.
   One focus frame, on a key or on a card. No pointer styles: hover never moves focus. */
.searchscreen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: var(--safe-y) var(--safe-x);
  box-sizing: border-box;
  background: var(--ground);
  display: none;
}
.searchscreen.on { display: block; }
.search-keys {
  position: absolute;
  top: 184px;
  left: var(--safe-x);
  width: 640px;
}
/* Browse (empty query + filter chips): keyboard and phone step aside; chips stay. */
.searchscreen.is-browse .search-keys { visibility: hidden; pointer-events: none; }
.searchscreen.is-browse .search-phone { display: none !important; }
.searchscreen.is-browse .search-kinds,
.searchscreen.is-browse .search-filters,
.searchscreen.is-browse .search-results {
  left: var(--safe-x);
  width: auto;
  right: var(--safe-x);
}
/* the query is text, never a field; 56px with the status-line cursor */
.search-query {
  margin: 0;
  height: 64px;
  line-height: 64px;
  font-size: var(--type-title);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.search-query::after { content: "_"; color: var(--ink-muted); }
.search-query.is-empty { font-size: 32px; color: var(--ink-muted); }
.search-query.is-empty::before { content: "_"; font-size: var(--type-title); margin-right: 12px; vertical-align: top; }
.search-query.is-empty::after { content: ""; }
.kb { margin: 4px -8px 0; padding: 8px 8px 0; font-size: 0; }
.kb-row { white-space: nowrap; height: 84px; }
.key {
  display: inline-block;
  vertical-align: top;
  width: 80px;
  height: 80px;
  margin: 0 8px 4px 0;
  box-sizing: border-box;
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-field);
  background: var(--sky-top);
  color: var(--ink);
  font-size: var(--type-lead);
  line-height: 76px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.key.w2 { width: 168px; }
.key.w3 { width: 256px; }
.key.w7 { width: 608px; }
.key.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
/* six kind filters across the results pane, not the keyboard: 192px keys with a 16px gutter
   so Programmes is readable at 32px */
.search-kinds {
  position: absolute;
  top: 184px;
  left: 776px;
  right: var(--safe-x);
  width: auto;
  height: 96px;
  font-size: 0;
  white-space: nowrap;
}
.key.kind {
  width: 15%;
  height: 80px;
  margin: 8px 1.66% 0 0;
  font-size: 32px;
  line-height: 76px;
}
.key.kind.is-on { background-image: linear-gradient(var(--ink-muted), var(--ink-muted)); background-repeat: no-repeat; background-size: 50% 4px; background-position: center bottom 8px; }
/* session filter cyclers under the kinds (zig-3-tmdb-metadata): Genre, Decade, Sort, Rating,
   Cert. Same chip pattern, 28px; a chip that narrows the results keeps the showing mark. Each
   chip is 280px, room for the longest value ('Genre: Documentary' is 222px) with at least 24px a
   side, so cycling a value never moves the chips; words longer than that widen their own chip.
   Three at 280 plus gutters is 887px of the 1048px row. */
.search-filters {
  position: absolute;
  top: 280px;
  left: 776px;
  right: var(--safe-x);
  width: auto;
  height: 88px;
  font-size: 0;
  white-space: nowrap;
}
.key.filt {
  width: auto;
  min-width: 280px;
  padding: 0 24px;
  height: 72px;
  margin: 8px 1.5% 0 0;
  font-size: var(--type-small);
  line-height: 68px;
}
.key.filt.is-on { background-image: linear-gradient(var(--ink-muted), var(--ink-muted)); background-repeat: no-repeat; background-size: 50% 4px; background-position: center bottom 8px; }
/* the showing mark gives way to the ring while the chip holds focus */
.key.kind.is-on.focus, .key.filt.is-on.focus { box-shadow: var(--focus-ring); }
.search-results {
  position: absolute;
  top: 376px;
  left: 776px;
  width: 1056px;
  bottom: 0;
}
.search-pair {
  margin: 0;
  height: 32px;
  line-height: 32px;
  font-size: var(--type-small);
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#search-pair-host { margin-top: 12px; }

.search-status {
  margin: 0 8px;
  height: 40px;
  line-height: 40px;
  font-size: 32px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#search-sub { display: none; }
.search-results.is-zero #search-sub { display: block; }
.search-rows {
  position: absolute;
  top: 48px;
  left: 0;
  width: 1056px;
  height: 660px;
  padding: 0 8px;
  box-sizing: border-box;
  overflow: hidden;
}
/* nothing found: the second status line takes a row's worth of room */
.search-results.is-zero .search-rows { top: 88px; height: 412px; }
.search-results.is-idle .search-rows { height: 248px; }
.srow { height: 248px; box-sizing: border-box; overflow: hidden; }
.srow-label { margin: 0; height: 40px; line-height: 40px; white-space: nowrap; }
.srow-label .name { font-size: var(--type-lead); color: var(--ink-muted); }
.srow-label .scent { margin-left: 24px; font-size: 32px; color: var(--ink-muted); }
.srow.showing .srow-label .name { color: var(--ink); }
.scards { height: 208px; padding: 4px 8px 0; margin: 0 -8px; overflow: hidden; white-space: nowrap; font-size: 0; }
/* every kind shares one outer size, so mixed rows line up and nothing moves when art arrives */
.scard {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 312px;
  height: 200px;
  margin-right: 40px;
  padding: 12px 16px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  border-radius: var(--radius-tile);
  white-space: normal;
  overflow: hidden;
}
.scard.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.scard .head { height: 54px; white-space: nowrap; overflow: hidden; }
.scard .head .well { display: inline-block; vertical-align: top; width: 96px; height: 54px; }
.scard .head .well .lf { font-size: 26px; line-height: 54px; }
.scard .head .num { display: inline-block; vertical-align: top; margin-left: 16px; font-size: 32px; line-height: 54px; color: var(--marquee); letter-spacing: 0.06em; }
.scard .head .scent { display: inline-block; vertical-align: top; max-width: 164px; margin-left: 16px; font-size: 32px; line-height: 54px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; }
/* ALLOT-1968: a fixture the guide names without saying it is football. Rounded, outlined, never
   filled, so it reads as a caution and not a button. At --type-small VT323 sets the words in
   166px, so the chip (178px with its 4px gap) fits beside the 96px logo well in the card's 280px. */
.scard .head .pm-chip { display: inline-block; vertical-align: top; margin: 7px 0 0 4px; padding: 0 4px; font-size: var(--type-small); line-height: 36px; color: var(--ink); border: 2px solid var(--ink-muted); border-radius: var(--radius-chip); white-space: nowrap; }
/* what matched is ink and underlined, the rest is muted: the eye lands on why this card is here,
   and the underline says so where ink and ink-muted alone are too close to tell apart (1.65:1).
   Only a typed result whose title really matched, which searchTitleNode marks .has-match. A card
   with no match ranges (browse, a cast or director hit, Recent, zero matches) wraps its whole name
   as the hit and is not underlined, so the underline never claims a match that is not there. */
.scard .name { margin: 4px 0 0; font-size: var(--type-lead); line-height: 40px; height: 80px; color: var(--ink-muted); overflow: hidden; word-wrap: break-word; }
.scard .name .hit { color: var(--ink); }
.searchscreen:not(.is-browse) .search-results:not(.is-idle):not(.is-zero) .scard .name.has-match .hit { text-decoration: underline; }
.scard .sub { margin: 2px 0 0; font-size: 32px; line-height: 34px; height: 34px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .bar { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 4px; background: var(--ground); box-shadow: 0 0 0 1px var(--ink-muted); }
.scard .bar i { display: block; height: 4px; width: 0; background: var(--neon-pink); }
/* a film or a series: the poster in a fixed well on the left, the title and the year beside it */
.scard.is-art .pwell { position: absolute; top: 10px; left: 12px; width: 120px; height: 176px; }
.scard.is-art .pwell .lf { font-size: var(--type-lead); line-height: 172px; }
.scard.is-art .txt { margin-left: 132px; }
.scard.is-art .name { margin-top: 0; height: 120px; }
/* a recent search, a correction, the clear card: words only */
.scard.is-words .lead { margin: 0; font-size: 32px; line-height: 40px; height: 40px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; }
.scard.is-words .name { margin-top: 8px; height: 120px; color: var(--ink); }
/* 1920 stage: a name longer than its box ends in an ellipsis on its last line, so a tier word
   past the cut ('SKY SPORTS PREMIER LEAGUE UHD') reads as cut, not as the whole name. The boxes
   keep their heights: two 40px lines on a channel card, three on an art or words card. Desk and
   phone clamp in ziggy-surface.css. */
html[data-surface="tv"] .scard .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html[data-surface="tv"] .scard.is-art .name,
html[data-surface="tv"] .scard.is-words .name { -webkit-line-clamp: 3; }

/* the pairing card, while nothing is typed. 200px QR on its own quiet zone. */
.search-phone { display: none; position: absolute; left: 8px; top: 320px; width: 1040px; height: 232px; }
.search-results.is-idle .search-phone { display: block; }
.search-results.is-idle.no-recent .search-phone { top: 48px; }
.search-phone .qr { float: left; width: 200px; height: 200px; background: var(--ink); }
.search-phone .qr svg { display: block; width: 100%; height: 100%; }
.search-phone .txt { margin-left: 248px; }
.search-phone p { margin: 0; }
.search-phone .lead { font-size: var(--type-lead); line-height: 48px; color: var(--ink); }
.search-phone .host { font-size: 32px; line-height: 40px; color: var(--ink-muted); }
.search-phone .pin-label { margin-top: 16px; font-size: 32px; line-height: 36px; color: var(--ink-muted); }
.search-phone .pin { font-size: 72px; line-height: 72px; color: var(--marquee); letter-spacing: 0.08em; }

/* Home's top row: Search first, then Guide, then the Region control */
.search-ctl {
  border-radius: var(--radius-button);
  display: inline-block;
  vertical-align: top;
  height: 96px;
  margin-right: 32px;
  padding: 0 32px;
  line-height: 92px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  white-space: nowrap;
}
.search-ctl.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.search-ctl .name { font-size: var(--type-lead); color: var(--ink); }
.search-ctl .scent { margin-left: 32px; font-size: 32px; color: var(--ink-muted); }
.guide-ctl {
  border-radius: var(--radius-button);
  display: inline-block;
  vertical-align: top;
  height: 96px;
  margin-right: 32px;
  padding: 0 32px;
  line-height: 92px;
  box-sizing: border-box;
  background: var(--sky-top);
  border: 2px solid var(--sky-plum);
  white-space: nowrap;
}
.guide-ctl.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.guide-ctl .name { font-size: var(--type-lead); color: var(--ink); }
.guide-ctl .scent { margin-left: 32px; font-size: 32px; color: var(--ink-muted); }

/* ---- ALLOT-1380: Continue watching, My list, person "Not in your library" ---- */
.poster { position: relative; }
/* ALLOT-1522 G12: Continue watching shows how far through, the design system's progress track
   (ground, 1px ink-muted frame, glowing pink fill) at the foot of the art, inside the well */
.poster .pbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; z-index: 2;
  background: var(--ground); box-shadow: 0 0 0 1px var(--ink-muted); }
.poster .pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--neon-pink); box-shadow: var(--glow-pink); }
.poster.in-list .pwell::before {
  content: "\2713"; position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 40px; height: 40px; line-height: 40px; text-align: center; font-size: var(--type-small);
  border-radius: var(--radius-dot); background: var(--neon-pink); color: var(--ink);
}
.poster.unavailable .pwell { opacity: 0.45; }
.poster .pmore { display: none; }
.person-elsewhere { margin-top: 24px; }
.person-elsewhere .person-label { color: var(--ink-muted); }


/* ---- ALLOT-1510: Watching now (the Live busy state) ---- */
/* the disabled-button token: Busy and Full show, say unavailable (aria-disabled) and never take focus */
.btn.btn-off { opacity: var(--disabled-alpha); box-shadow: none; transform: none; }
.gridscreen[data-busy] .tiles,
.gridscreen[data-busy] .preview,
.gridscreen[data-busy] .tiles-status,
.gridscreen[data-busy] .empty { display: none !important; }
.busy-card { padding: var(--space-4) 0 0 var(--space-1); max-width: 1100px; font-family: var(--font-terminal); }
.busy-card .busy-head { margin: 0 0 var(--space-2); font-size: var(--type-small); letter-spacing: 0.18em; color: var(--ink-muted); }
.busy-card .busy-ch { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 44px; color: var(--ink); }
.busy-card .busy-prog { margin: var(--space-1) 0; font-size: 30px; color: var(--ink-muted); }
.busy-card .busy-bar { position: static; display: block; width: 600px; height: 4px; margin: 0 0 var(--space-3); background: var(--ground); box-shadow: 0 0 0 1px var(--ink-muted); }
.busy-card .busy-bar i { display: block; height: 4px; width: 0; background: var(--neon-pink); }
.busy-card .busy-who { margin: 0; font-size: 32px; color: var(--ink); }
.busy-card .busy-dot { display: inline-block; width: 14px; height: 14px; margin-right: 14px; border-radius: var(--radius-dot); background: var(--neon-pink); vertical-align: middle; }
.busy-card .busy-screens { margin: var(--space-1) 0 var(--space-4); font-size: var(--type-small); color: var(--ink-muted); }
.busy-card .busy-explain { margin: 40px 0 0; max-width: 880px; font-size: var(--type-small); color: var(--ink-muted); }
.busy-ctl {
  border-radius: var(--radius-button);
  display: inline-block;
  vertical-align: top;
  height: 96px;
  margin-right: 32px;
  padding: 0 32px;
  line-height: 92px;
  box-sizing: border-box;
  background: var(--sky-top);
  /* ALLOT-1519 (G4): sky-plum at rest like .guide-ctl; neon-pink belongs to focus alone (DS L98) */
  border: 2px solid var(--sky-plum);
  white-space: nowrap;
}
.busy-ctl.focus { border-color: var(--neon-pink); box-shadow: var(--focus-ring); background: var(--sky-violet); }
.busy-ctl .name { font-size: var(--type-lead); color: var(--ink); }
.busy-ctl .scent { margin-left: 32px; font-size: 32px; color: var(--ink-muted); }
/* ALLOT-1905: no yellow for status; the action is a bordered word, ink on an ink-muted rule */
.busy-ctl .busy-go { border-radius: var(--radius-button); display: inline-block; margin-left: 32px; padding: 0 12px; font-size: 32px; color: var(--ink); border: 2px solid var(--ink-muted); }


/* ALLOT-1947: on the TV only the focused notice button has a ring. The other has no border, so
   the Leave prompt never shows Stay and Leave both outlined. It sits on a quiet sky-violet fill,
   one step up from the notice's sky-top, so it still reads as a button from the sofa (UX, 2 Nov) */
html[data-surface="tv"] #notice-btns .btn:not(.focus) { border-color: transparent; background: var(--sky-violet); }
html[data-surface="tv"] #notice-btns .btn:focus { outline: none; }

/* ALLOT-2019: the feed readout over the picture (player.js feedPaint, the Google box only). Low
   like the Leave prompt below (.feed outranks .low, so this may sit above that block), and as
   wide as the app's own sheet (NativePlayer askPanel, 960), so the two players show it alike.
   Its foot stops at the footer band (940px, ALLOT-1971), 140px off the stage's foot, and the
   detail is short enough to stay under the 118px header. The verdict line is the lead size, a
   step up from a notice's heading, for reading at 3 m; the rest keeps the small size. */
html[data-surface="tv"] .notice.low.feed { width: 960px; bottom: 140px; }
html[data-surface="tv"] .notice.feed .h { font-size: var(--type-lead); }
.notice.feed .b { white-space: pre-line; }
/* ALLOT-2019: the Feed button at the right end of the hint line over live (player.js playHints,
   setHints), rounded like every other button; never focused (Left or Right opens the readout,
   and "Left Right" before it says so). The hint line's own margins and colours otherwise. */
.hints .hint-btn { display: inline-block; vertical-align: middle; font-style: normal; font-size: var(--type-small); padding: 4px 24px; }
/* ALLOT-2021: standalone Google-box Connection sheet, clear of the footer.
   ALLOT-2246 (UX P1 to P4): Settings' confirm look (tv-settings.css .tvs-confirm-sheet): 1040 wide
   on the ground colour in a 3px sky-plum box, its foot at 938 of 1080 (142px off the stage's foot,
   the Settings content line; the footer band starts at 940), over a ground scrim (the --ground-a85
   token; Settings' own scrim is a 0.78 literal) that leaves the banner in view under it. The hint line (later in the page) stays above the scrim. */
html[data-surface="tv"] .notice.viewer-exit-notice {
  top: auto; bottom: 142px; transform: translateX(-50%);
  width: 1040px; padding: var(--space-6);
  background: var(--ground); border: 3px solid var(--sky-plum);
}
/* UX (750c53f): Settings' confirm type (.tv-settings, .tvs-confirm-head, .tvs-btn), the brand face
   and no letter spacing: title 40 bold, body 36, buttons 36 bold. Not the player's VT323. */
html[data-surface="tv"] .notice.viewer-exit-notice,
html[data-surface="tv"] .notice.viewer-exit-notice #notice-btns .btn { font-family: var(--font-display); letter-spacing: normal; }
html[data-surface="tv"] .notice.viewer-exit-notice .h { font-size: var(--type-heading); font-weight: 700; color: var(--ink); margin: 0 0 var(--space-2); }
html[data-surface="tv"] .notice.viewer-exit-notice .b { font-size: var(--type-body); color: var(--ink-muted); margin: 0 0 var(--space-4); }
/* the app's standard focus (Update now, ALLOT-2248 .tvu-btn.is-focus; the frame): the focused button
   is ink with ground words, the neon-pink ring and its glow; the others are a 3 px ink outline */
html[data-surface="tv"] .notice.viewer-exit-notice #notice-btns .btn {
  min-width: 240px; padding: var(--space-2) var(--space-4); text-align: center;
  font-size: var(--type-body); font-weight: 700; line-height: 1;
  border: 3px solid var(--ink); background: transparent; color: var(--ink);
}
html[data-surface="tv"] .notice.viewer-exit-notice #notice-btns .btn.focus {
  border-color: var(--neon-pink); background: var(--ink); color: var(--ground); box-shadow: var(--focus-ring);
}
html[data-surface="tv"] .notice.viewer-exit-notice.no-body .b { display: none; }
html[data-surface="tv"] .notice-wrap.viewer-exit { background: var(--ground-a85); } /* the nearest token to .tvs-confirm's 0.78 */
/* the sheet's hints sit above the scrim in every state (Checking included): over the picture the
   hint line fades after a key, but not while this sheet is up */
html[data-surface="tv"] .notice-wrap.viewer-exit.on ~ .hints { z-index: 3; opacity: 1; }
/* the Notice's entry (ziggy-motion.css zf-notice) centres it as it grows; this sheet sits low, so it
   grows where it stays instead of starting half its height higher */
html[data-motion="full"][data-surface="tv"] .notice-wrap.on .notice.viewer-exit-notice { animation-name: zf-notice-low; }
@keyframes zf-notice-low {
  from { transform: translateX(-50%) scale(0.98); }
  to { transform: translateX(-50%) scale(1); }
}

#b-connection[hidden] { display: none; }

/* decisions: leave prompt */
/* The Leave prompt over the picture (journey 8, 8A; review F9; founder D1, 2026-09-28): small
   and low, never centred over the picture the viewer is deciding about. 720px wide, centred on
   the stage, its foot 64px above the title-safe foot line (54px), so the key hints there never
   sit under it. The TV only: desk and phone keep their modal Notice. player.js adds .low in
   leavePrompt when the Leave prompt opens over the live picture. */
html[data-surface="tv"] .notice.low {
  top: auto;
  bottom: calc(var(--safe-y) + 64px);
  transform: translateX(-50%);
  width: 720px;
  padding: 32px 48px 40px;
}
