/* XFINALE — THE WORKING DECK (Gene, 2026-11-03: "The tv has to be like
   youtubes and adjustable. There is still empty space, make the beta tvs
   larger to fit … these tiny pills aren't going to get anyone going, we need
   the console to have all the triggers and adjustments and labels and
   whistles so it's easy to navigate.")
   1 · the player: big PLAY on the glass, a YouTube-style bar under it (all widths)
   2 · desktop (≥1101px): a 16:9 set, monitors that fill every inch beside it,
       wires and shows as labeled buttons, a control deck where every control
       says its name
   3 · phones: the bar folds to icons, the pop-tart path stays as it was */

/* ═════════ 1 · THE PLAYER ═════════ */
.tvp { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tvp__frame { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; background: #000; }
.tvp__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv--playing .tvp__frame { opacity: 1; }
.tvp__catch { position: absolute; inset: 0; z-index: 2; display: none; cursor: pointer; }
/* a tape the station put on by itself is silent: say how to hear it */
.tvp__tap { display: none; position: absolute; right: clamp(10px, 1.6vw, 22px); bottom: clamp(12px, 2.4vw, 30px); z-index: 3;
  padding: 9px 18px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  font-family: var(--font-mono); font-size: clamp(0.66rem, 0.9vw, 0.95rem); font-weight: 700; letter-spacing: 0.2em;
  color: #1a1002; background: linear-gradient(180deg, #ffd08a, #ffb020); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 22px rgba(255, 176, 32, 0.5); }
.tv--auto .tvp__tap { display: block; }
.tv--playing .tvp__catch { display: block; pointer-events: auto; }
.tv--playing.tv--info .tvp__catch { display: none; }
/* the channel card steps back while a tape airs; INFO brings it over the picture */
.segment { transition: opacity 0.4s ease; }
.tv--playing .segment { opacity: 0; pointer-events: none; }
.tv--playing.tv--info .segment { opacity: 1; z-index: 3; pointer-events: auto;
  background: linear-gradient(180deg, rgba(5,3,1,0.25), rgba(5,3,1,0.82) 62%); }
.tv--playing.tv--info .segment__portrait { opacity: 0.35; }
/* a clean picture by default once a tape airs; the glass is a choice */
.tv--playing .crt--scanlines { opacity: 0.14; animation: none; }
.tv--playing .crt--glare { opacity: 0.4; }
.tv--playing .crt--vignette { box-shadow: inset 0 0 50px 6px rgba(0,0,0,0.45); }
.tv--clean.tv--playing .crt--scanlines, .tv--clean.tv--playing .crt--glare, .tv--clean.tv--playing .crt--vignette { opacity: 0; box-shadow: none; }
.tv--playing .tv__hud { opacity: 0; transition: opacity 0.3s; }
.tv--playing:hover .tv__hud { opacity: 1; }

/* the tape's title rides the top of the picture, like YouTube: there when
   paused or under the pointer, out of the way while it plays */
.tvp__title { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 14px 150px 30px 52px;
  display: flex; flex-direction: column; gap: 3px; opacity: 0; transition: opacity 0.3s ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.78), transparent); }
.tvp__title b { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--neon-cyan); text-transform: uppercase; }
.tvp__title span { font-size: clamp(0.9rem, 1.2vw, 1.15rem); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv--playing .tv__screen:hover .tvp__title, .tv--playing:has(#tvp-play[aria-label="Play"]) .tvp__title { opacity: 1; }

.tvp__big {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  pointer-events: auto; z-index: 4;
  display: flex; align-items: center; gap: 16px; max-width: 86%;
  padding: 12px 22px 12px 12px; border-radius: 999px; cursor: pointer;
  color: var(--ink); background: rgba(10, 6, 3, 0.72);
  border: 1px solid color-mix(in srgb, var(--neon-cyan) 55%, transparent);
  box-shadow: 0 18px 40px -18px #000, 0 0 0 6px rgba(255, 176, 32, 0.06);
  backdrop-filter: blur(6px);
  transition: transform 0.18s var(--ease-snap, ease), background 0.18s, border-color 0.18s;
}
.tvp__big:hover, .tvp__big:focus-visible { outline: none; background: rgba(28, 16, 6, 0.86); border-color: var(--neon-cyan); transform: translate(-50%, -50%) scale(1.04); }
.tvp__big-ring { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  color: #160b02; background: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.tvp__big-ring svg { width: 30px; height: 30px; margin-left: 4px; }
.tvp__big-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; }
.tvp__big-txt b { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.2em; color: var(--neon-cyan-soft, var(--neon-cyan)); }
.tvp__big-txt span { font-size: 0.86rem; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42ch; }
.tvp__big[hidden] { display: none; }

.tvp__note { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 9;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; padding: 7px 14px; border-radius: 8px;
  color: var(--phosphor); background: rgba(10, 6, 3, 0.85); border: 1px solid var(--space-line-bright); }
.tvp__note[hidden] { display: none; }

.tvp__help { position: absolute; inset: 0; z-index: 11; display: grid; place-items: center; pointer-events: auto;
  background: rgba(5, 3, 1, 0.78); backdrop-filter: blur(4px); }
.tvp__help[hidden] { display: none; }
.tvp__help-card { width: min(92%, 460px); max-height: 92%; overflow: auto; padding: 18px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #24180b, #120b04); border: 1px solid var(--space-line-bright); }
.tvp__help-k { margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.24em; color: var(--neon-cyan); }
.tvp__help dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 14px; }
.tvp__help dt { font-family: var(--font-mono); font-size: 0.74rem; color: var(--phosphor); white-space: nowrap; }
.tvp__help dd { margin: 0; font-size: 0.82rem; color: var(--ink-dim); }

/* the bar: a seek line on top, a row of labeled buttons under it */
.tvp-bar { position: relative; margin-top: 10px; padding: 4px 6px 6px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 5, 2, 0.75), rgba(8, 5, 2, 0.45)); border: 1px solid var(--space-line); }
.tvp-seek { padding: 0 4px; }
#tvp-seek { --played: 0%; --loaded: 0%; width: 100%; height: 16px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
#tvp-seek::-webkit-slider-runnable-track { height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--neon-red) var(--played), rgba(255, 220, 170, 0.32) var(--played) var(--loaded), rgba(255, 220, 170, 0.12) var(--loaded)); }
#tvp-seek::-moz-range-track { height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--neon-red) var(--played), rgba(255, 220, 170, 0.32) var(--played) var(--loaded), rgba(255, 220, 170, 0.12) var(--loaded)); }
#tvp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4.5px; border-radius: 50%; background: var(--neon-red); border: 0; box-shadow: 0 0 8px rgba(255, 80, 40, 0.6); }
#tvp-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--neon-red); border: 0; }
#tvp-seek:hover::-webkit-slider-runnable-track { height: 7px; }
#tvp-seek:disabled { cursor: default; opacity: 0.4; }

