/*
 * The night is the unit: a broadcast-style header for the selected night, a scoreboard of LED
 * scorebugs, then a grid of two-tone matchup posters in team colors. The posters carry the color;
 * everything around them stays quiet. Tailwind only provides the reset (these rules are unlayered,
 * so they win over it).
 */
:root {
  color-scheme: light;
  --bg: #eceef4;
  --surface: #ffffff;
  --surface-2: #e1e5ef;
  --line: #cdd2e0;
  --fg: #10131f;
  --muted: #586079;
  --accent: #f2551a;
  --accent-ink: #1a0a02;
  --good: #128a50;
  --bad: #c22a2a;
  /* The scoreboard and the player are dark objects in both themes. */
  --board: #07080d;
  --board-2: #12141f;
  --board-line: #272b3f;
  --board-fg: #f1f2f8;
  --board-muted: #9198b1;
  --led: #ffc247;
  --led-dim: #a37a2c;
  --led-off: #4a4330;
  --slash: #f4f5f8;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-led: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
}
:root.dark {
  color-scheme: dark;
  --bg: #0c0e17;
  --surface: #151827;
  --surface-2: #1e2235;
  --line: #2b3048;
  --fg: #eef0f8;
  --muted: #9aa2bb;
  --accent: #ff6a2b;
  --good: #58d697;
  --bad: #ff7b6b;
}

[hidden] { display: none !important; }
/* No scroll bar beside the page, even when the Mac keeps them shown (with a mouse): it still
   scrolls, with the wheel or the trackpad. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
/* What scrolls inside a page (a box score, a bracket, the calendar) keeps its thin bar, the way
   to scroll sideways with a mouse, in the theme's colors rather than the Mac's: inherited by
   them all, the scoreboard's dark parts in theirs. */
body { scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) transparent; }
.stage, .box-scroll { scrollbar-color: var(--board-line) transparent; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
form.button_to { display: contents; }

.shell { max-width: 1120px; margin-inline: auto; padding-inline: 20px; padding-block: 20px 56px; display: flex; flex-direction: column; gap: 36px; }
/* The top bar right at the top of the window. */
.shell { padding-top: 12px; }

/* Top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.6rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.mark .ball { width: 26px; height: 26px; flex: none; transition: transform .4s; }
.mark .ball circle { fill: var(--accent); }
.mark .ball path { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linecap: round; }
.mark:hover .ball { transform: rotate(90deg); }
.mark b { color: var(--accent); font-weight: 900; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9rem; padding: 7px 4px; }
.switch .track { width: 38px; height: 22px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch[aria-checked="true"] .track { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .track::after { transform: translateX(16px); background: var(--accent-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); transition: background .15s, transform .1s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.hot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.hot:hover { background: var(--accent); filter: brightness(1.08); }
.btn[disabled] { color: var(--muted); cursor: progress; }
/* Sync stays orange while it runs; only the label ("Syncing…") and the cursor change. */
.btn.hot[disabled] { color: var(--accent-ink); filter: none; opacity: .85; }
.link { color: var(--muted); font-weight: 500; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); padding: 6px 0; }
.link:hover { color: var(--fg); }

/* Night header */
.night { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
/* Catch up: its title level with the marathons, as on Games; the shorter ways in (15 min…) hang below. */
.night.ms-hero { align-items: start; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* The letter spacing leaves room after the last letter: taken off the right padding, to centre it. */
.eyebrow .phase { display: inline-block; color: var(--accent); border: 1px solid currentColor; border-radius: 3px; padding: 2px calc(7px - .14em) 2px 7px; margin-right: 8px; }
a.phase:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.night h1 { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; text-transform: uppercase; font-size: calc(clamp(2.6rem, 9vw, 5.6rem) * var(--display-fit, 1)); line-height: .86; letter-spacing: -.005em; text-wrap: balance; margin-top: 10px; }
.night h1 span { color: var(--accent); }
/* A team page's title in its colors (Settings › Team colors on team pages): a banner of the team's
   color, its name in the team's other color, chosen to read on it, light or dark theme alike. */
/* Cut to the capitals and the baseline, and an italic's slant made up for, so the same room shows on
   all four sides whatever the font. */
.night h1.tm-colors { display: inline-block; padding: .22em calc(.26em + var(--display-lean, 0em)) .22em calc(.26em - var(--display-lean, 0em)); text-box: trim-both cap alphabetic; border-radius: 8px; background: var(--a); color: var(--ai);
  box-shadow: 0 0 0 1px var(--line); }
.night h1.tm-colors span { color: var(--ai); }
/* Or the letters alone: the city in one of the team's colors, the nickname in the other, outlined
   (behind the letters, so they keep their shape) when they would not show on the background
   (team_letters_controller.js). */
.night h1.tm-letters { color: var(--tm-city, var(--fg)); -webkit-text-stroke: var(--tm-city-outline, 0 transparent); paint-order: stroke fill; }
.night h1.tm-letters span { color: var(--tm-nickname, var(--accent)); -webkit-text-stroke: var(--tm-nickname-outline, 0 transparent); }
.cta { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 280px; }
.go { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; text-align: left; background: var(--accent); color: var(--accent-ink); padding: 12px 20px 12px 12px; border-radius: 4px; transform: skewX(-6deg); transition: filter .15s, transform .1s; }
.go > * { transform: skewX(6deg); }
a.go:hover { filter: brightness(1.08); }
a.go:active { transform: skewX(-6deg) translateY(1px); }
.go.alt { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
a.go.alt:hover { background: var(--surface-2); filter: none; }
.go.is-done { background: var(--surface-2); color: var(--muted); }
.go strong { display: block; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.55rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.go small { display: block; font-size: .82rem; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums lining-nums; }
.clock { position: relative; width: 58px; height: 58px; flex: none; }
.clock svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.clock .ring-bg { stroke: var(--board-line); }
.clock .ring-fg { stroke: var(--led); }
.clock .disc { fill: var(--board); }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-led); font-weight: 900; font-size: 1.45rem; color: var(--led); line-height: 1; }

/* Night picker */
.nights { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nights::-webkit-scrollbar { display: none; }
.nchip { flex: none; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; padding: 6px 14px 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); transition: background .15s, border-color .15s; }
.nchip:hover { background: var(--surface-2); }
.nchip .day { grid-row: span 2; display: grid; justify-items: center; }
.nchip .m { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.nchip[aria-current="true"] .m { color: inherit; opacity: .7; }
.nchip .d { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.nchip .w { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nchip .p { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.nchip[aria-current="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nchip[aria-current="true"] .p { color: inherit; opacity: .7; }
.nchip .done { display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-weight: 600; }
.nchip .done svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The night still to be played stands apart from the ones to catch up on. */
.nchip.upcoming { border-style: dashed; background: transparent; }
.nchip.upcoming .w { color: var(--muted); }
.nchip.upcoming.tonight .w { color: var(--accent); }
.nchip.upcoming[aria-current="true"] { background: var(--fg); border-style: solid; }
.nchip.upcoming[aria-current="true"] .w { color: inherit; }
.nchip[aria-current="true"] .done { color: inherit; }
/* A night to come: a star when my team plays, and the first game's time when it is in the French evening. */
.nchip .nstar { font-style: normal; color: var(--accent); letter-spacing: 0; }
.nchip .nearly { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 3px; font-size: .68rem; font-weight: 700; color: var(--accent-ink); background: var(--led); }
.nchip[aria-current="true"] .nstar { color: var(--accent); }

/* Scoreboard */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.sec-head p { color: var(--muted); font-size: .86rem; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bug { background: var(--board); color: var(--board-fg); border: 1px solid var(--board-line); border-radius: 4px; padding: 10px 12px 8px; display: grid; gap: 4px; text-align: left; width: 100%; }
.bug .row { display: grid; grid-template-columns: 6px 1fr auto; align-items: center; gap: 9px; }
.bug .sw { width: 6px; height: 20px; border-radius: 1px; background: var(--board-line); box-shadow: 0 0 0 1px var(--board-line); }
.bug .ab { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; line-height: 1; }
.bug .sc { font-family: var(--font-led); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--led-off); font-variant-numeric: tabular-nums lining-nums; min-width: 3ch; text-align: right; }
.bug .st { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--board-muted); margin-top: 2px; }
.bug .st.tip { color: var(--led); font-variant-numeric: tabular-nums lining-nums; }
/* Scores stay masked until the spoiler controller sets data-on, which follows the Spoiler-free switch. */
.bug .on { display: none; }
.bug[data-on] .on { display: inline; }
.bug[data-on] .off { display: none; }
.bug[data-on] .sc { color: var(--led-dim); }
.bug[data-on] .row.win .sc { color: var(--led); }
.bug[data-on] .row.lose .ab { color: var(--board-muted); }

.sec-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.sec-tools .mini { padding: 8px 14px; font-size: .88rem; }

.pick { font: inherit; font-weight: 600; font-size: .9rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; max-width: 100%; cursor: pointer; }
.pick:hover { background-color: var(--surface-2); }
/* Our own chevron, so it can sit away from the edge (the native one hugs it). */
.pick { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23586079' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px 8px; }
:root.dark .pick { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa2bb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* A click on the menu does not draw the orange focus ring; keyboard focus shows as a lighter border. */
.pick:focus, .pick:focus-visible { outline: none; }
.pick:focus-visible { border-color: var(--muted); }

/* Category tabs */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.seg a { padding: 8px 18px; font-weight: 600; font-size: .9rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: baseline; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a[aria-current="true"] { background: var(--fg); color: var(--bg); }
/* The same, as buttons that filter in place. */
.seg > button { padding: 8px 18px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg > button + button { border-left: 1px solid var(--line); }
.seg > button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg a:focus-visible { outline-offset: -3px; }
.seg i { font-style: normal; font-size: .78rem; font-variant-numeric: tabular-nums lining-nums; opacity: .75; }

/* Away and home marks: a small plane and a small house, in the color of the text around them. */
/* Shown only where a team is set large (posters, end card), at the bottom right of its name. */
.ha { display: inline-block; width: max(10px, .55em); height: max(10px, .55em); flex: none; fill: currentColor; opacity: .6; vertical-align: baseline; margin-left: .2em; }

/* Posters */
.poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size;
  background: linear-gradient(104deg, var(--a) 0 49.5%, var(--slash) 49.5% 50.5%, var(--h) 50.5% 100%); }
.poster::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34cqw; height: 34cqw; border-radius: 50%; transform: translate(-50%, -50%); border: .7cqw solid var(--slash); opacity: .2; }
.poster .pa, .poster .ph { position: absolute; z-index: 1; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 17cqw; line-height: .8; letter-spacing: -.01em; }
.poster .pa { left: 5cqw; top: 6cqw; color: var(--ai); }
.poster .ph { right: 5cqw; bottom: 6cqw; color: var(--hi); }
.poster .ha { width: .34em; height: .34em; margin-left: .06em; opacity: .75; }
/* The teams' logos, each in its half: the visitors' under their name, the hosts' above theirs. */
/* On a white disc, as a broadcast's graphics have them: a logo in its own team's colors (the 76ers
   on their blue, the Bulls on their red) would melt into its half. */
.poster .pl { position: absolute; z-index: 1; box-sizing: border-box; width: 16cqw; height: 16cqw; padding: 2.2cqw; object-fit: contain;
  border-radius: 50%; background: #fff; box-shadow: 0 .4cqw 1.2cqw rgb(0 0 0 / .25); }
.poster .pl-a { left: 6cqw; top: 25cqw; }
.poster .pl-h { right: 6cqw; top: 15cqw; }
.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--board); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 24px 20px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.play { position: relative; display: block; width: 100%; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); transition: transform .18s; }
.play:hover { transform: translateY(-3px); }
.play .dur { position: absolute; z-index: 2; right: 8px; top: 8px; background: var(--board); color: var(--board-fg); font-size: .76rem; font-weight: 600; padding: 2px 7px; border-radius: 2px; font-variant-numeric: tabular-nums lining-nums; }
.play .tri, .cv-art .tri { position: absolute; z-index: 2; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--board); display: grid; place-items: center; }
.play .tri::before, .cv-art .tri::before { content: ""; border-left: 11px solid var(--board-fg); border-block: 7px solid transparent; margin-left: 3px; }
.card.seen .poster, .card.seen .thumb { filter: saturate(.18) brightness(.62); }
.stamp { position: absolute; z-index: 2; left: 10px; bottom: 10px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--board-fg); border: 2px solid var(--board-fg); padding: 0 9px 1px; transform: rotate(-5deg); line-height: 1.3; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card h3 i { font-style: normal; color: var(--muted); font-weight: 600; padding-inline: 2px; }
.day { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card .day { color: var(--fg); margin-top: 6px; }
.card .yt { color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.foot .src { font-size: .8rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); flex: none; }
.mini:hover { background: var(--surface-2); }
.card.seen .mini { background: transparent; color: var(--muted); }
/* The favorite team's games, ringed so the ones left to watch stand out; dimmer once watched. */
/* A frame of its own rather than an outline, whose corners grow rounder with its offset. */
/* My team's game: a small tag on the poster. */
.mine-tag { position: absolute; z-index: 2; right: 8px; top: 34px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 2px 8px 1px; border-radius: 3px; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.card.seen .mine-tag { background: color-mix(in srgb, var(--accent) 55%, var(--board)); color: var(--board-fg); }
.empty { border: 1px dashed var(--line); border-radius: 4px; padding: 40px 20px; text-align: center; color: var(--muted); }

/* Player pages (marathon and single video) */
/* --chrome is the height of everything around the video, so the page fits one screen without scrolling. */
/* The video pages (a recap, the marathons) follow the theme: light, the page around the video takes
   the app's colors; the screen and what lies over it (loading, the end card, the band over
   YouTube's title), and the whole stage in fullscreen, stay a board, dark (--sb, the palette's
   board colors kept aside before the stage redefines them). */
:root { --sb: var(--board); --sb-2: var(--board-2); --sb-line: var(--board-line); --sb-fg: var(--board-fg); --sb-muted: var(--board-muted); }
:root:not(.dark) .stage { --board: var(--bg); --board-2: var(--surface); --board-line: var(--line); --board-fg: var(--fg); --board-muted: var(--muted);
  /* The board's amber, darker, to read on a light page. */
  --led: #b26f00; --led-dim: #c99a4a; --led-off: var(--line); }
:root { --sl: var(--led); --sl-dim: var(--led-dim); --sl-off: var(--led-off); }
:root:not(.dark) .stage :is(.s-screen, .s-bug, .s-exitfs), :root:not(.dark) .stage:is(:fullscreen, .faux-fs) {
  --board: var(--sb); --board-2: var(--sb-2); --board-line: var(--sb-line); --board-fg: var(--sb-fg); --board-muted: var(--sb-muted);
  --led: var(--sl); --led-dim: var(--sl-dim); --led-off: var(--sl-off); }
/* Its text in the screen's own light, not the page's ink it would inherit (the next recap's teams). */
.stage .s-screen { color: var(--board-fg); }
.stage { --chrome: 206px; min-height: 100dvh; background: var(--board); color: var(--board-fg); display: flex; flex-direction: column; padding: 6px 20px 10px; }
.stage.single { --chrome: 252px; }
.stage :focus-visible { outline-color: var(--led); }
.s-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--board-line); }
.s-top .x { justify-self: start; color: var(--board-muted); font-weight: 600; font-size: .9rem; padding: 6px 0; }
.s-top .x:hover { color: var(--board-fg); }
.s-count { font-family: var(--font-led); font-weight: 900; font-size: 1.5rem; color: var(--led); line-height: 1; white-space: nowrap; }
.s-count i { font-style: normal; color: var(--led-dim); }
.s-mode { justify-self: end; display: flex; align-items: center; gap: 16px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--board-muted); text-align: right; }
/* Fullscreen, Exit fullscreen, the speed: chips the size of the quality badge (1080p), side by side,
   in the accent as on the TV (.tv-chip): the things to press. */
.s-mode button, .speed, .stage:is(:fullscreen, .faux-fs) .s-exitfs { font: inherit; font-size: .7rem; font-weight: 700; line-height: 1; letter-spacing: .06em;
  color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 6px; }
.s-mode button:hover, .speed:hover, .stage:is(:fullscreen, .faux-fs) .s-exitfs:hover { filter: brightness(1.1); }
/* One height for every chip, the quality badge too, whatever the browser adds to a button's own. */
.s-mode button, .s-mode > span, .speed, .s-bar .quality, .stage:is(:fullscreen, .faux-fs) .s-exitfs, .tv-chip, .tv-quality {
  box-sizing: border-box; height: 22px; display: inline-flex; align-items: center; justify-content: center; margin: 0; -webkit-appearance: none; appearance: none; }
.s-mode button { text-transform: uppercase; }
/* What is playing (Single video, Short marathon), beside Fullscreen: a chip of its size, quieter. */
.s-mode > span { font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-indent: .06em; padding: 2px 6px;
  border: 1px solid var(--board-line); border-radius: 3px; color: var(--board-muted); }
.s-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 19vw, 260px); gap: 20px; padding-top: 10px; align-items: start; align-content: start; }
.s-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.s-screen { position: relative; width: 100%; max-width: min(100%, calc((100dvh - var(--chrome)) * 1.7778)); min-width: min(100%, 280px); aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--board-line); border-radius: 4px; overflow: hidden; }
.s-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* In a browser (marathon_controller.js: no Tip-Off.app to hide YouTube's title inside the frame):
   the frame built at a TV's size, 1280 wide (YouTube then plays it in a big player's quality, not a
   phone's), and drawn at the picture's size (--yt-s, marathon_controller.js#fitFrame), centred. It
   is taller than the picture by 160 px above and below, where YouTube puts its title and its
   buttons (Watch on YouTube): cut off. The picture itself whole, its score in its corner, at the
   screen's width or height, whatever the screen's shape. */
.s-screen.chrome-clipped iframe { inset: auto; left: 50%; top: 50%; width: var(--yt-w); height: calc(var(--yt-w) * 9 / 16 + 2 * var(--yt-cut)); max-width: none;
                                  transform: translate(-50%, -50%) scale(var(--yt-s, .28)); clip-path: inset(var(--yt-cut) 0); }
/* The frame's size: a TV's (1280) on a phone or a tablet, a big TV's (1920) in Tip-Off for TV, for
   YouTube's best on a 4K screen; the strips cut above and below in proportion. */
:root { --yt-w: 1280px; --yt-cut: 160px; }
html.tv { --yt-w: 1920px; --yt-cut: 240px; }
/* The card between two videos. Sized from the screen it covers, so it reads the same windowed and fullscreen. */
.s-screen { container-type: size; }
.s-card { position: absolute; z-index: 4; inset: 0; background: var(--board); display: flex; align-items: center; justify-content: center; gap: 7cqw; padding: 5cqw; }
.c-label { font-size: max(.7rem, 1.5cqw); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--board-muted); margin-bottom: 1.6cqw; }
.c-label b { color: var(--led); font-family: var(--font-led); font-weight: 900; font-size: 1.4em; letter-spacing: 0; }
.c-final { min-width: 30cqw; }
.c-row { display: grid; grid-template-columns: 1.2cqw auto 1fr auto; align-items: center; column-gap: 2cqw; padding-block: .8cqw; }
.c-row .sw { grid-area: 1 / 1; } .c-row .ab { grid-area: 1 / 2; } .c-row .pts { grid-area: 1 / 4; }
/* The plane or the house sits at the bottom right of the team's name. */
.c-row .ha { grid-area: 1 / 3; align-self: end; justify-self: start; width: max(13px, 2.4cqw); height: max(13px, 2.4cqw); margin: 0 0 .9cqw -1.2cqw; opacity: .75; }
.c-row .qs { grid-row: 2; } .c-row .ld { grid-row: 3; }
/* Its logo (Settings › App › Team logos) in the name's cell, the name moved past it. */
.c-row .c-logo { grid-area: 1 / 2; width: max(20px, 4cqw); height: max(20px, 4cqw); margin: 0; filter: none; }
.c-row:has(.c-logo:not([hidden])) .ab { margin-left: calc(max(20px, 4cqw) + 1.4cqw); }
/* The record, small and quiet at the top of the gap after the team's name (its home or away icon
   at the bottom). */
.c-row .rec { grid-area: 1 / 3; align-self: start; justify-self: start; margin: .9cqw 0 0 -1.2cqw; font-size: max(.68rem, 1.45cqw); font-weight: 600;
  color: var(--board-muted); opacity: .8; font-variant-numeric: tabular-nums lining-nums; }
.c-row .qs, .c-row .ld { grid-column: 2 / -1; font-size: max(.68rem, 1.45cqw); color: var(--board-muted); font-variant-numeric: tabular-nums lining-nums; min-height: 1.2em; }
.c-row .qs { display: flex; gap: 1.8cqw; margin-top: .4cqw; }
.c-row .qs i { font-style: normal; font-size: .78em; font-weight: 600; letter-spacing: .08em; opacity: .65; margin-right: .5cqw; }
.c-row.win .ld { color: var(--board-fg); }
.c-row .sw { width: 1.2cqw; height: 6cqw; border-radius: 1px; box-shadow: 0 0 0 1px var(--board-line); }
.c-row .ab { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 8cqw; line-height: 1; color: var(--board-muted); }
.c-row .pts { font-family: var(--font-led); font-weight: 900; font-size: 10cqw; line-height: 1; color: var(--led-dim); font-variant-numeric: tabular-nums lining-nums; animation: led-on .9s steps(1) both; }
.c-row.win .ab { color: var(--board-fg); }
.c-row.win .pts { color: var(--led); }
.c-next { width: 34cqw; display: flex; flex-direction: column; align-items: flex-start; }
.c-next .poster { border-radius: 3px; border: 1px solid var(--board-line); }
.c-title { font-family: var(--font-display); font-weight: 700; font-size: max(1rem, 3cqw); text-transform: uppercase; line-height: 1.1; margin-block: 1.6cqw; overflow-wrap: anywhere; }
.c-next .s-acts { justify-content: flex-start; }
.c-paused { display: none; color: var(--board-fg); }
.s-card.paused .c-paused { display: inline; }
.s-card.paused .c-label b { color: var(--board-muted); }
.c-hint { margin-top: 1.2cqw; font-size: max(.66rem, 1.3cqw); color: var(--board-muted); }
/* The scoreboard digits flicker on, like a board being lit. */
@keyframes led-on { 0% { opacity: 0; } 30% { opacity: 1; } 45% { opacity: .15; } 60% { opacity: 1; } 75% { opacity: .4; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .c-row .pts { animation: none; } }

/* Hides what the YouTube player would give away: its title bar (band) and its end screen (full). */
.s-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: var(--board); }
.s-loading::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--board-muted); border-right-color: transparent; animation: spin .8s linear infinite; opacity: .7; }
.s-veil { display: none; position: absolute; z-index: 1; inset: 0 0 auto; height: 72px; background: var(--board); }
.s-veil[data-state="band"] { display: block; }
.s-veil[data-state="full"] { display: block; height: 100%; }
.s-info { max-width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 14px; text-align: center; }
.s-info h1 { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.5rem; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.s-info h1 i { font-style: inherit; }
.s-info p { color: var(--board-muted); font-size: .8rem; overflow-wrap: anywhere; }
.s-info .day { color: var(--led); font-size: .72rem; }
/* Buttons and seek bar share one row. */
.s-transport { width: 100%; max-width: 920px; display: flex; align-items: center; gap: 14px; }
.s-bar { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px; align-items: center; font-size: .82rem; color: var(--board-muted); font-variant-numeric: tabular-nums lining-nums; }
.seek { --p: 0%; appearance: none; -webkit-appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p), var(--board-line) var(--p)); }
.seek::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p), var(--board-line) var(--p)); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--board-fg); border: 0; }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--board-fg); border: 0; }
.seek:hover::-webkit-slider-runnable-track { height: 6px; }
.seek:hover::-webkit-slider-thumb { margin-top: -4px; }
.speed { min-width: 0; }
.stage .switch { color: var(--board-muted); font-size: .82rem; }
.stage .switch .track { background: var(--board-2); border-color: var(--board-line); }
.stage .switch .track::after { background: var(--board-muted); }
.stage .switch[aria-checked="true"] { color: var(--board-fg); }
.stage .switch[aria-checked="true"] .track { background: var(--accent); border-color: var(--accent); }
.stage .switch[aria-checked="true"] .track::after { background: var(--accent-ink); }
.s-ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.s-ctl button, .s-ctl .nav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--board-fg); }
.s-ctl button:hover:not([disabled]), .s-ctl .nav:hover { background: var(--board-2); }
.s-ctl button[disabled] { opacity: .3; cursor: default; }
.s-ctl .pp { width: 40px; height: 40px; background: var(--accent); color: var(--accent-ink); }
.s-ctl .pp:hover:not([disabled]) { background: var(--accent); filter: brightness(1.1); }
.s-ctl svg { width: 20px; height: 20px; display: block; }
.s-hint { color: var(--board-muted); font-size: .72rem; text-align: center; }
.s-main > .s-acts { align-items: center; }
.s-main > .s-acts .s-btn { padding: 6px 14px; font-size: .84rem; }
/* A long queue scrolls on its own instead of stretching the page. */
.s-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; max-height: calc(100dvh - 70px); }
.s-tabs { display: flex; border: 1px solid var(--board-line); border-radius: 4px; overflow: hidden; flex: none; }
.s-tabs button { flex: 1; padding: 6px 4px; font-size: .66rem; font-weight: 600; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--board-muted); }
.s-tabs button + button { border-left: 1px solid var(--board-line); }
.s-tabs button[aria-pressed="true"] { background: var(--board-fg); color: var(--board); }
.s-tabs button:focus-visible { outline-offset: -3px; }
.s-queue, .s-box, .s-standings { min-width: 0; min-height: 0; overflow-y: auto; }
.s-side:not([data-tab="queue"]) .s-queue, .s-side:not([data-tab="box"]) .s-box, .s-side:not([data-tab="standings"]) .s-standings { display: none; }

