@font-face { font-family: 'Bebas Neue'; src: url('/fonts/bebas-neue-latin-400-normal.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Hiero'; src: url('/fonts/noto-sans-egyptian-hieroglyphs-egyptian-hieroglyphs-400-normal.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Cuneiform'; src: url('/fonts/noto-sans-cuneiform-cuneiform-400-normal.woff2') format('woff2'); font-display: block; }

:root {
  --cyan: #19e6ff; --cyan-soft: #7ff3ff; --ink: #05070b; --panel: #0b1119; --text: #eaf6ff; --muted: #8aa3b5;
  --dtv-top: #0a2a6b; --dtv-bot: #04123a; --dtv-cell: #0c2a66; --dtv-cell2: #0f3277; --dtv-line: #2a54a8; --gold: #ffd23f;
  --glow: 0 0 0 3px var(--cyan), 0 0 28px rgba(25, 230, 255, .65);
  --plate-hero: url('/img/plate-hero.jpg'); --plate-intro: url('/img/plate-intro.jpg'); --plate-guide: url('/img/plate-guide.jpg');
}
/* Device safe areas (iPhone notch/home bar, iPad corners). Zero on desktop shells — the stage's
   fit() in app.js reads these and keeps the 16:9 content inside the safe box. */
:root {
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
/* Measured by fit() in app.js. Zero pixels of layout, but its padding is a resolved length in every
   engine — the one place env() is dependable — so the app can keep its chrome out from under the
   status bar, the Dynamic Island, the notch and the home bar. */
#safe-probe { position: fixed; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
/* The page never scrolls, pans or bounces: it is a screen, and everything scrollable in it is a
   panel inside the stage. Before this the 1920-wide stage was an absolutely positioned box that
   overflowed the viewport, so a phone could drag the *document* — the address bar collapsed, iOS
   rubber-banded, and a horizontal drag turned into the browser's back gesture: a white flash, a
   grey repaint and the page back at the top. body is pinned and clipped instead, and every scroll
   container below states its own overscroll so a flick cannot hand the gesture to the browser. */
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; overscroll-behavior: none; }
html { position: fixed; inset: 0; width: 100%; touch-action: manipulation; }
body { position: fixed; inset: 0; width: 100%; height: 100%; }
.vscroll, .rows, .strip, .chips, .seasons, .nav, .btns, .list, .results, .modal, .panel {
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#stage { position: fixed; width: 1920px; height: 1080px; left: 50%; top: 50%; transform-origin: center; background: var(--ink); color: var(--text);
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif; overflow: hidden; cursor: none; }
#stage.mouse, body.has-mouse #stage { cursor: default; }
/* A film left alone shows the picture and nothing else: the player sets this while its controls are
   away and drops it the moment the pointer moves, so the arrow comes back with the scrubber. */
body.hide-cursor, body.hide-cursor * { cursor: none !important; }
* { box-sizing: border-box; }
.bebas { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: .02em; font-weight: 400; }

/* ---------- boot ---------- */
.boot { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 30px;
  background: radial-gradient(ellipse 70% 62% at 50% 46%, #07293e 0%, #072438 12%, #061c2d 26%, #051523 40%, #050f19 55%, #050a12 72%, var(--ink) 100%); z-index: 50; transition: opacity .6s; }
.boot .status { font-size: 26px; color: #7fb9cc; letter-spacing: .08em; }
.boot.out { opacity: 0; pointer-events: none; }
.mf-logo { display: block; overflow: visible; }
.boot .mf-logo { animation: bootIn 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bootIn { from { transform: scale(.82); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }

/* Playback-recovery card: when every source has failed, the player shows a way out (try again,
   play next, back) instead of spinning to a technical ffmpeg error. */
.osd .state .recover { display: grid; justify-items: center; gap: 16px; text-align: center; max-width: 900px; padding: 0 40px; }
.osd .state .recover .rt { font-size: 34px; font-weight: 700; }
.osd .state .recover .rs { font-size: 19px; color: var(--muted); }
.osd .state .recover .row { display: flex; gap: 14px; margin-top: 8px; }

/* ---------- video layers ---------- */
#tv-layer { position: absolute; inset: 0; background: #000; z-index: 1; display: none; overflow: hidden; }
#tv-layer video, #vod { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
#tv-msg { position: absolute; inset: 0; display: none; place-items: center; text-align: center; font-size: 30px; color: var(--muted); padding: 40px; }
#tv-msg.on { display: grid; }
body.tv-full #tv-layer { display: block; }
/* Classic DirecTV guide: live picture in the top-right corner, channel/program info top-left. */
body.tv-guide #tv-layer { display: block; inset: auto; right: 60px; top: 120px; width: 560px; height: 315px; position: absolute;
  border: 2px solid var(--gold); border-radius: 6px; background: #000; overflow: hidden;
  box-shadow: 0 0 0 2px #0a2a6b, 0 14px 46px rgba(0, 0, 0, .75), 0 0 26px rgba(255, 210, 63, .18); z-index: 6; }
body.tv-guide #tv-msg { font-size: 18px; }
#vod { position: absolute; inset: 0; z-index: 2; display: none; }
body.vod #vod { display: block; }
/* Picture size (player bar ⤢, device-local). A window whose shape is not the film's — a 3:2 Surface,
   a 16:10 MacBook, a phone upright — fills by cropping a sliver instead of sitting in black bands;
   a wider window shows the whole frame. Stretch fills by distorting. The class is set by app.js from
   the shape of the screen until someone picks one by hand. */
body.zoom-fill #vod, body.zoom-fill #tv-layer video { object-fit: cover; }
body.zoom-fit #vod, body.zoom-fit #tv-layer video { object-fit: contain; }
body.zoom-stretch #vod, body.zoom-stretch #tv-layer video { object-fit: fill; }
#screens { position: absolute; inset: 0; z-index: 3; }
#overlay { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
#overlay > * { pointer-events: auto; }
.screen { position: absolute; inset: 0; }
/* Screens settle in instead of cutting: short enough to keep the remote feeling instant. */
@keyframes screen-in { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
.screen:not(.hidden) { animation: screen-in .22s cubic-bezier(.22,.61,.36,1) both; }
.screen.hidden { display: none; }
@media (prefers-reduced-motion: reduce) { .screen:not(.hidden) { animation: none; } }
.hidden { display: none !important; }

/* Android mini window (picture-in-picture): the shell adds .pip-mode to the body, and the whole
   stage goes away except the picture — no top bar, no shelf, no controls, nothing to tap. */
body.pip-mode #screens, body.pip-mode #mobile-frame, body.pip-mode #fs-bar, body.pip-mode #back-float,
body.pip-mode #overlay, body.pip-mode #toast, body.pip-mode #grain, body.pip-mode #tv-msg,
body.pip-mode #pip-chrome, body.pip-mode #vod-pip-chrome { display: none !important; }
body.pip-mode #tv-layer, body.pip-mode #vod { display: block !important; inset: 0; width: 100%; height: 100%; }

/* ---------- the phone UI ---------- */
/* The portrait document (public/m) rides on top of the stage on a phone-shaped window. Nothing of
   the 10-foot stage is visible while it is up, including the profile chooser it draws for itself:
   the phone UI has its own. */
#mobile-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 60;
  background: #05070a; display: none; }
body.mobile-ui #mobile-frame { display: block; }
body.mobile-ui #profile-gate { display: none !important; }
body.mobile-ui #intro-host, body.mobile-ui .boot { display: none !important; }

/* ---------- the portrait preview ---------- */
/* A phone turned upright while something is playing keeps the picture: it leaves the 10-foot stage
   for a window at the top of the screen, and the phone UI is mounted underneath it on the page that
   was already open. The rotation neither stops the stream nor changes the page; only × does. */
#preview-host { position: fixed; left: 0; right: 0; top: 0; z-index: 70; display: none; background: #000;
  padding-top: env(safe-area-inset-top, 0px); }
body.vod-preview #preview-host { display: block; }
#preview-host .pv-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
/* The picture keeps the element it already had, so the corner window's dragged offset and the
   full-screen layer's own placement are overridden here and put back on the way out. */
#preview-host #vod, #preview-host #tv-layer { position: static !important; inset: auto !important;
  width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; z-index: auto !important;
  cursor: default !important; touch-action: auto !important; }
#preview-host #vod, #preview-host #tv-layer video { width: 100%; height: 100%; object-fit: contain; background: #000; }
#preview-host .pv-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #0a0f15;
  border-bottom: 1px solid #ffffff1f; }
#preview-host .pv-title { flex: 1 1 auto; min-width: 0; font-size: 13px; color: #dbe8f6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#preview-host .pv-btn { flex: 0 0 auto; font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid #ffffff2e; background: #ffffff14; color: #eaf6ff; cursor: pointer; }
#preview-host .pv-btn.close { background: #b3122b; border-color: #b3122b; color: #fff; font-weight: 700; }
/* The phone UI starts under the window rather than behind it, so none of it is hidden. The top offset
   is measured by app.js once the window has been laid out. */
body.vod-preview #mobile-frame { height: auto; bottom: 0; }
/* The stage's own chrome belongs to the 10-foot layout and is not drawn over the preview. */
body.vod-preview #fs-bar, body.vod-preview #back-float, body.vod-preview #vod-pip-chrome,
body.vod-preview #pip-chrome, body.vod-preview #tv-msg { display: none !important; }

/* ---------- toast ---------- */
/* The toast is never interactive. Without pointer-events:none its invisible box sat over the
   top-right of the top bar and swallowed clicks on the clock, Search and Exit Full. */
#toast { pointer-events: none; position: absolute; right: 60px; top: 50px; z-index: 40; background: rgba(5, 12, 20, .92); border: 1px solid var(--cyan); color: var(--text);
  padding: 18px 28px; border-radius: 10px; font-size: 24px; opacity: 0; transform: translateY(-10px); transition: .25s; box-shadow: 0 0 30px rgba(25, 230, 255, .3); }
#toast.on { opacity: 1; transform: none; }

/* ---------- top nav (catalog screens) ---------- */
.topbar { position: absolute; left: 0; right: 0; top: 0; height: 110px; display: flex; align-items: center; gap: 34px; padding: 0 60px; z-index: 5;
  background: linear-gradient(#05070bf0, #05070b00); }
.topbar .mf-logo { margin-right: 20px; }
.nav { display: flex; gap: 8px; }
.nav .tab { font-size: 24px; color: var(--muted); padding: 10px 20px; border-radius: 30px; letter-spacing: .02em; transition: .15s; white-space: nowrap; }
/* Back: a real button, not a hint. Sits first in the top bar so it is always in the same place, and
   is drawn in both orientations — a phone has no Esc key. */
.backbtn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; flex: 0 0 auto;
  background: #ffffff14; border: 1px solid #ffffff2b; color: #eaf6ff; cursor: pointer; }
.backbtn .ba { font-size: 27px; line-height: 1; }
.backbtn:hover, .backbtn.focus { background: var(--cyan); color: #00121a; border-color: transparent; }
body.m-portrait .backbtn { padding: 8px 15px; font-size: 22px; }
body.m-portrait .backbtn .ba { font-size: 24px; }
.nav .tab.cur { color: var(--text); }
.nav .tab.cur::after { content: ''; display: block; height: 3px; margin-top: 6px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); border-radius: 2px; }
.nav .tab.focus { background: var(--cyan); color: #00121a; box-shadow: 0 0 24px rgba(25, 230, 255, .7); }
.nav .tab.focus::after { display: none; }
.clock { font-size: 26px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Background DVR state: visible on every screen with a top bar, whatever is on air. */
.recchip { display: none; margin-left: auto; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: .1em; color: #ff6b78; }
.recchip.on { display: flex; }
.recchip .rec-dot { width: 12px; height: 12px; }
.recchip + .clock { margin-left: 22px; }
/* Mirroring the app itself (desktop apps only): the TV shows this whole screen, so the control lives in
   the top bar on every screen and turns solid while a mirror is live. */
.mirror-chip { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: .05em;
  color: #bcd8ea; padding: 9px 17px; border-radius: 22px; background: #ffffff12; border: 1px solid #ffffff26;
  cursor: pointer; white-space: nowrap; transition: .15s; }
.mirror-chip:hover { background: #ffffff20; border-color: #19e6ff80; color: #eaf9ff; }
.mirror-chip.on { background: var(--cyan); border-color: var(--cyan); color: #00121a; box-shadow: 0 0 20px #19e6ff66; }
.mirror-chip .rec-dot { width: 12px; height: 12px; background: #00121a; box-shadow: none; }
.mirror-chip.hide { display: none; }
/* Carries the mirror to an AirPlay TV: a real playback element (the route picker needs one) that must
   stay in the layout to keep playing, so it is off in a corner instead of display:none. */
#mirror-src { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; z-index: 0; }
/* Mirror control panel: the AirPlay button lives here because the route picker only opens for a
   video that is already playing, and a running mirror needs a visible way out. */
#mirror-panel { position: fixed; left: 50%; transform: translateX(-50%); bottom: 52px; z-index: 46; display: flex;
  flex-direction: column; gap: 14px; padding: 18px 22px; border-radius: 14px; background: rgba(5, 12, 20, .95);
  border: 1px solid #19e6ff66; box-shadow: 0 20px 60px #000c, 0 0 26px #19e6ff26; }
#mirror-panel .mp-row { display: flex; align-items: center; gap: 14px; }
#mirror-panel .mp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
#mirror-panel .mp-t { font-size: 20px; color: #dbeefc; }
#mirror-panel .mp-btn { font: inherit; font-size: 20px; padding: 11px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid #ffffff2e; background: #ffffff14; color: var(--text); transition: .15s; }
#mirror-panel .mp-btn.primary { background: var(--cyan); border-color: var(--cyan); color: #00121a; font-weight: 700; }
#mirror-panel .mp-btn:hover { filter: brightness(1.12); }
/* Search bar: on every screen that has a catalog, a lineup or a playlist behind it. Click it (or just
   start typing) and the search screen opens locked to that screen's scope. */
.sbar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 22px; flex: 0 0 auto;
  background: #ffffff10; border: 1px solid #ffffff24; color: #cfe3ff; font-size: 19px; cursor: text; transition: .15s; white-space: nowrap; }
.topbar .sbar { margin-left: auto; }
.sbar .si { font-size: 22px; color: var(--cyan); line-height: 1; }
.sbar { max-width: 200px; }
.sbar .sp { min-width: 0; max-width: 148px; overflow: hidden; text-overflow: ellipsis; color: #cfe3ffcc; }
.sbar kbd { font-size: 12px; padding: 2px 6px; border-radius: 5px; background: #ffffff1c; color: #9fb6d8; font-family: inherit; }
.sbar:hover { background: #ffffff1f; border-color: #19e6ff80; box-shadow: 0 0 18px #19e6ff26; }
.topbar .sbar + .recchip { margin-left: 16px; }
.guide .gtop .sbar { margin-left: auto; height: 48px; }
@media (max-width: 1740px) {
  .topbar { gap: 24px; padding: 0 44px; }
  .topbar .mf-logo { margin-right: 6px; }
  .nav { gap: 2px; }
  .nav .tab { font-size: 21px; padding: 8px 12px; }
  .sbar .sp { max-width: 112px; }
}

/* ---------- catalog / hero ---------- */
.catalog { background: var(--ink); }
.catalog > .hero .bg:not([style*="url"]) { background: var(--plate-hero) right top/cover; }
.hero { position: absolute; left: 0; right: 0; top: 0; height: 560px; overflow: hidden; pointer-events: none; }
/* The hero is decoration over the first row: without this it swallows clicks on the cards beneath. */
.hero .bg { position: absolute; right: 0; top: 0; width: 1240px; height: 100%; background-size: cover; background-position: center 25%; transition: opacity .5s; }
.hero .bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, #05070bd9 22%, #05070b55 55%, #05070b10 100%), linear-gradient(0deg, var(--ink) 0%, #05070b00 45%); }
.hero video.preview { position: absolute; right: 0; top: 0; width: 1240px; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero video.preview.on { opacity: 1; }
.hero .shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, #05070bd9 25%, #05070b40 55%, #05070b00 100%), linear-gradient(0deg, var(--ink) 0%, #05070b00 40%); }
.hero .info { position: absolute; left: 70px; top: 140px; width: 820px; }
.kicker { display: flex; gap: 14px; align-items: center; font-size: 20px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 104px; line-height: .92; margin: 14px 0 12px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 18px; align-items: center; font-size: 24px; color: #cfe3f0; flex-wrap: wrap; }
.meta .match { color: #46e08a; font-weight: 600; }
.hero .desc { margin-top: 18px; font-size: 25px; line-height: 1.45; color: #c4d6e3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: 6px; color: #fff; text-transform: uppercase; }
.badge.live { background: #e3172d; }
.badge.outline { border: 1px solid #8aa3b5; color: #cfe3f0; font-weight: 500; }
.pbar { height: 6px; background: #ffffff26; border-radius: 3px; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.rows { position: absolute; left: 0; right: 0; top: 520px; bottom: 0; overflow: hidden; }
.rows-track { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.row { position: relative; height: auto; padding: 8px 0 18px; }
/* Left/right page buttons on a card row: mouse, trackpad and touch, since the remote already has its
   own arrow keys. Rows only show them when the strip actually overflows. */
.rnav { position: absolute; top: 64px; bottom: 26px; width: 60px; display: none; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', Impact, sans-serif; font-size: 54px; line-height: 1; color: #eaf6ff; cursor: pointer; z-index: 6;
  user-select: none; -webkit-user-select: none; transition: color .15s, opacity .15s; }
.rnav.l { left: 0; background: linear-gradient(90deg, #05070bf2, #05070bcc 52%, #05070b00); border-radius: 0 32px 32px 0; }
.rnav.r { right: 0; background: linear-gradient(270deg, #05070bf2, #05070bcc 52%, #05070b00); border-radius: 32px 0 0 32px; }
.row.hasscroll .rnav, .episodes .rnav { display: flex; }
.row.at-start .rnav.l, .row.at-end .rnav.r { opacity: 0; pointer-events: none; }
.rnav:hover { color: var(--cyan); }
.episodes .rnav { top: 16px; bottom: 16px; width: 48px; font-size: 44px; }
.row h2 { margin: 0 0 12px 70px; font-size: 30px; font-weight: 600; color: #dfefff; display: flex; align-items: center; gap: 14px; }
.row h2 .count { font-size: 20px; color: var(--muted); font-weight: 400; }
.row .strip { display: flex; gap: 22px; padding: 18px 70px 22px; overflow: hidden; scroll-behavior: smooth; }
.row.dim h2 { opacity: .7; }

.card { position: relative; flex: none; border-radius: 10px; overflow: hidden; background: var(--panel); transition: transform .18s, box-shadow .18s; transform-origin: center; }
.card.focus { transform: scale(1.09); box-shadow: var(--glow); z-index: 2; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(#0000, #000d); font-size: 21px; font-weight: 600; line-height: 1.2; }
.card .label small { display: block; font-weight: 400; color: #b6c8d6; font-size: 17px; margin-top: 4px; }
.card .pbar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 5px; }
.card .svc { position: absolute; left: 10px; top: 10px; font-size: 13px; font-weight: 800; padding: 4px 8px; border-radius: 4px; color: #fff; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 2px 8px #0008; }
.card.poster { width: 230px; height: 345px; }
.card.wide { width: 420px; height: 236px; }
.card.service { width: 380px; height: 214px; display: grid; place-items: center; text-align: center; }
.card.service .name { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 66px; line-height: 1; text-shadow: 0 3px 14px #0008; color: #fff; }
.card.service .sub { position: absolute; bottom: 14px; left: 0; right: 0; font-size: 18px; color: #ffffffcc; }
.card.service::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #ffffff22, #0000 50%, #0006); }
.card.channel { width: 420px; height: 236px; background: linear-gradient(135deg, #0b2347, #050d1a); }
.card.channel .num { position: absolute; left: 18px; top: 14px; z-index: 2; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 46px; color: var(--cyan-soft); text-shadow: 0 0 12px #19e6ff88; }
.card.channel .logo { position: absolute; right: 16px; top: 16px; max-width: 150px; max-height: 70px; object-fit: contain; width: auto; height: auto; }
.card.channel .cname { position: absolute; left: 18px; top: 70px; font-size: 20px; color: var(--muted); }
/* The programme title is bottom-anchored, so a long title grew upward until its text sat under the
   channel number — worst on a phone-height window, where the whole stage is scaled into 219px and
   eight of the guide's cards collided. Capped to the room below the number, clipped, and the number
   always paints on top. */
.card.channel .label { background: none; max-height: calc(100% - 80px); overflow: hidden; }
.card.channel .label .pbar { position: static; margin-top: 10px; }
/* The episode/subtitle line the guide shows, carried onto the card. */
.card.channel .label small.ep { display: block; font-size: 15px; color: #8aa3b5; font-style: italic;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.boxart { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 18px; }
.boxart .t { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 44px; line-height: .95; color: #fff; text-shadow: 0 2px 10px #0009; word-break: break-word; }
.boxart .y { font-size: 16px; color: #ffffffb0; margin-top: 8px; letter-spacing: .1em; }
.empty-row { margin: 0 70px; font-size: 22px; color: var(--muted); padding: 30px 0; }

/* ---------- services grid ---------- */
.svc-grid { position: absolute; left: 70px; right: 70px; top: 170px; display: flex; flex-wrap: wrap; gap: 30px; }
.svc-grid .card.service { width: 412px; height: 232px; }
.page-title { position: absolute; left: 70px; top: 112px; font-size: 26px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- detail ---------- */
.detail { background: var(--ink); }
.detail .bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.detail .bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, #05070bf2 35%, #05070b66 70%, #05070b22 100%), linear-gradient(0deg, var(--ink) 0%, #05070b00 50%); }
/* The info column owns everything above the episode shelf, and it ends where that shelf begins.
   Without a bottom edge the season chips flowed down into the episode cards, and because the
   episodes are their own absolutely positioned layer drawn later they painted *over* the chips:
   "Season 1 / Season 2" on Dexter Resurrection was there, just buried. Anything that does not fit
   now scrolls inside this column instead of sliding under the shelf. */
/* 400, not 306: the episode shelf is a 225px thumb plus two lines and its padding — 341 stage px — and
   reserving less left the season chips under its top edge. */
.detail .info { position: absolute; left: 90px; top: 130px; width: 940px; bottom: 400px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding-right: 10px; }
.detail .info::-webkit-scrollbar { display: none; }
/* A little more air between the season chips and the shelf edge. */
.detail .seasons-wrap { margin: 14px 0 10px; }
/* The info column is a fixed-height stack above the episode shelf, so the title and synopsis are
   clamped rather than allowed to push the season chips under the cards. Two lines of Bebas and three
   of copy is the most that fits beside a full shelf at 1080. */
.detail h1 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 92px; line-height: .94; margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.detail .desc { font-size: 25px; line-height: 1.42; color: #c9dbe8; margin: 12px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.detail .credits { font-size: 21px; color: var(--muted); line-height: 1.6; }
/* Detail actions are one line: wrapping put Record under Play on narrow windows, which is the one
   place the remote's left/right must stay predictable. Overwide rows scroll instead. Everywhere else
   — Settings, the DVR, a modal — the row wraps: a nowrap row in Settings' column cut the last button
   ("Boot: animated…") off at the column edge with no sign it could be scrolled to. */
.btns { display: flex; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.detail .btns { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none; }
.detail .btns::-webkit-scrollbar { display: none; }
.btns > .f { flex: 0 0 auto; }
.btn { font-size: 26px; padding: 16px 34px; border-radius: 8px; background: #ffffff1f; color: var(--text); border: 2px solid transparent; transition: .15s; display: inline-flex; align-items: center; gap: 12px; }
.btn.primary { background: #e8f8ff; color: #00121a; font-weight: 700; }
.btn.focus { background: var(--cyan); color: #00121a; box-shadow: 0 0 26px rgba(25, 230, 255, .75); transform: scale(1.04); }
/* A 25-season show is wider than the info block, so the row scrolls instead of running off screen.
   The arrows are for pointer and touch, the remote scrolls it by focusing the next season. */
.seasons-wrap { position: relative; margin: 36px 0 10px; }
.seasons { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none; }
.seasons::-webkit-scrollbar { display: none; }
.seasons .btn { font-size: 22px; padding: 10px 22px; flex: none; }
.seasons .btn.cur { border-color: var(--cyan); }
.seasons-wrap .rnav { top: 0; bottom: 0; width: 42px; font-size: 38px; }
.seasons-wrap.hasscroll .rnav { display: flex; }
.seasons-wrap.at-start .rnav.sl, .seasons-wrap.at-end .rnav.sr { opacity: 0; pointer-events: none; }
.episodes { position: absolute; left: 90px; right: 90px; bottom: 40px; }
.episodes .strip { display: flex; gap: 22px; overflow: hidden; padding: 16px 6px; }
.ep { width: 400px; flex: none; }
.ep .thumb { height: 225px; border-radius: 10px; overflow: hidden; background: var(--panel); position: relative; transition: .18s; }
.ep.focus .thumb { box-shadow: var(--glow); transform: scale(1.05); }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep .thumb .pbar { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.ep .et { font-size: 21px; font-weight: 600; margin-top: 14px; }
.ep .ed { font-size: 17px; color: var(--muted); margin-top: 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- live TV banner (DirecTV style) ---------- */
.live-ui { position: absolute; inset: 0; }
.banner { position: absolute; left: 60px; right: 60px; bottom: 50px; height: 250px; border-radius: 14px; overflow: hidden; display: flex;
  background: linear-gradient(180deg, #0d3a8acc, #04164ae6); border: 1px solid #3d6cc4; box-shadow: 0 20px 60px #000a; transition: opacity .35s, transform .35s; }
/* A banner that has faded out must also stop taking presses: it covers the bottom quarter of the
   picture, and an invisible control under the finger is how a "nothing happens" tap happens. */
.banner.off { opacity: 0; transform: translateY(30px); pointer-events: none; }
.banner .chan { width: 280px; display: grid; place-items: center; align-content: center; gap: 6px; background: linear-gradient(180deg, #0a2463, #031035); border-right: 1px solid #3d6cc4; }
.banner .chan .n { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 96px; line-height: .85; color: #fff; }
.banner .chan .cn { font-size: 22px; color: #a9c4ec; text-align: center; padding: 0 16px; }
.banner .chan img { max-width: 170px; max-height: 60px; object-fit: contain; }
.banner .now { flex: 1; padding: 22px 30px 20px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
/* Title on the left, the whole play bar on the right — the wide band the banner had going spare. */
.banner .now .nowtop { display: flex; align-items: center; gap: 18px; }
.banner .now .t { flex: 1 1 auto; min-width: 0; font-size: 33px; line-height: 1.12; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner .now .s { font-size: 22px; color: #a9c4ec; margin-top: 6px; display: flex; gap: 14px; align-items: center; }
.banner .now .d { font-size: 22px; color: #dbe7fb; margin-top: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner .now .pbar { margin-top: 14px; height: 8px; background: #ffffff22; }
.banner .now .pbar > i { background: var(--gold); box-shadow: none; }
/* Clock, next programme, source, then the action chips pinned to the bottom of the card. This column
   used to carry the keyboard cheat sheet as well, which pushed Full / Q / AirPlay past the banner's
   height — where overflow:hidden clipped them off entirely, so the AirPlay button existed but could
   never be seen or pressed. The same hints live in Settings → Keys. */
.banner .side { width: 440px; padding: 18px 26px; border-left: 1px solid #3d6cc4; background: #03103599;
  display: flex; flex-direction: column; gap: 10px; }
.banner .side .clk { font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.banner .side .nx { font-size: 19px; color: #a9c4ec; margin-top: 18px; text-transform: uppercase; letter-spacing: .1em; }
.banner .side .nt { font-size: 23px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner .side .keys { display: none; }
.banner .side .src { display: inline-block; margin-top: 14px; padding: 6px 12px; border: 1px solid #ffd23f66; border-radius: 6px; color: var(--gold); font-size: 17px; font-weight: 600; }
.banner .side .src span { color: #a9c4ec; font-weight: 400; margin-left: 8px; }
.banner .side .viewlink { display: inline-block; margin-top: 12px; padding: 7px 13px; border: 1px solid #3d6cc4; border-radius: 6px;
  color: #d4e2fb; font-size: 17px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.banner .side .viewlink:hover { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
/* Click targets for the actions that used to be keyboard-only (M, R). They live in the banner so
   they appear with it, instead of a permanent ☰ chip sitting over the programme. */
/* One row, never wrapped. The Q chip's label grows and shrinks with the size actually playing
   ("Q Auto" → "Q 720p auto"), and a wrap used to shove AirPlay onto a second row in the middle of
   a press — the finger went down on the button and came up on the row behind it. */
.banner .side .actrow { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: auto; }
.banner .side .actrow .chip { white-space: nowrap; flex: 0 0 auto; }
.banner .side .actrow .chip, .banner .side .actrow .viewlink { position: static; margin: 0; font-size: 17px; padding: 7px 14px; border: 1px solid #3d6cc4;
  border-radius: 6px; background: #0a2463; color: #dbe7fb; cursor: pointer; }
.banner .side .actrow .chip:hover, .banner .side .actrow .viewlink:hover { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
.rec-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #e3172d; box-shadow: 0 0 10px #e3172d; }

/* ---------- live play bar (top of the programme card) ---------- */
/* One row of buttons beside the title, not a 5×2 grid squeezed into the blue channel column. */
.banner .chan { width: 300px; padding: 16px; justify-items: center; }
.banner .chan .n { font-size: 68px; }
.banner .chan .cn { font-size: 20px; line-height: 1.25; max-height: 50px; overflow: hidden; }
.banner .chan img { max-width: 130px; max-height: 40px; }
.chanctl { display: flex; align-items: center; gap: 6px; flex: none; }
.chanctl .cbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  border: 1px solid #3d6cc4; background: #0a2463cc; color: #dbe7fb; font-size: 17px; line-height: 1;
  font-variant-numeric: tabular-nums; transition: background .15s, color .15s, border-color .15s; }
.chanctl .cbtn:hover, .chanctl .cbtn.focus { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
.chanctl .cbtn.star { color: #8fb0e0; font-size: 20px; }
.chanctl .cbtn.star.on { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 210, 63, .4); }
.chanctl .cbtn[data-live='source'] { width: auto; padding: 0 10px; font-size: 14px; letter-spacing: .02em; }
.chanctl .vol { width: 100px; height: 20px; margin: 0 0 0 4px; accent-color: var(--gold); cursor: pointer; }
.banner .side .actrow { align-items: center; }
.banner .side .actrow .chip.star { font-size: 20px; line-height: 1; color: #8fb0e0; }
.banner .side .actrow .chip.star.on { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 210, 63, .35); }
.banner .side .actrow .vol { width: 128px; height: 22px; accent-color: var(--gold); cursor: pointer; margin: 0 4px; }

/* ---------- corner preview ---------- */
/* Backing out of the picture does not stop it: the channel shrinks into this window over whatever
   page came back, and its × is the only thing that ends playback. */
#pip-chrome { display: none; }
/* Same corner as the guide's preview: top right, clear of the top bar, on every screen — Home,
   Guide, a service, Movies, Shows, DVR — not just the guide grid. */
body.tv-pip #tv-layer { display: block; inset: auto; right: 60px; top: 120px; width: 560px; height: 315px;
  position: absolute; z-index: 12; border: 1px solid #3d6cc4; border-radius: 10px; overflow: hidden;
  background: #000; cursor: pointer; box-shadow: 0 18px 60px rgba(0, 0, 0, .8), 0 0 0 1px #0006; }
body.tv-pip #tv-layer video { width: 100%; height: 100%; object-fit: cover; }
body.tv-pip #pip-chrome { display: block; }
body.tv-pip #tv-msg { font-size: 16px; }
.pip-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 17px;
  color: #dbe7fb; background: linear-gradient(transparent, rgba(4, 10, 18, .92)); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.pip-btns { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.pip-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 17px;
  background: rgba(4, 10, 18, .78); border: 1px solid #ffffff33; color: #e8f4ff; cursor: pointer; }
.pip-btn:hover { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
.pip-btn.star.on { color: var(--gold); border-color: var(--gold); }
/* Dragged by a finger or a mouse: the window can be put anywhere on the stage, so touch-action has
   to be off or the page scrolls instead of the picture moving. The cursor says it is draggable. */
body.tv-pip #tv-layer, body.vod-pip #vod { touch-action: none; cursor: grab; }
body.tv-pip #tv-layer.dragging, body.vod-pip #vod.dragging { cursor: grabbing; }
/* A drag is not a tap: no blue text selection, no callout, no long-press menu on the label. */
body.tv-pip #pip-chrome, body.vod-pip #vod-pip-chrome { -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; }

/* A film left playing uses the same corner: leaving the player shrinks it here instead of stopping
   it, and its × is what ends playback — the channel preview's contract, for movies. */
#vod-pip-chrome { display: none; }
body.vod-pip #vod { display: block; position: absolute; inset: auto; right: 60px; top: 120px;
  width: 560px; height: 315px; z-index: 12; object-fit: cover; background: #000; cursor: pointer;
  border: 1px solid #3d6cc4; border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .8), 0 0 0 1px #0006; }
body.vod-pip #vod-pip-chrome { display: block; position: absolute; right: 60px; top: 120px; width: 560px;
  height: 315px; z-index: 13; border-radius: 10px; overflow: hidden; pointer-events: none; }
body.vod-pip #vod-pip-chrome .pip-btns { pointer-events: auto; }
body.vod-pip #screens { z-index: 3; }

/* ---------- hero description ---------- */
/* Long copy is not clipped: it fades out at the bottom and scrolls slowly through the fade. */
.hero .desc.scrolly { -webkit-line-clamp: unset; display: block; max-height: 112px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
/* Measuring pass: the clamp is lifted for one frame so the real height of the copy is knowable —
   a line-clamped box reports scrollHeight === clientHeight and would never look like it overflows. */
.hero .desc.measuring { -webkit-line-clamp: unset; display: block; max-height: none; }
.hero .desc .dtxt { display: block; will-change: transform; }
.hero .desc.scrolly .dtxt { animation: descScroll var(--dsec, 14s) ease-in-out infinite alternate; }
@keyframes descScroll { from { transform: none; } to { transform: translateY(var(--dscroll, 0px)); } }
.chan-entry { position: absolute; right: 80px; top: 60px; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 120px; color: #fff; text-shadow: 0 0 20px #000, 0 0 40px #0a2a6b; }

/* ---------- DirecTV menu overlay ---------- */
.dtv-menu { position: absolute; left: 0; top: 0; bottom: 0; width: 620px; background: linear-gradient(90deg, #03103af5, #0a2a6be6 80%, #0a2a6b00);
  padding: 70px 0 0 70px; animation: slideIn .25s ease-out; }
@keyframes slideIn { from { transform: translateX(-60px); opacity: 0; } }
.dtv-menu .mf-logo { margin-bottom: 40px; }
.dtv-menu .item { font-size: 32px; padding: 14px 26px; margin: 4px 0; width: 440px; border-radius: 8px; color: #d4e2fb; display: flex; justify-content: space-between; align-items: center; }
.dtv-menu .item kbd { font-family: inherit; font-size: 17px; color: #8fb0e0; border: 1px solid #3d6cc4; border-radius: 4px; padding: 2px 8px; }
.dtv-menu .item.focus { background: linear-gradient(180deg, #ffe680, var(--gold)); color: #1b1300; font-weight: 700; box-shadow: 0 0 20px #ffd23f66; }
.dtv-menu .item.focus kbd { color: #4a3800; border-color: #4a3800; }

/* ---------- guide (classic DirecTV grid) ---------- */
.guide, .playlist { background: linear-gradient(180deg, #0a2a6bcc 0%, #04123aee 100%), var(--plate-guide) center/cover, var(--dtv-bot); }
.guide .gtop { position: absolute; left: 60px; right: 500px; top: 30px; height: 70px; display: flex; align-items: center; gap: 30px; }
.guide .gtop .title { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 58px; color: #fff; letter-spacing: .04em; }
.guide .gtop .date { font-size: 24px; color: #a9c4ec; }
.guide .gtop .clock { color: #fff; }
.guide .ginfo { position: absolute; left: 60px; right: auto; top: 120px; width: 620px; height: 360px; padding: 6px 10px; }
.guide .ginfo .t { font-size: 46px; font-weight: 700; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide .ginfo .s { font-size: 24px; color: #a9c4ec; margin-top: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.guide .ginfo .d { font-size: 24px; color: #dbe7fb; margin-top: 18px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.guide .ginfo .tags { display: flex; gap: 10px; margin-top: 14px; }
.tag { font-size: 16px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: #ffffff22; color: #fff; letter-spacing: .06em; }
.tag.new { background: #1e9e4a; } .tag.rec { background: #e3172d; } .tag.hd { background: #2a54a8; }
.grid { position: absolute; left: 24px; right: 24px; top: 510px; bottom: 50px; border: 1px solid var(--dtv-line); background: #031035; overflow: hidden; }
.grid .times { display: flex; height: 50px; background: linear-gradient(180deg, #1a4a9e, #0d3277); border-bottom: 1px solid var(--dtv-line); }
.grid .times .corner { width: 300px; flex: none; display: flex; align-items: center; padding-left: 20px; font-size: 22px; font-weight: 700; color: var(--gold); border-right: 1px solid var(--dtv-line); }
.grid .times .slots { position: relative; flex: 1; }
.grid .times .slot { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 14px; font-size: 22px; color: #fff; border-left: 1px solid #ffffff22; }
.grid .grow { display: flex; height: 64px; border-bottom: 1px solid #1d3f86; }
.grid .gch { width: 300px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: linear-gradient(180deg, #0e3478, #0a2860); border-right: 1px solid var(--dtv-line); }
.grid .gch .n { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 36px; color: #fff; width: 76px; }
.grid .gch .nm { font-size: 19px; color: #c6d8f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.grid .gch img { max-width: 70px; max-height: 40px; object-fit: contain; }
.grid .grow.tuned .gch { box-shadow: inset 5px 0 0 var(--gold); }
.grid .progs { position: relative; flex: 1; overflow: hidden; }
.grid .cell { position: absolute; top: 3px; bottom: 3px; padding: 0 14px; display: flex; align-items: center; gap: 10px; font-size: 21px; color: #e8f0ff;
  background: linear-gradient(180deg, var(--dtv-cell2), var(--dtv-cell)); border: 1px solid #23498f; border-radius: 4px; white-space: nowrap; overflow: hidden; }
.grid .cell .tt { overflow: hidden; text-overflow: ellipsis; }
.grid .cell.past { color: #9fb4d8; }
.grid .cell.focus { background: linear-gradient(180deg, #fff1a6, var(--gold)); color: #1b1300; font-weight: 700; border-color: #fff3b0; box-shadow: 0 0 18px #ffd23f88; z-index: 2; }
.grid .cell .rec-dot { width: 13px; height: 13px; flex: none; }
.grid .cell .more { font-weight: 700; flex: none; }
.grid .nowline { position: absolute; top: 50px; bottom: 0; width: 3px; background: #e3172d; box-shadow: 0 0 8px #e3172d; z-index: 3; pointer-events: none; }
.guide .hint { position: absolute; left: 60px; right: 60px; bottom: 12px; font-size: 18px; color: #8fb0e0; display: flex; gap: 34px; }
/* Hidden until the portrait rule above turns it on, so landscape is exactly as it was. */
.guide > .topbar { display: none; }
.guide .hint b { color: #fff; }

/* ---------- modal ---------- */
.modal-bg { position: absolute; inset: 0; background: #000a; display: grid; place-items: center; }
.modal { min-width: 640px; max-width: 900px; max-height: 84%; overflow-y: auto; background: linear-gradient(180deg, #0e3478, #04164a); border: 1px solid #3d6cc4; border-radius: 14px; padding: 36px 40px; box-shadow: 0 30px 80px #000c; }
.modal h3 { margin: 0 0 8px; font-size: 36px; }
.modal p { margin: 0 0 22px; font-size: 22px; color: #a9c4ec; line-height: 1.4; }
.modal .opt { font-size: 28px; padding: 14px 24px; border-radius: 8px; margin: 6px 0; color: #e8f0ff; }
.modal .opt.focus { background: linear-gradient(180deg, #fff1a6, var(--gold)); color: #1b1300; font-weight: 700; }
.modal .opt.drive { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; cursor: pointer; }
.modal .opt.drive .nm { font-size: 27px; }
.modal .opt.drive small { font-size: 19px; opacity: .8; align-self: center; letter-spacing: .04em; }
.modal .opt.drive em { grid-column: 1 / -1; font-style: normal; font-size: 18px; opacity: .62; }
.modal .opt.drive.focus em, .modal .opt.drive.focus small { opacity: .85; }
.modal.dvr-modal { width: 900px; max-height: 84vh; overflow-y: auto; }
.modal.dvr-modal h3.sub { font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.dvrpath { margin-top: 10px; }
.dvrpath input { width: 100%; box-sizing: border-box; font: inherit; font-size: 21px; padding: 14px 16px;
  background: #02060f; color: var(--text); border: 2px solid #ffffff33; border-radius: 8px; }
.dvrpath input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px #19e6ff2e; }
.dvrpath .btns { margin-top: 12px; }
.dvrpath .btn { font-size: 21px; padding: 12px 24px; }
.dvr-hint { font-size: 19px !important; margin: 12px 0 0 !important; opacity: .8; }
.modal.dvr-modal .none { font-size: 20px; color: var(--muted); padding: 8px 0 4px; }

/* ---------- VOD player: YouTube-style transport, Xbox 360 glass controls ---------- */
/* Back, the title and the captions/sources/fullscreen actions share the transport bar's idle
   timer: five seconds after the pointer stops, the picture is alone. `.off` is the same switch the
   scrubber uses, so both rows come back together on any move, tap or key. */
.p-top { position: absolute; left: 0; right: 0; top: 0; z-index: 34; display: flex; align-items: center; gap: 22px;
  padding: 24px 46px 54px; background: linear-gradient(#000e 0%, #0009 45%, #0000 100%); pointer-events: none;
  transition: opacity .3s ease; }
.p-top > * { pointer-events: auto; }
.p-top.off { opacity: 0; pointer-events: none; }
.p-top.off > * { pointer-events: none; }
/* The player's back button: a round liquid-glass button in cyan, not a pill. Two soft highlights
   (one top-left, one bottom-right) over a translucent pane, a blurred backdrop, and an inner rim
   light are what make it read as glass rather than a flat circle. */
.gback { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit;
  color: #eafdff; border: 1px solid #8ceaff7a;
  background:
    radial-gradient(120% 120% at 28% 10%, #ffffff73 0%, #ffffff1f 34%, #ffffff00 56%),
    radial-gradient(90% 90% at 74% 100%, #19e6ff4d 0%, #19e6ff00 62%),
    linear-gradient(180deg, #d8fbff33 0%, #19e6ff26 52%, #053b5666 100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 #ffffffb8, inset 0 -2px 8px #002a4473, inset 0 0 18px #19e6ff2e,
    0 8px 22px #000000a6, 0 0 22px #19e6ff38;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, color .18s; }
.gback::after { content: ''; position: absolute; left: 11px; right: 11px; top: 4px; height: 42%;
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(#ffffffa0, #ffffff00); mix-blend-mode: screen; }
.gback svg { width: 26px; height: 26px; display: block; position: relative; z-index: 1;
  filter: drop-shadow(0 0 6px #19e6ff8c); }
/* The way out of a video is the wordmark, not a chevron: the same glass, stretched to a pill that
   holds the logo at its natural width. */
.gback--brand { width: auto; min-width: 150px; padding: 0 20px; border-radius: 18px; }
.gback--brand svg { width: auto; height: 22px; }
.gback--brand:hover svg, .gback--brand.focus svg { filter: drop-shadow(0 0 6px #00000033); }
.gback:hover, .gback.focus { color: #001a24;
  background:
    radial-gradient(120% 120% at 28% 10%, #ffffffd9 0%, #ffffff42 36%, #ffffff00 58%),
    linear-gradient(180deg, #b8f6ff 0%, #4fe0ff 56%, #12b4d8 100%);
  border-color: #d6fbff;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 8px #0a5f7a80, 0 0 0 2px #19e6ff73,
    0 8px 26px #000000b3, 0 0 34px #19e6ffb8; transform: translateY(-1px); }
.gback:hover::after, .gback.focus::after { background: linear-gradient(#ffffffd0, #ffffff00); }
.gback:active { transform: translateY(1px) scale(.985); }

.p-meta { min-width: 0; flex: 1; }
.p-meta .t { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 35px; letter-spacing: .015em; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 16px #000; }
.p-meta .s { font-size: 18px; color: #cfe4f4cc; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.osd { position: absolute; inset: 0; z-index: 20; pointer-events: none; transition: opacity .3s ease; }
.osd > * { pointer-events: auto; }
.osd.off { opacity: 0; pointer-events: none; }
.osd.off > * { pointer-events: none; }
.osd .bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 190px 46px 30px;
  background: linear-gradient(#0000 0%, #000000a8 48%, #000000ec 100%); }
.osd .bar { position: relative; height: 5px; margin: 0 6px 6px; border-radius: 3px; cursor: pointer;
  background: #ffffff3d; transition: height .14s ease, margin .14s ease; }
/* A 5px track is a 5px target: the pointer had to be pixel-perfect, and a click 10px off it landed
   on the gradient behind, where the picture turns the click into play/pause. This invisible strip
   gives the timeline the 33px grab area of a normal player without changing how it looks. */
.osd .bar::before { content: ''; position: absolute; left: -10px; right: -10px; top: -14px; bottom: -14px; }
.osd .bar:hover { height: 7px; }
.osd .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit;
  background: linear-gradient(90deg, #0b72d9, #4cd0ff 80%, #c4f2ff); box-shadow: 0 0 12px #19b6ffcc; }
.osd .bar b { position: absolute; top: 50%; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border-radius: 50%;
  background: #f6fcff; border: 2px solid #0a80e8; box-shadow: 0 0 0 3px #19b6ff40, 0 0 14px #19b6ff; opacity: 0; transition: opacity .14s; }
.osd .bar:hover b { opacity: 1; }
.osd .bar .btip { position: absolute; bottom: 18px; transform: translateX(-50%); font-size: 14px; padding: 3px 8px;
  border-radius: 5px; background: #02080fe8; color: #e8f8ff; opacity: 0; pointer-events: none; white-space: nowrap; }
.osd .bar:hover .btip, .osd .bar .btip.on { opacity: 1; }
/* Record-to-DVR on every playbar. */
.osd .ctl.recbtn { min-width: 0; padding: 0 13px; gap: 7px; }
.osd .ctl.recbtn .recdot { width: 13px; height: 13px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 12px #ff3b30aa; }
.osd .ctl.recbtn .rec-label { font-size: 15px; letter-spacing: .06em; }
.osd .ctl.recbtn.on { background: #ff3b3026; color: #ffd9d6; }
.osd .ctl.recbtn.on .recdot { animation: recPulse 1.4s ease-in-out infinite; }
.osd .ctl.recbtn.busy { opacity: .55; }
@keyframes recPulse { 50% { opacity: .35; } }
.osd .controls { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.osd .ctl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; min-width: 46px;
  padding: 0 12px; border: 0; border-radius: 23px; color: #f4fbff; background: transparent; font: inherit;
  font-size: 17px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s, color .15s; }
.osd .ctl svg { width: 25px; height: 25px; display: block; }
.osd .ctl:hover, .osd .ctl.focus { background: #ffffff26; transform: scale(1.04); }
.osd .ctl.play { width: 54px; height: 54px; min-width: 54px; padding: 0; border-radius: 50%; color: #04141f;
  background: linear-gradient(180deg, #f8feff, #bee9ff 55%, #7ccfff);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px #2a7fb3aa, 0 0 0 1px #a8e7ff99, 0 4px 16px #0008; }
.osd .ctl.play svg { width: 26px; height: 26px; }
.osd .ctl.play:hover, .osd .ctl.play.focus { background: linear-gradient(180deg, #fff, #7fdcff 50%, #0a8df0); transform: scale(1.07); box-shadow: 0 0 0 1px #c8f3ff, 0 0 26px #19b6ffcc; }
.osd .ctl.on { color: var(--cyan); }
.osd .ctl .cc-label, .osd .ctl .src-label, .osd .ctl .full-label { font-size: 16px; }
.osd .ctl.nextbtn { background: linear-gradient(180deg, #e8f9ff, #97deff 55%, #4ab8f5); color: #001a2a; padding: 0 18px;
  box-shadow: inset 0 1px 0 #fff, 0 0 16px #19b6ff55; }
.osd .ctl.nextbtn:hover { background: linear-gradient(180deg, #fff, #bdeaff 55%, #62c8ff); }
.osd .ctl.nextbtn svg { width: 20px; height: 20px; }
.osd .ptime { display: flex; gap: 6px; margin-left: 10px; font-size: 17px; color: #d9e9f5; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px #000; }
.osd .ptime .sep { color: #ffffff59; }
.osd .spacer { flex: 1; }
.osd .state { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 90px; color: #fff; text-shadow: 0 0 30px #000; pointer-events: none; }


/* End-of-title panel: next episode, or recommendations when there is nothing left to play. */
.endcard { position: absolute; inset: 0; z-index: 40; display: none; background: linear-gradient(180deg, #05070bf7, #05070bfd); }
.endcard.on { display: block; }
.endcard .ec-inner { position: absolute; left: 70px; right: 70px; top: 70px; bottom: 45px; }
.endcard .ec-kicker { font-size: 19px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.endcard .ec-title { font-size: 48px; font-weight: 700; margin-top: 8px; line-height: 1.1; }
.endcard .ec-sub { font-size: 23px; color: #b9cbd8; margin-top: 8px; }
.endcard .ec-actions { display: flex; gap: 14px; margin-top: 22px; }
.endcard .ec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 28px; align-content: start; }
.endcard .ec-card { border-radius: 8px; overflow: hidden; background: #0c1622; border: 2px solid transparent; transition: transform .15s, border-color .15s; cursor: pointer; }
.endcard .ec-card img { display: block; width: 100%; height: 220px; object-fit: cover; background: #0c1622; }
.endcard .ec-card .t { padding: 10px 12px 2px; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.endcard .ec-card .s { padding: 0 12px 12px; font-size: 16px; color: #8aa3b5; }
.endcard .ec-card.focus { border-color: var(--cyan); box-shadow: 0 0 24px #19e6ff66; transform: scale(1.03); }
.endcard .ec-count { font-size: 20px; color: var(--gold); margin-left: 8px; }

/* Before the credits: the same question the end card answers, asked a few minutes early in the
   corner so a film never runs out onto a blank wall. Glass, like the rest of the player chrome. */
.recs { position: absolute; right: 46px; bottom: 132px; width: min(700px, calc(100% - 92px)); max-height: calc(100% - 180px); overflow: auto; z-index: 26; display: none;
  padding: 16px 18px 14px; border-radius: 16px; pointer-events: auto;
  background: linear-gradient(160deg, rgba(11, 26, 39, .93), rgba(5, 12, 20, .95));
  border: 1px solid rgba(25, 182, 255, .45);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  animation: recsIn .35s ease-out; }
.recs.on { display: block; }
@keyframes recsIn { from { opacity: 0; transform: translateY(14px); } }
.recs .rec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.recs .rec-kicker { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.recs .rec-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ffffff2e; background: #ffffff12;
  color: #dceaf5; font: inherit; font-size: 15px; cursor: pointer; }
.recs .rec-x:hover, .recs .rec-x.focus { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
.recs .rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recs .rec-card { border-radius: 10px; overflow: hidden; background: #0a1420; border: 1px solid #1c3c55;
  cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.recs .rec-card img { display: block; width: 100%; height: 108px; object-fit: cover; background: #0a1420; }
.recs .rec-card .t { padding: 8px 10px 2px; font-size: 15px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.recs .rec-card .s { padding: 0 10px 9px; font-size: 13px; color: #8aa3b5; }
.recs .rec-card.wide img { height: 132px; }
.recs .rec-card:hover, .recs .rec-card.focus { border-color: var(--cyan); transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(25, 182, 255, .28); }
.recs .rec-note { margin-top: 10px; font-size: 13px; color: #7f97a8; }
.spinner { width: 80px; height: 80px; border: 6px solid #ffffff22; border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- DVR playlist ---------- */

.playlist .list { position: absolute; left: 60px; top: 170px; width: 900px; bottom: 60px; overflow: hidden; }
.playlist .tabs { position: absolute; left: 60px; top: 110px; display: flex; gap: 10px; }
.playlist .tabs .btn { font-size: 22px; padding: 10px 24px; }
.playlist .tabs .btn.cur { border-color: var(--gold); }
.prow { display: flex; align-items: center; gap: 20px; padding: 16px 22px; border-bottom: 1px solid #1d3f86; font-size: 25px; }
.prow .pt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pd { font-size: 20px; color: #a9c4ec; white-space: nowrap; }
.prow.focus { background: linear-gradient(180deg, #fff1a6, var(--gold)); color: #1b1300; font-weight: 700; border-radius: 6px; }
.prow.focus .pd { color: #4a3800; }
.playlist .pinfo { position: absolute; left: 1010px; right: 60px; top: 170px; }
.playlist .pinfo .art { height: 470px; border-radius: 10px; overflow: hidden; background: #031035; border: 1px solid var(--dtv-line); }
.playlist .pinfo .art img { width: 100%; height: 100%; object-fit: cover; }
.playlist .pinfo .t { font-size: 40px; font-weight: 700; margin-top: 24px; }
.playlist .pinfo .s { font-size: 22px; color: #a9c4ec; margin-top: 8px; }
.playlist .pinfo .d { font-size: 23px; color: #dbe7fb; margin-top: 14px; line-height: 1.45; }
.playlist .empty { font-size: 26px; color: #a9c4ec; padding: 40px 22px; line-height: 1.5; }

/* ---------- search ---------- */
.search .qlabel { position: absolute; left: 76px; top: 96px; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); opacity: .85; }
/* Search scopes: one chip per place the app can search — everything, movies, series, live TV, the
   DVR, YouTube and each service. A strip that scrolls rather than wraps, so the field and the results
   keep the positions they were laid out for. */
.search .scopes { position: absolute; left: 70px; top: 84px; width: 600px; display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: none; }
.search .scopes::-webkit-scrollbar { display: none; }
.search .scope { flex: 0 0 auto; font-size: 18px; padding: 7px 15px; border-radius: 999px;
  background: #ffffff12; color: #cfe6f5; white-space: nowrap; }
.search .scope.on { background: var(--cyan); color: #00121a; box-shadow: 0 0 16px #19e6ff66; }
.search .query { position: absolute; left: 70px; top: 130px; width: 600px; height: 76px; border-bottom: 3px solid var(--cyan); font-size: 44px; padding: 10px 6px; color: #fff; }
.search .query .caret { display: inline-block; width: 3px; height: 44px; background: var(--cyan); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kbd { position: absolute; left: 70px; top: 240px; width: 600px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.kbd .k { height: 78px; display: grid; place-items: center; font-size: 30px; background: #ffffff12; border-radius: 8px; }
.kbd .k.wide2 { grid-column: span 2; font-size: 22px; }
.kbd .k.wide3 { grid-column: span 3; font-size: 22px; }
.kbd .k.focus { background: var(--cyan); color: #00121a; box-shadow: 0 0 20px #19e6ffaa; }
/* The query line is a real text field. It used to be a span that only the A-Z pad could fill, which is
   why nothing could be typed on a phone, in the Android shell or in the Mac window. */
.search .query .sinput { width: 100%; height: 100%; background: none; border: 0; outline: none; color: #fff;
  font: inherit; font-size: 44px; padding: 0; caret-color: var(--cyan); }
.search .query .sinput::placeholder { color: #ffffff3d; }
.search .query .sinput::-webkit-search-cancel-button, .search .query .sinput::-webkit-search-decoration { display: none; }
.results { position: absolute; left: 730px; right: 40px; top: 130px; bottom: 0; overflow: hidden; }
.results .grid2 { display: flex; flex-wrap: wrap; gap: 22px; padding: 14px; }
.results h3 { font-size: 26px; margin: 18px 14px 0; color: #dfefff; font-weight: 600; }
/* YouTube search results: a channel is a face and a name, a Short stands up, videos lie down. */
.card.ytchan { width: 420px; height: 236px; display: flex; align-items: center; gap: 20px; padding: 22px; background: linear-gradient(135deg, #131922, #070a11); }
.card.ytchan .av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #1a2431; }
.card.ytchan .label { position: static; padding: 0; background: none; font-size: 22px; }
.card.ytchan .label .t { font-size: 26px; font-weight: 700; line-height: 1.1; }
.card.ytchan .label .d { font-size: 15px; font-weight: 400; color: #9db2c4; margin-top: 8px; max-height: 3.4em; overflow: hidden; }
.ytrow { display: flex; gap: 18px; padding: 14px; overflow: hidden; }
.card.short { width: 192px; height: 340px; flex: 0 0 auto; }
.card.short .label { font-size: 17px; padding: 30px 12px 12px; }
.results .none { font-size: 24px; color: var(--muted); padding: 14px; }

/* ---------- settings ---------- */
/* The panel grew past the window: with a full source list the switches sat below the bottom edge and
   could not be reached at all. It scrolls inside the frame now, and ensureVisible() follows the remote
   down to whatever is focused. */
.settings .panel { position: absolute; left: 70px; right: 70px; top: 132px; bottom: 30px; display: grid;
  grid-template-columns: 1.2fr 1fr; gap: 50px; overflow-y: auto; padding-right: 22px; align-content: start; }
.settings .panel::-webkit-scrollbar { width: 12px; }
.settings .panel::-webkit-scrollbar-thumb { background: #4fd8ff40; border-radius: 6px; }
.settings .panel::-webkit-scrollbar-track { background: transparent; }
.settings h3 { font-size: 26px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.srow { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #ffffff14; font-size: 23px; }
.srow .dot { width: 14px; height: 14px; border-radius: 50%; background: #46e08a; flex: none; box-shadow: 0 0 8px #46e08a; }
.srow .dot.bad { background: #e3172d; box-shadow: 0 0 8px #e3172d; }
/* Amber, not red: an idle transcode is not broken, it is nearly over (the session manager stops one
   at 45 s idle) — or something is holding it open, which is what the note asks you to check. */
.srow .dot.warn { background: #ffb454; box-shadow: 0 0 8px #ffb454; }
.srow.warn { border-bottom-color: #ffb45440; }
.srow.warn .nm { color: #ffcf8a; font-size: 20px; white-space: normal; line-height: 1.35; }
.srow .ty { color: var(--muted); font-size: 18px; text-transform: uppercase; letter-spacing: .1em; width: 90px; }
.srow .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .ct { color: var(--muted); font-size: 20px; }
.keys-help { font-size: 22px; line-height: 1.9; color: #cfe3f0; }
.keys-help kbd { font-family: inherit; font-size: 18px; border: 1px solid #ffffff44; border-radius: 4px; padding: 1px 9px; margin-right: 10px; color: #fff; }
.lan { font-size: 30px; color: var(--cyan-soft); margin: 8px 0 18px; }

/* ---------- intro: the 2001 boot, re-shot in MystikFlix cyan ---------- */
/* Dark machined chamber → a cyan plasma mass that pulses and flares → the mark lands: the M from the
   MystikFlix wordmark where the X was, MYSTIKTV beneath it in the same letterform. One colour only. */
/* --intro-k compresses the whole boot timeline; intro.js overwrites it with 1/SPEED so the picture
   and the track stay locked together when the sting is played faster. */
.intro { position: absolute; inset: 0; background: #000; overflow: hidden; z-index: 60; --intro-k: .77; }
/* Everything that glows sits in this layer. No mask: the burst is meant to reach the window frame,
   so nothing dims it on the way out. The frame itself is the only edge, which is what "blow up to
   the edges" means on a screen. */
.intro-lights { position: absolute; inset: 0; z-index: 0; }
/* No edge may ever land on the frame. The bloom behind the mark, the mass's halo and the wordmark's
   glow are all sized to reach zero *inside* the window, so nothing is sliced square by the border,
   and the opening is not masked to a ring (a mask over the frame reads as its own hard edge). */
.intro-chamber { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 46% 54% at 50% 46%, #06090c 0%, #030507 52%, #000 100%); }
.intro-orb { position: absolute; left: 50%; top: 46%; width: 380px; height: 380px; margin: -190px 0 0 -190px; z-index: 3; opacity: 0;
  perspective: 1000px; perspective-origin: 50% 46%; }
/* The mass: rounded ridges wired round a lit core, turning slowly and hovering, the way the green
   orb does. Boot scales it up and blows it out; the scene floats; the shell carries the rotation. */
.orb-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.orb-shell { position: absolute; inset: 0; transform-style: preserve-3d; }
.rib, .lat { position: absolute; inset: 0; border-radius: 50%; border: 6px solid rgba(150, 245, 255, .5);
  box-shadow: 0 0 16px rgba(30, 220, 255, .5), inset 0 0 15px rgba(30, 220, 255, .38); }
.rib { border-color: rgba(120, 240, 255, .42); }
.lat { border-width: 5px; border-color: rgba(190, 250, 255, .34); }
.orb-core { position: absolute; inset: 30%; border-radius: 50%; filter: blur(1.5px) drop-shadow(0 0 60px rgba(30, 220, 255, .85));
  background: radial-gradient(circle at 38% 32%, #f2ffff 0%, #a5f7ff 26%, #2ad0ef 58%, #07617c 100%); }
/* Bloom, in two parts: a wide halo that washes the chamber, and a tight hot sheet that spills past
   the silhouette. Both breathe on the same beat as the mass. */
.orb-halo { position: absolute; inset: -72%; border-radius: 50%; filter: blur(44px); z-index: 0; opacity: .62;
  background: radial-gradient(closest-side, rgba(120, 246, 255, .56), rgba(45, 205, 245, .30) 28%, rgba(16, 120, 165, .11) 54%, rgba(6, 40, 60, .04) 72%, transparent 88%); }
.orb-hot { position: absolute; inset: -18%; border-radius: 50%; filter: blur(30px); z-index: 1; opacity: .56;
  background: radial-gradient(closest-side, rgba(205, 255, 255, .74), rgba(70, 235, 255, .36) 42%, rgba(30, 190, 235, .12) 64%, transparent 84%); }
.intro.on .orb-halo { animation: orbBloom 1.15s ease-in-out infinite alternate; }
.intro.on .orb-hot { animation: orbBloomHot 1.15s ease-in-out infinite alternate; }
/* Opacity only. Scaling a large blurred layer made the browser re-rasterise it every frame, which is
   where the patchy edges around the mass came from — and the keyframes now read --glow, the value the
   burst drives, so an animation no longer overrides it and the bloom can leave with the shell. */
@keyframes orbBloom {
  from { opacity: calc(var(--glow, 1) * .55); }
  to   { opacity: calc(var(--glow, 1) * 1); }
}
@keyframes orbBloomHot {
  from { opacity: calc(var(--glow, 1) * .5); }
  to   { opacity: calc(var(--glow, 1) * .95); }
}
/* The live WebGL sphere sits over the halo; the CSS cage is only the no-WebGL fallback. */
/* The mass and its splash are drawn on this canvas, so the canvas is the edge of the explosion. At
   460px it cut the burst off on a square border in the middle of the frame — the square that showed
   up as the M popped. It now covers the window with margin (the orb still scales it during the boot),
   and the camera in intro.js is pulled back by the same factor so the mass keeps its size while the
   blaze runs past the edges of the window. */
.orb-canvas { display: block; position: absolute; left: 50%; top: 50%; width: 140vw; height: 140vh;
  transform: translate(-50%, -50%); z-index: 2; }
/* The burst used to be smeared with a 5px filter on the full-window canvas. Blurring a canvas that
   size every frame is both expensive and visibly patchy — the shader already shapes the tear, so the
   picture stays sharp and the motion is left to the mass itself. */
/* The cage was only ever a fallback and it read as a wireframe sphere for the first frames, before
   the WebGL mass mounts. It is gone: a soft glowing core holds the frame instead, so the mass is
   there from the first paint with no visible swap. */
.intro-orb .orb-shell { display: none; }
.intro-orb.webgl .orb-core { display: none; }
.intro.on .intro-orb { animation: orbBoot calc(5.15s * var(--intro-k)) cubic-bezier(.32, 0, .3, 1) both; }
.intro.on .orb-scene { animation: orbFloat 1.3s ease-in-out infinite alternate; }
.intro.on .orb-shell { animation: orbSpin 4.2s linear infinite; }
.intro.on .rib, .intro.on .lat { animation: ribPulse 1.15s ease-in-out infinite alternate; }
.intro.on .rib { animation-delay: var(--b); }
/* Only the ignition is CSS now: the mass itself bursts apart in WebGL, so this just fades the
   whole assembly in and lets the shader do the breaking. */
/* The mass is on screen from the very first frame, then swells with the track until it bursts. */
@keyframes orbBoot {
  0%   { opacity: .55; transform: scale(.92); }
  6%   { opacity: 1;   transform: scale(1.02); }
  10%  { opacity: 1;   transform: scale(1); }
  88%  { opacity: 1;   transform: scale(1.07); }
  100% { opacity: 1;   transform: scale(1.14); }
}
@keyframes orbFloat {
  from { transform: translateY(7px) scale(.985); }
  to   { transform: translateY(-9px) scale(1.015); }
}
@keyframes orbSpin {
  from { transform: rotateX(8deg) rotateY(0deg); }
  to   { transform: rotateX(8deg) rotateY(360deg); }
}
/* Ridges stand out and settle back in waves, so the surface breathes unevenly rather than pumping. */
@keyframes ribPulse {
  from { transform: rotateY(var(--a, 0deg)) scale(.93); opacity: .72; }
  to   { transform: rotateY(var(--a, 0deg)) scale(1.07); opacity: 1; }
}
.intro.on .lat { animation-name: latPulse; }
@keyframes latPulse {
  from { transform: translateY(var(--y, 0px)) rotateX(78deg) scale(.93); opacity: .68; }
  to   { transform: translateY(var(--y, 0px)) rotateX(78deg) scale(1.07); opacity: 1; }
}
/* The flash of the burst lights the room, so its falloff is measured against the window and runs
   past the frame — a 62%-of-the-short-side circle only lit a disc in the middle and then stopped. */
.intro-flare { position: absolute; inset: 0; z-index: 4; opacity: 0;
  background: radial-gradient(ellipse 78% 78% at 50% 46%, rgba(226, 254, 255, .98) 0%, rgba(120, 244, 255, .72) 24%, rgba(40, 205, 245, .34) 52%, rgba(12, 110, 150, .12) 76%, transparent 96%); }
.intro.on .intro-flare { animation: flare calc(.95s * var(--intro-k)) ease-out calc(5.15s * var(--intro-k)) both; }
/* The splash crosses the frame: a soft ring of water leaves the mass and runs out over the mark as
   it condenses, so the reveal is seen through the break rather than after it. */
.intro-wave { position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  z-index: 4; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 10px solid rgba(150, 246, 255, .30); filter: blur(22px); }
.intro.on .intro-wave { animation: waveOut calc(1.05s * var(--intro-k)) cubic-bezier(.18, .62, .24, 1) calc(5.16s * var(--intro-k)) both; }
.intro.on .intro-wave.b { animation-delay: calc(5.26s * var(--intro-k)); animation-duration: calc(.9s * var(--intro-k)); border-width: 12px;
  border-color: rgba(196, 252, 255, .09); }
@keyframes waveOut {
  0%   { opacity: 0; transform: scale(.4); }
  14%  { opacity: .9; }
  100% { opacity: 0; transform: scale(2.7); }
}
@keyframes flare { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }

.intro-stage { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* The mark and the wordmark ride in one wrapper, so the splash wave sweeps both of them. */
.intro-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* The wordmark is one wide SVG: in a narrow window it ran off both edges and read as a single
   letter. It scales to the window now instead of being clipped by it. */
.intro-stack--wordmark .mf-logo { max-width: 84vw; height: auto; }
.intro-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* A soft bloom behind the mark, so the letter is lit rather than pasted on the black. */
/* The blur of the reveal lives on the logo itself, never on this wrapper: a filter clips its result
   to the element's own box, so blurring the wrapper sliced the bloom behind the letter into a square. */
.intro-mark { position: relative; opacity: 0; transform: scale(1.30); }
/* The bloom behind the letter is a room-sized ellipse measured against the window, not against the
   letter. Sized off the glyph it was a tall narrow oval — 484 wide against 1568 tall — whose sides
   read as a box around the M. At 130vw by 130vh with its falloff out past the frame, the reveal is
   light spreading across the whole opening, and the masked edge above takes it to nothing at the
   border. */
.intro-mark::before { content: ''; position: absolute; left: 50%; top: 50%; width: 130vw; height: 130vh;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(64, 232, 255, .30), rgba(30, 178, 220, .15) 38%, rgba(12, 96, 130, .07) 62%, rgba(6, 44, 66, .03) 78%, transparent 92%);
  filter: blur(54px); }
.intro.on .intro-mark { animation: markIn calc(.95s * var(--intro-k)) cubic-bezier(.2, .8, .22, 1) calc(5.20s * var(--intro-k)) both; }
/* The mark condenses out of the burst: heavily blurred and slightly large, it settles into focus
   rather than popping in, so there is no hard edge anywhere in the reveal. */
@keyframes markIn {
  0%   { opacity: 0; transform: scale(1.30); }
  34%  { opacity: .72; transform: scale(1.16, 1.05) skewX(1.2deg); }
  58%  { opacity: .93; transform: scale(.965, 1.02) skewX(-.7deg); }
  78%  { opacity: .99; transform: scale(1.012, .994); }
  100% { opacity: 1; transform: scale(1); }
}
/* Chrome depth: the mark lifts off the black with a hard shadow beneath it and a soft cyan bloom
   around it, the way the reference's 3D logo does. */
/* A CSS filter may only paint inside its element's border box plus 10% a side. Put a 150px bloom on
   the 560px letter and the glow is sliced off along a rectangle a few dozen pixels out — that
   rectangle is the "square" round the M. The glow is therefore painted by this padded wrapper:
   padding lives inside the border box, so the filter region grows to hold the whole falloff, and the
   negative margin keeps the layout identical. */
.intro-glow { display: block; padding: 520px 620px; margin: -520px -620px; }
.intro-mark .intro-glow {
  filter: blur(var(--mark-blur, 1.1px)) drop-shadow(0 22px 62px rgba(0, 0, 0, .60)) drop-shadow(0 0 150px rgba(25, 230, 255, .30)); }
/* Registering --mark-blur as a length lets one filter list own both the drop-shadows and the entry
   blur, so the glow keeps its 150px reach while the letter condenses out of the burst. */
@property --mark-blur { syntax: '<length>'; inherits: false; initial-value: 1.1px; }
/* The blur is animated where the variable is read: registered properties do not inherit, so setting
   it on an ancestor of the filtered element has no effect at all. */
.intro.on .intro-mark .intro-glow { animation: markBlur calc(.95s * var(--intro-k)) cubic-bezier(.2, .8, .22, 1) calc(5.20s * var(--intro-k)) both; }
@keyframes markBlur {
  0%   { --mark-blur: 26px; }
  34%  { --mark-blur: 14px; }
  58%  { --mark-blur: 5px; }
  78%  { --mark-blur: 1.4px; }
  100% { --mark-blur: 1.1px; }
}
.intro-tv { opacity: 0; transform: translateY(22px); margin-top: 2px; }
@keyframes tvIn {
  0%   { opacity: 0; transform: translateY(22px) scaleX(1.06); }
  60%  { opacity: .9; transform: translateY(4px) scaleX(.985) skewX(-.8deg); }
  100% { opacity: 1; transform: none; }
}
/* The wordmark fades and settles; it is never blurred. A blur filter over the wordmark's SVG made
   WebKit paint its filter region as a solid pale block for the first frames of the entry — a white
   rectangle where MYSTIKTV should be — so the reveal is opacity and motion only. The padding is
   sized to the 110px bloom instead of the mark's full room, which keeps the raster small. */
.intro-tv .intro-glow { padding: 150px 190px; margin: -150px -190px;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 110px rgba(25, 230, 255, .34)); }
.intro.on .intro-tv { animation: tvIn calc(.60s * var(--intro-k)) cubic-bezier(.2, .8, .26, 1) calc(5.95s * var(--intro-k)) both; }
.intro.done { opacity: 0; transition: opacity calc(.50s * var(--intro-k)) ease; }
/* Settings → Boot screen → Logo only (the default): the finished mark and wordmark, nothing moving.
   It fades up, holds for a beat, then dissolves rather than cutting — the tail is longer than the
   rise so leaving reads as a fade even at a glance. */
.intro.intro-logo { animation: logoBoot 2.4s cubic-bezier(.4,0,.2,1) both; }
.intro-logo .intro-mark, .intro-logo .intro-tv { opacity: 1; transform: none; animation: none; }
@keyframes logoBoot {
  0%   { opacity: 0; }
  9%   { opacity: 1; }
  58%  { opacity: 1; }
  88%  { opacity: .35; }
  100% { opacity: 0; }
}

/* ---------- mouse: hover mirrors the remote's focus ring, click activates ---------- */
#stage.mouse .f, #stage.mouse .card, #stage.mouse .nav .tab, #stage.mouse .prow,
#stage.mouse .grid .grow, #stage.mouse .grid .cell, #stage.mouse .modal .opt { cursor: pointer; }
#stage.mouse .osd .bar { cursor: pointer; }
.chip { position: absolute; right: 70px; top: 54px; z-index: 7; font-size: 21px; padding: 10px 22px; border-radius: 30px;
  background: #05070bc0; border: 1px solid #ffffff2e; color: var(--text); letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s, color .15s; }
.chip.focus, .chip:hover { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
.guide .chip.browse { right: 250px; }
.osd .obtn { font-size: 21px; padding: 10px 22px; border-radius: 8px; white-space: nowrap;
  background: #ffffff1f; color: var(--text); transition: background .15s, color .15s; }
.osd .obtn.focus, .osd .obtn:hover { background: var(--cyan); color: #00121a; }
.osd .obtn.cc { font-weight: 700; letter-spacing: .1em; }
/* Subtitles: large, high-contrast, out of the way of the bottom OSD. */
#vod::cue { background: #000000b8; color: #fff; font-size: 32px; line-height: 1.32; text-shadow: 0 2px 8px #000; }
#vod::cue(b), #vod::cue(i) { color: #ffd873; }
#vod::-webkit-media-text-track-container { margin-bottom: 90px; }
/* Always-available full-screen controls. The OSD fades, but exiting full screen and going back must
   not depend on finding a hidden button. */
/* A mouse-only way out of full screen on every screen, next to the clock. The player keeps its own
   centred Back / Exit Full bar above the picture. */
.fs-exit { display: none !important; align-items: center; gap: 8px; font-size: 20px; color: var(--gold); white-space: nowrap; cursor: pointer; }
.fs-exit:hover { color: #00121a; background: var(--gold); }
/* It rides with the pointer: the way out is there while the mouse is alive and gone once it has been
   still for a few seconds, so nothing sits on the picture during playback. Esc still leaves full
   screen for a remote or a keyboard. */
/* (The top bar's own Exit Full chip is gone: #fs-bar below is the one way out on ordinary screens.) */
/* In a full-screen window there is no title bar and no traffic lights, so the way out has to be on
   screen — on every screen, not just the player, and it must not fade with the player's OSD. */
#fs-bar { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); display: none; gap: 12px; z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .35s; }
body.fs #fs-bar { display: flex; }
/* Outside the player the top strip belongs to the nav tabs, so the way out sits at the bottom. */
body.fs:not(.vod) #fs-bar { top: auto; bottom: 32px; }
/* Same rule as the player's OSD, on every screen: visible while the pointer moves, gone when it rests. */
body.fs #stage.mouse #fs-bar { opacity: 1; pointer-events: auto; }
/* Back belongs to the player; everywhere else the bar is just the way out. */
/* One Back and one full-screen control per screen. The film player carries both in its own top row,
   so the floating bar stands down there; its Back is never shown (every screen already has one). */
#fs-bar [data-act='fsback'] { display: none !important; }
body.fs.vod #fs-bar { display: none; }
/* Live TV: the banner's chip enters full screen; once there, the floating Exit Full is the way out,
   at the top where the banner is not, and it wakes with the mouse like everywhere else. */
body.fs [data-livefull] { display: none !important; }
body.fs.tv-full #fs-bar { top: 38px; bottom: auto; }
.fsbtn { font-size: 20px; padding: 9px 20px; border-radius: 24px; background: #05070bd9; border: 1px solid #ffffff33;
  color: #fff; letter-spacing: .04em; transition: background .15s, color .15s; }
.fsbtn:hover, .fsbtn.focus { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
.live-ui .banner { cursor: pointer; }

/* ---------- live TV browser ---------- */
.channels { background: radial-gradient(ellipse 90% 60% at 60% 0%, #0a2744 0%, #05070b 70%); }
.chhero { position: absolute; left: 0; right: 0; top: 0; height: 430px; overflow: hidden; pointer-events: none; }
.chhero-art { position: absolute; inset: 0; opacity: .6; filter: saturate(.9); }
.chhero-art::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #05070b 0%, #05070bf2 38%, #05070b55 68%, #05070b10 100%), linear-gradient(0deg, #05070b 0%, #05070b00 55%); }
.chhero-info { position: absolute; left: 70px; top: 150px; width: 900px; }
.chhero-info h1 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 88px; line-height: .92; margin: 12px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chhero-info .meta { font-size: 22px; gap: 16px; }
.chhero-info .desc { margin-top: 14px; font-size: 23px; line-height: 1.45; color: #c4d6e3; max-width: 780px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chprev { position: absolute; right: 40px; top: 30px; width: 480px; height: 270px; object-fit: cover; opacity: 0; transition: opacity .6s;
  border: 2px solid var(--gold); border-radius: 6px; background: #000; box-shadow: 0 10px 36px rgba(0, 0, 0, .65); z-index: 4; }
.chprev.on { opacity: 1; }
/* One row, always. The filters used to wrap onto a second line that covered the top of the channel
   grid, and left/right on a remote then jumped between the two lines instead of along the row. The
   row scrolls sideways when it is wider than the window, with the strip's own scroll handling. */
.chips { position: absolute; left: 0; right: 0; padding: 0 70px; scroll-padding: 0 70px; top: 438px; height: 52px; display: flex; gap: 12px;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; z-index: 4;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chips > .f { flex: 0 0 auto; }
/* A filter chip is sized by its label: letting it shrink clipped "English 2,558" to "English2,5". The
   row scrolls, so the chip keeps its natural width instead. */
.chip2 { display: flex; align-items: baseline; gap: 9px; flex: 0 0 auto; white-space: nowrap; font-size: 20px; padding: 9px 18px; border-radius: 30px;
  width: max-content; min-width: max-content;
  background: #ffffff10; border: 1px solid #ffffff1c; color: #cfe3f0; transition: .15s; }
.chip2 small { font-size: 13px; color: #8aa3b5; }
.chip2.cur { background: #e8f8ff; color: #00121a; border-color: #e8f8ff; font-weight: 700; }
.chip2.cur small { color: #33505f; }
.chip2.focus { background: var(--cyan); color: #00121a; border-color: var(--cyan); box-shadow: 0 0 22px rgba(25, 230, 255, .6); }
.chip2.focus small { color: #003743; }
/* Live TV skin switch: one button on both the classic guide and the modern channel browser. */
.viewtoggle { display: inline-flex; align-items: center; font-size: 20px; padding: 9px 18px; border-radius: 30px;
  background: #ffffff10; border: 1px solid #ffffff2e; color: #cfe3f0; letter-spacing: .04em; white-space: nowrap; transition: .15s; }
.viewtoggle:hover, .viewtoggle.focus { background: var(--cyan); color: #00121a; border-color: var(--cyan); box-shadow: 0 0 22px rgba(25, 230, 255, .6); }
/* Full width with the margin inside: the scroll box's clip edge is the screen edge, so a focused
   card's lift and glow are never cut off on the left, right or top. */
.chwrap { position: absolute; left: 0; right: 0; top: 496px; bottom: 44px; overflow-y: auto; overflow-x: hidden; padding: 0 70px; scroll-padding: 40px 0; }
.chgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 20px 0 70px; }
.chgrid .card.channel { width: 100%; height: 206px; }
.chgrid .card.channel .logo { max-width: 130px; max-height: 62px; }
.chgrid .card.channel .label { padding: 52px 16px 12px; }
.chfoot { position: absolute; right: 70px; bottom: 14px; font-size: 17px; color: #8aa3b5; letter-spacing: .03em; }

/* ---------- Xbox 360 dashboard skin: glossy blue notifications, blades and folding pages ---------- */
:root {
  --cyan: #35c6ff; --cyan-soft: #a5e8ff; --xblue: #19b6ff; --xblue-deep: #0867c9;
  --glow: 0 0 0 3px var(--xblue), 0 0 34px rgba(25, 182, 255, .68);
}
/* Every ordinary button gets the same soft chrome edge as the player controls, so the dashboard
   reads as one system instead of a page of unrelated pills. */
.btn { border: 1px solid #bfe9ff5c; background: linear-gradient(180deg, #ffffff20, #8fd3ff14 50%, #06355f66), #07131f;
  box-shadow: inset 0 1px 0 #ffffff5c, inset 0 -2px 7px #00121f8c, 0 4px 16px #0007; border-radius: 10px; }
.btn.primary { background: linear-gradient(180deg, #e9faff, #a9e3ff 46%, #4bb9f8); color: #001722;
  border-color: #d7f5ff; box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px #1e7cbeaa, 0 0 22px #19b6ff55; }
.btn.focus { background: linear-gradient(180deg, #f2fdff, #b9eaff 45%, #4fc2ff); color: #001722;
  border-color: #dff8ff; box-shadow: inset 0 1px 0 #fff, 0 0 0 2px #8fe1ff99, 0 0 32px #19b6ffcc; }
/* Top navigation: compact glass blades with a lit blue underline, like the 360 guide. The extra
   Blockbuster blade means the row has to be tighter than the original ten-tab layout. */
.topbar { gap: 18px; padding: 0 38px; height: 98px; }
.topbar .mf-logo { height: 40px; margin-right: 4px; }
.topbar .sbar { max-width: 168px; height: 38px; font-size: 16px; }
.sbar .sp { max-width: 106px; }
.clock { font-size: 21px; }
.recchip { font-size: 16px; letter-spacing: .07em; }
.nav { gap: 3px; }
.nav .tab { font-size: 19px; padding: 8px 10px; }
.nav .tab { position: relative; border-radius: 6px 6px 3px 3px; border: 1px solid transparent; }
.nav .tab.cur { color: #f7fdff; background: linear-gradient(180deg, #9fdcff1f, #0a5fa01f); border-color: #7fd6ff33;
  box-shadow: inset 0 1px 0 #ffffff3d; }
.nav .tab.cur::after { height: 3px; margin-top: 5px; background: linear-gradient(90deg, #0a74dc, #7de0ff);
  box-shadow: 0 0 14px #19b6ff, 0 0 30px #19b6ff66; }
.nav .tab.focus { background: linear-gradient(180deg, #eafaff, #8fdcff 48%, #25a7f2); color: #001824;
  border-color: #d9f7ff; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #a5e8ff, 0 0 28px #19b6ffb8; }
.nav .tab.focus::after { display: none; }
/* Blockbuster tab: the switch itself only unfolds on hover, like a physical cover sliding open. */
.bb-tab { display: inline-flex; align-items: center; padding-right: 14px !important; }
.bb-switch { display: inline-flex; align-items: center; width: 0; height: 24px; margin-left: 0; padding: 2px; flex: none;
  border-radius: 13px; background: #02101c; border: 1px solid #ffffff38; overflow: hidden; opacity: 0;
  box-shadow: inset 0 2px 5px #000b; transition: width .24s cubic-bezier(.2,.8,.2,1), margin .24s, opacity .18s, background .2s; }
.bb-switch i { width: 18px; height: 18px; border-radius: 50%; flex: none; background: linear-gradient(180deg, #fff, #b9cbd6);
  box-shadow: 0 2px 4px #000b, inset 0 1px 0 #fff; transform: translateX(1px); transition: transform .24s cubic-bezier(.2,.8,.2,1), background .2s; }
.bb-tab:hover .bb-switch, .bb-tab.focus .bb-switch, .bb-tab.on .bb-switch { width: 46px; margin-left: 10px; opacity: 1; }
.bb-tab.on .bb-switch { background: linear-gradient(180deg, #8fe4ff, #19b6ff 55%, #0875d8); border-color: #bdefff; box-shadow: inset 0 2px 4px #004e86aa, 0 0 14px #19b6ff99; }
.bb-tab.on .bb-switch i { transform: translateX(22px); background: linear-gradient(180deg, #fff, #e8f9ff); }
.bb-tab.on { color: #bdefff; }

/* Notification pop-in, in the shape of a 360 achievement toast. */
#toast { right: 42px; top: 40px; width: 410px; padding: 18px 24px 18px 76px; border-radius: 12px; font-size: 22px; line-height: 1.25;
  border: 1px solid #a9e8ffcc; color: #f2fcff; background: linear-gradient(180deg, #d7f5ff2e, #19b6ff1c 40%, #052b4ccc), #03101b;
  box-shadow: inset 0 1px 0 #ffffff8c, inset 0 -3px 10px #001526, 0 10px 40px #000b, 0 0 34px #19b6ff55;
  transform: translateX(30px) scale(.96); opacity: 0; transition: transform .34s cubic-bezier(.16,.9,.24,1.15), opacity .24s; }
#toast::before { content: 'i'; position: absolute; left: 18px; top: 50%; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center;
  border-radius: 50%; font: 700 24px/1 'Bebas Neue', Impact, sans-serif; color: #00243a;
  background: radial-gradient(circle at 35% 28%, #fff, #a6e4ff 42%, #2caef2 78%, #0672c8);
  box-shadow: inset 0 1px 0 #fff, 0 0 16px #19b6ff99; }
#toast::after { content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 36%; border-radius: 10px 10px 40% 40%;
  background: linear-gradient(#ffffff33, #ffffff00); pointer-events: none; }
#toast.on { opacity: 1; transform: none; }
/* Blades: modal panels and the end card use the same bevelled glass. */
.modal { border-radius: 14px; border: 1px solid #a4e5ff8c !important;
  background: linear-gradient(180deg, #c9f0ff1f, #0a5f9e14 38%, #020b14f5), #030c15 !important;
  box-shadow: inset 0 1px 0 #ffffff7a, 0 24px 90px #000d, 0 0 60px #19b6ff3d !important; }
.modal .opt { border-radius: 8px; }
.modal .opt.focus { background: linear-gradient(180deg, #d9f7ff, #82d7ff 48%, #2ba8ef); color: #001722;
  box-shadow: 0 0 0 1px #d9f7ff, 0 0 28px #19b6ffb8; }
/* A focused card just lifts a touch against the shelf — no fold, no rotation. */
.card { transition: transform .12s ease-out, box-shadow .12s ease-out; }
.card.focus { transform: scale(1.04);
  box-shadow: 0 0 0 2px #9fe6ffcc, 0 16px 34px #000b, 0 0 26px #19b6ff66; }
/* Live TV and guide chrome pick up the same blue hardware accents. */
.chip2.focus, .viewtoggle:hover, .viewtoggle.focus { background: linear-gradient(180deg, #e8faff, #8bdcff 48%, #28a7f0); color: #001822; border-color: #d4f5ff; }
.fsbtn { border-color: #bfe9ff66; background: linear-gradient(180deg, #ffffff26, #0b3f6966), #04111dcc;
  box-shadow: inset 0 1px 0 #ffffff66, 0 4px 14px #0008; }
.fsbtn:hover, .fsbtn.focus { background: linear-gradient(180deg, #eafbff, #9adfff 50%, #2aa8f0); color: #001722; border-color: #d7f7ff; }

/* ================= BLOCKBUSTER MODE ================= */
.blockbuster { background: #020609; overflow: hidden; }
.bb-front { position: absolute; inset: 0; overflow: hidden; }
.bb-front-photo { position: absolute; inset: -2%; background: url('/img/blockbuster/storefront.jpg') center 42%/cover no-repeat;
  filter: saturate(.92) contrast(1.03); transform: scale(1.02); transition: transform 1.4s cubic-bezier(.16,.8,.2,1), filter 1.2s; }
.bb-front:hover .bb-front-photo { transform: scale(1.075); filter: saturate(1.04) contrast(1.04); }
.bb-front-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, #020609f2 0%, #020609c6 34%, #02060938 62%, #0206090a 100%),
  linear-gradient(0deg, #020609f7 0%, #020609cc 26%, #02060922 54%, #02060900 72%, #020609b8 100%); }
/* Copy sits under the storefront sign instead of on top of it: the dimensional “BLOCKBUSTER”
   lettering is the point of the photo, so the headline no longer crops it to “CK BUSTER”. */
.bb-front-copy { position: absolute; left: 76px; top: 470px; width: 760px; }
.bb-front-copy .kicker { color: #ffd23f; letter-spacing: .16em; }
.bb-front-copy h1 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 96px; line-height: .88; margin: 12px 0 14px;
  color: #f4fbff; text-shadow: 0 4px 34px #000, 0 0 42px #19b6ff33; }
.bb-front-copy p { font-size: 23px; line-height: 1.45; color: #d2e4ef; width: 600px; margin: 0; text-shadow: 0 2px 14px #000; }
.bb-front-actions { display: flex; gap: 14px; margin-top: 30px; }
.bb-front-actions .btn { font-size: 22px; padding: 14px 26px; }
/* The doors in the actual storefront photo are a live hotspot: hover them and the glass lights up. */
.bb-door { position: absolute; left: 47.4%; top: 58%; width: 23%; height: 41.5%; transform: translateX(-50%); border: 0; padding: 0;
  background: transparent; cursor: pointer; color: #eafcff; }
.bb-door-glass { position: absolute; inset: 0 0 8% 0; border: 2px solid #ffffff2e; border-radius: 3px 3px 0 0;
  background: linear-gradient(105deg, #ffffff0e, #19b6ff0f 42%, #ffffff05 60%, #19b6ff1c);
  box-shadow: inset 0 0 40px #001a2e80, 0 0 0 1px #0006; transition: border-color .3s, box-shadow .3s, background .3s; }
.bb-door-glass::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #ffffff2b; z-index: 2; }
/* The ambient panorama loop seen through the pane — dim, cool, and only if it was generated. */
.bb-door-glass-pano { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  object-fit: cover; object-position: 50% 45%; pointer-events: none;
  opacity: .42; filter: saturate(.82) brightness(.78) contrast(1.05); }
.bb-door-push { position: absolute; left: 50%; bottom: 25%; transform: translateX(-50%); font: 700 15px/1 'Bebas Neue', Impact, sans-serif;
  letter-spacing: .22em; color: #ffffffc2; padding: 6px 12px; border: 1px solid #ffffff40; border-radius: 3px; background: #0006;
  opacity: 0; transition: opacity .25s; }
.bb-door-open { position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%); white-space: nowrap;
  font: 700 24px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .1em; padding: 12px 22px; border-radius: 5px;
  color: #001824; background: linear-gradient(180deg, #eafbff, #9adfff 50%, #2aa8f0); box-shadow: 0 0 30px #19b6ffcc;
  opacity: 0; transition: opacity .25s, transform .25s; }
.bb-door:hover .bb-door-glass, .bb-door.focus .bb-door-glass { border-color: #bdefff; background: linear-gradient(105deg, #ffffff1c, #19b6ff33 42%, #ffffff12 60%, #19b6ff45);
  box-shadow: inset 0 0 50px #0a72b880, 0 0 0 2px #8fe4ff88, 0 0 45px #19b6ff77; }
.bb-door:hover .bb-door-push, .bb-door:hover .bb-door-open, .bb-door.focus .bb-door-open { opacity: 1; }
.bb-front-foot { position: absolute; left: 76px; bottom: 24px; font-size: 14px; color: #ffffff66; letter-spacing: .06em; }

/* The walk-in: the generated first-person clip plays body-level above the whole stage, then the
   store's own render takes over on its end frame. */
.bb-intro { position: fixed; inset: 0; z-index: 9999; background: #000; opacity: 1; transition: opacity .42s ease; cursor: pointer; }
.bb-intro.out { opacity: 0; pointer-events: none; }
.bb-intro-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.bb-intro-tip { position: absolute; left: 60px; bottom: 62px; font-size: 20px; color: #ffffffb3;
  letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 14px #000; pointer-events: none; }
.bb-intro-skip { position: absolute; right: 60px; bottom: 54px; font-size: 22px; padding: 14px 28px;
  background: #050d17cc; }

/* The scanned rack in 3D: model-viewer floating in the hall it belongs to. */
.bb-modelview { position: absolute; inset: 92px 96px 96px; z-index: 30; display: flex; flex-direction: column; }
.bb-mv-stage { position: relative; flex: 1; margin-top: 14px; border-radius: 10px; overflow: hidden;
  background-size: cover; background-position: center; box-shadow: inset 0 0 120px #000a, var(--glow); }
.bb-mv-stage::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 38%, #04070bd9 100%); }
.bb-mv-stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  background: transparent; --poster-color: transparent; outline: none; }

/* ---- inside the store: one 3D corridor, walked in first person ---- */
.bb-store { position: absolute; inset: 0; overflow: hidden; background: #04070b; }
.bb3d { position: absolute; inset: 0; overflow: hidden; perspective: 780px; perspective-origin: 50% 47%; }
.bb3d-world { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .16s ease-out; will-change: transform; }
.bb3d-floor, .bb3d-ceil { position: absolute; left: -1500px; right: -1500px; top: 50%; height: 5200px; transform-origin: 50% 0; }
/* The blockbuster carpet: navy with the scattered yellow / blue / lilac confetti. */
.bb3d-floor { transform: translateY(300px) rotateX(90deg); background-color: #10254a;
  background-image:
    radial-gradient(circle at 14px 20px, #3f86d8 0 3px, #0000 4px),
    radial-gradient(circle at 58px 9px, #e3c94a 0 2px, #0000 3px),
    radial-gradient(circle at 36px 52px, #9777c4 0 3px, #0000 4px),
    radial-gradient(circle at 82px 66px, #2f9c96 0 2px, #0000 3px),
    radial-gradient(circle at 96px 30px, #c9d8ea 0 1.5px, #0000 3px);
  background-size: 104px 78px;
  box-shadow: inset 0 0 0 1px #ffffff0a, inset 0 900px 900px #000000a8; }
.bb3d-ceil { transform: translateY(-330px) rotateX(90deg); background: #0a1017;
  background-image: repeating-linear-gradient(0deg, #fff6d100 0 300px, #fff3c9e6 300px 332px, #fff6d100 332px 640px),
    linear-gradient(90deg, #070c12, #131d27 50%, #070c12);
  box-shadow: 0 0 300px #fff3c91a; }
.bb3d-world::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 46%, #ffd23f0d, #0000 70%), linear-gradient(0deg, #04070bd9, #0000 42%); }

/* One shelving unit is a plane turned to face the walkway. */
.bb3d-unit { position: absolute; left: 50%; top: 50%; width: 860px; height: 500px; margin: -250px 0 0 -430px; padding: 0 14px 12px;
  display: flex; flex-direction: column; transform: translate3d(var(--x), 40px, var(--z)) rotateY(90deg); transform-style: preserve-3d;
  background: linear-gradient(180deg, #10202c, #060e16 60%, #03080d); border: 1px solid #63828f55;
  box-shadow: inset 0 0 90px #000b, 0 26px 60px #000b; }
.bb3d-unit.right { transform: translate3d(var(--x), 40px, var(--z)) rotateY(-90deg); }
.bb3d-cap { margin: 0 -14px 0; padding: 9px 14px 8px; font: 700 17px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .18em;
  text-transform: uppercase; color: #04121c; background: linear-gradient(180deg, #f4fcff, var(--c)); box-shadow: inset 0 1px 0 #fff; }
.bb3d-cases { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 16px 12px; padding: 18px 4px 8px; }
.bb3d-tape { position: relative; padding: 0; border: 0; background: none; cursor: pointer; color: #eaf6ff; }
.bb3d-tape .bb-cover { inset: 0 0 15px; }
.bb3d-tape .bb-spine-t { height: 14px; font-size: 9px; letter-spacing: .02em; }
.bb3d-tape:hover .bb-cover, .bb3d-tape.focus .bb-cover { transform: translateY(-6px) translateZ(30px); box-shadow: 0 0 0 2px var(--c), 0 16px 30px #000d, 0 0 30px #19b6ff88; }
.bb3d-board { position: absolute; left: 0; right: 0; bottom: 232px; height: 9px; z-index: -1;
  background: linear-gradient(#33475a, #0b141c); box-shadow: 0 8px 16px #000c; }
.bb3d-board.b2 { bottom: 74px; }
.bb3d-sign { position: absolute; left: 50%; top: 50%; width: 520px; margin: -300px 0 0 -260px; padding: 7px 20px 10px; text-align: center;
  transform: translateZ(var(--z)); border-top: 3px solid var(--c); background: linear-gradient(180deg, #071a2bee, #020c15ee);
  box-shadow: 0 0 44px #000b; }
.bb3d-sign b { display: block; font: 400 40px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .05em; color: var(--c); text-shadow: 0 0 26px var(--c); }
.bb3d-sign span { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #d7e9f4a8; }

/* The far wall is the aisle photograph, held back far enough to read as depth. */
.bb3d-end { position: absolute; left: 50%; top: 50%; width: 1800px; height: 760px; margin: -380px 0 0 -900px;
  transform: translateZ(var(--z)) translateY(20px); display: grid; place-content: center; text-align: center; overflow: hidden;
  background: url('/img/blockbuster/interior.jpg') center 46%/cover no-repeat, #0a1826; }
.bb3d-end::before { content: ''; position: absolute; inset: -20%; background: linear-gradient(#04070be8, #04070b9e 45%, #04070bf2), radial-gradient(ellipse at 50% 40%, #ffd23f1f, #0000 60%); }
.bb3d-end b { position: relative; font: 400 76px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .07em; color: #ffd23f; text-shadow: 0 0 50px #ffd23f66; }
.bb3d-end span { position: relative; margin-top: 8px; font-size: 15px; letter-spacing: .38em; text-transform: uppercase; color: #cfe3eea8; }
.bb3d-entry span { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font: 400 64px/1 'Bebas Neue', Impact, sans-serif;
  letter-spacing: .3em; color: #e6f3fb99; }

/* What you can do right now, floating over the aisle. */
.bb3d-cross { position: absolute; left: 50%; bottom: 158px; transform: translateX(-50%); z-index: 12; text-align: center;
  padding: 10px 24px 11px; border-radius: 30px; background: #020a12cc; border: 1px solid #ffffff26; }
.bb3d-cross b { display: block; font: 400 27px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .05em; color: #ffd23f; }
.bb3d-cross span { display: block; margin-top: 3px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #cfe6f2; }

/* The shelf you pulled out of the aisle. */
.bb-shelf-view { position: absolute; inset: 92px 96px 96px; z-index: 30; padding: 24px 30px 18px; overflow-y: auto;
  background: #04101af5; border: 1px solid #ffffff2e; border-radius: 12px; box-shadow: 0 40px 90px #000c; }
.bb-shelf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.bb-shelf-col h4 { margin: 4px 0 10px; font: 400 22px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffd23f; }
.bb-shelf-col .bb-row { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 8px 16px; }
.bb-shelf-col .bb-tape { width: 112px; height: 172px; flex: none; }
.bb-row { display: flex; gap: 7px; align-items: flex-end; height: 270px; padding: 10px 6px 14px; border-bottom: 8px solid #07131c;
  background: repeating-linear-gradient(90deg, #09182200 0 8px, #ffffff06 8px 9px), linear-gradient(#0e2130, #07111a);
  box-shadow: inset 0 16px 22px #0009, inset 0 -1px 0 #ffffff12, 0 8px 12px #0006; }
.bb-tape { position: relative; width: calc((100% - 28px) / 5); height: 240px; padding: 0; border: 0; background: none; cursor: pointer; color: #eaf6ff; text-align: left; }
.bb-cover { position: absolute; inset: 0 0 22px; display: block; border-radius: 3px; overflow: hidden; background: #0d1a25;
  box-shadow: 0 3px 9px #000c, inset 0 0 0 1px #ffffff1a; transition: transform .18s, box-shadow .18s; }
.bb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-spine-t { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; font-size: 10px; line-height: 1.05; overflow: hidden; color: #c6d9e4; }
.bb-tape:hover .bb-cover, .bb-tape.focus .bb-cover { transform: translateY(-10px) translateZ(26px); box-shadow: 0 0 0 2px var(--c), 0 14px 28px #000d, 0 0 26px #19b6ff77; }
.bb-aisle { position: static; font-size: 13px; letter-spacing: .06em; padding: 6px 12px; border-radius: 20px; color: #dcecf6cc;
  background: #05111bbb; border: 1px solid #ffffff22; }
.bb-store-ui { position: absolute; left: 58px; top: 126px; z-index: 8; }
.bb-where { display: flex; align-items: center; gap: 12px; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: #cfe4f0; }
.bb-where b { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 34px; letter-spacing: .04em; color: #f5fcff; }
.bb-where span:last-child { color: #9fb4c2; text-transform: none; letter-spacing: .02em; font-size: 18px; }
.bb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.bb-help { margin-top: 7px; font-size: 15px; color: #a9c0cc; letter-spacing: .04em; }
.bb-aisle-list { position: absolute; left: 52px; top: 220px; bottom: 210px; width: 250px; z-index: 9; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.bb-aisle-list .bb-aisle { font-size: 15px; text-align: left; padding: 8px 13px; }
.bb-aisle.cur { background: linear-gradient(90deg, #19b6ffd9, #0a6fc9a8); color: #001926; border-color: #bdefff; font-weight: 700; box-shadow: 0 0 18px #19b6ff66; }
/* Register, counter and the tube TV */
.bb-register { position: absolute; right: 52px; bottom: 46px; z-index: 10; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bb-counter { position: relative; width: 500px; height: 138px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #2c1d11, #1c120a 40%, #0c0805); border-top: 7px solid #a67a4d;
  box-shadow: inset 0 2px 0 #ffffff2e, 0 18px 40px #000b; }
.bb-candy { position: absolute; left: 18px; bottom: 18px; width: 112px; height: 68px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #d02b3f 0 6px, #f2ce4c 6px 12px, #2e6bd6 12px 18px, #f2f2e8 18px 24px); opacity: .8; }
.bb-candy.alt { left: 142px; background: repeating-linear-gradient(0deg, #5d2a86 0 7px, #d0812b 7px 14px, #237040 14px 21px); }
.bb-reg-sign { position: absolute; right: 20px; top: 20px; font: 700 26px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .14em; color: #ffd23f; opacity: .8; }
.bb-crt { position: relative; display: block; width: 258px; padding: 0; border: 0; background: none; cursor: pointer; color: #e9fbff; text-align: center; }
.bb-crt-body { position: relative; display: block; padding: 13px 13px 24px; border-radius: 12px 12px 7px 7px;
  background: linear-gradient(180deg, #d8cbb6, #9a8a74 28%, #5b4f40 44%, #2b241c 88%);
  box-shadow: inset 0 2px 0 #fff6, inset 0 -9px 14px #0008, 0 12px 26px #000c; }
.bb-crt-screen { position: relative; display: block; height: 156px; border-radius: 9px 9px 12px 12px / 9px 9px 18px 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #68d6ff 0%, #0e7ac0 34%, #032039 78%, #010a12 100%);
  border: 5px solid #191713; box-shadow: inset 0 0 30px #000c, inset 0 0 10px #9be7ff; }
.bb-crt-screen::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #0000 0 2px, #0000003d 2px 3px); }
.bb-ch-name { position: relative; z-index: 2; display: block; padding-top: 46px; font: 700 24px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .07em;
  color: #f4fdff; text-shadow: 0 0 14px #9be7ff, 0 2px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; padding-right: 8px; }
.bb-ch-sub { position: relative; z-index: 2; display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #bef0ff; margin-top: 5px; }
.bb-scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(#ffffff00, #ffffff33, #ffffff00); animation: bbScan 5s linear infinite; z-index: 3; }
@keyframes bbScan { to { transform: translateY(520%); } }
.bb-crt-knobs { position: absolute; left: 22px; right: 22px; bottom: 9px; display: flex; justify-content: space-between; }
.bb-crt-knobs i { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4ecdb, #6b5b47 55%, #1a1611); box-shadow: 0 1px 2px #0009; }
.bb-tv-label { display: block; margin-top: 7px; font: 700 13px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .19em; color: #d8eaf4; text-shadow: 0 1px 4px #000; }
.bb-crt:hover .bb-crt-screen, .bb-crt.focus .bb-crt-screen { box-shadow: inset 0 0 30px #0008, 0 0 0 2px #9be7ff, 0 0 34px #19b6ffcc; }
.bb-hang-tv { position: absolute; left: 334px; top: 312px; z-index: 10; width: 176px; padding: 0; border: 0; background: none; cursor: pointer; color: #e9fbff; }
.bb-hang-tv .bb-crt-body { padding: 10px 10px 12px; transform: perspective(700px) rotateY(16deg) rotateX(-2deg); border-radius: 9px; }
.bb-hang-tv .bb-crt-screen { height: 102px; }
.bb-hang-tv .bb-ch-name { padding-top: 30px; font-size: 16px; }
.bb-hang-tv .bb-ch-sub { font-size: 10px; }
.bb-wire { position: absolute; left: 50%; bottom: 96%; width: 2px; height: 190px; background: linear-gradient(#0000, #b9c9d3 35%, #e9f6ff); opacity: .55; }
.bb-hang-tv:hover .bb-crt-screen { box-shadow: inset 0 0 30px #0008, 0 0 0 2px #9be7ff, 0 0 34px #19b6ffcc; }
/* Exit doors, always reachable at the front of the store. */
.bb-exit { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 14; width: 190px; height: 186px; border: 0; padding: 0;
  background: none; cursor: pointer; color: #f2fcff; }
.bb-exit-door { position: absolute; inset: 0 0 38px; border: 2px solid #9fdcff55; border-radius: 3px 3px 0 0;
  background: linear-gradient(100deg, #ffffff0b, #19b6ff16 45%, #ffffff06 60%, #19b6ff1b); box-shadow: inset 0 0 36px #001a2e99, 0 0 0 1px #0007;
  transition: border-color .25s, box-shadow .25s; }
.bb-exit-door::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #ffffff24; }
.bb-exit b { position: absolute; left: 0; right: 0; bottom: 14px; font: 700 24px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .2em; color: #ff8a95; text-shadow: 0 0 12px #ff4757; }
.bb-exit span:last-child { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #ffffff80; }
.bb-exit:hover .bb-exit-door, .bb-exit.focus .bb-exit-door { border-color: #bdefff; box-shadow: inset 0 0 40px #0a72b880, 0 0 0 2px #8fe4ff88, 0 0 36px #19b6ff77; }
/* Channel wall behind the register */
.bb-wallview { position: absolute; inset: 0; z-index: 60; background: radial-gradient(ellipse 70% 60% at 50% 10%, #0c3554 0%, #04101b 55%, #01060a 100%); overflow: hidden; }
.bb-wallview::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #ffffff06 0 1px, #0000 1px 4px); pointer-events: none; }
.bb-wall-head { position: absolute; left: 56px; right: 56px; top: 40px; display: flex; align-items: flex-start; gap: 30px; z-index: 2; }
.bb-wall-head h2 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 64px; line-height: .9; margin: 5px 0 7px; color: #f2fcff; text-shadow: 0 0 30px #19b6ff55; }
.bb-wall-head p { margin: 0; font-size: 18px; color: #b9d5e2; max-width: 860px; }
.bb-x { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid #ffffff4d; background: #0008; color: #fff; font-size: 21px; cursor: pointer; }
.bb-x:hover, .bb-x.focus { background: linear-gradient(180deg, #eafbff, #8fe4ff 50%, #219fe8); color: #001722; }
.bb-rack-scroll { position: absolute; left: 56px; right: 56px; top: 172px; bottom: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; overflow-y: auto; padding-bottom: 30px; }
.bb-rack-col { min-width: 0; }
.bb-rack-title { margin: 0 0 12px; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bb-rack-group { margin-bottom: 14px; padding: 9px 10px 10px; border-radius: 5px; background: linear-gradient(#0a1b27, #050f17); border: 1px solid #ffffff17;
  box-shadow: inset 0 1px 0 #ffffff12, 0 6px 18px #0007; }
.bb-rack-group h4 { margin: 0 0 7px; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: #d9edf7; }
.bb-rack-group h4 small { color: #7e98a8; font-weight: 400; }
.bb-rack-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.bb-ch { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 58px; padding: 4px; border-radius: 4px; border: 1px solid #ffffff12;
  background: linear-gradient(#ffffff0b, #ffffff02); color: #dcecf5; cursor: pointer; overflow: hidden; }
.bb-ch img { max-width: 54px; max-height: 30px; object-fit: contain; }
.bb-ch span { font-size: 8px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; opacity: .8; }
.bb-ch:hover, .bb-ch.focus { background: linear-gradient(180deg, #e8faff, #8bdcff 50%, #28a7f0); color: #001822; border-color: #d4f5ff; box-shadow: 0 0 16px #19b6ff99; }
/* Randomizer */
.bb-modal-scrim { position: absolute; inset: 0; z-index: 59; background: #01060ab8; backdrop-filter: blur(3px); }
.bb-rand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; width: 1240px; max-height: 900px; padding: 32px 38px 26px;
  border-radius: 16px; border: 1px solid #a4e5ff8c; background: linear-gradient(180deg, #d3f2ff1f, #0a5f9e10 38%, #020b14fa), #030c15;
  box-shadow: inset 0 1px 0 #ffffff7a, 0 30px 100px #000e, 0 0 80px #19b6ff3d; overflow: hidden; }
.bb-rand-glow { position: absolute; right: -180px; top: -220px; width: 620px; height: 480px; border-radius: 50%; background: radial-gradient(#19b6ff44, #0000 68%); pointer-events: none; }
.bb-rand-head { display: flex; gap: 24px; align-items: center; position: relative; }
.bb-rand-head h2 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 58px; line-height: .9; margin: 4px 0 6px; }
.bb-rand-head p { margin: 0; font-size: 18px; color: #b9d2df; max-width: 660px; }
.bb-rand-head .bb-crt { width: 168px; flex: none; }
.bb-rand-head .bb-crt-screen { height: 100px; }
.bb-rand-head .bb-crt-screen span { display: block; padding-top: 32px; font: 700 13px/1.2 'Bebas Neue', Impact, sans-serif; letter-spacing: .1em; color: #eafcff; }
.bb-rand-head .bb-x { align-self: flex-start; }
.bb-pick-block { margin-top: 24px; }
.bb-pick-block h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: .13em; text-transform: uppercase; color: #dff3fc; display: flex; align-items: baseline; gap: 12px; }
.bb-pick-block h3 small { font-size: 13px; color: #8fb1c3; letter-spacing: .04em; text-transform: none; }
.bb-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bb-pick { display: block; padding: 0; border: 1px solid #ffffff1f; border-radius: 8px; overflow: hidden; background: #08131d; cursor: pointer; color: #ecf7ff; text-align: left;
  box-shadow: 0 8px 22px #0008; transition: transform .18s, box-shadow .18s; }
.bb-pick img { width: 100%; height: 152px; object-fit: cover; display: block; }
.bb-pick .t { display: block; padding: 8px 11px 1px; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-pick .s { display: block; padding: 0 11px 9px; font-size: 12px; color: #99b1c0; }
.bb-pick:hover, .bb-pick.focus { transform: translateY(-3px); border-color: #9fe6ff; box-shadow: 0 0 0 2px #9fe6ffcc, 0 16px 34px #000c, 0 0 30px #19b6ff70; }
.bb-rand-foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; font-size: 14px; color: #9fb7c5; }
.bb-rand-foot .btn { font-size: 17px; padding: 9px 20px; }
.bb-empty { padding: 20px; font-size: 18px; color: #91aab8; }

/* ---------- Blockbuster fit-out, tuned against Halcyon's bright 1990s sales floor ---------- */
/* Drop ceiling, fluorescent panels, pale gondolas and a blue carpet: the store should read as a
   lit rental shop, not a dark cabinet. The reference photo stays underneath as texture only. */
.bb-store { background: linear-gradient(#e6d477 0%, #d9c561 29%, #17488f 29.4%, #0d2e68 100%); }
.bb-store-photo { opacity: .24; filter: saturate(.65) brightness(1.05) blur(1.4px); }
.bb-store-shade { background: linear-gradient(0deg, #020609f2 0%, #02060955 20%, #0000 46%),
  linear-gradient(90deg, #00000059 0%, #0000 18%, #0000 82%, #00000059 100%); }
.bb-floor { position: absolute; left: -22%; right: -22%; bottom: -10%; height: 66%; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, #1b4f9e 0 3px, #17468f 3px 6px), radial-gradient(ellipse at 50% 0%, #2f6fc2, #0e326f 70%);
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); box-shadow: inset 0 40px 70px #ffffff20; }
.bb-floor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0000, #0000005c); }
.bb-ceiling { top: 78px; height: 190px; z-index: 1; opacity: .82; background:
  repeating-linear-gradient(90deg, #f7f4ea 0 118px, #ddd9cd 118px 120px),
  repeating-linear-gradient(0deg, #f7f4ea 0 56px, #ddd9cd 56px 58px), #f7f4ea; }
.bb-ceiling::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0000 55%, #d9c561 100%); }
.bb-ceiling i { width: 168px; height: 12px; margin-top: 20px; background: linear-gradient(90deg, #fffdf4, #ffffff 20%, #fff8dd 50%, #ffffff 80%, #fffdf4);
  box-shadow: 0 0 18px #fff6cf, 0 0 38px #fff2b999; }
.bb-world { z-index: 2; }
.bb-unit { background: linear-gradient(180deg, #fbfaf4, #e5e1d4 60%, #cbc7b9); border: 1px solid #8b928e66;
  box-shadow: inset 0 0 0 1px #ffffffb8, 0 20px 44px #06142a66; }
.bb-unit.left { border-left: 7px solid #0b4b9f; }
.bb-unit.right { border-right: 7px solid #0b4b9f; }
/* Centre gondola, like Halcyon's free-standing “Previously Viewed” rack. */
.bb-unit.island { left: 50%; top: 492px; width: 520px; height: 330px; transform: translateX(-50%); border: 1px solid #8b928e88; }
.bb-unit.island .bb-row { height: 252px; }
.bb-unit.island .bb-tape { height: 224px; }
.bb-cap { color: #f7fcff; background: linear-gradient(180deg, #2e83e6, #0b4b9f 60%, #073775);
  box-shadow: inset 0 1px 0 #ffffff80, 0 6px 12px #001b3a55; text-shadow: 0 1px 2px #001a45; }
.bb-row { background: repeating-linear-gradient(90deg, #ffffff00 0 8px, #00000008 8px 9px), linear-gradient(#faf8ef, #e3dfd2);
  border-bottom: 8px solid #8f948f; box-shadow: inset 0 14px 20px #00000026, inset 0 -1px 0 #ffffff, 0 7px 10px #0000001f; }
.bb-spine-t { color: #283238; }
.bb-cover { box-shadow: 0 3px 8px #00000055, inset 0 0 0 1px #ffffff66; }
.bb-sign { background: linear-gradient(180deg, #ffe17a, #ffd23f 55%, #e7ae1e); border-top: 5px solid #0b4b9f; border-bottom: 3px solid #0b4b9f;
  box-shadow: 0 10px 26px #00153a55, inset 0 1px 0 #ffffffcc; }
.bb-sign b { color: #073c8e; text-shadow: 0 1px 0 #ffffffcc; }
.bb-sign span { color: #1e4b80; }
.bb-where b { color: #ffffff; text-shadow: 0 1px 6px #00152d; }
.bb-where, .bb-help { text-shadow: 0 1px 4px #00152d; }
.bb-aisle-list .bb-aisle { background: #f7f4e8; color: #12335c; border-color: #ffffff; box-shadow: 0 2px 8px #0004; }
.bb-aisle.cur { background: linear-gradient(90deg, #2e83e6, #0b4b9f); color: #fff; border-color: #cfe8ff; }
.bb-counter { background: linear-gradient(180deg, #2d6fb8, #0b4b9f 40%, #062c61); border-top: 7px solid #ffd23f;
  box-shadow: inset 0 2px 0 #ffffff45, 0 18px 40px #0008; }
.bb-reg-sign { color: #ffd23f; }
.bb-exit b { color: #ff5163; text-shadow: 0 0 14px #ff4757cc, 0 1px 0 #ffffffaa; }
.bb-exit-door { border-color: #ffd23f66; box-shadow: inset 0 0 36px #001a2e99, 0 0 0 2px #ffd23f33; }

/* ================= STORE INTERIOR: flat, lit 1990s sales floor =================
   Modelled on Halcyon Video's reference store: a drop ceiling of fluorescent panels, a stocked
   wall of VHS spines, pale gondolas on a blue carpet, a sign hung over the aisle. The earlier
   version pushed the gondolas through a 3D camera; at every window size they were clipped at the
   edges and their rotated hit areas did not match the cases you could see. This is flat: every
   case is fully on screen, and what you click is what you see. */
.bb-store { background: #0a1f42; }
.bb-store-photo { display: none; }
/* The store is lit, so the shared translucent top bar needed a solid footing to keep the tabs
   readable (and every background layer stays out of the way of the shelf buttons beneath it). */
.blockbuster .topbar { background: linear-gradient(180deg, #05070bfa 0%, #05070bf4 64%, #05070b00 100%); }
.bb-store-shade, .bb-wall, .bb-floor, .bb-ceiling { pointer-events: none; }
.bb-store-shade { background: linear-gradient(180deg, #00000055 0%, #0000 16%, #0000 78%, #0000004d 100%); }

/* Ceiling: acoustic tiles and recessed light panels. */
.bb-ceiling { top: 0; height: 176px; padding: 0 44px; align-items: flex-start; justify-content: space-between; z-index: 2;
  opacity: 1; background:
    repeating-linear-gradient(90deg, #f4f1e6 0 108px, #cfcabd 108px 111px),
    repeating-linear-gradient(0deg, #f4f1e6 0 46px, #cfcabd 46px 49px), #f4f1e6;
  box-shadow: inset 0 -14px 26px #00000022; }
.bb-ceiling::after { display: none; }
.bb-ceiling i { width: 168px; height: 30px; margin-top: 94px; border-radius: 2px;
  background: linear-gradient(90deg, #ffffff, #fffef8 22%, #fffdf0 50%, #fffef8 78%, #ffffff);
  border: 2px solid #cfc9b9; box-shadow: 0 0 20px #ffffffdd, 0 0 52px #ffeeb888; }

/* Back wall: cream shelving with rows of rental spines, a blue band and the new-release sign. */
.bb-wall { position: absolute; left: 0; right: 0; top: 176px; height: 664px; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, #f3f0e4, #e4e0d2 62%, #d3cfc0); }
.bb-wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0000 62%, #001a3d33 100%); }
.bb-wall i { position: absolute; left: 0; right: 0; display: block; height: 72px; opacity: .62;
  background:
    repeating-linear-gradient(90deg, #3c6ba8 0 4px, #a9574e 4px 8px, #c9a851 8px 12px, #4a7d61 12px 16px, #6b5a8c 16px 20px, #b5afa0 20px 23px),
    linear-gradient(#00000014, #00000000 45%);
  border-bottom: 7px solid #b9b3a3; box-shadow: 0 4px 9px #0000001f; }
.bb-wall i.r1 { top: 0; }
.bb-wall i.r2 { display: none; }
.bb-newrel { display: none; position: absolute; left: 50%; top: 200px; transform: translateX(-50%); z-index: 2;
  padding: 7px 40px; font: 700 30px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .22em; color: #ffd23f;
  background: linear-gradient(180deg, #1b56a8, #0b4b9f 55%, #073775); border-top: 4px solid #ffd23f;
  box-shadow: 0 8px 22px #001a3d55; }

/* Carpet. */
.bb-floor { left: 0; right: 0; bottom: 0; height: 250px; z-index: 1; clip-path: none;
  background:
    repeating-linear-gradient(90deg, #1d55a8 0 3px, #17468f 3px 6px),
    repeating-linear-gradient(0deg, #174c9b 0 3px, #123a7d 3px 6px), #123a7d;
  box-shadow: inset 0 26px 44px #00112e66; }
.bb-floor::after { background: linear-gradient(#0000, #0000003d); }

/* The aisle is a single flat bay, so only what is in front of you is drawn and clickable. */
.bb-world { perspective: none; z-index: 3; }
.bb-cam { transform: none; transition: none; }
.bb-bay { display: none; transform: none; opacity: 1; }
.bb-bay.on { display: block; opacity: 1; }
.bb-sign { top: 226px; transform: translateX(-50%); z-index: 6; min-width: 380px; padding: 6px 30px 8px;
  border-top: 5px solid #0b4b9f; border-bottom: 3px solid #0b4b9f;
  background: linear-gradient(180deg, #ffe17a, #ffd23f 55%, #e7ae1e); }
.bb-sign::before, .bb-sign::after { content: ''; position: absolute; bottom: 100%; width: 2px; height: 34px;
  background: linear-gradient(#0000, #8e948c); }
.bb-sign::before { left: 22%; } .bb-sign::after { right: 22%; }
.bb-sign b { font-size: 34px; }

.bb-unit { top: 344px; width: 900px; height: 470px; padding: 10px 14px 14px;
  background: linear-gradient(180deg, #fbfaf4, #e7e3d6 62%, #d0ccbd); border: 1px solid #8b928e66;
  box-shadow: inset 0 0 0 1px #ffffffb8, 0 18px 40px #06142a55; }
.bb-unit.left { left: 40px; transform: none; border-left: 7px solid #0b4b9f; }
.bb-unit.right { right: 40px; left: auto; transform: none; border-right: 7px solid #0b4b9f; }
.bb-unit.island { display: none; }
.bb-cap { height: 34px; margin: -10px -14px 9px; font-size: 19px; }
.bb-row { height: 194px; padding: 9px 5px 11px; gap: 6px; border-bottom: 8px solid #a7a294; }
.bb-tape { width: calc((100% - 18px) / 4); height: 172px; }
.bb-cover { inset: 0 0 20px; }
.bb-spine-t { height: 18px; font-size: 11px; }

/* Chrome: aisle chips along the bottom left, register bottom right, exit centred. */
.bb-store-ui { left: 56px; top: 274px; }
.bb-where { font-size: 16px; color: #16375f; text-shadow: none; }
.bb-where b { font-size: 30px; color: #07234a; text-shadow: 0 1px 0 #ffffffcc; }
.bb-where span:last-child { color: #3c5c80; }
.bb-help { color: #3c5c80; text-shadow: none; }
.bb-aisle-list { left: 52px; right: 900px; top: auto; bottom: 34px; width: auto; flex-direction: row; flex-wrap: wrap;
  align-content: flex-end; gap: 7px; }
.bb-aisle-list .bb-aisle { font-size: 15px; padding: 7px 14px; text-align: center; }
.bb-register { right: 44px; bottom: 26px; flex-direction: row; align-items: flex-end; gap: 14px; }
.bb-counter { width: 320px; height: 112px; }
.bb-candy { left: 14px; bottom: 14px; width: 86px; height: 52px; }
.bb-candy.alt { left: 108px; }
.bb-reg-sign { right: 14px; top: 14px; font-size: 20px; }
.bb-register .bb-crt { width: 190px; }
.bb-register .bb-crt-screen { height: 104px; }
.bb-register .bb-ch-name { padding-top: 26px; font-size: 17px; }
.bb-register .bb-ch-sub { font-size: 10px; }
.bb-hang-tv { left: auto; right: 250px; top: 176px; width: 150px; z-index: 6; }
.bb-hang-tv .bb-tv-label { color: #12355f; text-shadow: 0 1px 0 #ffffffcc; }
.bb-hang-tv .bb-crt-body { transform: none; }
.bb-hang-tv .bb-crt-screen { height: 82px; }
.bb-hang-tv .bb-ch-name { padding-top: 22px; font-size: 14px; }
.bb-wire { height: 130px; }
.bb-exit { left: 50%; bottom: 20px; width: 176px; height: 196px; z-index: 12; }
.bb-exit-door { inset: 0 0 34px; border-color: #0b4b9f88; background: linear-gradient(100deg, #ffffff26, #9fd3ff2e 45%, #ffffff1a 60%, #8fd0ff33); }

/* ---------- debanding grain: breaks up 8-bit gradient steps on dark backgrounds ---------- */
#grain { position: absolute; inset: -50%; z-index: 100; pointer-events: none; background-image: var(--noise); background-size: 256px 256px; opacity: .035; }
body.tv-full #grain, body.vod #grain { display: none; }

/* ---- Blockbuster walk-in store (three.js canvas) -------------------------- */
/* The canvas fills the CSS world slot; everything on top of it is HUD, not 3D. */
.bb3d canvas.s3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.bb3d.s3d-locked canvas.s3d-canvas { cursor: none; }
/* crosshair: quiet at rest, gold and leaning forward when the gaze lands on something */
.s3d-dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid rgba(235,246,255,.7); box-shadow: 0 0 6px rgba(0,0,0,.75); pointer-events: none; z-index: 6; transition: transform .15s ease, border-color .15s, background .15s; }
.s3d-dot.on { transform: scale(1.55); border-color: #ffd23f; background: rgba(255,210,63,.32); }
/* touch: a walk pad bottom-left, a grab button bottom-right — fingers never cover the view */
.s3d-pad { display: none; position: absolute; left: 34px; bottom: 34px; width: 148px; height: 148px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); background: rgba(8,14,24,.35); pointer-events: none; z-index: 6; }
.s3d-knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(235,246,255,.26); }
.s3d-act { display: none; position: absolute; right: 40px; bottom: 46px; z-index: 7; min-width: 94px; height: 94px; padding: 0 12px; border-radius: 50%; border: 2px solid #ffd23f; background: rgba(10,16,26,.72); color: #ffd23f; font: 700 15px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: .07em; cursor: pointer; }
@media (pointer: coarse) { .s3d-pad, .s3d-act { display: block; } }

/* ---------- profiles ---------- */
/* Who's watching: the account chooser shared mode opens on. */
/* Prime Video's chooser, cloned in shape: a plain dark field, one row of round faces with the name
   beneath, a quiet "Manage profiles" underneath, and the delete cross only while that is open — so
   a tap meant for a face can never delete it. */
/* The opening animation is inside #stage, which is its own stacking context, so a fixed gate at 90
   sat on top of it and the splash played behind the chooser. It waits, laid out, until the sting ends. */
body.intro-live #profile-gate { display: none; }
#profile-gate { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 24px 0; background: #0b0f14; font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif; }
/* margin:auto centres the chooser when it fits and resolves to 0 when it does not, so a full 30
   accounts starts at the top of the gate and scrolls instead of being clipped above the viewport
   (align-items:center overflowed both ways and made the first rows unreachable). */
.pg-inner { text-align: center; padding: 40px 32px; max-width: 1080px; margin: auto; }
.pg-kicker { margin: 0 0 46px; font-size: 30px; font-weight: 400; letter-spacing: .01em; color: #f2f6fa; }
.pg-row { display: flex; gap: 46px; justify-content: center; flex-wrap: wrap; }
.pg-card { position: relative; width: 150px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; }
.pg-av { display: grid; place-items: center; width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--c, var(--cyan)); color: #04121a; font-size: 46px; font-weight: 600; text-transform: uppercase;
  transition: box-shadow .16s ease, transform .16s ease; }
.pg-card:hover .pg-av, .pg-card.focus .pg-av, .pg-card:focus .pg-av { box-shadow: 0 0 0 3px #1ea7ff; transform: scale(1.04); }
.pg-card:focus { outline: none; }
.pg-card.focus { transform: none; }
.pg-name { display: block; font-size: 16px; color: #cfdae4; text-align: center; }
.pg-card.add .pg-av { background: #ffffff10; border: 2px dashed #4a5866; color: #cfdae4; font-size: 40px; }
/* A profile that carries a password: a quiet padlock on the tile, so the chooser says which accounts
   will ask before one is tapped. */
.pg-lock { position: absolute; left: 50%; margin-left: 34px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; background: #0b0f14e6; border: 1px solid #ffffff2e; }
body.m-portrait .pg-lock { margin-left: 28px; top: 2px; width: 22px; height: 22px; font-size: 11px; }
.pg-card.add .pg-av i { font-style: normal; }
.pg-del { position: absolute; right: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: none;
  place-items: center; font-size: 15px; background: #1b2530; color: #ffd4d4; border: 1px solid #ffffff33; }
.pg-foot { margin-top: 48px; }
.pg-manage { font: inherit; font-size: 15px; color: #8fa4b5; background: none; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 8px; }
.pg-manage:hover { color: #e9f4ff; background: #ffffff0f; }
.pg-note { margin: 14px auto 0; font-size: 14px; color: #6f8497; max-width: 560px; line-height: 1.5; }
/* Many accounts: smaller faces and tighter gaps, so 30 profiles land in a handful of rows instead of
   a wall that scrolls for several screens. Triggered past a dozen, where the standard tiles stop
   fitting a 900-tall window comfortably. */
.pg-inner.many .pg-row { gap: 22px 26px; }
.pg-inner.many .pg-card { width: 110px; }
.pg-inner.many .pg-av { width: 86px; height: 86px; margin-bottom: 8px; font-size: 32px; }
.pg-inner.many .pg-name { font-size: 14px; }
.pg-inner.many .pg-kicker { margin-bottom: 30px; }
.pg-inner.many .pg-foot { margin-top: 30px; }
body.m-portrait .pg-inner.many .pg-card { width: 100px; }
body.m-portrait .pg-inner.many .pg-av { width: 76px; height: 76px; font-size: 30px; }
/* The same chooser on a phone: two faces a row, thumb-sized. */
body.m-portrait .pg-inner { padding: 24px 18px; }
body.m-portrait .pg-kicker { font-size: 24px; margin-bottom: 30px; }
body.m-portrait .pg-row { gap: 28px 34px; }
body.m-portrait .pg-card { width: 120px; }
body.m-portrait .pg-av { width: 96px; height: 96px; font-size: 38px; margin-bottom: 10px; }
body.m-portrait .pg-name { font-size: 15px; }
/* Settings → Profiles: a real switch, not a button that says "toggle". */
.btn.tog { gap: 12px; }
.btn.tog .sw { width: 54px; height: 28px; border-radius: 14px; background: #ffffff26; position: relative;
  transition: background .18s; flex: 0 0 auto; }
.btn.tog .sw i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #eaf6ff; transition: left .18s; box-shadow: 0 2px 6px #0007; }
.btn.tog.on .sw { background: var(--cyan); }
.btn.tog.on .sw i { left: 29px; background: #01202c; }
.plist { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: #ffffff0a; }
.pav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  font-weight: 700; color: #04121a; text-transform: uppercase; }
.pnm { flex: 1; font-size: 20px; color: var(--text); }
.btn.xs { font-size: 16px; padding: 6px 12px; height: auto; }
/* The name prompt behind Add a profile. */
.ask-bg { position: fixed; inset: 0; z-index: 95; background: #03070bd0; display: flex; align-items: center; justify-content: center; }
.ask { width: 460px; padding: 26px 26px 20px; border-radius: 16px; background: #0a121b; border: 1px solid #19e6ff55;
  box-shadow: 0 30px 80px #000c; }
.ask h3 { margin: 0 0 16px; font-size: 26px; }
.ask-hint { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ask label { display: block; font-size: 15px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.ask input { width: 100%; margin-top: 8px; height: 52px; padding: 0 14px; border-radius: 10px; border: 1px solid #ffffff33;
  background: #060b11; color: #fff; font: inherit; font-size: 22px; }
.ask-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.ask-btns button { font: inherit; font-size: 18px; padding: 10px 18px; border-radius: 10px; border: 1px solid #ffffff2e;
  background: #ffffff14; color: #eaf6ff; cursor: pointer; }
.ask-btns .ask-ok { background: var(--cyan); border-color: var(--cyan); color: #00121a; font-weight: 700; }

/* ---- who is watching (shared mode) ---- */
/* The top-bar chip that says which profile this device is on and switches it in one tap. */
.uchip { display: flex; align-items: center; gap: 9px; margin-left: 4px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid #ffffff1f; background: #ffffff0d; cursor: pointer; transition: background .15s, border-color .15s; }
.uchip:hover, .uchip.fon { background: #ffffff1a; border-color: #19e6ff66; }
.uchip .uav { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 17px/1 'Bebas Neue', Impact, sans-serif; color: #06121b; letter-spacing: .04em; }
.uchip .unm { font-size: 18px; font-weight: 700; color: #dff1ff; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uchip .usw { font-size: 17px; color: var(--cyan); }

/* ---- the phone as a remote while the TV plays ---- */
/* Shown on every device except the one that started the cast; it is the transport for whatever is on
   the television, so the phone can leave the picture and still work it. */
#tv-remote { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 999px;
  background: #060d15f2; border: 1px solid #19e6ff5c; box-shadow: 0 12px 40px #000a, 0 0 24px #19e6ff26;
  color: #eaf9ff; font: 600 18px/1 system-ui, -apple-system, sans-serif; max-width: calc(100% - 60px); }
#tv-remote .tvr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
#tv-remote .tvr-t { color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
#tv-remote .tvr-title { font-weight: 700; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tv-remote .tvr-pos { color: #9fc6d8; font-variant-numeric: tabular-nums; font-size: 16px; }
#tv-remote .tvr-btns { display: flex; align-items: center; gap: 6px; }
#tv-remote .tvr-b { display: flex; align-items: center; justify-content: center; min-width: 46px; height: 40px; padding: 0 8px;
  border-radius: 10px; background: #ffffff12; border: 1px solid #ffffff1f; font-size: 17px; cursor: pointer; }
#tv-remote .tvr-b:hover, #tv-remote .tvr-b.fon { background: #19e6ff; border-color: #19e6ff; color: #00121a; }
#tv-remote .tvr-b.big { min-width: 56px; font-size: 20px; }
#tv-remote .tvr-b.stop:hover { background: #ff5f6d; border-color: #ff5f6d; color: #fff; }
#tv-remote .tvr-vol { font-size: 15px; color: #9fc6d8; font-variant-numeric: tabular-nums; min-width: 26px; text-align: center; }

/* The cast/AirPlay control while the picture really is on a TV. */
.xcast.on { color: var(--cyan); border-color: #19e6ff8c; box-shadow: 0 0 12px #19e6ff40; }

/* ---- the picture is on a TV over AirPlay ---- */
/* Same bar as a cast session, minus the transport: the page's own controls already drive the routed
   element, and only iOS can end the route, so this one is a signpost and not a remote. */
#airplay-bar { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px;
  background: #060d15f2; border: 1px solid #19e6ff5c; box-shadow: 0 12px 40px #000a, 0 0 24px #19e6ff26;
  color: #eaf9ff; font: 600 17px/1 system-ui, -apple-system, sans-serif; max-width: calc(100% - 60px); }
#airplay-bar .ap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
#airplay-bar .ap-t { color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
#airplay-bar .ap-title { font-weight: 700; max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#airplay-bar .ap-hint { color: #9fc6d8; font-weight: 500; font-size: 15px; white-space: nowrap; }
@media (max-width: 720px) { #airplay-bar .ap-hint { display: none; } }

/* ═══ Liquid glass (1.2.2) ═══════════════════════════════════════════════════════════════════════
   Flat translucent boxes become cut glass: a bevelled hairline, a diamond tint behind the face, a
   specular top edge, and cyan light that moves when the control is touched. Everything animates on
   transform/shadow/colour only, so it stays cheap in a web view — and the cyan theme is unchanged,
   this is the same light, run through glass instead of paint. */

:root {
  --glass-hi: rgba(255, 255, 255, .17);
  --glass-lo: rgba(255, 255, 255, .035);
  --glass-line: rgba(255, 255, 255, .20);
  --glass-edge: rgba(255, 255, 255, .40);
  --glass-cyan: rgba(25, 230, 255, .26);
  --glass-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 2px 6px rgba(0, 0, 0, .32);
}

/* One recipe for every button-shaped thing, so the app reads as one material. */
.btn, .chip, .viewtoggle, .viewlink, .uchip, .mirror-chip, .fs-exit,
.tvr-b, #mirror-panel .mp-btn, #mirror-panel .mp-opt, .ask-btns button, .chip2 {
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(180deg, var(--glass-hi), rgba(255, 255, 255, .06) 44%, var(--glass-lo)),
    radial-gradient(130% 130% at 16% -20%, var(--glass-cyan), transparent 62%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(0, 0, 0, .45), var(--glass-shadow);
  color: var(--text);
  transition:
    transform .24s cubic-bezier(.2, .9, .25, 1),
    box-shadow .3s ease, border-color .25s ease, color .2s ease, filter .25s ease;
}
.btn, .viewtoggle, .uchip, .tvr-b, #mirror-panel .mp-btn, #mirror-panel .mp-opt { position: relative; }

/* The diamond: a rotated 45° pane of tinted glass seen through the face, its facets catching light.
   On focus it drifts (transform), which is what makes the control feel like liquid rather than paint. */
.btn::before, .chip::before, .viewtoggle::before, .viewlink::before, .uchip::before,
.mirror-chip::before, .fs-exit::before, .tvr-b::before,
#mirror-panel .mp-btn::before, #mirror-panel .mp-opt::before, .ask-btns button::before, .chip2::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -14%;
  top: -155%;
  width: 128%;
  aspect-ratio: 1;
  background: conic-gradient(from 45deg,
    rgba(25, 230, 255, .40), rgba(127, 243, 255, .10) 22%,
    rgba(255, 255, 255, .20) 46%, rgba(25, 230, 255, .18) 68%, rgba(25, 230, 255, .40));
  transform: rotate(45deg);
  opacity: .42;
  filter: blur(7px);
  transition: opacity .34s ease, transform .6s cubic-bezier(.2, .9, .25, 1);
}

/* Light travelling across the face while a control is active: one short sweep, not a loop. */
.btn:hover::after, .btn.focus::after, .chip.focus::after, .viewtoggle.focus::after,
.uchip:hover::after, .mirror-chip:hover::after, .tvr-b:hover::after, .tvr-b.fon::after,
#mirror-panel .mp-btn:hover::after, .ask-btns button:hover::after {
  content: '';
  position: absolute;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  transform: translateX(-125%);
  animation: glassSweep 1.15s cubic-bezier(.3, .75, .2, 1) .04s 1 both;
}

@keyframes glassSweep { to { transform: translateX(125%); } }

/* Hover: lift and let the cyan come up through the glass. */
.btn:hover, .chip:hover, .viewtoggle:hover, .viewlink:hover, .uchip:hover,
.mirror-chip:hover, .tvr-b:hover, #mirror-panel .mp-btn:hover, #mirror-panel .mp-opt:hover,
.ask-btns button:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(25, 230, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .40),
    var(--glass-shadow), 0 0 0 1px rgba(25, 230, 255, .26), 0 0 32px rgba(25, 230, 255, .30);
}
.btn:hover::before, .chip:hover::before, .viewtoggle:hover::before, .uchip:hover::before,
.mirror-chip:hover::before, .tvr-b:hover::before, #mirror-panel .mp-btn:hover::before,
.ask-btns button:hover::before { opacity: .66; transform: rotate(45deg) translateY(52%); }

/* Focus is the remote's cursor: unmistakably this control, still glass. */
.btn.focus, .chip.focus, .viewtoggle.focus, .tvr-b.fon {
  transform: translateY(-2px) scale(1.02);
  color: #001822;
  border-color: rgba(216, 250, 255, .92);
  background:
    linear-gradient(180deg, #d8fbff, #19e6ff 46%, #08b6cd),
    radial-gradient(130% 130% at 16% -20%, rgba(255, 255, 255, .7), transparent 60%);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(0, 40, 50, .35),
    0 12px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(25, 230, 255, .45), 0 0 34px rgba(25, 230, 255, .50);
  animation: glassBreathe 3.4s ease-in-out infinite;
}
.btn.focus::before, .chip.focus::before, .viewtoggle.focus::before, .tvr-b.fon::before {
  opacity: .85;
  transform: rotate(45deg) translateY(58%);
  filter: blur(9px);
}

@keyframes glassBreathe {
  0%, 100% { box-shadow: inset 0 1px 0 #ffffff, 0 12px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(25, 230, 255, .40), 0 0 26px rgba(25, 230, 255, .38); }
  50% { box-shadow: inset 0 1px 0 #ffffff, 0 12px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(25, 230, 255, .60), 0 0 40px rgba(25, 230, 255, .55); }
}

/* Pressing a control: it gives, the way glass under a fingertip does. */
.btn:active, .chip:active, .viewtoggle:active, .uchip:active, .tvr-b:active,
#mirror-panel .mp-btn:active, .ask-btns button:active {
  transform: translateY(0) scale(.982);
  filter: saturate(125%) brightness(1.06);
  transition-duration: .09s;
}

/* Ripple injected on pointerdown (app.js). */
.ripple {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(25, 230, 255, .28) 58%, transparent 72%);
  mix-blend-mode: screen;
  animation: rippleOut .66s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes rippleOut { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Cards get the same cut edge, but stay picture first. */
.card {
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .42);
  transition: transform .24s cubic-bezier(.2, .9, .25, 1), box-shadow .3s ease, border-color .3s ease;
}
.card.focus {
  border-color: rgba(25, 230, 255, .78);
  box-shadow: 0 0 0 1px rgba(25, 230, 255, .45), 0 0 34px rgba(25, 230, 255, .42), 0 18px 42px rgba(0, 0, 0, .55);
}

/* The switch, as a small piece of the same glass. */
.btn.tog .sw {
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .18);
  transition: background .3s ease, box-shadow .3s ease;
}
.btn.tog .sw i {
  background: radial-gradient(circle at 34% 28%, #ffffff, #d8f6ff 46%, #8fdcf0);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .45), inset 0 1px 0 #ffffff;
  transition: left .3s cubic-bezier(.3, 1.25, .35, 1), background .3s ease;
}
.btn.tog.on .sw {
  background: linear-gradient(180deg, #5cf4ff, #0aa8be);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35), 0 0 18px rgba(25, 230, 255, .55);
}
.btn.tog.on .sw i { background: radial-gradient(circle at 34% 28%, #ffffff, #e9fbff 55%, #bdf2ff); }

/* Bars and panels: the glass the controls sit in. */
.sbar, #toast, .ask, #mirror-panel, #tv-remote, #airplay-bar, .panel {
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
}
.sbar {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 8px 22px rgba(0, 0, 0, .35);
}
.nav .tab { border-radius: 12px; transition: background .2s ease, color .2s ease, box-shadow .25s ease; }
.nav .tab:hover { background: rgba(255, 255, 255, .08); }
.nav .tab.cur::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-soft), var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
}

/* ---------- upright (portrait) phones and tablets ---------- */
/* app.js adds .m-portrait and gives the stage a narrower logical width, so the same UI is drawn at a
   size a thumb can hit. These rules are the reflow for the taller shape: the top bar takes a second
   row for the nav, the two-column panels become one column (the settings grid was collapsing into
   an unreadable sliver and reading as blank), and the shelves keep their edge padding.
   Landscape — phone, iPad, DeX, a desktop browser — is untouched. */
/* A fixed two-row bar: logo + search, then the nav as one scrollable strip. Fixed height, because
   every screen positions its panel from the top of the stage and a bar that grew with the number of
   tabs put the nav on top of the hero. #screens is shifted down by the difference, so panels keep
   their own offsets and simply start below the bar. */
body.m-portrait .topbar { height: 196px; flex-wrap: wrap; align-content: flex-start;
  row-gap: 8px; padding: 16px 36px 0; overflow: hidden; }
body.m-portrait .topbar .mf-logo { height: 42px; }
body.m-portrait .topbar .sbar { flex: 1 1 40%; max-width: none; height: 46px; font-size: 19px; margin-left: 0; }
/* Logo, back, account and the search field do not fit one 820px row when the account keeps its name:
   the field moved onto the nav's line and drew over the hero. The chip keeps its face only. */
body.m-portrait .topbar .uchip .unm, body.m-portrait .topbar .uchip .usw { display: none; }
body.m-portrait .topbar { gap: 10px 12px; }
body.m-portrait .nav { width: 100%; flex-wrap: nowrap; gap: 4px; overflow-x: auto; overflow-y: hidden;
  padding-bottom: 6px; scrollbar-width: none; }
body.m-portrait .nav::-webkit-scrollbar { display: none; }
body.m-portrait .nav .tab { font-size: 21px; padding: 8px 14px; flex: 0 0 auto; }
/* The bar is drawn inside each screen, so it always starts at the top of the stage — no offset here.
   What has to clear the taller two-row bar is the content each screen positions for itself, which is
   every rule below. (86px of offset here was the bug behind the phone screenshots: the bar is 196
   tall, so hero titles, shelf labels and descriptions all began 110px inside it.) */
body.m-portrait #screens { top: 0; }
/* 218 = the two-row bar (196) plus the 22px the landscape layout leaves between bar and panel. At 40
   the panel sat inside the bar: the Back chip drew over the "Sources" heading and the nav tabs over
   the account rows. */
body.m-portrait .settings .panel { grid-template-columns: 1fr; gap: 26px; left: 40px; right: 40px;
  top: 218px; bottom: 20px; padding-right: 12px; }
body.m-portrait .settings h3 { font-size: 24px; }
body.m-portrait .srow { font-size: 22px; flex-wrap: wrap; row-gap: 4px; }
body.m-portrait .srow .nm { white-space: normal; overflow: visible; } /* an ellipsised path tells nobody anything */
/* 74px is narrower than the word CATALOG at this size, so it ran into the name beside it
   ("CATALOGFlixer Catalog"). 104 clears the longest type label and its letter-spacing. */
body.m-portrait .srow .ty { width: 104px; }
body.m-portrait .row h2 { margin-left: 40px; font-size: 27px; }
body.m-portrait .row .strip { padding: 14px 40px 18px; gap: 16px; }
body.m-portrait .catalog .panel, body.m-portrait .panel { left: 40px; right: 40px; }
/* The catalog's page title is placed for the landscape bar (112). Upright the bar is 196 tall and the
   service grid starts at 220, so there is no line for it to sit on: at 112 it drew under the search
   field, and at 218 on top of the first card. The nav already names the screen on a phone, so the
   title goes rather than pushing the shelves down. */
body.m-portrait .page-title { display: none; }

/* ---------- portrait shelves ---------- */
/* Sized for a thumb, not a remote: two posters or one wide card per screen, snapping as they swipe,
   with the next card peeking so it is obvious the shelf moves. The strips scroll natively on touch —
   the arrow buttons stay for a mouse, but a finger drags. */
/* The shelves start below the hero copy, not on top of its last line: the title now begins at 216,
   and a 128px headline with a description under it needs the room. */
body.m-portrait .rows { top: 620px; }
body.m-portrait .row h2 { font-size: 33px; margin-bottom: 10px; }
body.m-portrait .row h2 .count { font-size: 22px; }
body.m-portrait .row .strip { gap: 20px; padding: 16px 40px 22px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
body.m-portrait .row .strip::-webkit-scrollbar { display: none; }
body.m-portrait .card { scroll-snap-align: start; }
body.m-portrait .card.poster { width: 300px; height: 450px; }
body.m-portrait .card.wide { width: 620px; height: 349px; }
body.m-portrait .card.channel { width: 620px; height: 349px; }
/* A channel card is a fixed box and its programme title is not: "Live: FA Women's Super League" ran
   straight out of the card and over the row below. The label is clipped inside the card instead, two
   lines of it, with the progress bar and ep note keeping their own room. */
body.m-portrait .card.channel .label { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; max-height: 46%; }
body.m-portrait .card.channel .label small { -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical;
  overflow: hidden; }
/* Four columns of 1920-stage cards crammed into 740px left 90px-wide cells whose names read
   "CBS Sports..." / "Basketb...". Two columns is the phone's answer. */
body.m-portrait .chgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
body.m-portrait .chgrid .card.channel { width: 100%; height: 300px; }
/* Two programme lines plus the slot is taller than the card once the grid is two columns wide: the
   second line ran out of the bottom of the card. One line each, and the slot keeps its own row. */
body.m-portrait .chgrid .card.channel .label { max-height: 54%; }
body.m-portrait .chgrid .card.channel .label small { -webkit-line-clamp: 1; line-clamp: 1; display: -webkit-box;
  -webkit-box-orient: vertical; overflow: hidden; }
body.m-portrait .chgrid .card.channel .num { font-size: 54px; }
body.m-portrait .chgrid .card.channel .cname { top: 84px; font-size: 23px; }
body.m-portrait .card.service { width: 480px; height: 270px; }
body.m-portrait .card .label { font-size: 27px; padding: 46px 18px 16px; }
body.m-portrait .card .label small { font-size: 21px; }
body.m-portrait .card.service .name { font-size: 78px; }
body.m-portrait .hero h1 { font-size: 128px; }
/* 216 = the two-row bar (196) plus the 20px the landscape layout leaves above the hero copy. */
body.m-portrait .hero .info { left: 40px; width: 720px; top: 216px; }
body.m-portrait .hero .desc { font-size: 28px; }

/* ---------- portrait: title page and player ---------- */
/* The preview page is laid out as a 940-wide column inside a 1920 stage. Upright that ran the title,
   the description and the button row off the right edge ("CODENAME: KIDS NEX..." in the shots). */
body.m-portrait .detail .info { left: 40px; right: 40px; width: auto; top: 206px; bottom: 16px; }
body.m-portrait .detail h1 { font-size: 92px; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
body.m-portrait .detail .desc { font-size: 25px; -webkit-line-clamp: 4; }
body.m-portrait .detail .btns { flex-wrap: wrap; overflow: visible; row-gap: 12px; }
body.m-portrait .detail .btn { font-size: 24px; padding: 14px 26px; }
/* The player's top bar was padded for a 1920 window: the Back button sat on the first letters of the
   title. Upright it keeps its own row above the title instead of sharing one. */
body.m-portrait .p-top { padding: 26px 28px 40px; gap: 12px; }
body.m-portrait .p-top .gback { flex: 0 0 auto; }
body.m-portrait .p-meta { min-width: 0; }
body.m-portrait .p-meta .t { font-size: 30px; }
body.m-portrait .p-meta .s { font-size: 16px; }
body.m-portrait .osd .bot { padding: 110px 22px 22px; }
body.m-portrait .osd .ctl { height: 42px; min-width: 42px; padding: 0 9px; font-size: 15px; }
body.m-portrait .osd .ctl.play { width: 50px; height: 50px; min-width: 50px; }
body.m-portrait .rnav { display: none !important; } /* a swipe is the arrow here */

/* ---------- YouTube, the way the phone app draws it ---------- */
/* Full-bleed thumbnails with the title, channel and length stacked underneath, one per row, instead
   of the landscape shelf cards a TV wants. Desktop, the Mac app and the Windows exe keep their cards:
   everything here is behind .m-portrait. */
body.m-portrait .ytrow { flex-direction: column; gap: 26px; padding: 20px 40px 28px; }
body.m-portrait .ytrow .card.short { width: 100%; height: auto; }
body.m-portrait .ytrow .card.short img { height: 720px; }
body.m-portrait .search .grid2 { display: block; padding: 0 40px; }
body.m-portrait .search .grid2 .card { width: 100%; height: auto; margin-bottom: 30px; }
body.m-portrait .search .grid2 .card.wide img,
body.m-portrait .search .grid2 .card.poster img { height: 400px; }
body.m-portrait .search .grid2 .card .label { position: static; background: none; padding: 18px 4px 0;
  font-size: 29px; line-height: 1.25; }
body.m-portrait .search .grid2 .card .label small { font-size: 22px; margin-top: 8px; color: #a8bccb; }
/* A channel result is a face and a line of text, not a picture to fill the screen. */
body.m-portrait .search .grid2 .card.ytchan { display: flex; gap: 22px; align-items: center; padding: 10px 4px; }
body.m-portrait .search .grid2 .card.ytchan img.av,
body.m-portrait .search .grid2 .card.ytchan .av { width: 110px; height: 110px; flex: 0 0 auto; border-radius: 50%; }
body.m-portrait .search .grid2 .card.ytchan .label { padding: 0; }
body.m-portrait .search .query { font-size: 46px; }
/* Upright the results column is not a right-hand pane any more: the field takes the full width and the
   results start under it, so nothing is pushed off the right edge of an 820-wide stage. */
body.m-portrait .search .scopes { left: 40px; right: 40px; width: auto; top: 190px; }
body.m-portrait .search .scope { font-size: 22px; padding: 10px 20px; }
body.m-portrait .search .query { left: 40px; right: 40px; width: auto; top: 252px; height: 84px; }
body.m-portrait .search .query .sinput { font-size: 46px; }
body.m-portrait .search .kbd { display: none; }
body.m-portrait .search .results { left: 40px; right: 40px; top: 366px; }

/* Button rows scroll sideways on a phone. Wrapped, a settings row of four buttons stacked into a
   column that overlapped the row above it — the same bug the nav had. They stay on one line here and
   the row itself scrolls, with a soft edge so it is obvious there is more to the right. */
body.m-portrait .btns { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 14px;
  padding: 8px 40px 12px; margin-left: -40px; margin-right: -40px; scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #0000 0, #000 18px, #000 calc(100% - 30px), #0000 100%);
  mask-image: linear-gradient(90deg, #0000 0, #000 18px, #000 calc(100% - 30px), #0000 100%); }
body.m-portrait .btns::-webkit-scrollbar { display: none; }
body.m-portrait .btns .btn { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }

/* The YouTube tab itself, not just its search results: one video per row, thumbnail full width, then
   title and channel stacked underneath — the phone app's list. Rows stay where they are; only the
   shelf inside each one turns into a column. */
body.m-portrait .yt-mode .row .strip { flex-direction: column; gap: 32px; padding: 12px 40px 26px;
  overflow: visible; scroll-snap-type: none; }
body.m-portrait .yt-mode .card.wide { width: 100%; height: auto; }
body.m-portrait .yt-mode .card.wide img { height: 418px; object-fit: cover; }
body.m-portrait .yt-mode .card .label { position: static; background: none; padding: 16px 2px 0;
  font-size: 29px; line-height: 1.25; }
body.m-portrait .yt-mode .card .label small { font-size: 21px; margin-top: 8px; color: #a8bccb; }
body.m-portrait .yt-mode .card .svc { left: 12px; top: 12px; font-size: 15px; padding: 5px 10px; }
body.m-portrait .yt-mode .row h2 { font-size: 31px; }
/* A vertical list is taller than the window, so on the phone the YouTube page scrolls as one page
   instead of being paged row by row — the row transform is what made it fight the finger. */
body.m-portrait .yt-mode .rows { overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.m-portrait .yt-mode .rows-track { transform: none !important; }

/* ---------- Live TV, upright ---------- */
/* The banner is a landscape strip: a 300px channel block, the programme, then a 440px side panel. At
   820px wide that side panel squeezed the middle until the controls stacked on each other. Upright it
   becomes three stacked rows, and the chip row scrolls sideways like every other button row. */
body.m-portrait .live-ui .banner { left: 30px; right: 30px; bottom: 26px; height: auto; max-height: 70%;
  flex-direction: column; border-radius: 18px; }
body.m-portrait .live-ui .banner .chan { width: 100%; flex-direction: row; justify-content: flex-start;
  gap: 18px; padding: 14px 22px; border-right: 0; border-bottom: 1px solid #3d6cc4; }
body.m-portrait .live-ui .banner .chan .n { font-size: 54px; }
body.m-portrait .live-ui .banner .chan .cn { font-size: 21px; text-align: left; padding: 0; }
body.m-portrait .live-ui .banner .now { padding: 16px 22px; }
body.m-portrait .live-ui .banner .now .t { font-size: 28px; }
body.m-portrait .live-ui .banner .now .s, body.m-portrait .live-ui .banner .now .d { font-size: 20px; }
body.m-portrait .live-ui .banner .side { width: 100%; border-left: 0; border-top: 1px solid #3d6cc4;
  padding: 14px 22px; }
body.m-portrait .live-ui .banner .side .clk { font-size: 34px; }
body.m-portrait .live-ui .banner .side .actrow { overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding-bottom: 6px; }
body.m-portrait .live-ui .banner .side .actrow::-webkit-scrollbar { display: none; }

/* ---------- Guide, upright ---------- */
/* The side info card is 620px of a 820px screen, which left the grid a sliver. It goes, and the grid
   takes the full width; the programme's details are still one press away on its row. */
body.m-portrait .guide .ginfo { display: none; }
/* The guide carries the app's own bar upright, so its landscape header would be a second title under
   the first: the bar already has the search field and the nav, with Guide marked current. The grid
   starts underneath it, and the key legend that needs a remote goes with the header. */
body.m-portrait .guide .gtop, body.m-portrait .guide .chip, body.m-portrait .guide .hint { display: none; }
/* The grid used to be pushed by `margin-top` on an element that already had `top: 510`, which left a
   dead band between the preview and the first row. Upright it simply starts under the preview. */
body.m-portrait .guide .grid { margin-top: 0; top: 470px; left: 40px; right: 40px; bottom: 26px; }
/* The now-line is a vertical hairline across a 1920-wide grid; on a 740-wide phone grid it drew as a
   red streak through the programme cells, under the preview. */
body.m-portrait .guide .nowline { display: none; }
/* The channel column is 300 of the 738 the grid has upright, which left the time axis 438px and every
   programme cell a couple of letters wide. Upright it is a narrow label column and the timeline —
   which now spans the hour it draws — gets the rest. */
body.m-portrait .guide .grid .gch { width: 190px; gap: 8px; padding: 0 10px; }
body.m-portrait .guide .grid .gch .n { width: 44px; font-size: 30px; }
body.m-portrait .guide .grid .gch .nm { font-size: 15px; }
body.m-portrait .guide .grid .gch img { max-width: 40px; max-height: 26px; }
body.m-portrait .guide .grid .times .corner { width: 190px; font-size: 18px; padding-left: 12px; }
/* The picture the guide previews is a corner window, not a second header: upright it sits under the
   bar at the size of a phone thumbnail instead of covering the grid's first rows. */
body.m-portrait.tv-guide #tv-layer { top: 208px; right: 26px; width: 360px; height: 203px; }
/* Browsing with a channel (or a film) in the corner: upright, the window docks bottom-right at the
   guide preview's thumbnail size. It used to keep its 560×315 landscape box at top: 120, which put
   the picture over the two-row bar — the nav and the search field sat underneath it. */
body.m-portrait.tv-pip #tv-layer,
body.m-portrait.vod-pip #vod { top: auto; bottom: 26px; right: 26px; width: 360px; height: 203px; }
body.m-portrait.vod-pip #vod-pip-chrome { top: auto; bottom: 26px; right: 26px; width: 360px; height: 203px; }
/* The bar only exists in the guide when there is no room for a title row: landscape keeps its own
   header and the floating Back chip it has always had. */
body.m-portrait .guide > .topbar { display: flex; }

/* Nothing pans sideways on a phone. One wide element — a shelf that never wrapped, a URL with no
   spaces — made the whole stage scroll horizontally, and the screenshots show exactly what that
   costs: the nav sliding left between frames and the Settings panel sliced in half. */
body.m-portrait, body.m-portrait #stage, body.m-portrait #screens { overflow-x: hidden; }
body.m-portrait .panel, body.m-portrait .vscroll, body.m-portrait .rows { overflow-x: hidden; }
/* Long paths and links wrap instead of running off the edge: the DVR folder and the sources URL are
   single unbroken words, which is what pushed the panel wider than the screen. */
body.m-portrait .srow .nm, body.m-portrait .panel p, body.m-portrait .lan {
  overflow-wrap: anywhere; word-break: break-word; }
/* A grid column grows to its widest child's min-content width, and a row of buttons that refuses to
   wrap is exactly that: it dragged the Settings column to 1081px inside an 820px stage, which is why
   the panel read as two half-columns with everything cut at the right edge. min-width:0 lets the
   column take the width it is given, and the button rows wrap instead of demanding more. */
body.m-portrait .settings .panel > *, body.m-portrait .settings .panel { min-width: 0; }
body.m-portrait .settings .btns { flex-wrap: wrap; row-gap: 14px; }
body.m-portrait .settings .btns .btn { flex: 0 1 auto; max-width: 100%; }
/* The phone's own status bar carries the clock, and mirroring lives in the player: these three chips
   wrapped into the nav row and drew over it in every screenshot. */
body.m-portrait .topbar .clock, body.m-portrait .topbar .mirror-chip,
body.m-portrait .topbar .fs-exit { display: none; }
/* A long programme or song title must not push the shelves down into each other. */
body.m-portrait .hero h1 { font-size: 112px; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* The channel browser's hero block is laid out 900px wide for a 1920 stage; at 820 it overflowed and
   its kicker and metadata rows ran past the edge. Upright it takes the width it is given. */
body.m-portrait .chhero-info { left: 40px; right: 40px; width: auto; max-width: none; min-width: 0; }
/* The channel browser is the screen the phone shots showed worst: its hero is 430 tall with the copy
   at 150 for a 1920 stage, so at 820 the description sat on the first row of cards and the filters
   cut through them. Upright the hero gets the room it needs and the grid starts under the chips. */
body.m-portrait .chhero { height: 660px; }
body.m-portrait .chhero-info { top: 216px; }
body.m-portrait .chhero-info h1 { font-size: 100px; -webkit-line-clamp: 2; }
body.m-portrait .chhero-info .desc { font-size: 25px; max-width: none; -webkit-line-clamp: 3; }
body.m-portrait .chips { left: 0; right: 0; padding: 0 40px; scroll-padding: 0 40px; top: 600px; }
/* 96, not 30: the last row of channel cards scrolled under the "Showing 160 of 2,558" line, so the
   programme name and that sentence were printed through each other. */
body.m-portrait .chwrap { left: 0; right: 0; top: 672px; bottom: 96px; padding: 0 40px; }
body.m-portrait .chfoot { right: 40px; bottom: 14px; padding: 10px 16px; border-radius: 12px;
  background: #05101ce6; border: 1px solid #ffffff1a; }
/* A filter chip kept its content width but was allowed to shrink inside the flex row, so "English"
   ran out of its own pill and over the next one. */
.chip2 { flex: 0 0 auto; white-space: nowrap; }
/* The bar's field is nearly the full width upright; the 106px cap written for the landscape row cut
   every label ("Search Live T…", "Search My DVR…") in half. */
body.m-portrait .sbar .sp { max-width: none; }
/* A guide cell is a fixed width by the hour, so a long programme name has to end in an ellipsis
   rather than run past the edge of its own box. */
.guide .grid .tt { overflow: hidden; text-overflow: ellipsis; }
/* Its own little preview window is a landscape idea: upright the corner window is the preview, and a
   second <video> over the hero was a black rectangle on top of the channel art. */
body.m-portrait .chprev { display: none; }
body.m-portrait .chhero-info .kicker, body.m-portrait .chhero-info .meta { max-width: 100%; min-width: 0; }
/* The settings blurbs sat in the same column as the rows they explain; upright, they read as one panel
   of labelled rows instead of paragraphs wedged between them. */
body.m-portrait .settings .panel > p { font-size: 21px !important; line-height: 1.55 !important; margin-top: 10px !important; }

/* The settings panel is a two-column grid and its sections carry their own grid placements, so
   collapsing the columns to one left several sections on the same cell — profile avatars drawn on top
   of the Sources heading. Clearing the placements lets them stack in order instead. */
body.m-portrait .settings .panel > * { grid-column: auto !important; grid-row: auto !important; }
/* The DVR tabs are positioned 110px down, the same offset a landscape bar has; upright they clear the
   taller bar and scroll sideways like every other button row. */
body.m-portrait .playlist .tabs { left: 40px; right: 40px; top: 196px; gap: 12px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body.m-portrait .playlist .tabs::-webkit-scrollbar { display: none; }
body.m-portrait .playlist .tabs .btn { flex: 0 0 auto; white-space: nowrap; }

/* The way out, outside every screen: shown only where the screen draws no top bar. */
#back-float { display: none; position: absolute; left: 34px; top: 26px; z-index: 9; align-items: center;
  gap: 10px; padding: 13px 24px; border-radius: 30px; background: #0a1520e6;
  border: 1px solid #ffffff38; color: #eaf6ff; font-size: 25px; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.has-back #back-float { display: inline-flex; }

/* ---------- DVR, upright ---------- */
/* The list kept its landscape offset (170) while the tabs moved to 196, so the empty-state sentence
   was drawn underneath the two buttons. The list starts below them now, and the side preview — a
   second column at 1010px, which does not exist on an 820-wide stage — gives its room to the list. */
body.m-portrait .playlist .list { left: 40px; right: 40px; width: auto; top: 268px; bottom: 40px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.m-portrait .playlist .pinfo { display: none; }
/* A recording row is a title and a line of details; wrapped rather than ellipsised, because a cut-off
   date and channel number tells nobody which recording it is. */
body.m-portrait .playlist .prow { font-size: 25px; flex-wrap: wrap; row-gap: 4px; }
body.m-portrait .playlist .prow .pt { flex: 1 1 100%; white-space: normal; }
body.m-portrait .playlist .prow .pd { white-space: normal; font-size: 19px; line-height: 1.35; }
body.m-portrait .playlist .empty { padding: 20px 0 0; font-size: 24px; }

/* ---------- YouTube page: its own search, its own scroll ---------- */
/* youtube.com keeps search in the page, under the tabs, and scrolls as one column instead of paging
   shelf by shelf. The top tabs stay exactly where they are; everything below them is YouTube's. */
.catalog.yt-mode .rows { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.catalog.yt-mode .rows-track { transform: none !important; }
.catalog.yt-mode .rows-track.hide { display: none; }
/* Opaque, not a fade: a video title scrolling underneath the sticky bar was legible through it, which
   read as two lines of words on top of each other. */
.yt-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 16px;
  padding: 12px 70px 14px; background: #050c14; box-shadow: 0 12px 24px #04080fc7; }
.yt-mark { flex: 0 0 auto; width: 52px; height: 36px; border-radius: 9px; background: #ff0033;
  color: #fff; font-size: 18px; display: grid; place-items: center; }
.yt-qwrap { flex: 1 1 auto; min-width: 0; }
.yt-q { width: 100%; box-sizing: border-box; font: inherit; font-size: 21px; padding: 13px 22px;
  border-radius: 999px; color: #eaf6ff; background: #ffffff14; border: 1px solid #ffffff2e; outline: none; }
.yt-q::placeholder { color: #9fb6c9; }
.yt-q:focus { background: #0c1b28; border-color: var(--cyan); box-shadow: 0 0 0 3px #19e6ff2e; }
/* Results replace the shelves rather than sitting on top of them. */
.yt-results { display: none; padding: 4px 0 40px; }
.yt-results.on { display: block; }
.yt-results h3 { margin: 20px 70px 8px; font-size: 24px; font-weight: 600; color: #dfefff; }
.yt-results .none { padding: 30px 70px; font-size: 24px; line-height: 1.5; color: var(--muted); }
body.m-portrait .yt-head { padding: 14px 40px 16px; gap: 18px; }
body.m-portrait .yt-mark { width: 74px; height: 50px; border-radius: 12px; font-size: 24px; }
body.m-portrait .yt-q { font-size: 38px; padding: 20px 28px; }
body.m-portrait .yt-results h3 { margin: 22px 40px 8px; font-size: 30px; }
body.m-portrait .yt-results .none { padding: 30px 40px; font-size: 32px; }
/* One result per row, thumbnail full width, words underneath — never a caption over a picture. */
body.m-portrait .yt-results .ytrow { flex-direction: column; gap: 30px; padding: 8px 40px 24px; }
body.m-portrait .yt-results .card.wide { width: 100%; height: auto; }
body.m-portrait .yt-results .card.wide img { height: 418px; object-fit: cover; }
body.m-portrait .yt-results .card.short { width: 100%; height: auto; }
body.m-portrait .yt-results .card.short img { height: 720px; }
body.m-portrait .yt-results .card.ytchan { display: flex; gap: 22px; align-items: center;
  padding: 10px 0; width: 100%; height: auto; }
body.m-portrait .yt-results .card.ytchan .av { width: 110px; height: 110px; flex: 0 0 auto; border-radius: 50%; }
body.m-portrait .yt-results .card .label { position: static; background: none; padding: 16px 2px 0;
  font-size: 29px; line-height: 1.25; }
body.m-portrait .yt-results .card .label small { font-size: 21px; margin-top: 8px; color: #a8bccb; }
#back-float:hover, #back-float.focus { background: var(--cyan); color: #00121a; border-color: transparent; }
body.m-portrait .nav { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), #0000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), #0000 100%); }

/* The error card from app.js: a screen that throws says so instead of going blank or white. */
#fatal { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center;
  background: rgba(4, 7, 11, .86); font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--text); }
.fatal-card { max-width: 520px; padding: 30px 28px 24px; border-radius: 18px; background: #0d1620;
  border: 1px solid #ff6b6b4d; box-shadow: 0 24px 60px #000c; }
.fatal-card h2 { margin: 0 0 14px; font-size: 22px; color: #ffd9d9; }
.fatal-msg { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #ffb9b9; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fatal-btns { display: flex; gap: 10px; }
.fatal-btns button { font: inherit; font-size: 15px; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  color: #04121a; background: var(--cyan); border: 0; }
.fatal-btns button[data-fatal='close'] { background: #ffffff1f; color: #dff1ff; }
.fatal-note { margin: 16px 0 0; font-size: 13px; color: #8fa4b5; }

/* A touchscreen has no pointer to hover with, and iOS spends the first tap on a control applying
   :hover — here that adds a sweeping pseudo-element — so the control needs a second tap to fire.
   That is exactly how the profile chip and the glass buttons behaved on an iPhone. Where there is
   no hover, the hover-only decoration is switched off so one tap is one press. */
@media (hover: none) {
  .btn:hover::after, .chip:hover::after, .viewtoggle:hover::after, .viewlink:hover::after,
  .uchip:hover::after, .mirror-chip:hover::after, .tvr-b:hover::after,
  #mirror-panel .mp-btn:hover::after, #mirror-panel .mp-opt:hover::after,
  .ask-btns button:hover::after { content: none !important; animation: none !important; }
  .btn:hover, .chip:hover, .viewtoggle:hover, .viewlink:hover, .mirror-chip:hover, .tvr-b:hover,
  #mirror-panel .mp-btn:hover, #mirror-panel .mp-opt:hover, .ask-btns button:hover,
  .nav .tab:hover, .pg-card:hover { transform: none; }
  /* Deleting a profile cannot live behind a hover that a finger can never perform. */
  /* Deleting an account lives in Settings → Profiles, never on a face in the chooser. */
  .pg-del { display: none; }
  .pg-card { width: 240px; }
  .pg-kicker { font-size: 46px; margin-bottom: 30px; }
  /* Touch targets: the chip, the tabs and the player's transport are drawn at television size and
     then scaled down by the stage fit, so on a phone they need to be bigger to be hittable. */
  .uchip { padding: 10px 16px 10px 9px; gap: 11px; }
  .uchip .uav { width: 46px; height: 46px; font-size: 24px; }
  .uchip .unm { font-size: 26px; max-width: 190px; }
  .uchip .usw { font-size: 24px; }
  .nav .tab { padding: 16px 20px; font-size: 26px; }
  .topbar { height: 132px; }
  .sbar { height: 58px; font-size: 22px; }
  .rnav { width: 84px; }
  /* The live banner's play bar and its three action chips: a finger needs more than a 38 px square
     at the size the stage is scaled to on a phone. */
  /* A taller banner so the bigger play bar and action chips still fit inside it: the column needs
     259 stage pixels at these sizes, and overflow:hidden would otherwise cut the chips off again. */
  .banner { height: 310px; }
  .chanctl { gap: 9px; }
  .chanctl .cbtn { width: 58px; height: 58px; font-size: 23px; }
  .chanctl .cbtn[data-live='source'] { font-size: 20px; padding: 0 14px; }
  .chanctl .vol { width: 150px; height: 30px; }
  .banner .side .actrow .chip { font-size: 22px; padding: 12px 18px; }
  .banner .side .clk { font-size: 44px; }
  /* No long-press text selection or callout while dragging a row. */
  #stage, #stage * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .ask input, input, textarea { -webkit-user-select: text; user-select: text; }
}

/* Nothing above is worth a dropped frame on a phone with reduced motion turned on. */
@media (prefers-reduced-motion: reduce) {
  .btn.focus, .chip.focus, .viewtoggle.focus, .tvr-b.fon { animation: none; }
  .btn:hover::after, .btn.focus::after, .chip.focus::after, .viewtoggle.focus::after,
  .uchip:hover::after, .mirror-chip:hover::after, .tvr-b:hover::after { animation: none; }
  .ripple { display: none; }
}

/* Logo-only boot (the default): the animation's last frame, the M over MYSTIKTV, standing still.
   On a phone the opening is a fixed overlay outside the 1920px stage, so both lines are fitted to the
   screen instead: the SVGs carry only a height, so each takes the size it is given and keeps its own
   proportions. */
body.mobile-ui .intro-logo .intro-m { height: min(34vh, 46vw); width: auto; }
body.mobile-ui .intro-logo .intro-tv-logo { height: min(9.2vh, 12.4vw); width: auto; }
/* The stage's glow wrappers are padded for a 560px letter on a 1920px stage. On a 3x phone that padding
   makes a filter region past WebKit's size limit, and WebKit then paints nothing at all: the whole
   logo vanished. Phone-sized wrappers and glows keep the same look inside the limit. */
body.mobile-ui .intro-logo .intro-glow { padding: 90px 120px; margin: -90px -120px; }
/* The room-sized light behind the M keeps its gradient but not its 54px blur: that blur, stacked on the
   logo's own glow, was the other half of the over-limit layer on a 3x screen. */
body.mobile-ui .intro-logo .intro-mark::before { filter: none; }
body.mobile-ui .intro-logo .intro-mark .intro-glow {
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .60)) drop-shadow(0 0 40px rgba(25, 230, 255, .34)); }
body.mobile-ui .intro-logo .intro-tv .intro-glow {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(25, 230, 255, .34)); }

/* The TV build: the app already is on the television, so mirroring and AirPlay/Cast have no job. */
.tvbox .mirror-chip, .tvbox .xcast, .tvbox [data-a="cast-help"], .tvbox [data-a="install"] { display: none !important; }
/* The TV tab: every panel of the set, one press each. */
.tvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; margin-top: 18px; }
.tvtile { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 22px 24px; border-radius: 14px; background: #ffffff12; border: 2px solid transparent; transition: .15s; }
.tvtile .ti { grid-row: 1 / 3; font-size: 38px; text-align: center; }
.tvtile .tn { font-size: 26px; font-weight: 700; color: var(--text); }
.tvtile .ts { font-size: 18px; color: var(--muted); }
.tvtile.focus, .tvtile:hover { background: #19e6ff22; border-color: #19e6ffb0; box-shadow: 0 0 24px #19e6ff40; transform: scale(1.03); }
.tvnote { font-size: 20px; color: var(--muted); margin-top: 26px; }
/* An installed TV app on Home's Services row: its own banner, its name underneath. */
.card.service.appcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.card.service.appcard img { max-width: 78%; max-height: 62%; object-fit: contain; border-radius: 8px; }
.fatal-btns button.focus { outline: 3px solid #19e6ff; outline-offset: 3px; box-shadow: 0 0 22px #19e6ff80; }
.catalog.yt-mode .yt-qwrap.focus { outline: 3px solid #19e6ff; outline-offset: 4px; border-radius: 999px; box-shadow: 0 0 26px #19e6ff66; }

/* Black-bar trim (barTrim in app.js) eases in instead of jumping. */
#tv, #vod { transform-origin: center; transition: transform .35s ease; }

/* Edge to edge everywhere: the clock always takes the right-hand corner, even on pages with no
   search chip to push it there (the TV tab and Settings stopped it halfway across). */
.topbar > .clock, .topbar > .recchip:empty + .clock { margin-left: auto; }
.topbar .sbar ~ .clock, .topbar .sbar ~ .recchip:empty + .clock { margin-left: 0; }
.topbar > .recchip:not(:empty) { margin-left: auto; }
.topbar .sbar ~ .recchip:not(:empty) { margin-left: 0; }
.topbar .recchip:not(:empty) + .clock { margin-left: 22px; }
/* Settings scroll the whole width; the margin lives inside so focus glows aren't clipped. */
.settings .panel { left: 0; right: 0; padding: 6px 70px 0; }
/* The TV tab is one full-width set of tiles, not the left column of the Settings layout. */
.tvset .panel { grid-template-columns: 1fr; }
.tvset .tvgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 4px 10px; }
.tvset .tvtile { min-height: 120px; }

/* ---------- the player, drawn to Mystik's reference (2026-11-09) ----------
   Top: ← back, the episode ("S2:E2 "Fallen"") centred, cast and ⋯ on the right. Middle: rewind 10,
   a bare pause/play glyph, forward 10. Bottom: a thin track with a red knob and the time left, then
   Episodes · Audio & Subtitles · Next episode. Plain white glyphs on a dark scrim — no pills. Sizes
   are in stage pixels (1080 tall), so they scale with the screen like the rest of the player. */
.osd.nf .nf-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.42); pointer-events: none; }
.osd.nf.off .nf-scrim { opacity: 0; }
.p-top.nf { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 44px 64px 0; background: none; }
.p-top.nf .nf-title { color: #fff; font: 500 40px/1.2 -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 1100px;
  text-shadow: 0 1px 6px #000a; }
.p-top.nf .nf-right { justify-self: end; display: flex; gap: 28px; align-items: center; }
.nf-ic { display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; }
.nf-ic svg { width: 62px; height: 62px; display: block; filter: drop-shadow(0 1px 5px #0009); }
.p-top.nf [data-act="back"] { justify-self: start; }
.p-top.nf [data-act="more"] svg { width: 46px; height: 46px; }
.nf-ic.focus, .nf-ic:hover { background: #ffffff1f; }

.osd .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex;
  align-items: center; gap: 330px; pointer-events: none; }
.osd .mid .mctl { pointer-events: auto; }
.osd.off .mid .mctl { pointer-events: none; }
.osd .mctl { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: #fff; cursor: pointer; filter: drop-shadow(0 2px 8px #0008); transition: transform .12s ease; }
.osd .mctl svg { display: block; width: 100%; height: 100%; }
.osd .mctl.skip { width: 170px; height: 170px; }
.osd .mctl.play { width: 200px; height: 200px; }
.osd .mctl:active { transform: scale(.92); }
.osd .mctl.focus { background: #ffffff1a; }
.osd:has(.state .spinner) .mid .play, .osd:has(.state .recover) .mid { visibility: hidden; }

.osd.nf .bot { padding: 0 64px 46px; background: none; }
.osd.nf .nf-seek { display: flex; align-items: center; gap: 40px; padding: 0 0 0 40px; }
.osd.nf .bar { flex: 1; height: 5px; margin: 0; border-radius: 0; background: #ffffff59; }
.osd.nf .bar:hover { height: 5px; }
.osd.nf .bar i { background: #e50914; border-radius: 0; }
.osd.nf .bar b { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: #e50914; border: 0;
  box-shadow: none; opacity: 1; }
.osd.nf .bar::before { top: -34px; bottom: -34px; }
.osd.nf .nf-left { color: #fff; font: 700 40px/1 -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums; min-width: 150px; text-align: right; text-shadow: 0 1px 6px #000a; }
.osd.nf .nf-acts { display: flex; justify-content: center; align-items: center; gap: 110px; margin-top: 46px; }
.nf-act { display: inline-flex; align-items: center; gap: 30px; padding: 10px 16px; border: 0; border-radius: 10px;
  background: transparent; color: #fff; cursor: pointer; font: 400 40px/1 -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-shadow: 0 1px 6px #000a; }
.nf-act svg { width: 64px; height: 48px; display: block; filter: drop-shadow(0 1px 5px #0009); }
.nf-act[data-act="next"] svg { width: 48px; height: 48px; }
.nf-act.focus, .nf-act:hover { background: #ffffff1f; }
/* The old next-episode pill look must not leak onto the reference button. */
.osd.nf .nf-act.nextbtn { background: transparent; color: #fff; padding: 10px 16px; }

/* The player's way out is the wordmark alone (Mystik, 2026-11-09): no glass pill behind it, in any
   state. Remote focus shows as a brighter glow and a slight lift on the logo itself. */
.gback--brand, .gback--brand:hover, .gback--brand.focus, .gback--brand:active {
  background: transparent; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; min-width: 0; padding: 6px 4px; }
.gback--brand::after, .gback--brand:hover::after, .gback--brand.focus::after { display: none; }
.gback--brand svg { height: 30px; filter: drop-shadow(0 2px 8px #000c); }
.gback--brand:hover svg, .gback--brand.focus svg { filter: drop-shadow(0 0 10px #19e6ffcc) drop-shadow(0 2px 8px #000c); }
.gback--brand:hover, .gback--brand.focus { transform: scale(1.06); }
body.touch .gback--brand svg { height: 44px; }
/* Phones: the Corner button becomes Mini — the phone's own picture-in-picture window. */

/* An episode listed ahead of its air date: no server has it yet. */
.ep .eair { font-size: 17px; font-weight: 600; color: #ffd447; margin-top: 6px; }

/* ---------- the CoolDock desktop widget (2026-11-19) ----------
   The same app on a shorter canvas (600 lines compact, about 800 expanded; see widgetBase in app.js). What is sized
   for a 1080-line TV takes too much of it: the corner preview window and the Guide's top half. */
body.widget.wsmall.tv-pip #tv-layer, body.widget.wsmall.vod-pip #vod,
body.widget.wsmall.vod-pip #vod-pip-chrome { top: 84px; right: 24px; width: 320px; height: 180px; }
body.widget.wmid.tv-pip #tv-layer, body.widget.wmid.vod-pip #vod,
body.widget.wmid.vod-pip #vod-pip-chrome { top: 96px; right: 32px; width: 432px; height: 243px; }
body.widget.wsmall .guide .gtop { left: 24px; right: 380px; top: 12px; height: 52px; gap: 18px; }
body.widget.wsmall .guide .gtop .title { font-size: 40px; }
body.widget.wsmall .guide .gtop .date { font-size: 18px; }
body.widget.wsmall .guide .ginfo { left: 24px; top: 70px; width: 500px; height: 150px; padding: 2px 6px; }
body.widget.wsmall .guide .ginfo .t { font-size: 30px; -webkit-line-clamp: 1; }
body.widget.wsmall .guide .ginfo .s { font-size: 18px; margin-top: 6px; }
body.widget.wsmall .guide .ginfo .d { font-size: 18px; margin-top: 8px; -webkit-line-clamp: 2; }
body.widget.wsmall.tv-guide #tv-layer { top: 16px; right: 24px; width: 320px; height: 180px; }
body.widget.wsmall .guide .grid { top: 214px; bottom: 12px; }
body.widget.wsmall .guide .hint { display: none; }
body.widget.wsmall .grid .gch { width: 220px; gap: 10px; padding: 0 12px; }
body.widget.wsmall .grid .times .corner { width: 220px; }
body.widget.wmid .guide .ginfo { top: 100px; height: 220px; }
body.widget.wmid .guide .ginfo .d { -webkit-line-clamp: 3; }
body.widget.wmid.tv-guide #tv-layer { top: 90px; right: 32px; width: 432px; height: 243px; }
body.widget.wmid .guide .grid { top: 350px; bottom: 44px; }
body.widget.wsmall .guide .gtop { left: 150px; }
/* the Guide's Menu chip sits left of the corner preview, and the title clears the floating Back button */
body.widget .guide .gtop { left: 150px; }
body.widget.wsmall .guide .gtop { right: 470px; }
body.widget.wsmall .guide .chip { right: 356px; top: 22px; font-size: 18px; padding: 8px 18px; }
body.widget.wsmall .guide .chip.browse { display: none; }
body.widget.wmid .guide .gtop { right: 580px; }
body.widget.wmid .guide .chip { right: 432px; top: 40px; }
body.widget.wmid .guide .chip.browse { right: 600px; }
body.widget.wmid.tv-guide #tv-layer { top: 110px; width: 384px; height: 216px; }
body.widget.wsmall .guide .gtop { left: 178px; }
body.widget.wmid .guide .gtop { left: 200px; }

/* compact and mini widget (2026-11-19, "a blend"): the old widget's shape (a slim header with the tab and dots for the
   others, one big card for what is picked, one row of posters with its name) made of the app's own screens, so a
   click opens the app's real title page and player. Swipes: sideways = tabs, up/down = rows. */
body.widget.wsmall .topbar { height: 74px; gap: 12px; padding: 0 26px; }
body.widget.wsmall .topbar .mf-logo, body.widget.wsmall .topbar .mirror-chip,
body.widget.wsmall .topbar .clock, body.widget.wsmall .topbar .sbar { display: none; }
body.widget.wsmall .topbar .nav { gap: 10px; align-items: center; }
body.widget.wsmall .topbar .nav .tab:not(.cur):not(.backbtn) { font-size: 0; width: 11px; height: 11px; padding: 0; border-radius: 50%;
  background: #ffffff40; }
body.widget.wsmall .topbar .nav .tab:not(.cur):not(.backbtn):hover { background: #ffffffa0; }
body.widget.wsmall .topbar .nav .tab.cur { font-size: 30px; font-weight: 700; color: #fff; padding: 4px 10px; order: -1; margin-right: 8px; }
body.widget.wsmall .topbar .nav .tab.cur::after { display: none; }
/* the picked title as one rounded card */
body.widget.wsmall .catalog > .hero { left: 26px; right: 26px; top: 76px; height: 300px; border-radius: 26px; }
body.widget.wsmall .catalog > .hero .bg, body.widget.wsmall .catalog > .hero video.preview { width: 100%; }
body.widget.wsmall .catalog > .hero .shade { background: linear-gradient(180deg, #0000 35%, #000c 100%); }
body.widget.wsmall .catalog > .hero .info { left: 30px; right: 30px; top: auto; bottom: 22px; width: auto; }
body.widget.wsmall .catalog > .hero .kicker { font-size: 16px; }
body.widget.wsmall .catalog > .hero h1 { font-size: 50px; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.widget.wsmall .catalog > .hero .meta { font-size: 17px; }
body.widget.wsmall .catalog > .hero .desc { display: none; }
/* one row under it: its name, then posters */
body.widget.wsmall .catalog > .rows { top: 384px; }
body.widget.wsmall .catalog .row { height: 216px; padding: 0; overflow: hidden; }
body.widget.wsmall .catalog .row h2 { margin: 0 0 2px 30px; font-size: 22px; }
body.widget.wsmall .catalog .row h2 .count { font-size: 16px; }
body.widget.wsmall .catalog .row .strip { gap: 12px; padding: 8px 26px 10px; }
body.widget.wsmall .catalog .card.poster { width: 112px; height: 168px; }
body.widget.wsmall .catalog .card.wide { width: 300px; height: 168px; }
body.widget.wsmall .catalog .card.service { width: 300px; height: 168px; }
body.widget.wsmall .catalog .card.service .name { font-size: 46px; }
body.widget.wsmall .catalog .card .label { font-size: 16px; padding: 24px 10px 8px; }
body.widget.wsmall .catalog .card.focus { transform: scale(1.05); }
body.widget.wsmall .catalog .rnav { display: none; }
/* mini: the same, shorter */
body.widget.wtiny .topbar { height: 60px; }
body.widget.wtiny .topbar .nav .tab.cur { font-size: 26px; }
body.widget.wtiny .catalog > .hero { top: 60px; height: 190px; border-radius: 20px; }
body.widget.wtiny .catalog > .hero h1 { font-size: 40px; }
body.widget.wtiny .catalog > .hero .meta { display: none; }
body.widget.wtiny .catalog > .rows { top: 256px; }
body.widget.wtiny .catalog .row { height: 186px; }
body.widget.wtiny .catalog .card.poster { width: 96px; height: 144px; }
body.widget.wtiny .catalog .card.wide, body.widget.wtiny .catalog .card.service { width: 256px; height: 144px; }
/* Live TV in the compact and mini widget: the same blend (the picked channel as one card, chips, then the grid) */
body.widget.wsmall .channels .chhero { left: 26px; right: 26px; top: 76px; height: 230px; border-radius: 26px; }
body.widget.wsmall .channels .chhero-info { left: 30px; right: 30px; top: auto; bottom: 20px; width: auto; }
body.widget.wsmall .channels .chhero-info h1 { font-size: 50px; margin: 4px 0 2px; }
body.widget.wsmall .channels .chhero-info .meta { font-size: 17px; }
body.widget.wsmall .channels .chhero-info .desc { display: none; }
body.widget.wsmall .channels .chprev { right: 26px; top: 76px; width: 409px; height: 230px; border-radius: 26px; border-width: 0; }
body.widget.wsmall .channels .chips { top: 316px; height: 46px; padding: 0 26px; }
body.widget.wsmall .channels .chip2 { font-size: 17px; padding: 7px 14px; }
body.widget.wsmall .channels .chwrap { top: 370px; bottom: 6px; padding: 0 26px; }
body.widget.wsmall .channels .chgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 10px 0 30px; }
body.widget.wsmall .channels .chgrid .card.channel { height: 150px; }
body.widget.wsmall .channels .chfoot { display: none; }
body.widget.wtiny .channels .chhero, body.widget.wtiny .channels .chprev { top: 60px; height: 170px; }
body.widget.wtiny .channels .chprev { width: 302px; }
body.widget.wtiny .channels .chips { top: 238px; }
body.widget.wtiny .channels .chwrap { top: 290px; }
body.widget.wtiny .channels .chgrid .card.channel { height: 130px; }
/* Settings: one column, so nothing runs off the right edge */
body.widget.wsmall .settings .panel { left: 26px; right: 26px; top: 84px; bottom: 10px; grid-template-columns: 1fr; gap: 26px; }
body.widget.wsmall .settings h3 { font-size: 20px; }

/* the widget's big card: a play button and how far in (2026-11-19, Continue Watching first, as the widget always was) */
.hero .wplay, .hero .wprog { display: none; }
body.widget .catalog > .hero { pointer-events: auto; cursor: pointer; }
body.widget.wsmall .catalog > .hero .wplay { display: grid; place-items: center; position: absolute; right: 30px; bottom: 26px; width: 84px; height: 84px;
  border-radius: 50%; font-size: 34px; color: #fff; background: #ffffff26; border: 1px solid #ffffff40;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); z-index: 3; }
body.widget.wsmall .catalog > .hero:hover .wplay { background: #ffffff40; }
body.widget.wsmall .catalog > .hero .wprog { display: block; position: absolute; left: 30px; width: 300px; bottom: 14px; height: 6px; border-radius: 3px;
  background: #ffffff30; z-index: 3; overflow: hidden; }
body.widget.wsmall .catalog > .hero .wprog i { display: block; height: 100%; background: #e50914; border-radius: 3px; }
body.widget.wsmall .catalog > .hero .info { right: 140px; bottom: 28px; }
body.widget.wtiny .catalog > .hero .wplay { width: 64px; height: 64px; font-size: 26px; right: 22px; bottom: 20px; }

/* ⟳ reload sources in the top bar */
.reload-chip { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; color: #cfe3f0;
  background: #ffffff10; border: 1px solid #ffffff2e; cursor: pointer; transition: background .15s, color .15s; }
.reload-chip:hover, .reload-chip.focus { background: var(--cyan); color: #00121a; border-color: var(--cyan); }
.reload-chip.spin { animation: reload-spin 1s linear infinite; }
@keyframes reload-spin { to { transform: rotate(360deg); } }
body.widget.wsmall .reload-chip { display: none; }   /* compact and mini: the widget's strip has it */
/* ---------- the small widget's tabs (2026-11-19): Search, DVR and the channel rows sized for it ---------- */
/* Search: the scope choice (everything or one kind), the box, results under them; typing is the keyboard's */
body.widget.wsmall .search .kbd, body.widget.wsmall .search .qlabel { display: none; }
body.widget.wsmall .search .scopes { left: 26px; right: 26px; top: 84px; width: auto; gap: 8px; }
body.widget.wsmall .search .scope { font-size: 19px; padding: 8px 16px; }
body.widget.wsmall .search .query { left: 26px; right: 26px; top: 134px; width: auto; height: 58px; font-size: 32px; padding: 6px 4px; }
body.widget.wsmall .search .results { left: 10px; right: 10px; top: 200px; overflow-y: auto; scroll-behavior: smooth; }
body.widget.wsmall .search .results h3 { font-size: 22px; margin: 8px 14px 0; }
body.widget.wsmall .search .results .grid2 { gap: 14px; padding: 10px 14px; }
body.widget.wsmall .search .results .card.poster { width: 132px; height: 198px; }
body.widget.wsmall .search .results .card.wide, body.widget.wsmall .search .results .card.channel { width: 300px; height: 169px; }
body.widget.wsmall .search .results .none { font-size: 20px; }
/* My DVR: the list full width, the details panel dropped */
body.widget.wsmall .playlist .tabs { left: 26px; top: 84px; }
body.widget.wsmall .playlist .tabs .btn { font-size: 19px; padding: 8px 18px; }
body.widget.wsmall .playlist .list { left: 26px; right: 26px; width: auto; top: 140px; bottom: 10px; overflow-y: auto; }
body.widget.wsmall .playlist .pinfo { display: none; }
body.widget.wsmall .prow { font-size: 22px; padding: 12px 16px; }
body.widget.wsmall .prow .pd { font-size: 17px; }
/* channel rows: a channel card the size of the other wide cards */
body.widget.wsmall .catalog .card.channel { width: 300px; height: 168px; }
body.widget.wsmall .catalog .card.channel .num { font-size: 36px; left: 14px; top: 10px; }
body.widget.wsmall .catalog .card.channel .logo { max-width: 110px; max-height: 52px; right: 12px; top: 12px; }
body.widget.wtiny .catalog .card.channel { width: 256px; height: 144px; }
/* empty rows read as a short line, not a TV-sized hole */
body.widget.wsmall .catalog .empty-row { margin: 10px 30px; font-size: 20px; color: var(--muted); }
/* tab changes slide a little, in the direction of the swipe */
body.widget.wsmall .screen:not(.hidden) { animation: wtab-in .26s cubic-bezier(.22,.61,.36,1) both; }
body.widget.wsmall.swipe-left .screen:not(.hidden) { animation-name: wtab-in-l; }
@keyframes wtab-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes wtab-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.card .label small .newep { color: var(--cyan); font-weight: 700; }