.tvp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tvp-group { display: flex; align-items: center; gap: 4px; flex: none; }
.tvp-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 52px; padding: 5px 8px 4px; border: 1px solid transparent; border-radius: 9px; cursor: pointer;
  color: var(--ink-dim); background: transparent; font: inherit;
  transition: color 0.15s, background 0.15s, border-color 0.15s; }
.tvp-btn__ico { display: grid; place-items: center; height: 20px; }
.tvp-btn__txt { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; white-space: nowrap; }
.tvp-btn:hover:not(:disabled), .tvp-btn:focus-visible { outline: none; color: var(--ink); background: rgba(255, 176, 32, 0.1); border-color: var(--space-line-bright); }
.tvp-btn[aria-pressed="true"] { color: var(--neon-cyan); border-color: color-mix(in srgb, var(--neon-cyan) 50%, transparent); background: rgba(255, 176, 32, 0.1); }
.tvp-btn:disabled { opacity: 0.32; cursor: default; }
.tvp-btn[hidden] { display: none; }
#tvp-play { min-width: 60px; color: var(--phosphor); }
#tvp-play .tvp-btn__ico svg { width: 24px; height: 24px; }
.tvp-btn--close { margin: 0 auto; display: flex; border-color: var(--space-line-bright); }

.tvp-vol { display: flex; align-items: center; gap: 2px; }
#tvp-vol { --vol: 65%; width: 84px; height: 14px; margin: 0 6px 0 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
#tvp-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--phosphor) var(--vol), rgba(255, 220, 170, 0.18) var(--vol)); }
#tvp-vol::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--phosphor) var(--vol), rgba(255, 220, 170, 0.18) var(--vol)); }
#tvp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--phosphor); }
#tvp-vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--phosphor); border: 0; }
.tvp-time { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-dim); white-space: nowrap; padding: 0 6px; font-variant-numeric: tabular-nums; }