/* Box score */
.box-lock { border: 1px dashed var(--board-line); border-radius: 4px; padding: 20px 16px; text-align: center; color: var(--board-muted); font-size: .84rem; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.box-empty { color: var(--board-muted); font-size: .84rem; text-align: center; padding: 20px 0; }
turbo-frame#box_score { display: block; }
turbo-frame#box_score[busy]::before { content: "Loading the box score…"; display: block; color: var(--board-muted); font-size: .84rem; text-align: center; padding: 20px 0; }
/* The box score keeps the width of the queue: tight columns, names shortened to fit. */
.s-box { container-type: inline-size; }
.s-box table { width: 100%; border-collapse: collapse; font-size: .74rem; font-variant-numeric: tabular-nums lining-nums; margin-bottom: 16px; }
.s-box th, .s-box td { padding: 4px 0 4px 7px; text-align: right; font-weight: 400; white-space: nowrap; }
.s-box th:first-child { padding-left: 0; }
.s-box th:first-child { text-align: left; }
.box-line th:first-child { width: 100%; }
/* The players' tables scroll sideways inside the column; the name column stays put. */
.box-scroll { overflow-x: auto; scrollbar-width: thin; margin-bottom: 16px; }
.box-scroll table { width: auto; min-width: 100%; margin-bottom: 0; }
.box-team th:first-child { position: sticky; left: 0; z-index: 1; background: var(--board); width: 112px; min-width: 112px; max-width: 112px; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.box-team td, .box-team thead th:not(:first-child) { min-width: 26px; }
.s-box thead th { font-size: .6rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--board-muted); border-bottom: 1px solid var(--board-line); }
.s-box tbody tr + tr > * { border-top: 1px solid var(--board-2); }
.s-box .pts { color: var(--led); font-weight: 600; }
.s-box td { color: var(--board-muted); }
.s-box tbody th { color: var(--board-fg); }
.box-team thead th:first-child { color: var(--board-fg); font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em; }
.box-team .sw { display: inline-block; width: 5px; height: 12px; border-radius: 1px; margin-right: 7px; vertical-align: -1px; box-shadow: 0 0 0 1px var(--board-line); }
/* The first bench player starts a new block. */
.box-team tr.bench > * { border-top: 1px solid var(--board-line); }
.box-team tfoot > tr > * { border-top: 1px solid var(--board-line); font-weight: 600; color: var(--board-fg); }
.box-line th:first-child { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .04em; color: var(--board-fg); }
.box-line td.pts { font-family: var(--font-led); font-weight: 900; font-size: 1rem; }
.s-queue h2 { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--board-muted); margin-bottom: 10px; }
.s-queue ol { display: flex; flex-direction: column; gap: 4px; }
.q { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px; border-radius: 4px; border: 1px solid transparent; }
.q:hover { background: var(--board-2); }
.q[aria-current="true"] { background: var(--board-2); border-color: var(--board-line); }
.q .poster, .q .thumb { border-radius: 2px; }
/* Each line reads like a scorebug: two teams, their scores lit once the video is watched. */
.q .qb { min-width: 0; display: grid; gap: 1px; }
.q .qr { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.q b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.q b.title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q .sc { font-family: var(--font-led); font-weight: 900; font-size: 1.05rem; line-height: 1; color: var(--led-off); font-variant-numeric: tabular-nums lining-nums; }
.q .on, .q.was .off { display: none; }
.q.was .on { display: inline; }
.q.was .sc { color: var(--led-dim); }
.q.was .qr.win .sc { color: var(--led); }
.q.was .qr:not(.win) b { color: var(--board-muted); }
.q small { color: var(--board-muted); font-size: .72rem; font-variant-numeric: tabular-nums lining-nums; }
.q .ok { display: none; }
.q.was .ok { display: inline; }
.q.was .poster, .q.was .thumb { filter: saturate(.18) brightness(.62); }
.s-end { width: 100%; max-width: 640px; border: 1px solid var(--board-line); border-radius: 4px; padding: 44px 24px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; background: var(--board-2); }
.s-end h1 { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: .86; text-transform: uppercase; }
.s-end p { color: var(--board-muted); }
.s-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.s-btn { font-weight: 600; font-size: .9rem; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--board-line); color: var(--board-fg); }
.s-btn:hover { background: var(--board-2); }
.s-btn.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.s-btn.hot:hover { background: var(--accent); filter: brightness(1.1); }

/* Fullscreen: the video fills the screen and the controls float over it until the mouse rests. */
/* Sits over the video and takes the mouse, so YouTube never shows its own hover chrome (title bar
   included) and clicks go to our controls. */
.s-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.s-exitfs, .s-bug { display: none; }
.stage:is(:fullscreen, .faux-fs) { padding: 0; }
.stage:is(:fullscreen, .faux-fs) .s-top, .stage:is(:fullscreen, .faux-fs) .s-info, .stage:is(:fullscreen, .faux-fs) .s-hint,
.stage:is(:fullscreen, .faux-fs) .s-main > .s-acts { display: none; }
/* The queue becomes a strip of posters above the controls. */
.stage:is(:fullscreen, .faux-fs) .s-tabs, .stage:is(:fullscreen, .faux-fs) .s-side .s-box { display: none; }
.stage:is(:fullscreen, .faux-fs) .s-side { display: block; max-height: none; }
.stage:is(:fullscreen, .faux-fs) .s-side .s-queue { display: block; position: fixed; z-index: 3; inset: auto 0 150px; padding-inline: 4%; max-height: none; overflow: visible; }
.stage:is(:fullscreen, .faux-fs) .s-transport { display: contents; }
.stage:is(:fullscreen, .faux-fs) .s-ctl { gap: 18px; }
.stage:is(:fullscreen, .faux-fs) .s-ctl button, .stage:is(:fullscreen, .faux-fs) .s-ctl .nav { width: 46px; height: 46px; }
.stage:is(:fullscreen, .faux-fs) .s-ctl .pp { width: 58px; height: 58px; }
.stage:is(:fullscreen, .faux-fs) .s-ctl svg { width: 24px; height: 24px; }
.stage:is(:fullscreen, .faux-fs) .s-queue h2 { display: none; }
.stage:is(:fullscreen, .faux-fs) .s-queue ol { flex-direction: row; justify-content: safe center; gap: 8px; overflow-x: auto; padding-block: 4px; }
.stage:is(:fullscreen, .faux-fs) .q { display: block; width: 104px; flex: none; padding: 3px; opacity: .6; }
.stage:is(:fullscreen, .faux-fs) .q:hover, .stage:is(:fullscreen, .faux-fs) .q[aria-current="true"] { opacity: 1; background: transparent; }
.stage:is(:fullscreen, .faux-fs) .q[aria-current="true"] { border-color: var(--led); }
.stage:is(:fullscreen, .faux-fs) .q > span:not(.poster) { display: none; }
.stage:is(:fullscreen, .faux-fs) .q .poster, .stage:is(:fullscreen, .faux-fs) .q .thumb { display: block; }
.stage:is(:fullscreen, .faux-fs) .s-bug:not([hidden]) { display: flex; align-items: center; gap: 8px; position: absolute; z-index: 3; top: 16px; left: 16px; background: var(--board); border: 1px solid var(--board-line); border-radius: 4px; padding: 6px 7px 6px 10px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; line-height: 1; }
/* In fullscreen, the match's tag and Exit fullscreen, in the top corners: the same top, the same height. */
.stage:is(:fullscreen, .faux-fs) .s-bug:not([hidden]), .stage:is(:fullscreen, .faux-fs) .s-exitfs { box-sizing: border-box; top: 16px; height: 26px; }
.stage:is(:fullscreen, .faux-fs) .s-bug:not([hidden]) { padding-block: 0; }
.stage:is(:fullscreen, .faux-fs) .s-exitfs { display: inline-flex; align-items: center; padding: 0 9px; border-radius: 4px; font-size: .62rem; }
/* Exit fullscreen wears the match's tag, on the scoreboard's dark: it is not what the eye goes to
   over a video. The accent only under the pointer. */
.stage:is(:fullscreen, .faux-fs) .s-exitfs { background: var(--board); border-color: var(--board-line); color: var(--board-muted); }
.stage:is(:fullscreen, .faux-fs) .s-exitfs:hover { filter: none; color: var(--accent); border-color: var(--accent); }
/* Centred on the letters themselves, capitals that leave room above them otherwise. */
.stage:is(:fullscreen, .faux-fs) .s-bug > *, .stage:is(:fullscreen, .faux-fs) .s-exitfs { text-box: trim-both cap alphabetic; }
.s-bug .sw { width: 4px; height: 14px; border-radius: 1px; box-shadow: 0 0 0 1px var(--board-line); }
.s-bug i { font-style: normal; color: var(--board-muted); font-size: .75rem; }
.s-bug em { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--board-muted); margin-left: 6px; }
.s-bug small { font-family: var(--font-led); font-weight: 900; font-size: .85rem; color: var(--led); margin-left: 6px; letter-spacing: 0; }
.stage:is(:fullscreen, .faux-fs) .s-body { display: block; padding: 0; }
.stage:is(:fullscreen, .faux-fs) .s-main { position: fixed; inset: 0; justify-content: center; }
.stage:is(:fullscreen, .faux-fs) .s-screen { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.stage:is(:fullscreen, .faux-fs) .s-exitfs { display: block; position: absolute; z-index: 3; top: 16px; right: 16px; text-transform: uppercase; }
.stage:is(:fullscreen, .faux-fs) .s-main::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 280px; background: linear-gradient(to top, var(--board), transparent); pointer-events: none; }
.stage:is(:fullscreen, .faux-fs) .s-bar { position: absolute; z-index: 3; bottom: 92px; left: 50%; transform: translateX(-50%); width: min(92%, 960px); max-width: none; color: var(--board-fg); }
.stage:is(:fullscreen, .faux-fs) .s-ctl { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); }
.stage:is(:fullscreen, .faux-fs) .s-bar, .stage:is(:fullscreen, .faux-fs) .s-ctl, .stage:is(:fullscreen, .faux-fs) .s-exitfs, .stage:is(:fullscreen, .faux-fs) .s-bug,
.stage:is(:fullscreen, .faux-fs) .s-queue, .stage:is(:fullscreen, .faux-fs) .s-main::after { transition: opacity .25s; }
.stage.idle:is(:fullscreen, .faux-fs) { cursor: none; }
.stage.idle:is(:fullscreen, .faux-fs) .s-bar, .stage.idle:is(:fullscreen, .faux-fs) .s-ctl, .stage.idle:is(:fullscreen, .faux-fs) .s-exitfs, .stage.idle:is(:fullscreen, .faux-fs) .s-bug,
.stage.idle:is(:fullscreen, .faux-fs) .s-queue, .stage.idle:is(:fullscreen, .faux-fs) .s-main::after { opacity: 0; pointer-events: none; }
.stage.idle:is(:fullscreen, .faux-fs) .s-shield { cursor: none; }