.tvp-now { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 0.8rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvp-now__k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--neon-cyan); margin-right: 6px; }
.tvp-now a { color: var(--phosphor); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; }
/* a channel with no tapes: the bar keeps only its doors */
.tvp-bar.is-empty .tvp-seek, .tvp-bar.is-empty .tvp-time { visibility: hidden; }

.tvp-menuwrap { position: relative; }
.tvp-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; width: 260px; padding: 8px;
  border-radius: 12px; background: #150d05; border: 1px solid var(--space-line-bright); box-shadow: 0 20px 40px -12px #000; }
.tvp-menu[hidden] { display: none; }
.tvp-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px;
  border-radius: 8px; font-size: 0.82rem; color: var(--ink); cursor: pointer; }
.tvp-menu__row:hover { background: rgba(255, 176, 32, 0.08); }
.tvp-menu__row select { font: inherit; font-size: 0.78rem; color: var(--ink); background: #22160a; border: 1px solid var(--space-line-bright); border-radius: 6px; padding: 3px 6px; }
.tvp-menu__row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--neon-cyan); }
.tvp-menu__link { display: block; width: 100%; text-align: left; padding: 8px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-size: 0.8rem; color: var(--phosphor); text-decoration: none; }
.tvp-menu__link:hover { background: rgba(255, 176, 32, 0.08); }

/* full screen: the set alone, the bar riding the bottom */
.tv--full { width: 100% !important; height: 100%; background: #000; display: flex; }
.tv--full .tv__cabinet { flex: 1; display: flex; flex-direction: column; padding: 0; border-radius: 0; background: #000; }
.tv--full .tv__screen { flex: 1; aspect-ratio: auto !important; border-radius: 0; }
.tv--full .tv__brandplate, .tv--full .tv-winbtn, .tv--full .tv__cabinet::after { display: none; }
.tv--full .tvp-bar { margin: 0; border-radius: 0; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .tvp__frame, .segment, .tvp__big, .tvp-btn { transition: none; }
}

/* ═════════ 2 · DESKTOP ═════════ */
@media (min-width: 1101px) {
  :root {
    --mon-min: 210px;
    --deck-gap: clamp(14px, 1.3vw, 22px);
    /* everything on the deck that is not the 16:9 picture: two button rows,
       cabinet, player bar, pad + wire strips, the control deck, gaps */
    --deck-chrome: 520px;
    --tv-w: min(1440px, calc((var(--fit-h) - var(--deck-chrome)) * 16 / 9));
  }

  /* the deck is one grid: the set takes its width from the height first, the
     monitor columns take every inch that is left, and stand as tall as the
     set plus the strips under it — no black gaps beside anything */
  .deck {
    display: grid; align-content: center; justify-content: stretch;
    /* three screens on the left, the set beside them, the pair centred; the
       outer 1fr columns only let the wire and control rows run full width */
    grid-template-columns: 1fr minmax(var(--mon-min), 400px) minmax(0, var(--tv-w)) 1fr;
    grid-template-areas: "nav nav nav nav" "dial dial dial dial" ". left tv ." ". left pad ." ". left wire ." "ctl ctl ctl ctl";
    column-gap: var(--deck-gap); row-gap: 10px; padding: 14px 22px;
  }
  .deck > * { grid-column: 3; min-width: 0; }
  .deckwires { grid-area: nav; }
  .deckwires--dial { grid-area: dial; margin-top: 0; }
  .stage { display: contents; }
  .tv { grid-area: tv; width: 100%; justify-self: center; }
  .monitors--creator { grid-area: left; }
  .monitors:not(.monitors--creator) { grid-area: right; }
  .pad-strip { grid-area: pad; width: 100%; }
  .wire-strip { grid-area: wire; width: 100%; }
  .controls { grid-area: ctl; width: 100%; justify-self: stretch; }

  /* ── the set goes widescreen, like YouTube ── */
  .tv__cabinet { padding: 14px 14px 8px; }
  .tv__screen { aspect-ratio: 16 / 9; }
  .tv__brandplate { margin-top: 6px; font-size: 0.56rem; }
  .tv__cabinet::after { display: none; }
  .segment__name { font-size: clamp(2rem, 3.4vw, 3.6rem); }

  /* ── the monitors fill their columns, top to bottom ── */
  .monitors { width: auto; height: 100%; display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
  .monitors > * { flex: none; }
  .monitors .mini { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; padding: 8px 8px 6px; }
  .monitors .mini__screen, .monitors--creator .mini__screen { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; container-type: size; }
  /* a 16:9 tape crops to fill a screen of any shape, never letterboxes */
  .monitors .mini__screen iframe {
    inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: max(100cqw, 100cqh * 16 / 9); height: max(100cqh, 100cqw * 9 / 16);
  }
  .monitors .mini__label { font-size: 0.68rem; margin-top: 6px; color: var(--ink-dim); }
  .pcard__glyph { width: 30px; height: 30px; }
  .pcard__word { font-size: 0.6rem; }
  .pcard__handle { font-size: 0.7rem; }
  .pcard__visit { opacity: 1; transform: none; font-size: 0.58rem; }
  .pcard__count { font-size: 1.4rem; }

  /* ── the wires and shows: labeled buttons, not pills ── */
  .deckwires { display: flex; gap: 8px; max-width: none; width: 100%; justify-content: stretch; overflow: visible; padding: 0; }
  .deckwires > a, .deckwires > button { flex: 1 1 0; min-width: 0; }
  .deckwires__k { flex: none; width: 92px; display: flex; flex-direction: column; gap: 3px; margin: 0;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--ink-dim); }
  .deckwires__k small { font-size: 0.56rem; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: none; }
  .deckwires .wires__link, .deckwires .dial__row {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px;
    padding: 8px 12px 8px 16px; min-height: 50px; border-radius: 12px;
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.15; text-align: left;
    color: var(--ink); white-space: nowrap; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, rgba(18, 11, 4, 0.9)), rgba(12, 7, 3, 0.9));
    box-shadow: inset 3px 0 0 var(--c);
    transition: transform 0.15s var(--ease-snap, ease), border-color 0.15s, background 0.15s, box-shadow 0.15s;
  }
  .deckwires .wires__link::before { display: none; }
  .deckwires .dial__row::before { display: none; }
  .deckwires .wires__link:hover, .deckwires .wires__link:focus-visible,
  .deckwires .dial__row:hover, .deckwires .dial__row:focus-visible {
    outline: none; transform: translateY(-2px); border-color: var(--c);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, rgba(18, 11, 4, 0.9)), rgba(14, 8, 3, 0.9));
    box-shadow: inset 3px 0 0 var(--c), 0 10px 22px -12px color-mix(in srgb, var(--c) 70%, transparent);
  }
  .deckwires .wires__link:active, .deckwires .dial__row:active { transform: translateY(0) scale(0.98); }
  .deck__sub { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    font-family: var(--font-body, inherit); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.02em; color: var(--ink-dim); text-transform: none; }
  .deckwires .dial__row { flex-direction: column; }
  .deckwires .dial__ch { display: none; }
  .deckwires .dial__name { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .deckwires .dial__flag { position: absolute; top: 6px; right: 8px; font-size: 0.5rem; }

  /* ── the control deck: every control carries its name ── */
  /* the jukebox (right) floats over the deck's end, so the buttons keep clear.
     The 120px left inset was held over from the retired Instillious orb
     (2026-11-11) and was dead space; closed 2026-11-17 on Gene's word ("make
     sure the tv rig console is optimized for fit"). */
  .controls { justify-content: center; gap: clamp(14px, 1.6vw, 28px); padding: 10px 230px 10px 28px; }
  .controls .btn { flex-direction: column; gap: 3px; min-width: 64px; padding: 7px 10px 6px; }
  .controls .btn__txt { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; white-space: nowrap; }
  .controls .btn--sq .btn__txt { display: block; }
  .controls .btn__glyph { line-height: 1; }
  .controls__cluster--channel { position: relative; }
  .controls__label { font-size: 0.6rem; }
}

/* ═════════ 2b · TALL AND WIDE SCREENS (2026-11-17) ═════════
   Gene: "make sure the tv rig console is optimized for fit, there is some empty
   space". His desk is a 3440x1440 ultrawide. Measured there: the set was held
   to 1440px wide and the three screens to 400px, leaving 555px of nothing on
   each side, and about 145px of height unused above and below. --deck-chrome
   (520px) is accurate (measured 511px), so the height-fit formula stays; it was
   the 1440px cap that left the room. Lifted to 2200px on wide screens. */