/* Team season page. Levels of a game, from most to least watched: full, long, short, missed, upcoming. */
.sg-board { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px 12px; }
/* The season, month by month. */
/* Room above for the Last and Next flags. */
.sg-timeline { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding: 52px 2px 36px; }
.sg-tl-month { display: grid; gap: 6px; flex: none; }
.sg-tl-month em { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sg-strip { display: flex; gap: 3px; align-items: center; }
.sg-strip a { position: relative; display: block; width: 9px; height: 18px; border-radius: 2px; }
.sg-strip a:hover { filter: brightness(1.15); box-shadow: 0 0 0 2px var(--accent); }
.sg-strip .full { background: var(--c-full); }
.sg-strip .long { background: var(--c-long); }
.sg-strip .short { background: var(--c-short); }
.sg-strip .missed { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--muted); }
.sg-strip .upcoming { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sg-strip .next { box-shadow: inset 0 0 0 2px var(--fg); }
/* An NBA Cup game: a yellow dot on top. */
.sg-strip .cup::after { content: ""; position: absolute; left: 50%; top: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--led); }
.sg-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.sg-summary { margin: 0; font-size: .78rem; color: var(--muted); }
/* The four counts, small: each format's colour on its number. */
.sg-counts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sg-counts div { display: flex; align-items: baseline; gap: 6px; }
.sg-counts dt { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sg-counts dd { margin: 0; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.15rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.sg-counts dd small { font-size: .78rem; color: var(--muted); }
.sg-counts .full dd { color: var(--c-full); }
.sg-counts .long dd { color: var(--c-long); }
.sg-counts .short dd { color: var(--c-short); }
/* The flags on the last game and the next one, on two levels so that, side by side as they
   mostly are, they never overlap: Next above, Last below, a thin line down to each one's cell. */
.sg-flag { position: absolute; left: -2px; bottom: calc(100% + 18px); white-space: nowrap; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.sg-flag::after { content: ""; position: absolute; left: 6px; top: 100%; width: 1px; height: 16px; background: currentColor; opacity: .5; }
.sg-flag.next, .sg-flag.live { bottom: calc(100% + 26px); }
.sg-flag.next::after, .sg-flag.live::after { height: 24px; }
/* The last game played flagged under the strip, the next one over it: side by side, they never meet. */
.sg-flag.last { bottom: auto; top: calc(100% + 10px); z-index: 2; background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.sg-flag.last::after { top: auto; bottom: 100%; height: 10px; }
.sg-flag.next { background: var(--fg); color: var(--bg); }
.sg-flag.next::after { background: var(--fg); opacity: 1; }
.sg-flag.live { background: var(--bad); color: #fff; }
.sg-flag.live::after { background: var(--bad); opacity: 1; }
.sg-strip a { scroll-margin: 0 40px; }
/* The game a cell leads to, lit up for a moment, then marked. */
.sg-row { scroll-margin-block: 120px; }
.sg-row:target { box-shadow: 0 0 0 2px var(--accent); }
.sg-row.flash { animation: sg-flash 1.6s ease-out; }
@keyframes sg-flash { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); box-shadow: 0 0 0 3px var(--accent); } }
.sg-tools > .seg { margin-bottom: 8px; }
.sg-tools .seg button { padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.sg-tools .seg button + button { border-left: 1px solid var(--line); }
.sg-tools .seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.sg-month h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; margin: 24px 0 10px; }
.sg-list { display: grid; gap: 6px; }
.sg-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.sg-row.upcoming { background: transparent; border-style: dashed; }
.sg-row.next { border-color: var(--fg); border-style: solid; }
.sg-row.full { background: color-mix(in srgb, var(--c-full) 12%, var(--surface)); border-color: transparent; }
.sg-day { display: grid; line-height: 1.05; }
.sg-day b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums lining-nums; }
.sg-day span { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sg-match { min-width: 0; display: flex; align-items: center; gap: 10px; }
.sg-match .sw { width: 6px; align-self: stretch; min-height: 30px; border-radius: 2px; background: var(--line); flex: none; }
.sg-match b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.sg-match b i { font-style: normal; color: var(--muted); font-weight: 600; }
.sg-pre { font-family: var(--font-body); font-size: .6rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; margin-left: 8px; vertical-align: 2px; }
.cta .link { text-align: right; }
/* A segmented control there keeps its own width, on the right. */
.cta > .seg { align-self: flex-end; }
/* Under the marathons, out of the row: the night's heading stays level with the buttons. */
.skip-mine .switch { padding: 0 4px; }
/* Room for it under the night's heading, before the night picker: on every night once there is a
   favorite team, whether it played or not, so nothing moves from one night to the next. */
.night.keeps-skip { margin-bottom: 22px; }
.skip-mine { position: absolute; top: calc(100% + 6px); right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .84rem; color: var(--muted); white-space: nowrap; }
.sg-match small { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums lining-nums; }
.sg-score { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.sg-score .on { display: none; }
.sg-score[data-on] .on { display: inline; }
.sg-score[data-on] .off { display: none; }
.sg-score .off { color: var(--muted); font-size: .72rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sg-score.won[data-on] { color: var(--good); }
.sg-marks { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .sg-row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .sg-marks { grid-column: 2 / -1; }
}

/* Pages in the top bar */
/* One line whatever is in it (a long favorite team, a sync running, the Settings gear): only a
   narrow window lets it wrap. */
.top { gap: 12px 12px; flex-wrap: nowrap; }
.top .tools { flex-wrap: nowrap; }
.top .mark, .top .fav, .top .fav .btn { flex: none; white-space: nowrap; }
.top .fav .btn { padding-inline: 10px; }
@media (max-width: 1080px) { .top, .top .tools { flex-wrap: wrap; } }
.top-nav { display: flex; gap: 2px; margin-right: auto; white-space: nowrap; }
.top-nav a { font-weight: 600; font-size: .9rem; color: var(--muted); padding: 7px 5px; border-radius: 4px; }
.top-nav a:hover { color: var(--fg); background: var(--surface-2); }
.top-nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
/* A team's logo beside its name (team_logo): as tall as the text; on its own page, large. On the
   dark theme a thin light outline, so the black and navy ones (Nets, Spurs, Pacers) still show. */
.team-logo { display: inline-block; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: -0.25em; margin-right: .3em; }
/* In a big title (a game's page, a player's clips): a little under the letters' height, close to them. */
h1 .team-logo { width: .8em; height: .8em; margin-right: .14em; vertical-align: -.04em; }
/* On the team's page, beside its name, as tall as its two lines. */
.tm-title { display: flex; align-items: center; gap: 18px; }
.team-logo.large { width: 96px; height: 96px; margin: 0; vertical-align: 0; flex: none; }
@media (max-width: 640px) { .team-logo.large { width: 64px; height: 64px; } }
:root.dark .team-logo { filter: drop-shadow(0 0 .5px rgb(255 255 255 / .85)) drop-shadow(0 0 .5px rgb(255 255 255 / .85)); }
/* On Teams, before the city, a little taller than its letters (the name fills the tile's width). */
.tm-name .team-logo { width: 1.7em; height: 1.7em; vertical-align: -.55em; margin-right: .4em; filter: none; }
/* Your team's shortcut in the top bar: its logo after its name. */
.btn .team-logo { margin: 0 0 0 .15em; }
/* The games to catch up on, beside Games: a quiet gray number, never an alarm. */
.top-nav a.nav-count { align-self: center; margin: 0 6px 0 -1px; padding: 1px 7px; font-size: .72rem; font-weight: 700; line-height: 1.5; border-radius: 999px;
  color: var(--muted); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.top-nav a.nav-count:hover { color: var(--fg); }
.top-nav a.nav-count[aria-current="page"] { color: var(--fg); box-shadow: none; border-radius: 999px; }
/* Wide enough for the longest names (Timberwolves, Trail Blazers), with Sync now an icon beside the
   others: the bar still keeps to one line with a favorite team in it. */
.top .pick { width: 150px; text-overflow: ellipsis; }
.top .tools { gap: 5px; }
.top .tools .btn { padding-inline: 13px; }

/* The favorite team's next game, hung under its button so the bar keeps its height. */
.fav { position: relative; display: inline-flex; }
.fav .next-game { position: absolute; top: calc(100% + 5px); left: 0; white-space: nowrap; font-size: .72rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.fav .next-game b { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

/* Watched-by-what colours, checked for colour-blind readers: full game, long recap, short recap. */
:root { --c-full: #2f6fd6; --c-long: #e8590c; --c-short: #0f9b8e; }
:root.dark { --c-full: #4f80e0; --c-long: #e65f24; --c-short: #1e9e90; }

/* Stats */
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); }
.st-legend span, .st-tip span { display: inline-flex; align-items: center; gap: 6px; }
.st-legend i, .st-tip i { width: 10px; height: 10px; border-radius: 2px; }
.st-full { background: var(--c-full); } .st-long { background: var(--c-long); } .st-short { background: var(--c-short); }
.st-chart { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 16px 26px 36px; }
.st-peak { position: absolute; left: 12px; top: 14px; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.st-bars { height: 160px; display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 6px; align-items: end; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; }
.st-week { position: relative; height: 100%; display: flex; align-items: flex-end; outline: none; }
.st-stack { width: 100%; max-width: 44px; margin-inline: auto; display: flex; flex-direction: column-reverse; gap: 2px; }
.st-stack i { display: block; min-height: 2px; }
.st-stack i:last-child { border-radius: 4px 4px 0 0; }
.st-week em { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.st-tip { display: none; position: absolute; z-index: 5; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); border-radius: 4px; padding: 8px 10px; font-size: .74rem; white-space: nowrap; flex-direction: column; gap: 3px; }
.st-tip b { font-weight: 600; }
.st-week:hover .st-tip, .st-week:focus-visible .st-tip { display: flex; }
.st-week:hover .st-stack, .st-week:focus-visible .st-stack { filter: brightness(1.1); }
.st-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 24px; }
.st-team { display: grid; grid-template-columns: 6px 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 4px; }
.st-team:hover { background: var(--surface-2); }
.st-team .sw { width: 6px; height: 22px; border-radius: 2px; }
.st-team b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; }
.st-teams li.mine .st-team { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.st-bar { display: flex; gap: 2px; height: 10px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.st-bar i { display: block; height: 100%; }
.st-recap { background: color-mix(in srgb, var(--c-full) 40%, var(--surface-2)); }
.st-num { font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; text-align: right; display: grid; }
.st-num small { font-size: .7rem; font-weight: 400; color: var(--muted); }

/* Season calendar: one hue, light to dark with the number of videos watched that day. */
.st-cal-wrap { overflow-x: auto; scrollbar-width: thin; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px 16px 14px; }
.st-cal { display: flex; gap: 3px; width: max-content; }
.st-cal-week { position: relative; display: grid; grid-template-rows: repeat(7, 13px); gap: 3px; }
.st-cal-week em { position: absolute; top: -18px; left: 0; font-style: normal; font-size: .66rem; color: var(--muted); white-space: nowrap; }
.st-cal i, .st-scale i { display: block; width: 13px; height: 13px; border-radius: 3px; }
.st-scale { align-items: center; gap: 4px; }
.st-scale i { width: 11px; height: 11px; }
.l0 { background: var(--surface-2); }
.l1 { background: color-mix(in srgb, var(--c-full) 30%, var(--surface-2)); }
.l2 { background: color-mix(in srgb, var(--c-full) 55%, var(--surface-2)); }
.l3 { background: color-mix(in srgb, var(--c-full) 80%, var(--surface-2)); }
.l4 { background: var(--c-full); }
.st-cal i.later { opacity: .45; }
.st-cal i.out { visibility: hidden; }
.st-cal i.today { outline: 2px solid var(--fg); outline-offset: 1px; }

/* Goals */
.st-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.st-goal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.st-goal > div { display: grid; gap: 3px; }
.st-goal > div > b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.st-goal > div > span { font-size: .8rem; color: var(--muted); }
.st-goal small { font-size: .74rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.st-goal.done { border-color: var(--accent); }
.st-goal.done small { color: var(--accent); }
/* Each goal's progress, as a ring. */
.db-goal-ring { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.db-goal-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.db-goal-ring b { position: relative; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.st-goal.done .db-goal-ring b { color: var(--accent); font-size: 1.1rem; }

/* Teams */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tm-tile { position: relative; display: grid; gap: 4px; min-height: 120px; padding: 14px 16px; border-radius: 6px; overflow: hidden; background: var(--a); color: var(--ai); transition: transform .15s; }
.tm-tile:hover { transform: translateY(-2px); }
.tm-tile.mine { outline: 3px solid var(--accent); outline-offset: 2px; }
.tm-abbr { position: absolute; right: 10px; bottom: -8px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 4rem; line-height: 1; opacity: .18; }
.tm-name { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; display: grid; }
/* On one line whatever the fonts (--display-fit, FontPair): Trail Blazers fills the narrowest tile. */
.tm-name b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: calc(1.6rem * var(--display-fit, 1)); white-space: nowrap; letter-spacing: .01em; opacity: 1; line-height: 1.05; }
.tm-count { margin-top: auto; font-size: .76rem; font-weight: 600; opacity: .85; position: relative; }

/* Channels: show titles are long sentences, so they stay in the body font, unlike the matchups. */
/* The whole title, however long: never cut. */
.cv-title { font-weight: 600; line-height: 1.3; margin-top: 4px; overflow-wrap: anywhere; }
.cv-teams { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cv-team { font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 2px; background: var(--a); color: var(--ai); }
/* How far a started show got: the accent over a faint track the width of the picture, as on
   YouTube, so even a few minutes in reads as a beginning. */
.cv-progress { position: absolute; z-index: 2; inset: auto 0 0 0; height: 5px; background: linear-gradient(to right, var(--accent) max(var(--p), 6px), rgb(255 255 255 / .35) max(var(--p), 6px)); }
/* TrashTalk's shows, cut as the Archive Room's cards and as wide, in its rows and grids: the
   picture with its length, the day, title and teams under it, Mark as watched at the foot. Every
   card of a row or a grid line shares its rows (subgrid), so the day, title, teams and foot each
   start on one line across them: a two-line title's teams as low as a three-line one's. No lift on
   hover (a row scrolls across, and would clip it at the top): the picture brightens, as the room's. */
.cv-row { grid-template-rows: repeat(5, auto); row-gap: 0; }
.cv-row > li { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.cv-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
.cv-grid > .cv-card { margin-bottom: 16px; }
.cv-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 0; }
.cv-card .ar-meta { display: contents; }
.cv-card .ar-link { grid-row: 1; margin-bottom: 10px; }
.cv-card .ar-meta > * { align-self: start; }
.cv-card .day { grid-row: 2; margin: 0 2px 2px; color: var(--muted); }
.cv-card .cv-title { grid-row: 3; margin: 0 2px; }
.cv-card .cv-teams { grid-row: 4; margin: 6px 2px 0; }
.cv-card .foot { grid-row: 5; padding-top: 12px; }
.cv-art { background: var(--board); }
.cv-art .thumb { aspect-ratio: auto; }
.card.seen .ar-link:hover .thumb { filter: saturate(.18) brightness(.7); }
.cv-more { display: flex; justify-content: center; margin-top: 24px; }
/* A show's page: the video as large as the window lets it be with its title and buttons under it
   (--chrome: the top bar and those), centred across, and the whole centred in the height left
   under the top bar. The player itself (video_dock.js) follows .cv-screen. */
.cv-player { --chrome: 320px; display: grid; gap: 18px; align-content: center; width: min(100%, calc((100dvh - var(--chrome)) * 16 / 9)); min-height: calc(100dvh - 110px); margin-inline: auto; }
.cv-screen { aspect-ratio: 16 / 9; width: 100%; background: var(--board); border-radius: 4px; overflow: hidden; }
.cv-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.cv-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px 24px; }
.cv-info h1 { font-size: 1.4rem; font-weight: 600; line-height: 1.25; margin-top: 6px; }
/* Level with the title (its last line when it wraps): the buttons' bottom on its baseline, the
   gap under that line's letters made up for (measured in WebKit). */
.cv-acts { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-end; margin-bottom: 5.7px; }
/* A show's: the buttons up on the channel and date's line, on the right; the title the whole width
   under them, so a long one stays on one line; then where it stands in its list. On a narrow
   window, one under the other, the buttons last. */
.cv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "day acts" "title title" "queue queue"; align-items: center; gap: 2px 24px; }
.cv-top > div:first-child { display: contents; }
.cv-top .day { grid-area: day; }
.cv-top h1 { grid-area: title; margin-top: 0; }
.cv-top .cv-queue { grid-area: queue; }
.cv-top .cv-acts { grid-area: acts; align-self: center; justify-content: flex-end; margin-bottom: 0; gap: 6px; }
/* Small, as the cards' (.mini): they sit on a line of small capitals. */
.cv-top .btn { font-size: .82rem; padding: 6px 12px; }
@media (max-width: 700px) {
  .cv-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "day" "title" "queue" "acts"; gap: 6px; }
  .cv-top .cv-acts { justify-content: flex-start; margin-top: 8px; }
}

/* Flash */
.toast { position: fixed; z-index: 60; left: 50%; top: 74px; transform: translateX(-50%); background: var(--fg); color: var(--bg); font-weight: 600; font-size: .95rem; padding: 12px 20px; border-radius: 4px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 30px rgb(0 0 0 / .35); animation: toast-in .25s both, toast-out .3s 3s forwards; }
/* A failure stays longer, to be read. */
.toast.alert { background: var(--bad); color: var(--bg); animation: toast-in .25s both, toast-out .3s 6s forwards; }
/* A sync running in the background: the message stays until the page reloads with the result. */
.toast.waiting { animation: toast-in .25s both; }
/* Its result, in the same place: it does not come in again, it only goes. */
.toast.settled { animation: toast-out .3s 3s forwards; }
.toast.alert.settled { animation: toast-out .3s 6s forwards; }
.toast { display: inline-flex; align-items: center; gap: 10px; }
/* On a phone or a tablet: as long as its message, up to the screen's width, rather than wrapping at
   half of it (centered from the middle, it was given only the right half). A Mac's stays as it was. */
@media (max-width: 640px), (hover: none) { .toast { width: max-content; max-width: calc(100vw - 32px); } }
/* The sync running: a ring that turns. */
.toast-spin {
  content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .75s linear infinite; }
/* Sync in the top bar: its arrows, in the accent, turn while a sync runs. */
.sync-btn { color: var(--accent); }
.top .sync-btn .ti { display: block; }
.sync-btn.is-syncing .ti, form[aria-busy="true"] .sync-btn .ti { animation: spin 1s linear infinite; }
/* Done: a check that draws itself (a cross on failure). */
.toast-icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--good); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .45s .2s ease-out forwards; }
.toast.alert .toast-icon { stroke: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .toast-spin, .sync-btn .ti { animation-duration: 2s; } .toast-icon { animation: none; stroke-dashoffset: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes toast-out { to { opacity: 0; visibility: hidden; } }

@media (max-width: 820px) {
  .night { grid-template-columns: minmax(0, 1fr); }
  .cta { min-width: 0; }
}
/* The marathon queue stays beside the player down to small windows; it drops its posters to fit. */
@media (min-width: 641px) and (max-width: 900px) {
  .q { grid-template-columns: minmax(0, 1fr) auto; }
  .q .poster, .q .thumb { display: none; }
}
@media (max-width: 640px) {
  .s-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .shell { padding-inline: 16px; gap: 30px; }
  .stage { padding-inline: 16px; }
  .s-mode span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Spoiler mask for any block: .on shows once the Spoiler-free switch is off, .off until then. */
.masked:not([data-on]) .on, .masked[data-on] .off { display: none; }
/* The Players page, all behind the switch: its sections spaced as on the page itself. */
.pl-all { display: flex; flex-direction: column; gap: 36px; }
/* A player's country, small after his team. */
/* The name and the country beside it: the name gives way first. */
.pl-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pl-name b { min-width: 0; }
/* In the narrow leader cards the name is never cut: it goes on two lines, and the country under
   it when there is no room beside it. */
.pl-leaders .pl-name { flex-wrap: wrap; row-gap: 0; }
.pl-leaders .pl-who b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.pl-from { flex: none; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.pl-dot { flex: none; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }

/* Standings */
.st-confs { display: flex; flex-direction: column; gap: 36px; }
.st-scroll { overflow-x: auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.st-table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.st-table th, .st-table td { padding: 9px 10px; text-align: right; }
.st-table thead th { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.st-table thead th:nth-child(2), .st-table tbody th { text-align: left; width: 100%; }
.st-table tbody tr + tr > * { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.st-table tbody tr:hover > * { background: var(--surface-2); }
/* The team column stays in view while the numbers scroll sideways. */
.st-table tbody th, .st-table thead th:nth-child(2) { position: sticky; left: 0; background: var(--surface); }
.st-seed { width: 2.2rem; color: var(--muted); font-weight: 600; }
.st-team { display: inline-flex; align-items: center; gap: 9px; padding: 0; line-height: 1.2; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.st-team:hover { color: var(--accent); }
.st-team .sw { width: 5px; height: 16px; border-radius: 1px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.st-strong { font-weight: 700; }
.st-win { color: var(--good); font-weight: 600; }
.st-loss { color: var(--muted); font-weight: 600; }
.st-table tr.mine > * { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.st-table tr.mine .st-seed { box-shadow: inset 3px 0 0 var(--accent); }
/* Under 6th: the playoff places; under 10th: the play-in. */
.st-table tr.cut-6 > * { border-bottom: 2px solid var(--fg); }
.st-table tr.cut-10 > * { border-bottom: 2px dashed var(--muted); }
.st-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: .8rem; margin-top: -18px; }
.st-key { display: inline-block; width: 22px; border-top: 2px solid var(--fg); }
.st-key.pi { border-top: 2px dashed var(--muted); margin-left: 12px; }
.tm-record { font-size: .8rem; font-weight: 700; letter-spacing: .02em; position: relative; font-variant-numeric: tabular-nums lining-nums; }
.tm-standing { margin-top: 16px; font-size: .86rem; font-weight: 600; color: var(--muted); }
/* The record on a scoreboard bug: LED digits, the seed in the team's colors, the streak in green or red. */
.sd-board { display: inline-flex; align-items: stretch; border-radius: 4px; overflow: hidden; background: var(--board); color: var(--board-fg); transition: transform .15s; }
.sd-board:hover { transform: translateY(-2px); }
.masked:not([data-on]) .sd-board.on { display: none; }
.sd-board > * { display: flex; align-items: center; padding: 6px 12px; }
.sd-record { font-family: var(--font-led); font-weight: 900; font-size: 1.35rem; color: var(--led); letter-spacing: .04em; font-variant-numeric: tabular-nums lining-nums; }
.sd-seed { background: var(--a); color: var(--ai); font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; }
.sd-streak { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; }
.sd-streak.won { color: #3ee08a; }
.sd-streak.lost { color: #ff6b5e; }
/* On a dark page, the bug turns white so it stands out. */
:root.dark .sd-board { background: #fff; color: #10131f; }
:root.dark .sd-record { color: #10131f; }
:root.dark .sd-streak.won { color: #128a50; }
:root.dark .sd-streak.lost { color: #c22a2a; }

/* A team's name that opens its season page: it turns orange on hover. */
/* Its logo and its name never apart, on a line of their own if need be. */
.team-link { transition: color .15s; white-space: nowrap; }
.team-link:hover { color: var(--accent); }

/* What YouTube is really playing, next to the speed: brighter from 1080p up. */
.s-bar .quality { font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--board-line); color: var(--board-muted); }
.s-bar .quality[hidden] { display: none; }
.s-bar .quality.hd { color: var(--board-fg); border-color: var(--board-muted); }

/* The night's top plays: one wide card under the recaps. */
.top-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.top-card .play .thumb { aspect-ratio: 16 / 9; }
.top-card.seen .thumb { filter: saturate(.18) brightness(.62); }
.top-thumb { display: block; }
.top-hidden { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--board); color: var(--board-muted);
  font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 2rem; text-transform: uppercase; letter-spacing: .02em; }
.top-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-self: stretch; }
.top-body h3 { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: .95; text-transform: uppercase; margin-top: 6px; }
.top-body .day { color: var(--fg); }
.top-body .foot { margin-top: auto; padding-top: 12px; justify-content: flex-end; }
.top-card.seen .mini { background: transparent; color: var(--muted); }
@media (max-width: 640px) { .top-card { grid-template-columns: 1fr; } }
.s-queue .q-switch { color: var(--board-muted); font-size: .8rem; padding: 2px 0 8px; }
.stage:is(:fullscreen, .faux-fs) .s-queue .q-switch { display: none; }

/* League Pass menu, after the opponent: a game on NBA.com, full, condensed or live. */
.lp { position: relative; flex: none; }
/* Sized like the .mini buttons it sits next to. */
.lp summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; line-height: 1.5; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; white-space: nowrap; user-select: none; }
.lp summary::-webkit-details-marker { display: none; }
.lp summary:hover, .lp[open] summary { background: var(--surface-2); }
.lp summary svg { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.lp[open] summary svg { transform: rotate(180deg); }
.lp.live summary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lp.live summary:hover, .lp.live[open] summary { background: var(--accent); filter: brightness(1.08); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, #fff 35%, transparent); animation: lp-pulse 1.4s ease-in-out infinite; }
@keyframes lp-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .lp-dot, .tv-link i, .tab-grid a.tab-live i { animation: none; } }
.lp-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 250px; display: grid; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.lp-menu a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 4px; }
.lp-menu a:hover { background: var(--surface-2); }
.lp-menu b { font-family: var(--font-body); font-size: .86rem; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.lp-menu small { font-size: .74rem; color: var(--muted); }

/* Theme button: only the icon of the mode in use. */
.top .tools .theme-btn { width: 30px; padding-inline: 0; border-color: transparent; background: transparent; }
.top .tools .theme-btn:hover { background: var(--surface-2); }
.theme-btn .ti { width: 17px; height: 17px; display: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme-btn .ti .fill { fill: currentColor; stroke: none; }
.theme-btn .ti-dark .fill { stroke: currentColor; stroke-width: 1.2; }
.theme-btn[data-mode="light"] .ti-light, .theme-btn[data-mode="system"] .ti-system, .theme-btn[data-mode="dark"] .ti-dark { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The Watch menu in the top bar: Channels and TV. */
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--muted); padding: 7px 7px; border-radius: 4px; cursor: pointer; user-select: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { color: var(--fg); background: var(--surface-2); }
.nav-menu summary[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-menu summary svg { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-menu[open] summary svg { transform: rotate(180deg); }
.nav-menu-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 170px; display: grid; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.top-nav .nav-menu-list a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 4px; color: var(--fg); }
.top-nav .nav-menu-list a:hover { background: var(--surface-2); }
.top-nav .nav-menu-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0; }
.nav-menu-list b { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; }
.nav-menu-list small { font-size: .74rem; color: var(--muted); font-weight: 500; }
/* The Watch menu (WatchMenu): three columns, Live, Shows and Listen, each under its small heading,
   the Archive Room across its foot. One column under the other on a narrow window. */
.nav-menu-list.watch-menu { gap: 1px; width: min(280px, calc(100vw - 32px)); padding: 8px; }
.top-nav .watch-menu small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nav .watch-menu .tv-link small { padding-left: 13px; }
.top-nav .watch-menu .wm-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wm-line em { flex: none; font-style: normal; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
/* The TV guide, lit under the channels. */
.top-nav .watch-menu .wm-guide { margin-top: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 6px; }
.top-nav .watch-menu .wm-guide b { color: var(--accent); }
/* The Archive Room, a quiet line under a rule at the foot of TV. */
.top-nav .watch-menu .wm-archive { position: relative; margin-top: 11px; border-radius: 6px; }
.wm-archive::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; border-top: 1px solid var(--line); }
.top-nav .watch-menu .wm-archive small { padding-left: 22px; }
.wm-archive svg, .wm-guide svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-nav .watch-menu .wm-guide small { padding-left: 22px; }
/* What is on now, whole however long: it wraps rather than being cut. */
.top-nav .watch-menu .tv-link small { white-space: normal; overflow: visible; text-overflow: clip; }
.tv-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); animation: lp-pulse 1.4s ease-in-out infinite; }

/* TV: the player, beside the page (tv_dock.js). Large over the channel page's stage, else in a corner. */
.tv-stage { min-height: 200px; }
.tv-dock { position: absolute; z-index: 30; display: flex; flex-direction: column; gap: 14px; color: var(--fg); font-family: var(--font-body); }
/* Large on its page, under the top bar's menus (.nav-menu-list, 20), which open over it; in its
   corner, over everything. */
.tv-dock:not(.mini) { z-index: 15; }
.tv-dock[hidden] { display: none; }
.tv-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--board-line); border-radius: 6px; overflow: hidden; }
.tv-screen iframe, .tv-screen #tv-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-mini-only { display: none !important; }
.tv-dock:not(.mini) .tv-mini-name { display: none; }
/* In a corner, the same card as League Pass's (TipOff.swift: 384 by 216, the bar 52 under it): the
   video edge to edge, the name at the left, the buttons at the right, 12 px in from the sides. Its
   "mini" class is not the buttons' .mini: none of their padding, border or background. No line
   around it: the match and the card, its shadow apart from the page. */
.tv-dock.mini { position: fixed; right: 16px; bottom: 16px; width: min(384px, calc(100vw - 32px)); gap: 0; padding: 0; font-size: inherit; font-weight: inherit; background: var(--surface); border: 0; border-radius: 8px; box-shadow: 0 12px 32px rgb(0 0 0 / .28); overflow: hidden; }
/* WebKit does not always clip a video frame (YouTube's) to its box's rounded corners: the screen
   clips it itself, to the card's top corners, or square ones show there in another color. */
.tv-dock.mini .tv-screen { border: 0; border-radius: 8px 8px 0 0; clip-path: inset(0 round 8px 8px 0 0); }
/* In the corner, the video at the size it had on the channel's page, drawn smaller (tv_dock.js). */
.tv-dock.mini .tv-screen #tv-player { inset: auto; left: 0; top: 0; width: var(--tv-w, 100%); height: var(--tv-h, 100%); transform: scale(var(--tv-scale, 1)); transform-origin: 0 0; }
.tv-dock.mini .tv-screen:fullscreen #tv-player { inset: 0; width: 100%; height: 100%; transform: none; }
.tv-dock.mini .tv-mark { right: 8px; top: 7px; }
.tv-dock.mini .tv-bar { flex-wrap: nowrap; box-sizing: border-box; height: 52px; padding: 0 12px; gap: 8px; }
.tv-dock.mini .tv-now { min-width: 0; }
.tv-dock.mini .tv-now .eyebrow { display: none; }
.tv-dock.mini .tv-now h2 { font-size: .95rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-dock.mini .tv-acts { flex: none; gap: 6px; }
.tv-dock.mini .tv-acts .btn { padding: 5px 9px; font-size: .78rem; }
/* The show's speed chip, as tall as the buttons beside it and level with them. */
.tv-acts .speed { align-self: stretch; height: auto; padding: 0 9px; }
/* A show played from a list (video_dock.js): what starts next, counting down, beside Cancel. */
.video-dock .up-next { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; align-self: center; }
.video-dock .up-next[hidden] { display: none; }
.cv-queue { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
/* The keys, under the show as under a recap, in the page's colors (not the stage's). */
.cv-keys { color: var(--muted); text-align: left; margin: -8px 0 0; }
.tv-dock.mini .tv-mini-only { display: inline-flex !important; }
/* Moved by its bar, resized by its grip (corner.js). While it moves, the video lets the mouse go by. */
.tv-dock.mini .tv-bar { cursor: grab; user-select: none; -webkit-user-select: none; }
.tv-dock.mini .tv-bar :is(a, button) { cursor: pointer; }
.tv-dock.moving { box-shadow: 0 18px 44px rgb(0 0 0 / .36); }
.tv-dock.moving .tv-bar { cursor: grabbing; }
.tv-dock.moving iframe { pointer-events: none; }
.corner-grip { display: none; }
/* The grip: unseen, 12 px at the corner away from the window's, only its cursor says it is there. */
.tv-dock.mini .corner-grip { display: block; position: absolute; z-index: 6; width: 12px; height: 12px; }
.tv-dock.mini[data-grip="tl"] .corner-grip { top: 0; left: 0; cursor: nwse-resize; }
.tv-dock.mini[data-grip="tr"] .corner-grip { top: 0; right: 0; cursor: nesw-resize; }
.tv-dock.mini[data-grip="bl"] .corner-grip { bottom: 0; left: 0; cursor: nesw-resize; }
.tv-dock.mini[data-grip="br"] .corner-grip { bottom: 0; right: 0; cursor: nwse-resize; }
.tv-dock.mini [data-tv="unmute"] { display: none; }
/* The channel's logo, small, above the live mark in the top right corner. */
.tv-mark { position: absolute; z-index: 2; right: 12px; top: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; pointer-events: none; }
.tv-bug { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / .7); opacity: .9; line-height: 1; }
.tv-bug b { color: var(--accent); }
.tv-live { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgb(0 0 0 / .55); padding: 3px 8px; border-radius: 3px; }
.tv-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d3d; animation: lp-pulse 1.4s ease-in-out infinite; }
.tv-live.off { opacity: .5; }
.tv-live.off i { animation: none; background: #9aa2bb; }
.tv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.tv-now h2 { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 2.2rem); line-height: 1; text-transform: uppercase; margin-top: 8px; }
.tv-acts { display: flex; gap: 8px; }
.tv-acts [hidden] { display: none !important; }

/* TV: the guide. */
.tv-guide { display: grid; gap: 8px; }
.tv-guide li { display: grid; grid-template-columns: 4.2rem 112px minmax(0, 1fr); align-items: center; gap: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.tv-at { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums lining-nums; }
.tv-guide img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: var(--board); }
.tv-name { display: grid; gap: 2px; min-width: 0; }
.tv-name b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-name small { color: var(--muted); font-size: .78rem; }
@media (max-width: 640px) { .tv-guide li { grid-template-columns: 3.4rem minmax(0, 1fr); } .tv-guide img { display: none; } }

/* Players: the MVP race, the leaders and the night's best lines. */
.pl-mvp, .pl-lines { display: grid; gap: 8px; }
.pl-mvp li, .pl-lines li { display: grid; grid-template-columns: 2rem 56px minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(120px, 1fr); align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.pl-lines li { grid-template-columns: 2rem minmax(0, 1.2fr) minmax(0, 1.6fr) 4rem auto 5.5rem; }
/* Every race's rows as tall as the Most Improved's, which have a line more (the gain). */
.pl-mvp li { min-height: 71px; }
.pl-recap { justify-self: end; }
.pl-mvp li.first { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.pl-rank { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.6rem; color: var(--muted); text-align: center; }
.pl-mvp li.first .pl-rank { color: var(--accent); }
.pl-mvp img:not(.team-logo) { width: 56px; height: 42px; object-fit: cover; object-position: top; border-radius: 4px; background: var(--surface-2); }
.pl-who { display: grid; gap: 2px; min-width: 0; }
.pl-who b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Instrument Sans' space is narrow (a fifth of an em): "1 game" read as "1game" this small. */
.pl-who small { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 600; word-spacing: .12em; }
.pl-who .sw, .pl-leaders .sw { width: 4px; height: 12px; border-radius: 1px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.pl-line { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-line i { font-style: normal; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.pl-fg { font-family: var(--font-body); font-size: .76rem; font-weight: 600; color: var(--muted); }
.pl-index { display: grid; gap: 5px; }
.pl-index b { font-family: var(--font-led); font-weight: 900; font-size: 1.1rem; color: var(--fg); }
.pl-index i { display: block; height: 6px; border-radius: 3px; background: var(--accent); }
.pl-gs { font-family: var(--font-led); font-weight: 900; font-size: 1.1rem; text-align: right; }
.pl-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
/* Each card's title and five players on the rows the cards beside it share (subgrid): a name on
   two lines makes its row taller in all of them, so names, pictures and the rule under the leader
   stay level from card to card. */
.pl-leaders article { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 4px; align-content: start; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 12px 14px; }
.pl-leaders article > ol { display: contents; }
.pl-leaders h3 { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pl-leaders li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 3px 0; }
.pl-leaders li.first { grid-template-columns: 52px minmax(0, 1fr) auto; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pl-leaders li.first img:not(.team-logo) { width: 52px; height: 40px; object-fit: cover; object-position: top; border-radius: 4px; background: var(--surface-2); }
.pl-leaders li:not(.first) .pl-who b { font-family: var(--font-body); font-size: .86rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pl-val { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums lining-nums; }
.pl-leaders li.first .pl-val { font-size: 1.6rem; color: var(--accent); }
@media (max-width: 760px) {
  .pl-mvp li { grid-template-columns: 1.6rem 48px minmax(0, 1fr) auto; }
  .pl-mvp .pl-index { grid-column: 3 / -1; }
  .pl-lines li { grid-template-columns: 1.6rem minmax(0, 1fr) auto auto; }
  .pl-lines .pl-line { grid-column: 2 / -1; grid-row: 2; }
}

/* Reddit: the day's top posts, two subreddits side by side. */
.rd-feeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; align-items: start; }
.rd-list { display: grid; gap: 8px; }
.rd-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.rd-list li.no-thumb { grid-template-columns: minmax(0, 1fr); }
.rd-thumb { position: relative; display: block; width: 88px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.rd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rd-thumb .tri { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--board); display: grid; place-items: center; }
.rd-thumb .tri::before { content: ""; border-left: 8px solid var(--board-fg); border-block: 5px solid transparent; margin-left: 2px; }
.rd-body { display: grid; gap: 6px; min-width: 0; }
.rd-title { font-weight: 600; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.rd-title:hover { color: var(--accent); }
.rd-body small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: .76rem; }
.rd-body small a:hover { color: var(--accent); }
.rd-tag { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 3px; padding: 0 5px; }
.rd-tag.news { color: var(--muted); }
/* Award races: tabs as a segmented control, then the race. */
.seg button { padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.pl-race[hidden] { display: none; }
.pl-about { color: var(--muted); font-size: .84rem; margin-bottom: 10px; }
.pl-about b { color: var(--fg); }
.pl-gain { display: block; font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--good); margin-top: 2px; }
.rd-hint { color: var(--muted); font-size: .86rem; margin-top: 12px; }
/* Classics: a shield over the frame keeps YouTube's title and buttons away; a band covers the
   title YouTube shows on a paused video. */
.tv-shield { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.tv-veil { position: absolute; inset: 0 0 auto; height: 72px; z-index: 1; background: #000; }
.tv-veil[hidden] { display: none; }
/* In the corner, YouTube's title is drawn as small as the video: the band over it too. */
.tv-dock.mini .tv-veil { height: calc(72px * var(--tv-scale, 1)); }
/* The TV in a browser (tv_dock.js: .chrome-clipped), as the recaps' player: a TV-sized frame drawn
   at the picture's size (--yt-s), centred, on its page, in its corner and fullscreen alike, its title
   strips above and below cut off. Above the corner's own drawing (--tv-scale), which is Tip-Off.app's. */
.tv-dock .tv-screen.chrome-clipped #tv-player { inset: auto !important; left: 50% !important; top: 50% !important; width: var(--yt-w) !important; height: calc(var(--yt-w) * 9 / 16 + 2 * var(--yt-cut)) !important; max-width: none;
  transform: translate(-50%, -50%) scale(var(--yt-s, .28)) !important; transform-origin: 50% 50% !important; clip-path: inset(var(--yt-cut) 0); }
/* A TrashTalk show: on its page, the screen alone (its title and buttons are the page's own); in
   the corner, as the TV's. */
.video-dock:not(.mini) .tv-bar { display: none; }
/* A show played from its stream (stream_player.js): the picture fills the screen as YouTube's does. */
.video-dock video#video-player { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
/* A show YouTube will not play here (video_dock.js): over the player, the way to YouTube. */
.video-blocked { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; background: #000; color: #fff; text-align: center; }
.video-blocked p { max-width: 36ch; font-size: .95rem; line-height: 1.4; }
.video-dock.mini .video-blocked p { display: none; }
.video-dock:not(.mini) .tv-screen { border: 0; border-radius: 4px; }
.tv-dock.mini .tv-screen #video-player { position: absolute; inset: auto; left: 0; top: 0; width: var(--tv-w, 100%); height: var(--tv-h, 100%); transform: scale(var(--tv-scale, 1)); transform-origin: 0 0; }
.tv-dock.mini .tv-screen:fullscreen #video-player { width: 100%; height: 100%; transform: none; }
.tv-mark { z-index: 3; }
.tv-dock.mini .tv-big-only { display: none !important; }
.tv-screen:fullscreen { border: 0; border-radius: 0; }
/* Still for a moment in fullscreen, no pointer (idle_cursor.js). */
.tv-screen.idle:fullscreen, .tv-screen.idle:fullscreen * { cursor: none !important; }
/* Under the video, on the right with the buttons: what YouTube is playing. */
.tv-quality { align-self: center; font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; color: var(--fg); border: 1px solid var(--muted); padding: 3px 8px; border-radius: 3px; font-variant-numeric: tabular-nums lining-nums; }
.tv-dock.mini .tv-quality { display: none; }
.tv-quality[hidden] { display: none; }
/* Fullscreen, beside it: a chip its size, as in the recap player. */
/* Fullscreen and Back to live, in the accent: the two things to press there. */
.tv-chip { align-self: center; font: inherit; font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-indent: .06em; text-transform: uppercase;
  color: var(--accent-ink); border: 1px solid var(--accent); padding: 3px 8px; border-radius: 3px; background: var(--accent); }
.tv-chip:hover { filter: brightness(1.1); }
/* Play it on TV / Back to the computer (tv_dock.js), beside the quality tag and drawn as it is. */
.tv-cast { align-self: center; box-sizing: border-box; display: inline-grid; place-items: center; width: 32px; height: 22px; padding: 0; margin: 0;
  border: 1px solid var(--muted); border-radius: 3px; background: transparent; color: var(--fg); cursor: pointer; }
.tv-cast:hover { color: var(--accent); border-color: var(--accent); }
.tv-cast[hidden] { display: none; }
/* Not in the corner player, nor while the picture is popped out (picture in picture). */
.tv-dock.mini .tv-cast, .tv-dock.pip .tv-cast { display: none; }
.tv-cast svg { width: 16px; height: 16px; }

/* A section heading that folds its section away (collapse_controller.js). */
.fold { display: inline-flex; align-items: center; gap: 8px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.fold svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: transform .15s; }
.fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
.fold:hover svg { color: var(--accent); }
.board[hidden] { display: none; }

/* A game under way on the night's board: its score behind the Spoilers switch, and how to watch. */
.bug.live { border-color: color-mix(in srgb, #ff4d3d 55%, var(--board-line)); }
.bug.live .st.tip { display: inline-flex; align-items: center; gap: 6px; color: var(--board-fg); }
.bug.live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d3d; animation: lp-pulse 1.4s ease-in-out infinite; }
.bug.live .st .on { display: none; }
.bug.live[data-on] .st .on { display: inline; }
.bug.live[data-on] .st .off { display: none; }
/* A game on now: a small Live button to League Pass, its box score beside it. */
.bug-live, .live-btn { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; background: var(--bad); color: #fff; }
.bug-live i, .live-btn i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lp-pulse 1.4s ease-in-out infinite; }
.bug-live:hover, .live-btn:hover { filter: brightness(1.12); }
.live-btn { border: 0; font-size: .74rem; padding: 6px 12px; }

/* A game's own page: its box score on a scoreboard panel. */
.gm-board { background: var(--board); color: var(--board-fg); border: 1px solid var(--board-line); border-radius: 6px; padding: 16px 18px; }
.gm-detail { font-family: var(--font-led); font-weight: 900; font-size: 1.1rem; color: var(--led); margin-bottom: 12px; }
/* The box score on its own page: the quarters as a small table, then each team's players in
   columns lined up, names to the left, figures to the right. */
.gm-board table { border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.gm-board th, .gm-board td { padding: 6px 0 6px 14px; text-align: right; white-space: nowrap; font-weight: 400; }
.gm-board th:first-child { padding-left: 0; text-align: left; }
.gm-board thead th { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--board-muted); border-bottom: 1px solid var(--board-line); }
.gm-board .box-line { margin-bottom: 22px; font-size: .95rem; }
.gm-board .box-line th:first-child { width: auto; min-width: 70px; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; color: var(--board-fg); }
.gm-board .box-line td { min-width: 34px; color: var(--board-muted); }
.gm-board .box-line td.pts { font-family: var(--font-led); font-weight: 900; color: var(--led); padding-left: 20px; }
.gm-board .box-scroll { margin-bottom: 22px; }
.gm-board .box-team { width: 100%; font-size: .86rem; }
.gm-board .box-team th:first-child { width: 190px; min-width: 190px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; color: var(--board-fg); background: var(--board); }
.gm-board .box-team thead th:first-child { font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em; color: var(--board-fg); }
.gm-board .box-team td { color: var(--board-muted); min-width: 38px; }
.gm-board .box-team td.pts { color: var(--led); font-weight: 600; }
.gm-board .box-team tbody tr + tr > * { border-top: 1px solid var(--board-2); }
.gm-board .box-team tr.bench > * { border-top: 1px solid var(--board-line); }
.gm-board .box-team tfoot > tr > * { border-top: 1px solid var(--board-line); font-weight: 600; color: var(--board-fg); }
.live-phase { display: inline-flex !important; align-items: center; gap: 6px; color: #ff4d3d !important; }
.live-phase i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lp-pulse 1.4s ease-in-out infinite; }
.bug-box { display: block; text-align: center; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--board-muted); }
.bug-box:hover { color: var(--board-fg); }

/* The bar above a game on League Pass, in Tip-Off.app. */
.lp-bar-page { margin: 0; overflow: hidden; background: var(--bg); }
.lp-bar { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.lp-back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 4px; }
.lp-back:hover { background: var(--surface-2); }
.lp-back svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-back .mark { font-size: 1.15rem; }
.lp-game { display: grid; justify-items: center; line-height: 1.1; }
.lp-teams { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.lp-teams i { color: var(--muted); font-style: normal; font-weight: 600; padding-inline: 2px; }
.lp-game small { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-acts { justify-self: end; }

/* A recap card's foot: the game on League Pass, then the tick. */
.foot-acts { display: inline-flex; align-items: center; gap: 6px; flex: none; }
/* A recap card: its buttons on the right, wrapping when the card is narrow. */
.card .foot-acts { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; flex: 0 1 auto; }
/* Its game's page, a plain link as on the scoreboards. */
.card-game { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.card-game:hover { color: var(--fg); }
/* What is on, next to On now, before its times: in the titles' face. */
.tv-now-name { color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; }
.tv-dock.mini .tv-now-name { display: none; }
/* Long channel names stay on one line in the Watch menu. */
.nav-menu-list b { white-space: nowrap; }
/* On now, the name and the times on one line, centred on each other. */
.tv-now .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tv-now .eyebrow .phase { margin-right: 0; }

/* The bar in a corner of Tip-Off (Tip-Off.app makes it narrow): like the channels' mini player. */
.lp-corner { display: none; height: 52px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; }
/* In a corner (Tip-Off.app says so, html.corner, at any width the corner is given). */
html.corner .lp-bar { display: none; }
html.corner .lp-corner { display: flex; cursor: grab; user-select: none; -webkit-user-select: none; }
html.corner .lp-corner :is(a, button) { cursor: pointer; }
@media (max-width: 520px) {
  .lp-bar { display: none; }
  .lp-corner { display: flex; }
}
.lp-corner-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.lp-corner-name b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: .95rem; text-transform: uppercase; white-space: nowrap; }
.lp-corner-name small { flex: none; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.lp-corner-acts { display: inline-flex; gap: 6px; flex: none; }
.lp-corner-acts .btn { padding: 5px 9px; font-size: .78rem; }

/* Dashboard (stats/show.html.erb): a scoreboard of the headline numbers, then charts drawn in CSS:
   donuts are conic gradients, the clock 24 bars turned round its centre. */
:root { --c-single: #8b93ab; --c-cond: #8e5bd6; --c-resume: #d99a0b; --c-live: #e5484d; --c-start: #d6589c; --c-east: #2f6fd6; --c-west: #e5484d; }
:root.dark { --c-single: #6f7894; --c-cond: #a07be6; --c-resume: #e9ad2a; --c-live: #ff6b6b; --c-start: #e874b0; --c-east: #4f80e0; --c-west: #ff6b6b; }

.db-board { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); background: var(--board); color: var(--board-fg); border: 1px solid var(--board-line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 40px rgb(7 8 13 / .22); }
.db-cell { display: grid; gap: 4px; align-content: center; padding: 22px 24px; }
.db-cell + .db-cell { border-left: 1px solid var(--board-line); }
.db-cell > span, .db-cell div > span { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--board-muted); }
.db-cell b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.db-cell b small { font-size: 1.1rem; color: var(--board-muted); font-style: italic; }
.db-cell > small, .db-cell div > small { font-size: .74rem; color: var(--board-muted); }
.db-ring-cell { grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.db-ring-cell > div { display: grid; gap: 4px; }
.db-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--board-line) 0); }
.db-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--board); }
.db-ring b { position: relative; font-size: 1.3rem; font-style: normal; }
.db-ring b small { font-size: .8rem; }
.db-mix { grid-column: 1 / -1; display: flex; gap: 2px; height: 6px; background: var(--board-line); }
.db-mix i { display: block; }

/* The way to Missed games, under the board. */
.db-missed { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); text-decoration: none; }
.db-missed:hover { background: var(--surface-2); }
.db-missed b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
.db-missed span { font-size: .84rem; color: var(--muted); }
.db-missed i { font-style: normal; font-size: 1.2rem; color: var(--muted); }
.db-cards { display: grid; gap: 12px; }
.db-donuts { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.db-when { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.db-teamcards { grid-template-columns: 1.5fr 1fr; margin-bottom: 12px; }
.db-card { display: grid; gap: 14px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.db-wide { grid-column: 1 / -1; }
.db-card h3 { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.db-none { margin: 0; color: var(--muted); font-size: .86rem; }
/* Games: Catch up, the missed games in a marathon, or in a while (index.html.erb). */
.catch-up { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.cu-head { display: grid; gap: 2px; }
.cu-head b { font-weight: 700; }
.cu-head small { color: var(--muted); font-size: .82rem; }
.cu-head small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cu-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cu-go, .cu-time { font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line); color: var(--fg); }
.cu-go:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cu-go:hover, .cu-time:hover { border-color: var(--accent); }
.cu-or { color: var(--muted); font-size: .82rem; margin: 0 2px 0 6px; }

/* Missed games: each night's marathons and Let these go (missed.html.erb). */
.ms-night { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 12px; }
.ms-night .s-btn { padding: 7px 14px; font-size: .84rem; border-color: var(--line); color: var(--fg); }
.ms-night .s-btn.hot { border-color: var(--accent); color: var(--accent-ink); }
.ms-let-go-form { margin-left: auto; }
.ms-let-go { font: inherit; font-size: .82rem; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ms-let-go:hover { color: var(--fg); }
.db-big { margin: 0; display: grid; gap: 2px; }
.db-big b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 2.4rem; line-height: 1; }
.db-big small { font-size: .78rem; color: var(--muted); }

.db-donut-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.db-donut { position: relative; flex: none; width: 172px; height: 172px; border-radius: 50%; display: grid; place-items: center; }
.db-donut::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); }
.db-donut span { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 0 30px; }
.db-donut b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.db-donut small { font-size: .66rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.db-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 150px; max-width: 340px; }
.db-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 2.6rem; align-items: center; gap: 8px; font-size: .84rem; }
.db-legend i { width: 10px; height: 10px; border-radius: 3px; }
.db-legend b { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.db-legend small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.db-facts { margin: 0; display: grid; gap: 10px; min-width: 140px; }
.db-facts div { display: grid; }
.db-facts dt { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.db-facts dd { margin: 0; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.4rem; line-height: 1.1; }

/* The 24-hour clock: midnight at the top, each hour's bar out from the face. */
.db-clock { position: relative; width: 240px; height: 240px; margin: 4px auto; border-radius: 50%; background: radial-gradient(circle, var(--surface-2) 0 41%, transparent 41.5%); }
.db-clock i { position: absolute; left: 50%; bottom: 50%; width: 8px; margin-left: -4px; height: calc(3px + var(--v) * 54px); border-radius: 4px;
  transform-origin: 50% 100%; transform: rotate(calc(var(--h) * 15deg)) translateY(-50px);
  background: var(--c-full); opacity: calc(.35 + var(--v) * .65); }
.db-clock i.peak { background: var(--accent); opacity: 1; }
.db-clock i.zero { background: var(--line); opacity: 1; }
.db-clock em { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: .62rem; color: var(--muted); font-variant-numeric: tabular-nums lining-nums;
  transform: translate(-50%, -50%) rotate(calc(var(--h) * 15deg)) translateY(-114px) rotate(calc(var(--h) * -15deg)); }
.db-clock-face { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-content: center; text-align: center; }
.db-clock-face b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.7rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; }
.db-clock-face small { font-size: .62rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.db-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 200px; align-items: end; }
.db-day { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; }
.db-day b { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; color: var(--muted); }
.db-day-bar { width: 100%; max-width: 34px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.db-day-bar i { display: block; width: 100%; min-height: 2px; background: var(--c-short); border-radius: 6px 6px 0 0; }
.db-day em { font-style: normal; font-size: .72rem; color: var(--muted); }
.db-day.peak b, .db-day.peak em { color: var(--fg); }
.db-day.peak .db-day-bar i { background: var(--accent); }

.db-delays { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.db-delays li { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) 1.8rem 2.4rem; align-items: center; gap: 8px; font-size: .8rem; }
.db-delays b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.db-delays small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.db-delay-bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.db-delay-bar i { display: block; height: 100%; border-radius: 5px; background: var(--good); opacity: calc(1 - var(--step) * .17); }

.db-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.db-podium li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-items: center; gap: 8px; }
.db-podium em { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.2rem; color: var(--muted); text-align: center; }
.db-podium li:first-child em { color: var(--accent); }
.db-podium-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 9rem; padding: 7px 12px; border-radius: 6px; background: var(--a); color: var(--ai);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); transition: filter .15s; }
.db-podium-bar:hover { filter: brightness(1.12); }
.db-podium-bar b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.db-podium-bar span { font-size: .78rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

.db-split { display: flex; gap: 3px; height: 18px; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.db-split i { display: block; }
.db-split .east, .db-split-legend .east { background: var(--c-east); }
.db-split .west, .db-split-legend .west { background: var(--c-west); }
.db-split-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.db-split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.db-split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.db-split-legend b { color: var(--fg); font-variant-numeric: tabular-nums lining-nums; }

/* All thirty teams, tinted by how much of each was watched. */
.db-teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.db-team { position: relative; display: grid; gap: 6px; padding: 12px 12px 10px 16px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden;
  background: color-mix(in srgb, var(--a) calc(var(--mix) * .3), var(--surface)); transition: transform .15s; }
.db-team::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--a); }
.db-team:hover { transform: translateY(-2px); }
.db-team b { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.db-team-num { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; display: flex; gap: 6px; align-items: baseline; }
.db-team-num small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.db-team-bar { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; }
.db-team-bar i { display: block; height: 100%; background: var(--a); }
.db-team.none { opacity: .55; }
.db-teams li.mine .db-team { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.db-records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.db-records li { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 10px; background: var(--board); color: var(--board-fg); border: 1px solid var(--board-line); }
.db-records span { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--board-muted); }
.db-records b { font-family: var(--font-led); font-weight: 900; font-size: 2rem; line-height: 1.1; color: var(--led); }
.db-records b.db-pair { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-size: 1.3rem; color: var(--board-fg); text-transform: uppercase; }
.db-pair i { width: 6px; height: 20px; border-radius: 2px; }
.db-records small { font-size: .74rem; color: var(--board-muted); }

@media (max-width: 760px) {
  .db-board { grid-template-columns: 1fr 1fr; }
  .db-ring-cell { grid-column: 1 / -1; }
  .db-cell:nth-child(2) { border-left: 0; }
  .db-cell:nth-child(n + 2) { border-top: 1px solid var(--board-line); }
  .db-teamcards { grid-template-columns: 1fr; }
  .db-missed { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .db-missed span { grid-row: 2; }
  .db-missed i { grid-row: 1 / 3; grid-column: 2; }
}

/* Sources (sources/show.html.erb): each outside source, and whether it answers. */
.sh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sh { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sh-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 18%, transparent); }
.sh.down { border-color: var(--bad); }
.sh.down .sh-dot { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent); animation: lp-pulse 1.4s ease-in-out infinite; }
.sh.unknown .sh-dot { background: var(--line); box-shadow: none; }
.sh-what { display: grid; gap: 3px; min-width: 0; }
.sh-what b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
.sh-what span { font-size: .82rem; color: var(--muted); }
.sh code, .sh-facts code { font-size: .76rem; color: var(--bad); overflow-wrap: anywhere; }
.sh-when { display: grid; justify-items: end; gap: 2px; text-align: right; }
.sh-when strong { font-size: .82rem; }
.sh.down .sh-when strong { color: var(--bad); }
.sh-when small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.sh-facts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sh-facts > div { gap: 3px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sh-facts small { font-size: .76rem; color: var(--muted); }
/* In the top bar, while a source is down. */
.sh-alert { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 22%, transparent); animation: lp-pulse 1.4s ease-in-out infinite; }
@media (max-width: 560px) {
  .sh { grid-template-columns: 14px minmax(0, 1fr); }
  .sh-when { grid-column: 2; justify-items: start; text-align: left; }
}
.db-sources { margin: 0; font-size: .8rem; color: var(--muted); }
.db-sources a { display: inline-flex; align-items: center; gap: 8px; }
.db-sources a:hover { color: var(--fg); }
.db-sources .sh-dot { width: 8px; height: 8px; box-shadow: none; }
.db-sources .sh-dot.down { background: var(--bad); }
.db-sources { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
/* What's new (whats_new/show.html.erb): the journal, the version to come first. */
.wn { display: grid; gap: 28px; }
.wn-part h3 { margin: 14px 0 8px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wn-part ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; list-style: disc; }
.wn-part li { padding-left: 4px; }
.wn-part li::marker { color: var(--accent); font-size: 1.1em; }
.wn-part li b { font-weight: 650; }
.wn-part.latest .sec-head h2 { color: var(--accent); }
.wn-part code { font: .86em ui-monospace, Menlo, monospace; }
/* Not in the .dmg sent yet (on the project's own Mac only). */
.wn-unsent { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: 3px; font-size: .68rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); vertical-align: 2px; }

/* Playoffs (playoffs/show.html.erb): the bracket, West to the left, East to the right. */
.po-bracket { display: grid; grid-template-columns: repeat(7, minmax(126px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.po-col { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 126px; }
.po-col h2 { margin: 0; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.po-list { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.po-series { display: grid; gap: 3px; background: var(--board); color: var(--board-fg); border: 1px solid var(--board-line); border-radius: 8px; padding: 8px 9px; }
.po-series.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.po-col.final .po-series { padding: 14px; border-color: var(--led-dim); }
.po-team { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.po-team .sw { width: 5px; height: 18px; border-radius: 1px; background: var(--a, var(--board-line)); }
.po-team b { font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-team b a { color: inherit; }
.po-wins { font-family: var(--font-led); font-weight: 900; font-size: 1.2rem; color: var(--led-dim); font-variant-numeric: tabular-nums lining-nums; }
.po-team.won .po-wins, .po-team.ahead .po-wins { color: var(--led); }
.po-team.out { opacity: .45; }
.po-series.tbd { opacity: .4; }
.po-series.tbd .po-wins { display: none; }
.po-note { margin: 4px 0 0; font-size: .66rem; color: var(--board-muted); }
.po-col.final .po-team b { font-size: 1.05rem; }
.po-empty-link { display: block; margin-top: 8px; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.bug-round { font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--led-dim); }

/* The standings in the player's side column (standings/panel.html.erb). */
turbo-frame#standings_panel { display: block; }
turbo-frame#standings_panel[busy]::before { content: "Loading the standings…"; display: block; color: var(--board-muted); font-size: .84rem; text-align: center; padding: 20px 0; }
.sp-table { width: 100%; border-collapse: collapse; font-size: .74rem; font-variant-numeric: tabular-nums lining-nums; margin-bottom: 16px; }
.sp-table th, .sp-table td { padding: 4px 0 4px 6px; text-align: right; font-weight: 400; white-space: nowrap; color: var(--board-muted); }
.sp-table th:first-child { padding-left: 0; text-align: left; width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--board-fg); }
.sp-table th:last-child, .sp-table td:last-child { padding-right: 2px; }
.sp-table thead th { font-size: .6rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--board-line); }
.sp-table thead th:first-child { font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em; color: var(--board-fg); }
.sp-table tbody tr + tr > * { border-top: 1px solid var(--board-2); }
.sp-table tr.cut-6 > *, .sp-table tr.cut-10 > * { border-bottom: 1px solid var(--board-line); }
.sp-table tr.mine > * { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.sp-seed { display: inline-block; width: 1.4em; color: var(--board-muted); }
.sp-table .sw { display: inline-block; width: 5px; height: 12px; border-radius: 1px; margin-right: 7px; vertical-align: -1px; box-shadow: 0 0 0 1px var(--board-line); }
.sp-strong { color: var(--board-fg) !important; font-weight: 600 !important; }
.sp-win { color: var(--good) !important; }
.sp-loss { color: var(--bad) !important; }
.sp-more { display: inline-block; font-size: .76rem; font-weight: 600; color: var(--board-fg); text-decoration: underline; text-underline-offset: 3px; }

/* The play-in, above the bracket (playoffs/_playin_game.html.erb). */
.po-page { display: grid; gap: 28px; }
.pi-confs { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; }
.pi-conf { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.pi-conf h3 { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* 7th–8th and 9th–10th on the left, the 8th seed game they lead to on the right. */
.pi-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px 10px; }
.pi-grid > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.pi-game { display: grid; gap: 3px; background: var(--board); color: var(--board-fg); border: 1px solid var(--board-line); border-radius: 8px; padding: 8px 9px; }
.pi-game.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pi-game h4 { margin: 0 0 2px; font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--board-muted); }
.pi-game .po-team.tbd b, .po-series .po-team.tbd b { color: var(--board-muted); font-family: var(--font-body); font-weight: 500; font-size: .78rem; text-transform: none; letter-spacing: 0; }
.pi-seed { font-size: .7rem; font-weight: 600; color: var(--board-muted); font-variant-numeric: tabular-nums lining-nums; }
.pi-game .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff4d3d; animation: lp-pulse 1.4s ease-in-out infinite; }
@media (max-width: 520px) {
  .pi-confs { grid-template-columns: 1fr; }
  .pi-grid { grid-template-columns: 1fr; }
  .pi-grid > :nth-child(3) { grid-column: auto; grid-row: auto; }
}
/* My team on the scoreboard: a small star after its name. */
.bug-star { margin-left: 5px; font-style: normal; font-size: .7rem; vertical-align: 3px; color: var(--accent); }

/* NBA Cup (cup/show.html.erb): the groups, light cards of the side column's table, then the knockout. */
.cup-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cup-group { background: var(--board); border: 1px solid var(--board-line); border-radius: 10px; padding: 12px 14px 4px; }
.cup-group h3 { margin: 0 0 8px; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--board-muted); }
.cup-table { margin-bottom: 8px; }
/* Room between the numbers: wins and losses centred in their own column, the differential to the right. */
.cup-table td, .cup-table thead th:not(:first-child) { padding-left: 0; min-width: 2.4em; text-align: center; }
.cup-table td:last-child, .cup-table thead th:last-child { min-width: 3.4em; text-align: right; }
.cup-table th a { color: inherit; }
.cup-table tr.through th { color: var(--led); }
/* A step apart from the name before it. */
.cup-place { margin-left: .5em; }
.cup-place, .cup-key { display: inline-block; font-size: .58rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); background: var(--led); padding: 0 4px; border-radius: 2px; vertical-align: 1px; }
.cup-key { width: 14px; height: 10px; padding: 0; margin-right: 6px; }
.cup-bracket { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.cup-bracket .po-col.f .pi-game { border-color: var(--led-dim); }
.cup-legend { margin-top: 4px; }
/* An NBA Cup game, wherever it shows: the scoreboards, the recap cards, a team's season. */
.cup-tag { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 3px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--led); vertical-align: 1px; }
.bug-cup { color: var(--led); }
.sg-cup { background: var(--led); color: var(--accent-ink); border-color: var(--led); vertical-align: 4px; }

/* TrashTalk's articles (articles/_article_card.html.erb), then the reader (articles/show.html.erb). */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.art-card { display: grid; grid-template-rows: 1fr auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .15s, border-color .15s; }
.art-card:hover { transform: translateY(-2px); border-color: var(--muted); }
.art-img { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.art-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-card.read .art-img img { opacity: .55; }
.art-link { display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; }
.art-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 14px 12px; }
.art-foot .cv-teams { margin: 0 auto 0 0; }
/* The reader's top line: the article's date, and Read on the right when it was read before. */
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reader-top .phase.is-read { margin-right: 0; color: var(--muted); }
.art-body { display: grid; gap: 6px; align-content: start; padding: 12px 14px 14px; }
.art-body .day { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.art-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-title .on { display: none; }
.art-title[data-on] .on { display: inline; }
.art-title[data-on] .off { display: none; }
.art-title .off { color: var(--muted); font-style: italic; }
.reader { max-width: 720px; margin-inline: auto; display: grid; gap: 22px; }
.reader-back a { font-weight: 600; color: var(--muted); }
.reader-back a:hover { color: var(--fg); }
/* Share (a server's only): beside ‹ News, and in the foot. */
.reader-back:has(.reader-share) { display: flex; align-items: center; justify-content: space-between; }
.reader-share { display: inline-flex; align-items: center; gap: 6px; }
.reader-share svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reader header { display: grid; gap: 10px; }
.reader h1 { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 2.6rem; line-height: 1.05; text-transform: none; }
.reader-img { width: 100%; border-radius: 8px; display: block; }
.reader-text { font-size: 1.08rem; line-height: 1.75; display: grid; gap: 1em; }
.reader-text p { margin: 0; text-align: left !important; }
.reader-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.reader-text strong { font-weight: 700; }
.reader-text blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
/* X's card, once its script has turned the quote into one. */
.reader-text .twitter-tweet-rendered { margin-inline: auto !important; }
.reader-text h2, .reader-text h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; margin-top: .4em; }
.reader-text img { max-width: 100%; height: auto; border-radius: 6px; }
.reader-text figcaption { font-size: .8rem; color: var(--muted); }
.reader-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.reader-nav { display: flex; align-items: center; gap: 8px; }
.reader-read { display: contents; }
/* News: the Reddit part under its heading, its two subreddits side by side. */
.rd-head { display: grid; gap: 14px; }
.rd-head .rd-hint { margin: 0; }

/* French Players Watch (players/_french.html.erb): a card per player, in his team's colour. */
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fr-card { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 20px; overflow: hidden; }
.fr-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--a, var(--line)); }
/* From the top: every name at the same height, a long one running down into the room its row
   keeps for it in every card. */
.fr-card header { display: flex; align-items: flex-start; gap: 12px; }
.fr-card header > div { padding-top: 8px; }
.fr-card header img:not(.team-logo) { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.fr-card header b { display: block; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.25rem; line-height: 1.05; text-transform: uppercase; }
.fr-card header span { font-size: .76rem; color: var(--muted); }
.fr-card header span a { color: inherit; font-weight: 600; }
.fr-stats { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.fr-stats div { display: grid; justify-items: center; padding: 6px 0; background: var(--surface-2); border-radius: 6px; }
.fr-stats dt { font-size: .58rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.fr-stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums lining-nums; }
.fr-stats div:first-child dd { color: var(--accent); }
.fr-avg { display: grid; gap: 6px; align-content: start; }
.fr-season { margin: 0; font-size: .7rem; color: var(--muted); }
.fr-last, .fr-next { margin: 0; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline; gap: 8px; font-size: .8rem; }
.fr-opp { white-space: nowrap; }
.fr-label { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fr-last .on { display: none; font-weight: 600; }
.fr-last[data-on] .on { display: inline; }
.fr-last[data-on] .off { display: none; }
.fr-last .off { color: var(--muted); }
/* Recap right after the line, even on its last row; on a row of its own when there is no room,
   from the row's start: the space before it, widened, hangs at the end of the row above. */
.fr-recap { font-size: .72rem; font-weight: 700; color: var(--accent); }
.fr-sp { word-spacing: .4em; }
.fr-next a { font-weight: 600; }

/* A team's roster (teams/show.html.erb): a card per player, his number on his photo. */
.ro-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ro-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "photo who" "photo stats"; gap: 2px 12px; align-items: center;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.ro-photo { grid-area: photo; position: relative; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--a) 18%, var(--surface-2)); overflow: visible; }
.ro-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ro-photo b { position: absolute; right: -6px; bottom: -4px; min-width: 22px; padding: 1px 4px; border-radius: 4px; background: var(--a); color: var(--ai);
  font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: .8rem; text-align: center; line-height: 1.2; }
.ro-who { grid-area: who; display: grid; min-width: 0; }
.ro-who b { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-who small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-stats { grid-area: stats; display: flex; gap: 12px; font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ro-stats b { margin-right: 3px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: 0; color: var(--fg); font-variant-numeric: tabular-nums lining-nums; }
/* The League Pass button of a game on now: straight to it live. */


/* The game page (games/show.html.erb). */
.gm-where { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.gm-acts { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.gm-page { display: grid; gap: 14px; }
.gm-card { display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.gm-card h3 { margin: 0; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gm-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .gm-cols { grid-template-columns: 1fr; } }
/* The score, big, on the scoreboard's dark. */
.gm-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; background: var(--board); color: var(--board-fg); border-radius: 10px; overflow: hidden; }
.gm-side { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name points" "record points"; align-items: center; gap: 2px 16px; padding: 18px 22px; }
.gm-side::before { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: var(--a); }
.gm-side:first-child::before { left: 0; }
.gm-side:last-child { grid-template-columns: auto 1fr; grid-template-areas: "points name" "points record"; text-align: right; }
.gm-side:last-child::before { right: 0; }
.gm-side b { grid-area: name; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.8rem; line-height: 1; text-transform: uppercase; }
.gm-side small { grid-area: record; font-size: .74rem; color: var(--board-muted); }
.gm-points { grid-area: points; font-family: var(--font-led); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--led-dim); font-variant-numeric: tabular-nums lining-nums; }
.gm-side.won .gm-points { color: var(--led); }
.gm-status { display: grid; place-content: center; text-align: center; gap: 4px; padding: 0 18px; font-family: var(--font-led); font-weight: 900; color: var(--led); border-inline: 1px solid var(--board-line); }
.gm-status small { font-family: var(--font-body); font-weight: 600; font-size: .68rem; color: var(--board-muted); }
.gm-line { padding: 10px 14px; border-radius: 8px; }
.gm-line .box-line { margin-bottom: 0; }
/* Win probability: the home side's chance of winning, play after play. */
.gm-flow { position: relative; margin: 0; padding: 6px 0 0 34px; }
.gm-flow svg { display: block; width: 100%; height: 140px; background: var(--surface-2); border-radius: 6px; }
.gm-flow polyline { fill: none; stroke: var(--c); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
/* Team colours, the near-black ones made light in the dark theme (visible_color). */
.gm-bar i { background: var(--c); }
.gm-compare-head b { color: var(--c); }
:root.dark .gm-flow polyline { stroke: var(--cd); }
:root.dark .gm-bar i { background: var(--cd); }
:root.dark .gm-compare-head b { color: var(--cd); }
.gm-flow .mid { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.gm-flow .q { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gm-flow-top, .gm-flow-bottom { position: absolute; left: 0; font-size: .66rem; font-weight: 700; color: var(--muted); }
/* With their logos, the two teams' marks need more room left of the chart. */
.gm-flow:has(.team-logo) { padding-left: 58px; }
.gm-flow-top { top: 10px; }
.gm-flow-bottom { bottom: 26px; }
.gm-flow figcaption { margin-top: 6px; font-size: .74rem; color: var(--muted); }
/* Leaders: the best of each team, side by side. */
.gm-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gm-leader { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border-left: 4px solid var(--a); min-width: 0; }
.gm-leader img:not(.team-logo) { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface); flex: none; }
.gm-leader span { min-width: 0; font-size: .66rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.gm-leader b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.5rem; letter-spacing: 0; color: var(--fg); }
.gm-leader small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: 0; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Team stats, mirrored. */
.gm-compare-head { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.gm-compare { display: grid; grid-template-columns: 3rem 1fr 11rem 1fr 3rem; align-items: center; gap: 10px; font-size: .86rem; font-variant-numeric: tabular-nums lining-nums; }
.gm-compare > span:first-child { text-align: left; color: var(--muted); }
.gm-compare > span:last-child { text-align: right; color: var(--muted); }
.gm-compare .best { color: var(--fg); font-weight: 700; }
.gm-compare em { font-style: normal; text-align: center; font-size: .74rem; color: var(--muted); }
.gm-bar { display: flex; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.gm-bar.left { justify-content: flex-end; }
.gm-bar i { display: block; height: 100%; }
/* Latest plays, while it is on. */
.gm-plays { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; }
.gm-plays li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.gm-plays li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.gm-plays li.scoring span:nth-child(2) { font-weight: 600; }
.gm-plays b { font-variant-numeric: tabular-nums lining-nums; }
/* Injury report. */
.gm-injuries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-injury { margin: 0; font-size: .84rem; }
.gm-injury span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gm-injury span.out { color: var(--bad); }
/* A game's page, from the scoreboards and a team's season: on a bug, beside its time or clock. */
.bug-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.bug-foot .st { margin-top: 0; }
.bug-foot .bug-box { margin-top: 0; white-space: nowrap; }
.bug-foot { min-width: 0; }
.bug-clock { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bug-foot .bug-live { flex: none; padding: 2px 6px; font-size: .58rem; gap: 4px; }
.bug-foot .bug-live i { width: 5px; height: 5px; }
.bug-clock:hover { color: var(--board-fg); }
.sg-game { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-align: right; }
.sg-game:hover { color: var(--fg); }
.sg-result { display: grid; justify-items: end; }
.box-more { margin: 10px 0 0; text-align: right; font-size: .8rem; font-weight: 700; }
.box-more a { color: var(--muted); }
.box-more a:hover { color: var(--fg); }
/* The roster, over the team page. The dialog's own box is the backdrop's edge, its padding inside. */
dialog.ro { margin: auto; width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); overflow: auto; }
dialog.ro::backdrop { background: rgb(0 0 0 / .55); }
dialog.ro .sec-head { position: relative; padding-right: 40px; }
.ro-close { position: absolute; top: 0; right: 0; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--fg); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.ro-close:hover { background: var(--surface-2); }
/* Opening it puts the focus on its title, not on the ×, so no ring shows until the keyboard moves it. */
dialog.ro h2:focus { outline: none; }
/* Before a game, where each team stands, quietly after its name in the title, on its baseline. */
.gm-stand { margin-left: 1.1em; font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  text-transform: none; color: var(--muted); vertical-align: baseline; white-space: nowrap; }
.night h1 .gm-stand span { color: var(--muted); }
/* Letter spacing leaves room after a tag's last letter: as much before its first (text-indent,
   at the tag's own spacing), so the word sits in the middle of its border or background. */
.stamp, .cv-team { text-indent: .06em; }
.rd-tag { text-indent: .1em; }
.sg-pre { padding-left: calc(4px + .1em); } /* inline: no text-indent there */
.bug-live, .live-btn, .cup-tag { text-indent: .08em; }
.mine-tag { text-indent: .05em; }
.sg-flag { text-indent: .04em; }
.top-hidden { text-indent: .02em; }
.s-mode button, .stage:is(:fullscreen, .faux-fs) .s-exitfs { text-indent: .06em; }
/* Settings, and its gear in the top bar. */
.settings-btn .ti, .pod-btn .ti { display: block; }
.settings-btn[aria-current="page"], .pod-btn[aria-current="page"] { background: var(--surface-2); }
/* Fifteen themes: five a row, three on a narrow window, one on a phone, every row full. */
.set-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .set-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .set-themes { grid-template-columns: minmax(0, 1fr); } }
.set-theme { display: grid; gap: 10px; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
.set-theme:hover { border-color: var(--muted); }
.set-theme[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
/* The previews in the mode in use: each card holds both (--pl-, --pd-). */
.set-theme { --p-bg: var(--pl-bg); --p-surface: var(--pl-surface); --p-fg: var(--pl-fg); --p-accent: var(--pl-accent); --p-board: var(--pl-board); --p-led: var(--pl-led); }
html.dark .set-theme { --p-bg: var(--pd-bg); --p-surface: var(--pd-surface); --p-fg: var(--pd-fg); --p-accent: var(--pd-accent); --p-board: var(--pd-board); --p-led: var(--pd-led); }
.set-preview { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; height: 76px; padding: 10px; border-radius: 6px; background: var(--p-bg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.set-card { display: grid; gap: 5px; align-content: end; height: 100%; padding: 8px; border-radius: 4px; background: var(--p-surface); }
.set-card i { display: block; height: 5px; border-radius: 3px; background: var(--p-fg); opacity: .8; }
.set-card i + i { width: 60%; opacity: .35; }
.set-card b { display: block; width: 34px; height: 9px; border-radius: 3px; background: var(--p-accent); }
.set-board { padding: 4px 7px; border-radius: 3px; background: var(--p-board); color: var(--p-led); font-family: var(--font-led); font-weight: 900; font-size: 1rem; line-height: 1; }
.set-name { display: grid; gap: 1px; padding-inline: 2px; }
.set-name b { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase; }
.set-name small { font-size: .76rem; color: var(--muted); }
.set-list { display: grid; gap: 8px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.set-row[hidden] { display: none; }
/* The Settings search (settings_search_controller.js): what doesn't match steps aside, and a folded
   section with a match opens while the search lasts. */
.set-search .menu-pin-input { width: min(320px, 100%); }
.search-out { display: none !important; }
[data-collapse-target="body"].search-open[hidden] { display: block; }
.set-search-none { color: var(--muted); margin-top: 24px; }
.set-themes + .set-row { margin-top: 12px; }
/* The font pairs (FontPair): each button in its own pair's fonts (its style sets them), a game's
   heading over a line of text, as the app shows them. */
.set-fonts-head, .set-sub { margin-top: 22px; }
/* A section's groups (Menu bar): the first one right under the section's heading. */
.sec-head + .set-sub, [data-collapse-target="body"] > .set-sub:first-child { margin-top: 0; }
.set-fonts-head h3, .set-sub h3 { margin: 0; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
/* Settings' Menu bar › Parts: each moves by its handle, on the left. */
.menu-order .set-row { flex-wrap: nowrap; }
.menu-grip { flex: none; display: grid; place-items: center; width: 18px; height: 28px; margin-left: -6px; cursor: grab; color: var(--muted); touch-action: none; }
.menu-grip:hover { color: var(--fg); }
.menu-grip svg { width: 10px; height: 16px; fill: currentColor; }
.menu-order .set-row.dragging { opacity: .45; }
.menu-ordering, .menu-ordering * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
/* Settings' Menu bar › Added: the search for a page to add, its results under it. */
.menu-pin { position: relative; }
.menu-pin-input { font: inherit; font-size: .9rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; width: min(280px, 100%); }
.menu-pin-results { position: absolute; z-index: 5; right: 16px; top: calc(100% - 8px); width: min(360px, calc(100% - 32px)); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.menu-pin-results[hidden] { display: none; }
.menu-pin-results li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.menu-pin-results li[aria-selected="true"] { background: var(--surface-2); }
.menu-pin-results li.none { cursor: default; color: var(--muted); }
.menu-pin-results small { font-size: .78rem; color: var(--muted); }
.set-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.set-fonts + .set-row { margin-top: 12px; }
.set-font { display: grid; grid-template-rows: 72px auto; align-content: start; gap: 10px; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-family: var(--font-body); }
.set-font:hover { border-color: var(--muted); }
.set-font[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
/* The same box for every pair, its two lines centred in it, whatever the fonts' heights. */
.set-font-sample { display: grid; align-content: center; gap: 6px; height: 72px; box-sizing: border-box; padding: 0 10px; border-radius: 6px; background: var(--surface-2); min-width: 0; }
.set-font-sample b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.45rem; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-font-sample span { font-family: var(--font-body); font-size: .85rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.set-font .set-name b { line-height: 1.2; white-space: nowrap; }
/* Each line cut to its capitals and baseline: the names and samples line up across fonts whose
   letters sit differently in their lines. */
.set-font .set-name b, .set-font-sample > * { text-box: trim-both cap alphabetic; }
.set-font-sample { gap: 10px; }
/* As wide as it may, from 260px: a long description wraps within it, and the control stays on its right. */
.set-label { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.set-row > .switch { flex: none; }
.set-label b { font-weight: 600; }
/* A podcast among the menu bar's shows (Settings): its headphones, after its name. */
.menu-pod { width: 13px; height: 13px; vertical-align: -1px; margin-left: 2px; fill: none; stroke: var(--muted); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.set-label small { font-size: .8rem; color: var(--muted); }
.set-row .seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.set-row .pick { min-width: 220px; }
.set-switch { display: contents; }
.set-hours { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.set-hours .pick { min-width: 0; }
/* A game's rating: five flames, the earned ones lit. */
.flames { display: inline-flex; gap: 1px; vertical-align: -1px; }
.flames svg { width: 9px; height: 12px; fill: currentColor; opacity: .25; }
.flames svg.lit { fill: var(--accent); opacity: 1; }
/* The night's best games, the first larger. */
/* Last on the page: room below for a League Pass menu opened from a card. */
.wp:last-child { padding-bottom: 60px; }
.wp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .wp-list { grid-template-columns: minmax(0, 1fr); } }
.wp-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 17px 16px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
/* The two teams' colors along the top, in the card's rounded corners (not clipped by the card, so
   the League Pass menu can open out of it). */
.wp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 7px 7px 0 0; background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); }
.wp-card .flames svg { width: 12px; height: 16px; }
.wp-card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.wp-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* A recap to play, the League Pass button's size; quieter, with a check, once watched. */
.wp-recap { display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; color: var(--fg); text-decoration: none; white-space: nowrap; }
.wp-recap svg { width: 10px; height: 10px; }
.wp-recap.seen { color: var(--muted); }
.wp-recap.none { color: var(--muted); opacity: .5; cursor: default; }
/* News: each source under its own banner, in its color. */
.src-head { padding-bottom: 12px; border-bottom: 3px solid var(--src); }
.sec-head .src-name { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900;
  font-size: 2rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.sec-head .src-name small { align-self: flex-end; margin-left: 2px; padding-bottom: 3px; font-family: var(--font-body); font-style: normal; font-weight: 500;
  font-size: .8rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.src-badge { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--src); }
.src-badge svg { width: 20px; height: 20px; fill: #fff; }
/* A subreddit, under the Reddit banner. */
.sec-head .src-sub { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, #ff4500 14%, var(--surface)); color: var(--fg);
  font-size: .9rem; letter-spacing: .04em; }

/* A player's page (player_pages/show.html.erb): who he is on the scoreboard's dark, in his team's
   color, then his season and his videos (player_clips/_clip_card.html.erb). */
.pp-head { display: flex; align-items: flex-end; gap: 24px; padding: 24px 28px 0; border-radius: 10px; background: var(--board); color: var(--board-fg);
  border-bottom: 6px solid var(--a, var(--accent)); overflow: hidden; }
.pp-photo { width: 180px; height: 132px; object-fit: cover; object-position: top; flex: none; }
.pp-who { padding-bottom: 22px; min-width: 0; }
.pp-who .eyebrow { color: var(--board-muted); }
.pp-who h1 { margin-top: 8px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .9; text-transform: uppercase; }
.pp-stats { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); max-width: 640px; }
/* Hidden or shown, the same room: both on one spot, only one seen, so toggling Spoilers moves
   nothing on a player's page (his season, each video's line). */
.pc-line { display: grid; margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.pc-line > span { grid-area: 1 / 1; }
.pc-line .on, .pc-line:not([data-on]) .on { display: block; visibility: hidden; }
.pc-line[data-on] .on { visibility: visible; }
.pc-line[data-on] .off { visibility: hidden; }
.pp-season.masked { display: grid; }
.pp-season.masked > .on, .pp-season.masked > .off { grid-area: 1 / 1; display: block; }
.pp-season.masked > .off { display: grid; place-content: center; }
.pp-season.masked:not([data-on]) > .on, .pp-season.masked[data-on] > .off { visibility: hidden; }
.cv-info h1 i { font-style: normal; color: var(--muted); padding-inline: 4px; }
/* A player's name leading to his page: plain, in the accent once hovered, as the team names. */
.player-link { color: inherit; text-decoration: none; transition: color .15s; }
.player-link:hover { color: var(--accent); }
@media (max-width: 760px) {
  .pp-head { flex-direction: column; align-items: flex-start; padding: 20px 20px 0; }
  .pp-photo { width: 140px; height: 104px; }
}
/* A player video's picture, which prints his line: shown with the Spoilers on, his name otherwise. */
.pc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--board); }
.pc-thumb .thumb.on { display: none; }
.pc-thumb[data-on] .thumb.on { display: block; }
.pc-thumb .off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px;
  background: var(--a, var(--board)); color: var(--ai, var(--board-fg)); }
.pc-thumb[data-on] .off { display: none; }
.pc-thumb .off b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 2.4rem; line-height: 1; text-transform: uppercase; }
.pc-thumb .off small { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
/* Play all on a player's page, and its queue on the video's page. */
.pp-count { color: var(--muted); font-size: .86rem; }

/* The search (layouts/_palette.html.erb): ⌘P or ⌘K, a field and its suggestions over the page,
   high up as macOS's own Spotlight sits. */
.palette { width: min(560px, calc(100vw - 32px)); margin: 14vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgb(0 0 0 / .35); overflow: hidden; }
.palette::backdrop { background: rgb(8 10 18 / .45); }
.palette-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
/* The list's rows start where the field does: 6 px of the list and 10 of a row, 16 in all. */
.palette-field svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.palette-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1.05rem; }
.palette-field input::placeholder { color: var(--muted); }
.palette-results { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
/* Lined up with the field above: each kind's mark centered under the magnifier (18 px), the names
   where the typing starts. */
.palette-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
/* The kind at a glance: the app's ball for its pages (muted, in the accent once chosen), a TV for
   what plays, a team's badge, its letters in its colors, a little wider than the column (centered
   all the same, on the capitals themselves as the match's tag is), a player's team color as a dot. */
.palette-mark { justify-self: center; display: block; border-radius: 50%; }
.palette-item:is(.page, .archive) .palette-mark svg { display: block; width: 18px; height: 18px; }
.palette-item.page .palette-mark circle { fill: var(--muted); }
.palette-item.page .palette-mark path { fill: none; stroke: var(--surface); stroke-width: 1.6; stroke-linecap: round; }
.palette-item.page[aria-selected="true"] .palette-mark circle { fill: var(--accent); }
.palette-item.team .palette-mark { display: grid; place-items: center; box-sizing: border-box; min-width: 22px; height: 14px; padding: 0 2px;
  border-radius: 2px; font-size: 7.5px; font-weight: 800; line-height: 1; text-box: trim-both cap alphabetic; }
.palette-item:is(.page, .archive) .palette-mark svg:is(.tv, .trophy, .archive) * { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.palette-item:is(.page, .archive)[aria-selected="true"] .palette-mark svg:is(.tv, .trophy, .archive) * { stroke: var(--accent); }
.palette-item.player .palette-mark { width: 8px; height: 8px; background: var(--c, var(--line)); }
/* A TV channel shows what it plays now between its name and "Watch", cut short when too long. */
.palette-item.on-air { grid-template-columns: 18px auto minmax(0, 1fr) auto; }
.palette-now { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Instrument Sans' space is narrow (a fifth of an em): "Team · West" read as "Team·West" this
   small, as on the Players page. */
.palette-item small { color: var(--muted); font-size: .78rem; white-space: nowrap; word-spacing: .12em; }
.palette-item[aria-selected="true"] { background: var(--surface-2); }
.palette-item[aria-selected="true"] b { color: var(--accent); }
.palette-none { padding: 14px 10px; color: var(--muted); font-size: .9rem; }
.palette-hint { margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; word-spacing: .12em; }
.palette-hint kbd { font: inherit; font-weight: 600; padding: 0 5px; margin-right: 2px; border: 1px solid var(--line); border-radius: 3px; }

/* The Archive Room (archive/index.html.erb): League Pass's games of the past. Each game's card
   shows its year over its two teams' colors, cut on the diagonal; its picture, which can give the
   result away, comes over them once Spoilers are on. */
/* The room's spacing, three steps: 40 px between sections, 28 between the groups of one (its
   decades, its years), 14 between a title (or its decade buttons) and what it heads. Its frame (it
   opens its shelves in place) spaces its sections as the page does its own. */
#archive_room, .cv-room { display: flex; flex-direction: column; gap: 40px; }
:is(#archive_room, .cv-room) .sec-head { margin-bottom: 14px; align-items: center; }
/* A section's title and the text at its right ("126 games") on one middle: each trimmed to its
   capitals, then centred, in WebKit as elsewhere. */
:is(#archive_room, .cv-room) .sec-head :is(h2, p, .ar-shelf-name, .ar-shelf-acts > span) { text-box: trim-both cap alphabetic; }
.ar-jump { display: flex; flex-wrap: wrap; gap: 6px; }
/* The title alone on top; under it the sections at the left and Surprise me at the right. */
.ar-hero { grid-template-columns: minmax(0, 1fr); }
.ar-sections .ar-surprise { margin-left: auto; }
.ar-jump a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: .84rem; font-weight: 600; transition: background .15s; }
.ar-jump a:hover { background: var(--surface-2); }
.ar-jump a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
/* Surprise me, under the title or in a shelf's header: the room's one filled button. */
.ar-surprise { display: inline-block; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--accent-ink);
  font-size: .84rem; font-weight: 600; line-height: 1.5; transition: filter .15s; }
.ar-jump .ar-surprise { background: var(--accent); }
.ar-surprise:hover, .ar-jump .ar-surprise:hover { background: var(--accent); filter: brightness(1.08); }
.ar-decades { margin: 0 0 14px; }
/* Length and order: two groups of buttons on one line, apart. */
.ar-arrange { margin: 0 0 14px; gap: 6px 18px; }
.ar-arrange-group { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-note a:hover { filter: brightness(1.2); }
.tm-rivals { margin: -2px 0 14px; }
.tm-rivals a { display: inline-flex; align-items: baseline; gap: 5px; border-left: 3px solid var(--a); }
.tm-rivals small { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums lining-nums; }
/* A shelf's header: ‹ and its name on one line, centred on each other; its count, links and Start
   the series likewise at the right. */
.ar-shelf-head { align-items: center; }
/* ‹ and the name, the name's box trimmed to its capitals (in WebKit as in other engines): ‹ centred
   on it sits on the middle of the capitals. */
.ar-shelf-head h2 { display: flex; align-items: center; gap: 10px; }
.ar-shelf-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ar-shelf-acts > span > a { color: inherit; text-decoration: none; }
.ar-shelf-acts > span > a:hover { color: var(--accent); }
/* Back to the whole room: a chevron alone, muted, as the app's other ways back ("‹ News"), no box. */
.ar-shelf-head h2 { gap: 6px; }
/* Its stroke on the content's left edge. */
.ar-back { display: inline-grid; place-items: center; flex: none; color: var(--muted); margin-left: -4px; }
.ar-back:hover { color: var(--fg); }
.ar-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-shelf + .ar-shelf { margin-top: 28px; }
.ar-shelf-title { margin: 0 0 14px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.ar-shelf-title small { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .78rem; color: var(--muted); margin-left: 6px; }
.ar-shelf-title a:hover, .ar-title-link:hover { color: var(--accent); }
.ar-grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 18px; }
/* Moved with a swipe (or ⇧ and the wheel): no scrollbar under it, the card cut at the right edge says there are more. */
.ar-row { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.ar-row::-webkit-scrollbar { display: none; }
.ar-row > li { scroll-snap-align: start; }
.ar-link { display: block; color: inherit; text-decoration: none; }
.ar-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: linear-gradient(120deg, var(--a) 0 52%, var(--b) 52% 100%); }
.ar-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .6), rgb(0 0 0 / 0) 60%); pointer-events: none; }
.ar-year { position: absolute; left: 10px; bottom: 4px; z-index: 1; color: #fff; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 2.4rem; line-height: 1; letter-spacing: .01em; text-shadow: 0 2px 10px rgb(0 0 0 / .35); }
.ar-time { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 1px 6px; border-radius: 3px; background: rgb(0 0 0 / .6); color: #fff; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.ar-link:hover .ar-art img { filter: brightness(1.08); }
.ar-meta { display: grid; justify-items: start; gap: 2px; padding: 10px 2px 0; }
.ar-label { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ar-teams { font-weight: 700; }
.ar-teams i { font-style: normal; font-weight: 500; color: var(--muted); }
.ar-label:hover, .ar-teams a:hover { color: var(--accent); }
/* Its two lines kept whether Spoilers show it or not, so no card moves when they are switched. */
.ar-title { color: var(--muted); font-size: .84rem; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The Finals, a tile a year, in its two teams' colors. */
/* Every tile the height of the tallest, whose names take two lines ("Pistons · Trail Blazers"). */
.ar-finals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.ar-finals > li { display: grid; }
.ar-finals .ar-final { align-content: start; }
.ar-final { position: relative; display: grid; gap: 2px; padding: 12px 12px 10px; border-radius: 8px; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--a) 0 55%, var(--b) 55% 100%); transition: transform .12s, filter .15s; }
.ar-final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .45), rgb(0 0 0 / .05)); }
.ar-final > * { position: relative; z-index: 1; text-shadow: 0 1px 6px rgb(0 0 0 / .35); }
.ar-final:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ar-final-year { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 2.2rem; line-height: .9; }
.ar-final-teams { font-size: .8rem; font-weight: 700; }
/* The two Finals teams one above the other, each its logo and name on one line. */
.ar-ft { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A team without a logo that year (the Bullets) lines up with the other's name. */
.ar-final-teams:has(.team-logo) .ar-ft:not(:has(.team-logo)) { padding-left: 1.5em; }
.ar-final small { font-size: .72rem; opacity: .85; }
.ar-rivalries .ar-final-teams { font-size: 1.05rem; line-height: 1.15; }
.ar-rivalries .ar-final-teams i { font-style: normal; font-weight: 500; opacity: .8; font-size: .8rem; }
.ar-note { color: var(--accent); font-size: .76rem; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* The teams with games in the archive, and the legends found in them: a tile each, the name at
   the left, the games at the right. */
.ar-teams-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ar-team { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); transition: background .15s; }
.ar-team:hover { background: var(--surface-2); }
.ar-team:hover b { color: var(--accent); }
.ar-team b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-legends { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* Find a legend: a field at the right of the section's title, as small as its buttons. */
.ar-find { font: inherit; font-size: .84rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 5px 10px; width: min(220px, 100%); text-box: none; }
.ar-find::placeholder { color: var(--muted); }
.ar-find:focus { outline: none; border-color: var(--accent); }
.ar-legend { display: flex; align-items: center; gap: 10px; height: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); transition: background .15s; }
.ar-legend:hover { background: var(--surface-2); }
.ar-legend b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-legend:hover b { color: var(--accent); }
.ar-count { margin-left: auto; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums lining-nums; }
.ar-badge { display: grid; place-items: center; min-width: 30px; height: 18px; padding: 0 3px; box-sizing: border-box; border-radius: 2px; background: var(--a); color: var(--ai); font-size: .62rem; font-weight: 800; }
/* In the room's Teams, the logo in place of the colored letters. */
.ar-team .ar-logo { width: 24px; height: 24px; margin: 0; flex: none; }
.ar-team small { margin-left: auto; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums lining-nums; }


/* Listening in Tip-Off.app (listen.js): the player's place on its page, black, saying it plays as
   audio, with Watch and Pause. Over the show's screen, or as tall as the TV's would be. */
.listen-veil { position: relative; z-index: 16; width: 100%; aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 24px; text-align: center; background: #000; color: #eef0f7; border-radius: 6px; }
.cv-screen > .listen-veil { aspect-ratio: auto; height: 100%; border-radius: 0; }
.listen-veil .eyebrow { color: #9aa2bb; margin: 4px 0 0; }
.listen-veil h2 { margin: 0; max-width: 46ch; font-size: 1.35rem; line-height: 1.25; }
.listen-veil .listen-detail { margin: 0; color: #9aa2bb; font-size: .85rem; font-variant-numeric: tabular-nums; }
.listen-veil .listen-acts { display: flex; gap: 8px; margin-top: 8px; }
/* Always on black: its buttons in dark colors, whatever the app's theme. */
.listen-veil .btn { background: #1b1f2c; border-color: #343a4d; color: #eef0f7; }
.listen-veil .btn:hover { background: #262b3b; }
.listen-mark { width: 92px; height: 56px; color: #eef0f7; }
.listen-mark .w1, .listen-mark .w2, .listen-mark .w3 { animation: listen-wave 1.4s ease-in-out infinite; }
.listen-mark .w2 { animation-delay: .2s; }
.listen-mark .w3 { animation-delay: .4s; }
.listen-veil.paused .listen-mark path[class], .listen-veil.stopped .listen-mark path[class] { animation: none; opacity: .35; }
@keyframes listen-wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .listen-mark path[class] { animation: none; } }

/* The Podcasts page: each podcast a card, its cover, name and tools at the top, its latest
   episodes on a shelf beneath, each a card with its picture, Play on it and how far it has gone;
   in a browser, its player at the foot. */
.pod-show, .pod-continue { position: relative; margin-top: 16px; padding: 14px 16px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pod-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; }
.pod-cover { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--surface-2); box-shadow: 0 4px 14px rgb(0 0 0 / .14); }
.pod-cover-none { display: grid; place-items: center; color: var(--muted); }
.pod-cover-none svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pod-name h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.pod-by { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.pod-team { margin: 4px 0 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
/* Scrolls sideways (trackpad, shift + wheel) with no scroll bar drawn under it. */
.pod-list { list-style: none; margin: 0; padding: 2px; display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; }
.pod-list::-webkit-scrollbar { display: none; }
.pod-ep { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-snap-align: start; }
.pod-ep .pod-foot { margin-top: auto; }
.pod-art { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.pod-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.pod-ep:hover .pod-art img { transform: scale(1.04); }
.pod-play { position: absolute; left: 10px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgb(0 0 0 / .3); transition: transform .15s; }
.pod-play:hover { transform: scale(1.08); }
.pod-play svg { width: 13px; height: 13px; margin-left: 2px; }
.pod-done { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(0 0 0 / .35); }
.pod-done::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); }
.pod-of { margin: 0 0 -4px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-continue { padding-bottom: 14px; }
.pod-title { margin: 0; font-weight: 600; font-size: .88rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pod-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.pod-meta { margin: 0; font-size: .74rem; color: var(--muted); }
.pod-mark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.pod-mark:hover { background: var(--surface-2); color: var(--fg); }
.pod-mark svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pod-ep.seen .pod-art { opacity: .55; }
.pod-ep.seen .pod-title { color: var(--muted); }
.pod-ep.seen .pod-mark { color: var(--accent); }
@media (max-width: 700px) {
  .pod-head { grid-template-columns: auto minmax(0, 1fr); }
  .pod-cover { width: 60px; height: 60px; }
  .pod-list { grid-auto-columns: 148px; }
}

/* The TV guide: a card each channel, two side by side (one on a narrow window): what is on now,
   its picture, name, date and how far it has gone, then the next ones, each on its line with its
   time, its whole name on hover. */
.tvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.tvg-card { display: grid; align-content: start; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tvg-head { display: grid; gap: 2px; color: var(--fg); }
.tvg-head b { font-size: 1rem; }
.tvg-head small { font-size: .74rem; color: var(--muted); }
.tvg-head:hover b { color: var(--accent); }
.tvg-now { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--fg); }
.tvg-now img { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--board); }
.tvg-text { display: grid; gap: 4px; min-width: 0; }
.tvg-text b { font-size: .95rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tvg-text small { font-size: .74rem; color: var(--muted); }
.tvg-live { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tvg-bar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-2); position: relative; overflow: hidden; }
.tvg-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); border-radius: 2px; }
.tvg-now:hover b { color: var(--accent); }
.tvg-next { list-style: none; margin: 0; padding: 10px 0 0; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.tvg-next li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: baseline; gap: 10px; font-size: .86rem; }
.tvg-at { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tvg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvg-next small { font-size: .72rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) {
  .tvg-now { grid-template-columns: 120px minmax(0, 1fr); }
  .tvg-now img { width: 120px; }
}

/* At a podcast card's bottom right: Remove (an ×, clearer on hover), and the handle to drag it by. */
.pod-corner { position: absolute; right: 8px; bottom: 4px; display: flex; align-items: center; gap: 2px; }
.pod-remove { display: grid; place-items: center; width: 22px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); opacity: .6; }
.pod-show:hover .pod-remove { opacity: 1; }
.pod-remove:hover { color: var(--bad); background: var(--surface-2); }
.pod-remove svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pod-grip { display: grid; place-items: center; width: 28px; height: 20px; border-radius: 4px; cursor: grab; color: var(--muted); touch-action: none; }
.pod-grip:hover { color: var(--fg); background: var(--surface-2); }
.pod-grip svg { width: 16px; height: 10px; fill: currentColor; }
.pod-show.dragging { opacity: .5; box-shadow: 0 10px 28px rgb(0 0 0 / .2); }
.pod-ordering, .pod-ordering * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* Adding a podcast: a button at the top right of the page, opening a panel of suggestions (each
   its cover, name, who makes it and Add), then any feed's address and Add. */
.pa-open { gap: 7px; }
.pa-open svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
dialog.pa { width: min(720px, calc(100vw - 32px)); }
.pa-head { margin: 18px 0 8px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pa-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.pa-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pa-item img, .pa-none { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.pa-name { display: grid; gap: 1px; min-width: 0; }
.pa-name b { font-size: .9rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-name small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa .pa-note { margin: 8px 0 0; }
.pod-add-form { display: flex; gap: 8px; }
.pod-add-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--fg); font: inherit; }

/* The podcasts' player (podcast_dock.js): a bar floating at the foot of the window, on every page,
   the page keeping room for it. */
.pod-dock { --pd: 32px; position: fixed; z-index: 40; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(920px, calc(100% - 28px));
  display: grid; grid-template-columns: auto minmax(0, 1.2fr) auto minmax(160px, 2fr); grid-auto-flow: column; grid-auto-columns: auto; align-items: center; gap: 14px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 34px rgb(0 0 0 / .28); }
html.has-pod-dock body { padding-bottom: 92px; }
.pd-art { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--board); }
.pd-art[hidden] { display: none; }
.pd-text { display: grid; min-width: 0; }
.pd-text b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-text small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-ctl { display: flex; align-items: center; gap: 4px; }
/* Every button the same size: back and ahead as bare icons, play filled, speed and ✕ quiet. */
.pod-dock button { width: var(--pd); height: var(--pd); flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--fg); }
.pod-dock button:hover { background: var(--surface-2); }
.pd-skip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pd-skip text { fill: currentColor; stroke: none; font-size: 6.6px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.pod-dock .pd-play { background: var(--fg); color: var(--bg); }
.pod-dock .pd-play:hover { background: var(--fg); opacity: .88; }
.pd-play svg { width: 12px; height: 12px; }
.pod-dock .speed { width: auto; min-width: var(--pd); padding: 0 6px; border-radius: 16px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.pd-close { font-size: .9rem; color: var(--muted); }
.pd-seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-seek input { width: 100%; accent-color: var(--accent); }
.pod-dock [hidden] { display: none; }
/* Its chapters and sleep timer: icons beside the speed, each opening a little list above the bar. */
.pod-dock .pd-tool { color: var(--muted); }
.pod-dock .pd-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pod-dock .pd-tool.on { width: auto; min-width: var(--pd); padding: 0 8px; gap: 3px; display: inline-flex; border-radius: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pd-tool small { font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-tool small:empty { display: none; }
.pd-pop { position: absolute; right: 14px; bottom: calc(100% + 8px); width: min(340px, calc(100vw - 40px)); max-height: min(420px, 55vh); overflow: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.pd-pop p { margin: 4px 8px 6px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pod-dock .pd-pop button { width: 100%; height: auto; display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 7px 10px;
  border-radius: 6px; text-align: left; font-size: .84rem; line-height: 1.3; }
.pd-pop button span { flex: none; min-width: 3.2em; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.pod-dock .pd-pop button[aria-current] { color: var(--accent); font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 800px) {
  .pod-dock { grid-template-columns: auto minmax(0, 1fr) auto; grid-auto-flow: row; grid-auto-columns: auto; row-gap: 8px; }
  .pod-dock > .pd-tool, .pod-dock > .pd-close { grid-row: 1; }
  .pd-seek { grid-column: 1 / -1; grid-row: 2; }
  .pod-dock .speed { display: none; }
  html.has-pod-dock body { padding-bottom: 126px; }
}

/* On a phone: the pages as tabs at the foot of the screen (_topbar.html.erb), the menu above
   too wide for it; More opens the rest as a sheet above the tabs. */
.tabbar { display: none; }

/* What only a phone has use for (Settings › Tab bar): not at a Mac's width. */
@media (min-width: 641px) { .phone-only { display: none; } }
/* A phone held sideways is wider than 640 px, but still a phone: its tabs too, not the Mac's bar. */
@media (max-width: 640px), (hover: none) and (max-height: 500px) {
  .top-nav { display: none; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  /* Never shorter than the screen (a game's page with spoilers off): iOS then drew the fixed tabs
     halfway up after a longer page. */
  html, body { min-height: 100%; }
  body { box-sizing: border-box; min-height: 100dvh; }
  .tabbar { display: flex; align-items: flex-start; justify-content: space-evenly; position: fixed; z-index: 50; inset: auto 0 0; padding: 12px 4px calc(12px + env(safe-area-inset-bottom));
            background: var(--surface); border-top: 1px solid var(--line); }
  .tab, .tab > summary { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: .64rem; font-weight: 600; line-height: 1.2; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
  .tab > summary::-webkit-details-marker { display: none; }
  .tab[hidden] { display: none; }
  .tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  /* Every tab, More too (a details, which WebKit does not stretch by itself), the same share of the
     bar, its icon in the middle of it: the same room between them all. */
  /* Each tab as wide as its name, with the same room either side for a finger, the room left shared evenly
     between them: the same gap between "Standings" and "Settings" as between "Settings" and "More". */
  .tabbar > .tab { flex: 0 0 auto; min-width: 0; white-space: nowrap; box-sizing: border-box; margin: 0; padding: 0 8px; }
  /* More's panel: out of the bar's row, taking no room in it (its backdrop and sheet are fixed). */
  .tab-more { position: absolute; width: 0; height: 0; overflow: visible; }
  /* More's button as the other tabs, links: none of a button's own frame or type. */
  .tabbar > button.tab { appearance: none; -webkit-appearance: none; background: none; border: 0; font-family: inherit; line-height: 1.2; }
  .tab[aria-current="page"], .tab-more-button[aria-expanded="true"] { color: var(--accent); }
  .tab-count { position: absolute; top: -5px; left: calc(50% + 7px); min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .66rem; line-height: 18px; text-align: center; }
  /* More: a panel in the middle of the screen over the page, dimmed; each section a bold heading
     and its pages as tiles, two a line. Closed, nothing of it laid out (WebKit would, off to the
     right, widening the page). */
  .tab-backdrop { position: fixed; z-index: 1; inset: 0; background: rgb(0 0 0 / .5); cursor: default; }
  .tab-sheet { position: fixed; z-index: 2; left: 16px !important; right: 16px !important; top: 50%; bottom: auto; transform: translateY(-50%);
               display: grid; gap: 18px; max-height: min(82vh, 680px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 20px;
               background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgb(0 0 0 / .35);
               font-size: 1rem; line-height: 1.3; text-align: left; cursor: auto; }
  .tab-more:not([open]) :is(.tab-sheet, .tab-backdrop) { display: none; }
  .tab-sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .tab-sheet-head b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
  .tab-sheet-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--fg); font: inherit; font-size: 1rem; }
  .tab-sheet section { display: grid; gap: 8px; }
  .tab-sheet h3 { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .tab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tab-grid a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 50px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--fg); font-weight: 700; font-size: .95rem; }
  .tab-grid a b { font-weight: 700; }
  /* A live channel: the TV menu's blinking dot before its name. */
  .tab-grid a.tab-live b { display: flex; align-items: center; gap: 7px; }
  .tab-grid a.tab-live i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: lp-pulse 1.4s ease-in-out infinite; }
  .tab-grid a small { font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tab-grid a:active { filter: brightness(.95); }
  .tab-grid a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
  /* The header in one or two short rows: Settings is under More; the theme's switch stays. */
  .top .tools .settings-btn { display: none; }
  .top .tools { gap: 10px; }
  .top .tools .pick { flex: 1 1 140px; min-width: 0; }
}

/* The marathon as fullscreen where Safari cannot give it the screen (an iPhone): the stage over
   the whole window (marathon_controller.js#toggleFullscreen), clear of the notch and the home bar. */
.stage.faux-fs { position: fixed; z-index: 100; inset: 0; overflow: hidden;
                 padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
html.faux-fs-on, html.faux-fs-on body { overflow: hidden; }
/* Black, not the page's light, at the sides of a phone turned on its side: iOS fills the room beside
   the notch with the page's own background. */
html.faux-fs-on, html.faux-fs-on body { background: #000; }
/* The TV the same way where Safari has no fullscreen (tv_dock.js#toggleFullscreen): the picture over
   the whole window, clear of the notch, with a ✕ to leave it. */
.tv-screen.faux-fs { position: fixed; z-index: 100; inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; clip-path: none;
                     margin: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.tv-dock.mini .tv-screen.faux-fs #tv-player { inset: 0; width: 100%; height: 100%; transform: none; }
.tv-exitfs { position: absolute; z-index: 4; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
             background: rgb(0 0 0 / .55); color: #fff; font-size: 1rem; line-height: 36px; }
/* Shown only where it is needed: over the picture once it fills the screen, a phone's (.faux-fs) or,
   on a touch screen, the browser's own fullscreen (an iPad's). A Mac's fullscreen keeps Esc. */
.tv-exitfs { display: none; }
.tv-screen.faux-fs .tv-exitfs { display: block; }
@media (hover: none) { .tv-screen:fullscreen .tv-exitfs { display: block; } }
/* A button only a touch screen has use for (a show's Fullscreen): not with a mouse. */
@media (hover: hover) { .touch-only { display: none !important; } }
/* No keyboard on a touch screen: its shortcuts are not shown. */
@media (hover: none) { .s-hint, .c-hint { display: none; } }

/* Signing in on a server (sessions/new.html.erb). */
.pair { max-width: 420px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 20px 40px; }
.pair .mark { font-size: 1.6rem; }
.pair h1 { font-family: var(--font-display); font-style: var(--display-italic, italic); text-transform: uppercase; font-size: 2rem; line-height: 1; margin: 28px 0 10px; }
.pair p { color: var(--muted); }
.pair-form { display: flex; gap: 10px; margin-top: 22px; }
.pair-form input[type="password"] { font-family: var(--font-body); letter-spacing: normal; }
.pair-form input { flex: 1; min-width: 0; font: inherit; font-family: var(--font-led); font-size: 1.6rem; letter-spacing: .15em; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); }
.pair-form button { font: inherit; font-weight: 700; padding: 0 20px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }

/* Settings › Sync with your server: the address and the key on one row. */
.server-form { display: flex; gap: 10px; align-items: center; }
.server-form input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); }
.server-form input[type="password"] { flex: 0 1 180px; }
@media (max-width: 640px) { .server-form { flex-wrap: wrap; } .server-form input, .server-form input[type="password"] { flex: 1 1 100%; } }
/* Settings on a phone: a row's choices (Text size's five sizes…) go under its label, wrapping. */
@media (max-width: 640px) { .set-list { min-width: 0; } .set-row { flex-wrap: wrap; min-width: 0; } .set-row .seg { flex-wrap: wrap; max-width: 100%; } }
/* Settings › Tab bar (tab_choice_controller.js): the bar as it looks, and every tab under it, to
   drag onto it or tap. A phone's only (.phone-only). */
.tbx { display: grid; gap: 14px; }
.tbx-bar, .tbx-pool { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
/* The bar: its places side by side, as many as there are (one to six, +, More). */
.tbx-bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.tbx-slot { position: relative; }
.tbx-x { position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); color: var(--bg);
         font-size: .8rem; line-height: 20px; text-align: center; font-weight: 700; }
.tbx-add { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.tbx-ghost.tbx-leaving { opacity: .5; box-shadow: 0 10px 30px rgb(0 0 0 / .3), 0 0 0 2px var(--bad); }
.tbx-bar { padding: 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tbx-pool { gap: 8px 6px; }
.tbx-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px 2px 6px; border: 0; border-radius: 10px;
           background: transparent; color: var(--fg); font: inherit; font-size: .66rem; font-weight: 600; line-height: 1.2; text-align: center;
           touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.tbx-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbx-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbx-pool .tbx-tab { background: var(--surface); border: 1px solid var(--line); }
.tbx-slot { color: var(--accent); background: var(--surface-2); }
.tbx-more { color: var(--muted); touch-action: auto; }
.tbx-pool .tbx-in { opacity: .4; }
.tbx-picked, .tbx-over { box-shadow: 0 0 0 2px var(--accent); }
.tbx-pool .tbx-picked { opacity: 1; }
.tbx-lifted { opacity: .25; }
.tbx-ghost { position: fixed; z-index: 200; left: 0; top: 0; pointer-events: none; background: var(--surface); color: var(--accent);
             box-shadow: 0 10px 30px rgb(0 0 0 / .3), 0 0 0 2px var(--accent); }
.tbx-reset { justify-self: start; }

/* The marathon started muted on a phone: Sound on, over the picture (marathon_controller.js). */
.s-unmute { position: absolute; z-index: 4; left: 50%; bottom: 14%; transform: translateX(-50%); padding: 10px 18px; border: 0; border-radius: 999px;
            background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; box-shadow: 0 6px 24px rgb(0 0 0 / .35); }
.s-unmute[hidden] { display: none; }
/* Our Play, where a phone starts nothing by itself (marathon_controller.js, video_dock.js, tv_dock.js):
   over the whole picture, YouTube's card and button under it dimmed, one tap starting it. */
.s-tapplay { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: rgb(0 0 0 / .6); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s-tapplay[hidden] { display: none; }
.s-tapplay span { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 30px rgb(0 0 0 / .4); }
.s-tapplay span::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--accent-ink, #1a0a02); }
.tv-dock.mini .s-tapplay span { width: 48px; height: 48px; }
.tv-dock.mini .s-tapplay span::after { left: 19px; top: 14px; border-width: 10px 0 10px 15px; }
/* In fullscreen, at the top, clear of the controls at the foot. */
.stage:is(:fullscreen, .faux-fs) .s-unmute { bottom: auto; top: calc(16px + env(safe-area-inset-top)); }

/* On a phone, what was wider than the screen (checked page by page at 375 px, 2026-11-27). Only at
   a phone's width: a Mac's window lays out as before. */
/* Safari does not enlarge the text by itself when the phone turns (only the Text size setting does). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 640px) {
  /* 16 px fields: Safari zooms into a smaller one when it is tapped. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  /* Pages whose blocks sized to their widest content (a box score, a bracket): the screen's width. */
  .gm-page, .po-page, .masked { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .gm-cols { grid-template-columns: minmax(0, 1fr); }
  .gm-card { min-width: 0; padding: 12px 14px; }
  /* A game's score: the names and points smaller, side by side. */
  /* A game's score: the two teams side by side, each name over its points, the status under both. */
  .gm-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-side, .gm-side:last-child { grid-row: 1; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "points" "record"; gap: 4px; padding: 14px 16px; }
  .gm-side:first-child { grid-column: 1; }
  .gm-side:last-child { grid-column: 2; }
  .gm-side b { font-size: 1.3rem; min-width: 0; overflow-wrap: anywhere; }
  .gm-points { font-size: 2.4rem; }
  .gm-status { grid-row: 2; grid-column: 1 / -1; padding: 8px 12px; border-inline: 0; border-top: 1px solid var(--board-line); }
  .gm-injuries { grid-template-columns: minmax(0, 1fr); }
  /* The leaders as on a Mac: the visitors on the left, the home team on the right, a stat a line;
     a smaller headshot and number so both fit. */
  .gm-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gm-leader { gap: 8px; padding: 7px 8px; }
  .gm-leader img:not(.team-logo) { width: 30px; height: 30px; }
  .gm-leader b { font-size: 1.2rem; }
  .gm-leader small { font-size: .72rem; }
  /* The quarters across the whole card, each the same width, the teams' column fixed. */
  .gm-line .box-line { width: 100%; table-layout: fixed; }
  .gm-line .box-line th:first-child { width: 64px; min-width: 0; }
  .gm-line .box-line :is(td, thead th:not(:first-child)) { min-width: 0; text-align: center; }
  .gm-line .box-line td.pts { padding-left: 0; }
  .gm-compare { grid-template-columns: 2.2rem minmax(0, 1fr) 6.5rem minmax(0, 1fr) 2.2rem; gap: 6px; font-size: .8rem; }
  .gm-plays li { grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 8px; }
  .gm-board { padding: 12px; overflow-x: auto; }
  /* NBA Cup: the groups one under another, each table scrolling sideways if it must. */
  .cup-groups { grid-template-columns: minmax(0, 1fr); }
  /* Grids whose columns were wider than a small phone (News' feeds, the Dashboard's rings…): one column. */
  .st-teams, .rd-feeds, .db-donuts, .db-when, .pi-confs { grid-template-columns: minmax(0, 1fr); }
  .cup-group { min-width: 0; overflow-x: auto; }
  /* Players: a race's stat line and index under the name, the name given the row's width. */
  .pl-mvp li { grid-template-columns: 1.6rem 48px minmax(0, 1fr); gap: 4px 12px; padding: 10px 12px; }
  .pl-mvp .pl-line, .pl-mvp .pl-index { grid-column: 3 / -1; }
  .pl-line { font-size: 1.05rem; white-space: normal; }
  .pl-lines .pl-recap { grid-column: 2 / -1; justify-self: start; }
  /* Choices in a row (All, Unwatched, Short recaps…): one line, sliding sideways when they do not fit. */
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg > *, .seg a, .seg button { flex: none; white-space: nowrap; }
  .seg a, .seg > button, .seg button { padding: 8px 13px; }
  /* A team's season: League Pass under the opponent, the result at the right, the recaps below. */
  .sg-row { gap: 8px 10px; padding: 8px 10px; }
  .sg-match { flex-wrap: wrap; row-gap: 6px; }
  .sg-match > span:not(.sw) { flex: 1 1 0; min-width: 0; }
  .sg-match .lp { flex-basis: 100%; padding-left: 16px; }
  .sg-match b { font-size: 1.05rem; }
  .sg-marks { flex-wrap: wrap; }
}

/* A team's page on a phone: League Pass and the recap buttons start where the opponent's name
   does, and the strip leaves room for its last flag ("Next · Tonight…") at its end. */
@media (max-width: 640px) {
  .sg-marks { padding-left: 16px; }
  .sg-timeline { padding-right: 110px; }
}
/* On a tablet (a touch screen wider than a phone; never a Mac's window): each game's League Pass
   in one column, right of the names, and the page's buttons on one line. */
@media (min-width: 641px) and (hover: none) and (pointer: coarse) {
  .sg-match > span:not(.sw) { flex: 1 1 0; min-width: 0; }
  .night:has(.tm-title) > .cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .night:has(.tm-title) > .cta .link { margin-left: auto; }
  .sg-result { min-width: 6.4rem; }
}

/* Swiping on a phone or a tablet (a touch screen; never a Mac): a watched card dimmed by its
   opacity rather than a filter, which made every row's pictures repaint as it moved; rows and
   shelves off the screen not laid out until they come near. */
@media (hover: none) {
  .card.seen .poster, .card.seen .thumb, .q.was .poster, .q.was .thumb { filter: none; opacity: .55; }
  .card.seen .ar-art, .card.seen .art { background-color: #0b0d14; }
  .ar-row, .pod-list { scroll-snap-type: none; -webkit-overflow-scrolling: touch; }
  .cv-room > section, .ar-shelf { content-visibility: auto; contain-intrinsic-size: auto 420px; }
}

/* The corner players on a touch screen: dragged by their bar and resized by their grip with a
   finger, rather than scrolling the page under them (corner.js); the grip big enough to catch. */
@media (hover: none) {
  .tv-dock.mini .tv-bar, .corner-grip { touch-action: none; }
  .tv-dock.mini .corner-grip { width: 28px; height: 28px; }
  .tv-dock.mini .s-unmute { bottom: 10px; padding: 6px 12px; font-size: .8rem; }
}

/* The Archive Room's filters on a phone: one line that slides sideways, Surprise me first, rather
   than two rows and Surprise me alone under them. */
@media (max-width: 640px) {
  .ar-sections { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ar-sections::-webkit-scrollbar { display: none; }
  .ar-sections > * { flex: none; white-space: nowrap; }
  .ar-sections .ar-surprise { order: -1; margin-left: 0; }
}

/* The header on a phone or a tablet (a touch screen; never a Mac): one line, without the team
   picker (Teams is a tab, every team's page a tap away), your team as its logo alone. */
@media (hover: none) {
  .top, .top .tools { flex-wrap: nowrap; }
  .top .tools { gap: 8px; margin-left: auto; }
  .top .tools .pick { display: none; }
  .top .fav .btn:has(.team-logo) { padding-inline: 6px; }
  .top .fav .btn:has(.team-logo) .fav-name { display: none; }
  .top .fav .btn .team-logo { margin: 0; width: 1.5em; height: 1.5em; }
  .top .fav .next-game { display: none; }
}

/* The card between two recaps on a phone (a touch screen; never a Mac): in a small screen (upright),
   the score and what comes next only, the buttons one under the other on one line each; sideways in
   fullscreen, no row of the night's games across the middle (the screen too short for it, the card
   and the controls together: ‹ and › stay). */
@media (hover: none) {
  @container (max-width: 560px) {
    html:not(.tv) .s-card { gap: 5cqw; padding: 4cqw 5cqw; }
    html:not(.tv) :is(.c-row .qs, .c-row .ld, .c-next .poster, .c-hint) { display: none; }
    html:not(.tv) :is(.c-label) { margin-bottom: 1cqw; }
    html:not(.tv) :is(.c-row .ab) { font-size: 9cqw; }
    html:not(.tv) :is(.c-row .pts) { font-size: 11cqw; }
    html:not(.tv) :is(.c-next) { width: auto; flex: 1 1 0; min-width: 0; }
    html:not(.tv) :is(.c-title) { font-size: max(.85rem, 4.6cqw); margin: 0 0 2.5cqw; max-width: none; }
    html:not(.tv) :is(.c-next .s-acts) { flex-direction: column; align-items: stretch; gap: 2.5cqw; }
    html:not(.tv) :is(.c-next .s-btn) { padding: 2.2cqw 3cqw; font-size: max(.8rem, 3.8cqw); white-space: nowrap; }
  }
}
/* The card's buttons on a phone, a tablet or the TV (where Exit shows): Watch now, Stay here and Exit
   on one line, never Exit alone under them. Their box as wide as they need (a third of the screen at
   least), the title still within the third; smaller buttons on a smaller screen. Upright on a phone,
   above, they stand one under the other. Never a Mac's. */
@media (hover: none) {
  .c-next .s-acts { flex-wrap: nowrap; }
  .c-next { width: auto; min-width: 34cqw; }
  .c-next .c-title { max-width: 34cqw; }
  .c-next .s-btn { white-space: nowrap; padding-inline: clamp(10px, 1.8cqw, 18px); }
}
html.tv .c-next .s-acts { flex-wrap: nowrap; }
html.tv .c-next { width: auto; min-width: 34cqw; }
html.tv .c-next .c-title { max-width: 34cqw; }
html.tv .c-next .s-btn { white-space: nowrap; padding-inline: clamp(10px, 1.8cqw, 18px); }

@media (hover: none) and (max-height: 500px) {
  .stage.faux-fs .s-side .s-queue { display: none; }
}

/* On a phone, fullscreen is turning it on its side, and back upright to leave: no Fullscreen
   buttons, nor ones to leave it (a tablet, which does not turn into fullscreen, keeps them). */
@media (hover: none) and (max-width: 640px), (hover: none) and (max-height: 500px) {
  /* Not on Android (html.android): a real fullscreen there, entered by its button. */
  html:not(.android) :is([data-marathon-target="fullscreenButton"], [data-tv="fullscreen"], .fs-btn),
  .stage.faux-fs .s-exitfs, .tv-screen.faux-fs .tv-exitfs { display: none !important; }
}

/* No scroll bar anywhere on a phone, a tablet or a TV (a touch screen or Tip-Off for TV; never a
   Mac's window, whose inner boxes keep theirs for a mouse): More's panel, a box score, a bracket
   still scroll by a swipe or the remote. */
@media (hover: none) {
  * { scrollbar-width: none; }
  *::-webkit-scrollbar { display: none; }
}
html.tv * { scrollbar-width: none; }
html.tv *::-webkit-scrollbar { display: none; }

/* Menus on a phone or a tablet (dropdown_controller.js#asSheet: League Pass's, the top bar's on a
   tablet), as More: a panel in the middle of the screen over the page, dimmed, the menu's name and
   its ✕ above large rows. */
@media (hover: none) {
  details.as-sheet:not([open]) > .menu-backdrop { display: none; }
  details.as-sheet > .menu-backdrop { position: fixed; z-index: 200; inset: 0; background: rgb(0 0 0 / .5); cursor: default; }
  details.as-sheet > :is(.lp-menu, .nav-menu-list) { position: fixed; z-index: 201; left: 16px !important; right: 16px !important; top: 50% !important; bottom: auto !important;
    transform: translateY(-50%); width: auto; max-width: 480px; margin-inline: auto; min-width: 0; max-height: min(82vh, 680px); overflow-y: auto; overscroll-behavior: contain;
    display: grid; gap: 8px; padding: 16px 16px 20px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 20px 60px rgb(0 0 0 / .35); font-size: 1rem; text-align: left; white-space: normal; }
  .menu-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
  .menu-sheet-head b { font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
  .menu-sheet-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--fg); font: inherit; font-size: 1rem; }
  details.as-sheet > :is(.lp-menu, .nav-menu-list) > a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 12px 16px;
    border-radius: 12px; background: var(--surface-2); color: var(--fg); }
  details.as-sheet > :is(.lp-menu, .nav-menu-list) > a b { font-size: 1rem; font-weight: 700; }
  details.as-sheet > :is(.lp-menu, .nav-menu-list) > a small { font-size: .78rem; color: var(--muted); }
  details.as-sheet > :is(.lp-menu, .nav-menu-list) > a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--accent); }
}

/* Settings on a phone: what has no use there (the top bar's Podcasts icon, which it does not
   show either), and the themes and fonts two a line rather than one, a shorter page. */
@media (max-width: 640px) {
  .not-phone, .top .tools .pod-btn { display: none !important; }
  .set-themes, .set-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}


/* Tip-Off for TV (the Shield's app: html.tv, tv_nav.js): what the remote is on, as a hover would
   show it, subtly, in its own box and nothing past it: a faint wash of the accent over its own
   background (kept: a lit button stays lit) and a faint accent edge inside its edges, over a
   picture too. Nothing grows, moves or is spread round it, so nothing overlaps, and a button placed
   over the video (fullscreen) stays where it is. The same for everything, cards to the smallest link.
   No pointer. Nowhere else. */
html.tv, html.tv * { cursor: none !important; }
html.tv :focus, html.tv :focus-visible { outline: none !important; }
/* The page at the TV's own size: the header across the screen, big; what is under it a little
   narrower, with room either side, still big. A video's fullscreen fills the screen. */
/* Never the phone's tab bar, even when the keyboard comes up and leaves the page shorter than a
   phone held sideways (Settings' search, a sign-in): the TV keeps its own header. */
html.tv .tabbar { display: none !important; }
html.tv:not(.has-pod-dock) body { padding-bottom: 0; }
html.tv .shell > :not(.top) { width: 90%; align-self: center; zoom: .85; }
/* Laid out at once (a phone's lay them out as they come near): no work while the remote scrolls. */
html.tv :is(.cv-room > section, .ar-shelf) { content-visibility: visible; }
/* What the remote is on, as a mouse's hover would show it (no box round it): a light wash of the
   item's own text color behind a button, a link, a night, a line of a list (light on a dark one,
   dark on the light one chosen); a picture card, a Start
   lifts a little with a shadow; a filled round button (Play) a soft halo of the same wash. Square
   corners a little rounded. Chosen among several tried on the TV's size (2026-11-29). */
html.tv .tv-focus { --tv-wash: color-mix(in srgb, currentColor 17%, transparent); background-image: linear-gradient(var(--tv-wash), var(--tv-wash)) !important; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
html.tv .tv-focus.tv-round { border-radius: 6px; }
html.tv :is(.play, .go, .tm-tile, .ar-card, .ar-link, .pp, .s-shield, .tv-shield).tv-focus { background-image: none !important; }
html.tv :is(.play, .go, .tm-tile, .ar-card).tv-focus { transform: scale(1.05); box-shadow: 0 14px 34px rgb(0 0 0 / .55); filter: brightness(1.14); position: relative; z-index: 2; }
/* A show's or a classic's picture (.ar-link) lifts as a game's card does, its rounded corners kept;
   the shelves that slide sideways given room for it, so their edges do not cut it. */
html.tv .ar-link.tv-focus { display: block; border-radius: 8px; transform: scale(1.05); box-shadow: 0 14px 34px rgb(0 0 0 / .55); filter: brightness(1.14); position: relative; z-index: 2; }
html.tv .ar-row { padding: 16px 14px 26px; margin: -16px -14px -26px; scroll-padding-inline: 14px; }
html.tv .pp.tv-focus { box-shadow: 0 0 0 7px color-mix(in srgb, var(--board-fg) 22%, transparent); filter: brightness(1.12); }
html.tv :is(.s-shield, .tv-shield).tv-focus { background: rgb(255 255 255 / .07); }
/* The header's pages: the one the remote is on underlined as the page shown is (tv_nav.js opens it
   after a moment, as a TV app's tabs do), nothing else. */
html.tv .top-nav :is(a, summary).tv-focus { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; background: none; background-image: none !important; }
/* While the remote is on another of them, the page shown keeps only a faint line. */
html.tv .top-nav:has(.tv-focus) :is(a, summary)[aria-current="page"]:not(.tv-focus) { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 30%, transparent); }

/* The live channels' drawer (tv/show.html.erb, tv_nav.js): at the left of the screen, over the page,
   slid out of sight until the remote's Left brings it; the channel on now marked. */
html.tv .tv-drawer { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 300px; box-sizing: border-box; padding: 26px 14px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; background: var(--surface); box-shadow: 10px 0 40px rgb(0 0 0 / .45); transform: translateX(-105%); transition: transform .2s ease; }
html.tv .tv-drawer.open { transform: none; }
html.tv .tv-drawer-head { margin: 0 10px 10px; font-family: var(--font-display); font-style: var(--display-italic, italic); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; }
html.tv .tv-drawer-link { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--fg); }
html.tv .tv-drawer-link b { font-weight: 700; font-size: .95rem; }
html.tv .tv-drawer-link small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.tv .tv-drawer-link[aria-current="page"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
html.tv .tv-drawer-hint { position: fixed; z-index: 5; left: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; margin: 0; padding: 12px 5px;
  border-radius: 8px 0 0 8px; background: var(--surface); color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html.tv .tv-drawer.open ~ .tv-drawer-hint, html.faux-fs-on .tv-drawer-hint { display: none; }
/* Small text links as buttons on the TV, as Mark as watched (.mini): each a clear thing for the
   remote to stop on, rather than a few letters (Game ›, Show preseason, a shelf's or a night's title). */
html.tv :is(.card-game, .sg-game, .link, .po-empty-link, .ar-shelf-acts a, .db-sources a, .fr-recap, .set-label a,
            .ar-title-link, .sec-head h2 > a:not(.fold), .ms-let-go, .cu-head small a) {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  color: var(--fg); font-family: var(--font-body); font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; line-height: 1.3;
  width: fit-content; max-width: 100%; }
html.tv .cta .link { margin-left: auto; }
html.tv .stage .sp-more { display: inline-flex; padding: 5px 10px; border: 1px solid var(--board-line); border-radius: 4px; background: var(--board-2); text-decoration: none; }
html.tv .stage .s-top .x { padding: 6px 12px; border: 1px solid var(--board-line); border-radius: 4px; background: var(--board-2); color: var(--board-fg); font-size: .82rem; }
/* Sections do not fold on the TV (collapse_controller.js keeps them open): no chevron to press. */
html.tv .fold { pointer-events: none; }
html.tv .fold svg { display: none; }

/* AirPlay (Play it on TV) has no use on the TV itself. */
html.tv .tv-cast { display: none !important; }
/* Fullscreen as an icon on the TV (a trial, before anywhere else): four arrows going out (Lucide's
   "maximize", ISC licence), in (its "minimize") to leave; no chip round them, the word kept for
   screen readers only. The marathon's and a recap's, a channel's, a show's. */
html.tv { --icon-max: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M21 8V5a2 2 0 0 0-2-2h-3'/%3E%3Cpath d='M3 16v3a2 2 0 0 0 2 2h3'/%3E%3Cpath d='M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); --icon-min: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v3a2 2 0 0 1-2 2H3'/%3E%3Cpath d='M21 8h-3a2 2 0 0 1-2-2V3'/%3E%3Cpath d='M3 16h3a2 2 0 0 1 2 2v3'/%3E%3Cpath d='M16 21v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E"); }
html.tv :is(.s-mode button, .tv-dock [data-tv="fullscreen"], .fs-btn) { font-size: 0 !important; letter-spacing: 0; width: 34px; height: 34px !important; padding: 0 !important;
  display: inline-grid; place-items: center; background: transparent !important; border: 0 !important; border-radius: 6px; color: var(--board-fg); }
html.tv .tv-dock [data-tv="fullscreen"], html.tv .fs-btn { color: var(--fg); }
/* The remote on it: the same wash as everywhere (its own rule keeps it see-through otherwise). */
html.tv :is(.s-mode button, .tv-dock [data-tv="fullscreen"], .fs-btn).tv-focus { background: color-mix(in srgb, currentColor 17%, transparent) !important; }
html.tv :is(.s-mode button, .tv-dock [data-tv="fullscreen"], .fs-btn)::before { content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--icon-max) center / contain no-repeat; mask: var(--icon-max) center / contain no-repeat; }
html.tv .stage:is(:fullscreen, .faux-fs) .s-exitfs { font-size: 0; width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; }
html.tv .stage:is(:fullscreen, .faux-fs) .s-exitfs::before { content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--icon-min) center / contain no-repeat; mask: var(--icon-min) center / contain no-repeat; }

/* The marathon's top on the TV: what is playing (Long marathon) written, not a tag, just after Exit;
   the count in the middle; Fullscreen at the right. */
html.tv .s-top { display: flex; align-items: center; gap: 18px; position: relative; }
html.tv .s-top .s-count { position: absolute; left: 50%; transform: translateX(-50%); }
html.tv .s-top .s-mode { display: contents; }
html.tv .s-top .s-mode > span { height: auto; padding: 0; border: 0; border-radius: 0; text-transform: none; letter-spacing: 0; text-indent: 0;
  font-size: .9rem; font-weight: 600; line-height: 1.2; color: var(--board-fg); }
html.tv .s-top .s-mode button { margin-left: auto; }
/* A channel always plays with its sound on the TV (tv_dock.js): no Turn the sound on. */
html.tv .tv-dock [data-tv="unmute"] { display: none !important; }
/* Nor Sound on over a recap, a marathon or a show: they start with their sound there too. */
html.tv .s-unmute { display: none !important; }
/* A marathon's Start (slanted on the page): stood up straight, its corners rounded, as it used to. */
html.tv .go.tv-focus { transform: scale(1.04); border-radius: 8px; }
html.tv .go.tv-focus > * { transform: none; }

/* The card between two recaps, fullscreen on a touch screen: the card alone, no game bar nor the
   controls over it (they come back with the next recap). */
@media (hover: none) {
  .stage:is(:fullscreen, .faux-fs):has(.s-card:not([hidden])) :is(.s-bug, .s-bar, .s-ctl, .s-exitfs, .s-side .s-queue) { display: none !important; }
  .stage:is(:fullscreen, .faux-fs):has(.s-card:not([hidden])) .s-main::after { opacity: 0; }
}