@media (min-width: 2200px) and (min-height: 1200px) {
  /* the 24px is slack: the estimate is measured, not exact, and a console that
     overflows by one pixel grows a scrollbar */
  :root { --tv-w: min(2200px, calc((var(--fit-h) - var(--deck-chrome) - 24px) * 16 / 9)); }
}
/* ultrawide: the three screens grow with the height they are given and stay
   16:9. Measured live at 3440x1440 the column's height less the doors, the short
   and tonight's pattern leaves each screen (fit-h - 696px) / 3 tall, so the
   column is that height times 16/9 plus its padding: 457px there, up from 400 */
@media (min-width: 3000px) and (min-height: 1200px) {
  :root { --mon-max: clamp(400px, calc((var(--fit-h) - 696px) * 16 / 27 + 16px), 700px); }
  .deck { grid-template-columns: 1fr minmax(var(--mon-min), var(--mon-max)) minmax(0, var(--tv-w)) 1fr; }
}

/* the short-laptop band: the subs shrink, then step aside */
@media (min-width: 1101px) and (max-width: 1499px) {
  :root { --mon-min: 180px; }
  .deckwires__k { display: none; }
  .deckwires .wires__link, .deckwires .dial__row { font-size: 0.7rem; padding: 7px 8px 7px 12px; min-height: 44px; letter-spacing: 0.04em; }
  .deckwires .dial__name { font-size: 0.7rem; letter-spacing: 0.03em; }
  .deck__sub { font-size: 0.6rem; }
  .controls .btn { min-width: 54px; padding: 6px 7px 5px; }
  .tvp-btn { min-width: 44px; padding: 5px 5px 4px; }
  #tvp-vol { width: 64px; }
}
@media (min-width: 1101px) and (max-width: 1299px) {
  .deck__sub { display: none; }
  .deckwires .wires__link, .deckwires .dial__row { min-height: 36px; }
  :root { --deck-chrome: 490px; }
}

/* the rail's doors: a title and one line of what's behind each, like the deck.
   Gene, 2026-11-04: "these tiny pills on the side aren't going to get anyone going" */
.strings-btn b, .strings-btn .rail-tile__sub { display: block; }
.strings-btn .rail-tile__sub { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--ink-dim); margin-top: 3px; }
@media (min-width: 1101px) {
  .rail__brand { grid-template-columns: 1fr; }
  .rail__brand > .strings-btn, .rail__brand > .imagine-btn,
  .rail__brand > .today-line, .rail__brand > .pulse-chip {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 3px; width: 100%; min-height: 56px; margin-top: 8px; padding: 9px 30px 9px 14px;
    text-align: left; border-radius: 10px; border-left-width: 3px; border-left-style: solid;
    transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  }
  .rail__brand > .hidden { display: none; }
  .rail__brand > .strings-btn::after, .rail__brand > .imagine-btn::after,
  .rail__brand > .today-line::after, .rail__brand > .pulse-chip::after {
    content: "\203A"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 1.2rem; line-height: 1; color: var(--ink-dim); transition: transform var(--dur-fast), color var(--dur-fast);
  }
  .rail__brand > button:hover::after, .rail__brand > button:focus-visible::after { transform: translate(3px, -50%); color: var(--ink); }
  .rail__brand > button:hover, .rail__brand > button:focus-visible { transform: translateX(2px); }
  .strings-btn { border-left-color: var(--neon-red); }
  .imagine-btn, .today-line { border-left-color: var(--neon-cyan); }
  .strings-btn b, .imagine-btn b, .today-line b, .pulse-chip b { font-size: 0.76rem; letter-spacing: 0.14em; line-height: 1.2; }
  .strings-btn .rail-tile__sub, .imagine-btn span, .today-line span, .pulse-chip span {
    font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.3; letter-spacing: 0.02em;
    max-width: 100%; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
}
@media (max-width: 640px) { .strings-btn .rail-tile__sub { display: none; } }

/* theater: the set takes the whole deck; the rail and monitors rest */
@media (min-width: 1101px) {
  /* YouTube's theater: the picture grows into the room the button rows leave */
  .console.is-big .deck { grid-template-columns: 0 0 minmax(0, 1fr) 0; column-gap: 0;
    grid-template-areas: ". left tv ." ". left pad ." ". left wire ." "ctl ctl ctl ctl"; }
  .console.is-big .deckwires { display: none; }
  /* the three big doors and MORE ROOMS (2026-11-16) are placed in the nav and
     dial areas, which theater's grid does not have, so they fell into implicit
     rows under the controls and pushed the set off the top (measured at
     3440x1440: set at y=-19, deck 1459px in 1440). Theater rests them, as it rests the rail. */
  .console.is-big .bigdoors--deck, .console.is-big .moredoors--deck { display: none; }
  /* the tube alone: the pad and wire strips rest too, so the picture takes their 130px */
  .console.is-big .pad-strip, .console.is-big .wire-strip { display: none; }
  .console.is-big .tv { width: min(100%, calc((var(--fit-h) - 280px) * 16 / 9)); }
  .console.is-big .controls { padding-left: 28px; }
  /* the rail rests in theater, so the orb sits beside the corner eye, not on the deck */
  body:has(.console.is-big) .inst-dock { left: 150px; }
}

/* ═════════ 3 · PHONES AND TABLETS ═════════ */
@media (max-width: 1100px) {
  .tvp-btn { min-width: 40px; padding: 5px 4px 4px; }
  .tvp-now { display: none; }
  .tvp-row { flex-wrap: wrap; justify-content: center; }
  .controls .btn__txt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; }
}
@media (max-width: 640px) {
  .tvp__big { top: 34%; padding: 8px 14px 8px 8px; gap: 10px; }
  .tvp__big-ring { width: 50px; height: 50px; }
  .tvp__big-txt b { font-size: 0.7rem; }
  .tvp__big-txt span { font-size: 0.74rem; max-width: 24ch; }
  .tvp-btn__txt { display: none; }
  #tvp-vol, #tvp-cc, #tvp-pop, #tvp-theater, #tvp-info { display: none; }
  .tvp-bar { margin-top: 8px; }
  /* the phone's one door keeps its one word */
  #launch-btn .btn__txt, #keys-btn { display: none; }
}

/* ═════════ 4 · THE PHONE, AIRING (2026-11-10) ═════════
   Gene: "work on the phone, make sure they are getting the full experience...
   the characters and main terminal area need to be on at main startup or
   shortly after." The phone glass stands as tall as the phone (the 10-21
   hero), and a 16:9 tape letterboxed into it was a thin band between two
   black bars. Now the picture takes the top of the glass at its real shape
   and the character's card (who they are, why they matter) stays lit right
   under it. The three screens ride directly under the set, all three,
   playing. */
@media (max-width: 700px) {
  .tvp__frame, .tvp__catch { inset: 0 0 auto 0; aspect-ratio: 16 / 9; }
  .tvp__tap { bottom: auto; top: 0; right: 10px; margin-top: calc(56.25% - 46px); padding: 8px 14px; font-size: 0.66rem; }
  /* Under the picture the portrait stays as a quiet backdrop, and THE CARD ON
     THE GLASS (tvcard.css) carries the words. The old card's own text sat
     under the scanlines and the vignette and read as dim (Gene, 2026-11-10). */
  .tv--playing .segment { opacity: 1; padding-top: 56.25%; }
  .tv--playing .segment__grade, .tv--playing .segment__lower, .tv--playing .segment__ticker { visibility: hidden; }
  .tv--playing .segment__portrait { opacity: 0.3; }
  .tv--playing.tv--info .segment { background: none; }

  /* under the set: the three screens, then the doors, then the pad */
  .monitors--creator { order: 1; display: flex; flex-wrap: wrap; gap: 8px; }
  .monitors--creator #thread-strip { order: 3; flex: 1 1 100%; }
  .monitors--creator .mini, .monitors--creator .mini ~ .mini { display: block; flex: 1 1 0; min-width: 0; padding: 5px 5px 4px; border-radius: 11px; }
  .monitors--creator .mini__label { font-size: 0.5rem; letter-spacing: 0.06em; margin-top: 4px; }
  .pcard__send-hint { right: 3px; bottom: 3px; padding: 2px 5px; font-size: 0.46rem; letter-spacing: 0.08em; }
  .pad-strip { order: 3; }   /* the doors take order 2 in openers.css */
}

/* ─────────── 5 · THE IN-BETWEEN (881px to 1100px wide) ───────────
   Measured 2026-11-10 at 1024x768: the console owns the viewport and does not
   scroll (from 881px up), but under 1101px the small screens and the doors
   wrap UNDER the set, and the deck ran 270px taller than the screen. The
   doors and the short's strip were cut off with no way to reach them.
   The deck scrolls inside the console here. The page itself must NOT be let
   go (height: auto on .console lets the channel rail stretch the page to
   13,000px and throws the set far down it; tried, measured, taken back). */
@media (min-width: 881px) and (max-width: 1100px) {
  .deck { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
