/* Strand — site styles.
   The site borrows Strand's own interface rather than a web template: the tvOS hero with its
   title treatment and metadata row, the app on each device in a frame of its own with its screen's
   colours glowing behind it, the programme guide (channel tiles, tinted programme cells, a red now-line), the Strand Pro
   paywall, and Apple's grouped lists for everything you read. System fonts only.
   Dark first, like the app. A `.screen` section stays dark in light mode: it's a TV. */

:root,
.screen {
  --bg: #000;
  --bg-raised: #0d0d0f;
  --cell: #1c1c1e;
  --cell-2: #2c2c2e;
  --cell-hover: #262628;
  --label: #f5f5f7;
  --label-2: rgba(235, 235, 245, 0.64);
  --label-3: rgba(235, 235, 245, 0.36);
  --separator: rgba(84, 84, 88, 0.6);
  --fill: rgba(255, 255, 255, 0.11);
  --fill-strong: rgba(255, 255, 255, 0.2);
  --field: rgba(118, 118, 128, 0.24);
  --solid: #f5f5f7;
  --on-solid: #000;
  --link: #4ea1ff;
  --red: #ff453a;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --green: #30d158;
  --teal: #40c8e0;
  --blue: #0a84ff;
  --indigo: #5e5ce6;
  --purple: #bf5af2;
  --pink: #ff375f;
  --grey: #8e8e93;
  --segment-on: #636366;
  --shadow-lift: 0 22px 44px -12px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f2f7;
    --bg-raised: #fff;
    --cell: #fff;
    --cell-2: #e5e5ea;
    --cell-hover: #f6f6f9;
    --label: #000;
    --label-2: rgba(60, 60, 67, 0.66);
    --label-3: rgba(60, 60, 67, 0.36);
    --separator: rgba(60, 60, 67, 0.2);
    --fill: rgba(120, 120, 128, 0.12);
    --fill-strong: rgba(120, 120, 128, 0.22);
    --field: rgba(118, 118, 128, 0.12);
    --solid: #000;
    --on-solid: #fff;
    --link: #0066cc;
    --red: #ff3b30;
    --orange: #ff9500;
    --yellow: #ffcc00;
    --green: #34c759;
    --teal: #30b0c7;
    --blue: #007aff;
    --indigo: #5856d6;
    --purple: #af52de;
    --pink: #ff2d55;
    --segment-on: #fff;
    --shadow-lift: 0 22px 44px -16px rgba(0, 0, 0, 0.35);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f2f2f7;
  --bg-raised: #fff;
  --cell: #fff;
  --cell-2: #e5e5ea;
  --cell-hover: #f6f6f9;
  --label: #000;
  --label-2: rgba(60, 60, 67, 0.66);
  --label-3: rgba(60, 60, 67, 0.36);
  --separator: rgba(60, 60, 67, 0.2);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-strong: rgba(120, 120, 128, 0.22);
  --field: rgba(118, 118, 128, 0.12);
  --solid: #000;
  --on-solid: #fff;
  --link: #0066cc;
  --red: #ff3b30;
  --orange: #ff9500;
  --yellow: #ffcc00;
  --green: #34c759;
  --teal: #30b0c7;
  --blue: #007aff;
  --indigo: #5856d6;
  --purple: #af52de;
  --pink: #ff2d55;
  --segment-on: #fff;
  --shadow-lift: 0 22px 44px -16px rgba(0, 0, 0, 0.35);
  color-scheme: light;
}

.screen { background: var(--bg); color: var(--label); color-scheme: dark; }

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* The guide's channel tints, as in the app's guide. */
  --ch-red: #6b1f24;
  --ch-amber: #6e4a10;
  --ch-slate: #363a42;
  --ch-green: #1d5228;
  --ch-brick: #6a2d17;
  --ch-plum: #4a2a5c;
  --ch-blue: #1f3f66;
}

@media (min-width: 760px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1500px) {
  :root { --page: 1360px; --gutter: 48px; }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
button { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--solid); color: var(--on-solid); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 8px; }

.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }

.large-title { font: 700 clamp(34px, 5vw, 48px)/1.08 var(--font-display); letter-spacing: -0.03em; }
.title-2 { font: 700 22px/1.25 var(--font-display); letter-spacing: -0.02em; }
.secondary { color: var(--label-2); }
.tertiary { color: var(--label-3); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 0.5px solid var(--separator);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header .wrap { position: relative; display: flex; align-items: center; height: 60px; gap: 16px; }

/* On Home the header floats over the hero, clear and light-on-dark like the menu bar over a tvOS
   hero, until the page scrolls under it; then it's the ordinary header for the chosen theme. */
body.home .site-header { position: fixed; left: 0; right: 0; }
body.home .site-header:not(.scrolled) {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  --label: #f5f5f7; --label-2: rgba(235, 235, 245, 0.72); --fill: rgba(255, 255, 255, 0.14);
  --fill-strong: rgba(255, 255, 255, 0.24); --solid: #f5f5f7; --on-solid: #000; --separator: rgba(84, 84, 88, 0.5);
  --bg: #000; --cell: #1c1c1e; --cell-hover: #262628;
  color: #f5f5f7;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand .icon-dark { display: none; }
:root[data-theme="dark"] .brand .icon-light { display: none; }
:root[data-theme="dark"] .brand .icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .icon-light { display: none; }
  :root:not([data-theme="light"]) .brand .icon-dark { display: block; }
}
body.home .site-header:not(.scrolled) .brand .icon-light { display: none; }
body.home .site-header:not(.scrolled) .brand .icon-dark { display: block; }

/* The menu bar is the tvOS top tab bar: a capsule, and the current tab is the lit one. */
.tabbar {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--fill);
}
.tabbar a {
  font: 500 14.5px/1 var(--font); text-decoration: none; color: var(--label-2);
  padding: 9px 16px; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.tabbar a:hover { color: var(--label); background: var(--fill); }
.tabbar a[aria-current="page"] { background: var(--solid); color: var(--on-solid); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.round-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--fill); color: var(--label); cursor: pointer; font-size: 18px;
  transition: background 0.2s ease;
}
.round-button:hover { background: var(--fill-strong); }
.menu-button { display: none; }

.menu-sheet {
  position: absolute; top: 60px; left: 0; right: 0; padding: 12px var(--gutter) 22px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
  border-bottom: 0.5px solid var(--separator);
}

/* Seven tabs and the header's buttons (Discord, the theme, Get Strand, and the inbox when signed in)
   need about 1,140 pixels; below that, the menu button. */
@media (max-width: 1139px) {
  .tabbar { display: none; }
  .menu-button { display: inline-grid; }
}
@media (max-width: 420px) {
  .header-actions .pill-small { display: none; }
}

/* ------------------------------------------------------------------ buttons */

.btn-play, .btn-pill, .btn, .btn-secondary, .pill-small {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s ease, box-shadow 0.25s var(--ease);
}
.btn-play { height: 52px; padding: 0 26px; border-radius: 12px; font: 600 18px/1 var(--font); background: var(--solid); color: var(--on-solid); }
.btn-play .icon { font-size: 20px; }
.btn-pill {
  height: 52px; padding: 0 20px; border-radius: 12px; font: 500 17px/1 var(--font);
  background: var(--fill); color: var(--label); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.btn-pill .icon { font-size: 20px; }
.btn-play:hover, .btn-pill:hover { transform: scale(1.045); box-shadow: var(--shadow-lift); }
.btn-pill:hover { background: var(--fill-strong); }
.btn-play:active, .btn-pill:active { transform: scale(0.98); }

.btn { height: 44px; padding: 0 20px; border-radius: 999px; font: 600 16px/1 var(--font); background: var(--solid); color: var(--on-solid); }
.btn-secondary { height: 44px; padding: 0 20px; border-radius: 999px; font: 500 16px/1 var(--font); background: var(--fill); color: var(--label); }
.btn:hover, .btn-secondary:hover { transform: scale(1.03); }
.btn-secondary:hover { background: var(--fill-strong); }
.btn[disabled], .btn-secondary[disabled] { opacity: 0.45; cursor: default; transform: none; }
.btn.small, .btn-secondary.small { height: 34px; padding: 0 14px; font-size: 14.5px; }
.btn .icon, .btn-secondary .icon { font-size: 18px; }
.pill-small { height: 34px; padding: 0 16px; border-radius: 999px; font: 600 14.5px/1 var(--font); background: var(--solid); color: var(--on-solid); }
.pill-small:hover { transform: scale(1.04); }
.text-button { border: 0; background: none; padding: 0; color: var(--link); font: inherit; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.text-button.strong { font-weight: 600; }
.text-button[disabled] { opacity: 0.4; cursor: default; text-decoration: none; }

.badge { display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 4px; border: 1.5px solid currentColor; font: 700 11.5px/1 var(--font); letter-spacing: 0.01em; }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--label-2); font: 500 16px/1.3 var(--font); margin: 0; }
.meta-row .dot { color: var(--label-3); }

/* ------------------------------------------------------------------ hero (the tvOS hero banner) */

.hero { position: relative; min-height: 640px; height: min(100svh, 940px); overflow: hidden; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 65% 40%); transform: scale(1.05); transition: transform 10s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.64) 30%, rgba(0, 0, 0, 0.14) 62%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 16%);
}
.hero-body { position: absolute; left: 0; right: 0; bottom: clamp(80px, 13vh, 140px); }
.hero-title { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.hero-title img { width: clamp(62px, 7vw, 86px); height: auto; border-radius: 22%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.hero-title span { font: 300 clamp(40px, 6vw, 74px)/1 var(--font-display); letter-spacing: 0.4em; text-transform: uppercase; margin-right: -0.4em; }
.hero .meta-row { color: rgba(235, 235, 245, 0.8); }
.hero-synopsis { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.45; color: rgba(245, 245, 247, 0.9); max-width: 32em; margin: 18px 0 10px; }
.hero-cast { font-size: 15px; color: rgba(235, 235, 245, 0.6); margin: 0 0 26px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 7px; align-items: center; }
.dots button { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.4s var(--ease), background 0.3s ease; }
.dots button[aria-current="true"] { width: 22px; background: #fff; }
.hero-credit { margin: 0; font-size: 12px; color: rgba(235, 235, 245, 0.5); }

@media (max-width: 759px) {
  .hero { height: auto; min-height: 0; padding-top: 64vw; }
  .hero-slides { bottom: auto; height: 108vw; }
  .hero-slide img { object-position: var(--focus-phone, 70% 30%); }
  .hero::after { background: linear-gradient(0deg, #000 0%, #000 calc(100% - 108vw + 20vw), rgba(0, 0, 0, 0.35) calc(100% - 50vw), rgba(0, 0, 0, 0.25) 100%); }
  .hero-body { position: relative; bottom: auto; padding-top: 0; padding-bottom: 76px; }
  .hero-title { gap: 14px; }
  .btn-play, .btn-pill { height: 46px; font-size: 16px; padding: 0 18px; }
  .hero-foot { bottom: 22px; }
  .hero-credit { display: none; }
}

/* ------------------------------------------------------------------ Home's sections */

.band { padding-top: 6px; padding-bottom: 36px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.row-title { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.row-title .icon { font-size: 18px; color: var(--label-3); }
a.row-title:hover .icon { color: var(--label); }
.row-sub { color: var(--label-2); font-size: 15.5px; margin: 4px 0 0; max-width: 46em; }

/* ------------------------------------------------------------------ In the app (the devices) */

/* One device at a time, drawn as the thing itself, with the screen's own colours glowing behind
   it. --stage-h sets the device's size: a TV's width is 1.7 of it, a MacBook's 1.52, an iPad and
   an iPhone are as tall as it. The stage keeps one height on a wide screen, so changing device
   never moves the page under the pointer. */
.showcase-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.showcase-devices button { min-width: 0; padding: 0 16px; }
.stage {
  --stage-h: clamp(320px, 38vw, 540px);
  position: relative; isolation: isolate; display: grid; place-items: center;
  height: calc(var(--stage-h) + 56px); margin-top: 34px;
}
.device { position: relative; margin: 0; animation: device-in 0.6s var(--ease) both; }
@keyframes device-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
.device-glow { position: absolute; inset: 6% -5% -2%; z-index: -1; filter: blur(80px) saturate(1.8); opacity: 0.75; pointer-events: none; }
.device-glow picture, .device-screen picture { position: absolute; inset: 0; transition: opacity 0.45s ease; }
.device-glow img, .device-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-glow .is-entering, .device-screen .is-entering { opacity: 0; }
.device-body {
  position: relative; background: #0b0b0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 44px 80px -36px rgba(0, 0, 0, 0.75);
}
.device-screen { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: #000; cursor: zoom-in; }
.device-screen:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.device-stand { display: none; }

.device--tv { width: min(100%, calc(var(--stage-h) * 1.7)); }
.device--tv .device-body { padding: 0.7%; border-radius: 14px; }
.device--tv .device-screen { aspect-ratio: 16 / 9; border-radius: 8px; }
.device--tv .device-stand {
  display: block; position: relative; width: 24%; height: 7px; margin: 24px auto 0; border-radius: 4px;
  background: linear-gradient(#3c3c40, #18181a); box-shadow: 0 14px 24px -10px rgba(0, 0, 0, 0.7);
}
.device--tv .device-stand::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 12%; height: 24px; transform: translateX(-50%);
  background: linear-gradient(90deg, #18181a, #3c3c40, #18181a);
}

.device--mac { width: min(100%, calc(var(--stage-h) * 1.52)); }
.device--mac .device-body { padding: 1.5% 1.5% 2.2%; border-radius: 18px 18px 4px 4px; }
.device--mac .device-screen { aspect-ratio: 16 / 10; border-radius: 6px; }
.device--mac .device-stand {
  display: block; position: relative; width: 114%; margin-left: -7%; height: 14px; border-radius: 2px 2px 16px 16px;
  background: linear-gradient(#e4e5e9, #b0b2b7 55%, #7d7f84); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.6);
}
.device--mac .device-stand::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 5px; transform: translateX(-50%);
  border-radius: 0 0 8px 8px; background: #95979c;
}

.device--ipad { height: var(--stage-h); }
.device--ipad .device-body { height: 100%; padding: calc(var(--stage-h) * 0.024); border-radius: calc(var(--stage-h) * 0.055); }
.device--ipad .device-screen { height: 100%; width: auto; aspect-ratio: 3 / 4; border-radius: calc(var(--stage-h) * 0.033); }

/* iPhone: three at once, the chosen screen in front. A side phone brings itself to the front. */
.device-fan { position: relative; display: grid; place-items: center; width: 100%; height: var(--stage-h); }
.device-fan > .device-glow { inset: 6% 22% 0; }
.device--phone { grid-area: 1 / 1; height: 100%; animation: none; transition: transform 0.6s var(--ease), filter 0.6s ease; }
.device--phone .device-body { height: 100%; padding: calc(var(--stage-h) * 0.016); border-radius: calc(var(--stage-h) * 0.085); }
.device--phone .device-screen { height: 100%; width: auto; aspect-ratio: 660 / 1434; border-radius: calc(var(--stage-h) * 0.07); }
.device--phone[data-slot="center"] { z-index: 2; }
.device--phone[data-slot="left"] { transform: translateX(-66%) scale(0.86); filter: brightness(0.55); }
.device--phone[data-slot="right"] { transform: translateX(66%) scale(0.86); filter: brightness(0.55); }
.device--phone:not([data-slot="center"]) .device-screen { cursor: pointer; }
.device--phone:not([data-slot="center"]):hover { filter: brightness(0.8); }
.stage[data-kind="iphone"] .device-fan { animation: device-in 0.6s var(--ease) both; }

/* Vision Pro: what you see through it, so no frame, only the window's own rounding. */
.device--vision { width: min(100%, calc(var(--stage-h) * 1.78)); }
.device--vision .device-body { background: none; border-radius: 24px; }
.device--vision .device-screen { aspect-ratio: 16 / 9; border-radius: 24px; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .device-glow { opacity: 0.5; }
  :root:not([data-theme="dark"]) .device-body { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 44px 80px -36px rgba(0, 0, 0, 0.45); }
}
:root[data-theme="light"] .device-glow { opacity: 0.5; }
:root[data-theme="light"] .device-body { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 44px 80px -36px rgba(0, 0, 0, 0.45); }
@media (prefers-reduced-motion: reduce) {
  .device, .stage[data-kind="iphone"] .device-fan { animation: none; }
  .device--phone { transition: none; }
}

.stage-foot { display: grid; justify-items: center; gap: 14px; margin-top: 26px; text-align: center; }
.screen-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.screen-chip {
  height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--fill); color: var(--label);
  font: 500 14.5px/1 var(--font); cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.screen-chip:hover { background: var(--fill-strong); }
.screen-chip[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.screen-caption { margin: 0; max-width: 40em; min-height: 1.5em; font-size: 16px; color: var(--label-2); }

.features-head { margin-top: 80px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.feature { padding: 22px 22px 24px; border-radius: 20px; background: var(--cell); }
.feature .icon-tile { width: 36px; height: 36px; border-radius: 9px; font-size: 20px; }
.feature h3 { font: 600 17px/1.3 var(--font); letter-spacing: -0.01em; margin: 16px 0 6px; }
.feature p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--label-2); }
@media (max-width: 999px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A phone: the stage runs to the screen's edges and takes each device's own height, and the
   devices switcher fills the width. */
@media (max-width: 759px) {
  .showcase-devices { display: flex; width: 100%; }
  .showcase-devices button { flex: 1; padding: 0 4px; font-size: 13px; }
  .stage { --stage-h: 62vw; height: auto; margin: 26px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter); overflow-x: clip; }
  .stage[data-kind="ipad"] { --stage-h: 104vw; }
  .stage[data-kind="iphone"] { --stage-h: 112vw; }
  .device--phone[data-slot="left"] { transform: translateX(-60%) scale(0.84); }
  .device--phone[data-slot="right"] { transform: translateX(60%) scale(0.84); }
  .device--tv .device-stand { margin-top: 16px; }
  .device--tv .device-stand::before { height: 16px; }
  .features-head { margin-top: 56px; }
}
@media (max-width: 599px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ the guide (EPG) */

.epg { border-radius: 22px; background: #0b0b0d; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.09) inset; }
.epg-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; padding: 26px 28px 20px; min-height: 200px; }
.epg-head .ch-tile { width: 136px; min-height: 78px; }
.epg-head h3 { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; margin: 2px 0 8px; }
.epg-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--label-2); margin: 0 0 10px; }
.epg-when .bar { width: 120px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.epg-when .bar i { display: block; height: 100%; background: #fff; }
.epg-desc { color: var(--label-2); max-width: 46em; margin: 0 0 10px; }
.epg-head a { color: var(--link); text-decoration: none; font-size: 15px; font-weight: 500; }
.epg-head a:hover { text-decoration: underline; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 6px; border-radius: 4px; background: rgba(255, 69, 58, 0.18); color: var(--red); font: 700 11px/1 var(--font); letter-spacing: 0.04em; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.epg-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.epg-grid {
  --ch-w: 160px; --slot-min: 124px;
  position: relative; display: grid; grid-template-columns: var(--ch-w) repeat(var(--slots, 7), minmax(var(--slot-min), 1fr));
  min-width: calc(var(--ch-w) + var(--slots, 7) * var(--slot-min) + 24px); padding: 0 12px 14px; row-gap: 6px;
}
.epg-time { height: 38px; display: flex; align-items: center; padding-left: 10px; font: 500 13px/1 var(--font); color: var(--label-2); border-bottom: 0.5px solid rgba(255, 255, 255, 0.08); position: relative; }
.epg-time.is-now { color: var(--label); font-weight: 700; }
.epg-corner { position: sticky; left: 0; z-index: 3; background: #0b0b0d; border-bottom: 0.5px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; padding-left: 4px; font: 700 13px/1 var(--font); color: var(--label); }
.epg-channel { position: sticky; left: 0; z-index: 2; background: #0b0b0d; padding-right: 8px; display: flex; }
.ch-tile {
  display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 100%; min-height: 62px; padding: 8px 12px; border-radius: 10px;
  background: var(--tint, var(--ch-slate)); color: #fff; font: 700 12.5px/1.1 var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}
.ch-tile .icon { font-size: 19px; }
.ch-tile small { font: 500 11.5px/1.25 var(--font); text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, 0.66); }

.prog {
  position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 62px; min-width: 0;
  margin-right: 5px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: #fff;
  background: color-mix(in srgb, var(--tint, var(--ch-slate)) 80%, #000);
  transition: box-shadow 0.15s ease, background 0.2s ease;
}
.prog strong { font: 600 15px/1.25 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog span { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog.is-past { background: color-mix(in srgb, var(--tint, var(--ch-slate)) 36%, #0b0b0d); }
.prog.is-past strong { color: rgba(255, 255, 255, 0.5); }
.prog.is-past span { color: rgba(255, 255, 255, 0.34); }
.prog.is-now { background: linear-gradient(90deg, color-mix(in srgb, var(--tint, var(--ch-slate)) 82%, #fff) 0 var(--played, 0%), color-mix(in srgb, var(--tint, var(--ch-slate)) 92%, #000) var(--played, 0%)); }
.prog .left { position: absolute; right: 8px; bottom: 7px; font: 700 10.5px/1 var(--font); color: #fff; background: var(--red); padding: 3px 5px; border-radius: 4px; }
.prog:hover, .prog:focus-visible, .prog.is-focused { box-shadow: 0 0 0 2.5px #fff inset; outline: none; }
.now-line { position: absolute; top: 30px; bottom: 14px; width: 2px; margin-left: -1px; background: var(--red); z-index: 1; pointer-events: none; box-shadow: 0 0 10px rgba(255, 69, 58, 0.6); }
.now-line::before { content: ""; position: absolute; top: -3px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--red); }

/* Without JavaScript the guide's data is a plain list. */
.epg-source { list-style: none; margin: 0; padding: 26px 28px 28px; display: grid; gap: 22px; }
.epg-source > li > ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.epg-source a { color: var(--label); text-decoration: none; font-weight: 600; }
.epg-source p { color: var(--label-2); font-size: 15px; margin: 0; }
.epg-source .ch-name { font-weight: 700; }
.epg.is-built .epg-source { display: none; }

@media (max-width: 759px) {
  .epg { margin: 0 calc(var(--gutter) * -1); border-radius: 0; box-shadow: none; }
  .epg-head { grid-template-columns: 1fr; padding: 20px var(--gutter) 16px; gap: 10px; min-height: 236px; }
  .epg-head .ch-tile { width: auto; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; padding: 7px 10px; justify-self: start; }
  .epg-head .ch-tile small { display: none; }
  .epg-grid { --ch-w: 100px; --slot-min: 128px; padding-left: var(--gutter); }
  .epg-channel .ch-tile { font-size: 10.5px; padding: 8px; }
  .epg-channel .ch-tile small { display: none; }
}

/* ------------------------------------------------------------------ Strand Pro (the paywall) */

.paywall { display: grid; gap: 36px; padding: clamp(28px, 5vw, 60px); border-radius: 28px; background: radial-gradient(120% 90% at 50% -10%, #2b2b31 0%, #131316 55%, #0a0a0c 100%); }
@media (min-width: 900px) { .paywall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; } }
.paywall-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 16px; }
.spaced { font: 500 13px/1 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: var(--label-2); margin: 0 0 12px; }
.paywall h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -0.025em; margin-bottom: 10px; }
.paywall-sub { color: var(--label-2); font-size: 18px; margin-bottom: 28px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.perks li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.perks .perk-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--fill); font-size: 19px; }
.perks strong { display: block; font-weight: 600; }
.perks span { color: var(--label-2); font-size: 15px; }
.plans { display: grid; gap: 12px; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.plan strong { font: 600 19px/1.2 var(--font); }
.plan .price { text-align: right; font: 700 18px/1.2 var(--font); }
.plan small { display: block; color: var(--label-2); font-size: 14px; margin-top: 3px; }
.plan .price small { color: var(--label); font-weight: 600; font-size: 13px; }
.plan .save { margin-left: 8px; vertical-align: 2px; font: 700 11px/1 var(--font); letter-spacing: 0.06em; padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); }
.plan--best { background: #f5f5f7; color: #000; box-shadow: 0 10px 34px rgba(255, 255, 255, 0.1); transform: scale(1.02); }
.plan--best small { color: rgba(0, 0, 0, 0.6); }
.plan--best .price small { color: #000; }
.plan--best .save { background: rgba(0, 0, 0, 0.08); }
.paywall-fine { font-size: 13.5px; color: var(--label-2); margin: 16px 0 14px; }
.paywall-links { display: flex; flex-wrap: wrap; gap: 8px; }
.paywall-links a { font-size: 14px; padding: 8px 13px; border-radius: 999px; background: var(--fill); text-decoration: none; }
.paywall-links a:hover { background: var(--fill-strong); }

/* ------------------------------------------------------------------ grouped lists (as in Settings) */

.list-header { font: 600 15px/1.3 var(--font); color: var(--label-2); margin: 0 0 8px 16px; }
.list-footer { font-size: 13.5px; color: var(--label-2); margin: 8px 16px 0; }
.grouped { list-style: none; margin: 0; padding: 0; background: var(--cell); border-radius: 14px; overflow: hidden; }
.grouped > li + li { border-top: 0.5px solid var(--separator); }
.grouped.with-icons > li + li { border-top: 0; }
.grouped.with-icons > li + li > .row, .grouped.with-icons > li + li > details > summary { position: relative; }
.grouped.with-icons > li + li > .row::before,
.grouped.with-icons > li + li > details > summary::before { content: ""; position: absolute; top: 0; right: 0; left: 60px; border-top: 0.5px solid var(--separator); }
.row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 11px 16px; text-decoration: none; color: inherit; transition: background 0.15s ease; }
a.row:hover, button.row:hover { background: var(--cell-hover); }
button.row { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.row-body { flex: 1; min-width: 0; }
.row-body strong { display: block; font-weight: 500; }
.row-body small { display: block; font-size: 14px; color: var(--label-2); line-height: 1.35; margin-top: 2px; }
.row-value { color: var(--label-2); font-size: 15.5px; white-space: nowrap; }
.chev { color: var(--label-3); font-size: 15px; flex: none; }
.icon-tile { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 7px; color: #fff; font-size: 18px; background: var(--tile, var(--grey)); }
.t-red { --tile: var(--red); } .t-orange { --tile: var(--orange); } .t-yellow { --tile: #e6a800; } .t-green { --tile: var(--green); }
.t-teal { --tile: var(--teal); } .t-blue { --tile: var(--blue); } .t-indigo { --tile: var(--indigo); } .t-purple { --tile: var(--purple); }
.t-pink { --tile: var(--pink); } .t-grey { --tile: var(--grey); }

.columns-2 { display: grid; gap: 28px; }
@media (min-width: 900px) { .columns-2 { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ------------------------------------------------------------------ inner pages */

.page-top { padding-top: clamp(28px, 5vw, 52px); padding-bottom: 24px; }
.page-top .large-title { margin-bottom: 8px; }
.page-top p { color: var(--label-2); font-size: 18px; max-width: 40em; margin: 0; }
.page-top-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; }
.page-top .segmented { margin-top: 22px; }

.segmented { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--field); }
.segmented a, .segmented button {
  display: inline-flex; align-items: center; justify-content: center; height: 32px;
  min-width: 88px; padding: 0 14px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 500 14px/1 var(--font); color: var(--label); text-align: center; text-decoration: none; white-space: nowrap;
}
.segmented.full { display: flex; width: 100%; }
.segmented.full button { flex: 1; min-width: 0; }
.segmented [aria-current="page"], .segmented [aria-pressed="true"] { background: var(--segment-on); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
@media (max-width: 520px) { .segmented a, .segmented button { min-width: 0; padding: 7px 11px; } }

.search-field { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--field); color: var(--label-2); }
.search-field .icon { font-size: 17px; }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 16px/1 var(--font); color: var(--label); }
.search-field input::placeholder { color: var(--label-2); }
.search-field:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 45%, transparent); }

.pick {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 13px; border-radius: 10px; border: 0;
  background: var(--fill) no-repeat right 11px center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  font: 500 14.5px/1 var(--font); color: var(--label); cursor: pointer;
}
.pick:hover { background-color: var(--fill-strong); }

/* ------------------------------------------------------------------ feedback board (list and detail) */

.board { display: grid; gap: 28px; padding-bottom: 96px; }
@media (min-width: 1000px) { .board { grid-template-columns: 420px minmax(0, 1fr); align-items: start; } }
.board-tools { display: grid; gap: 10px; margin-bottom: 14px; }
.pickers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pickers.two { display: grid; grid-template-columns: 1fr 1fr; }
.pickers.two .pick { width: 100%; min-width: 0; }
.board-count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 8px 16px; }
.board-count-row .board-count { margin: 0; }
.pick.plain { height: 28px; padding: 0 22px 0 8px; text-align: right; text-align-last: right; background-color: transparent; background-position: right 6px center; color: var(--link); font-weight: 600; }
.pick.plain:hover { background-color: var(--fill); }
.board-count { font-size: 13.5px; color: var(--label-2); margin: 0 0 8px 16px; }
.post-row { display: flex; align-items: center; gap: 10px; padding-right: 12px; transition: background 0.15s ease; }
.post-link { flex: 1; min-width: 0; display: block; padding: 13px 4px 13px 16px; text-decoration: none; color: inherit; }
.post-row:hover { background: var(--cell-hover); }
.post-row.is-selected, .post-row.is-selected:hover { background: color-mix(in srgb, var(--blue) 16%, var(--cell)); }
.post-title { display: block; font-weight: 600; line-height: 1.3; }
.post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font-size: 13.5px; color: var(--label-2); }
.post-sub .status-text { color: var(--label); font-weight: 600; }
.post-sub > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.post-sub .m::before { content: "·"; margin-right: 2px; color: var(--label-3); }
.post-sub .icon { width: 13px; height: 13px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--status, var(--grey)); flex: none; }
.s-review { --status: var(--grey); } .s-planned { --status: var(--blue); } .s-progress { --status: var(--orange); }
.s-built { --status: var(--teal); } .s-shipped { --status: var(--green); } .s-declined { --status: var(--label-3); } .s-pending { --status: var(--pink); }

.vote-pill {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; min-width: 60px; padding: 0 11px;
  border-radius: 999px; border: 0; background: var(--fill); color: var(--label); cursor: pointer;
  font: 600 15px/1 var(--font-rounded); font-variant-numeric: tabular-nums; transition: background 0.2s ease, transform 0.15s ease;
}
.vote-pill .icon { font-size: 15px; }
.vote-pill:hover { background: var(--fill-strong); }
.vote-pill:active { transform: scale(0.94); }
.vote-pill[aria-pressed="true"] { background: var(--blue); color: #fff; }
.vote-pill[disabled] { cursor: default; opacity: 0.6; }
.post-actions > .vote-pill, .post-actions > .btn-secondary { height: 40px; min-width: 0; padding: 0 18px; border-radius: 999px; font: 600 15px/1 var(--font); gap: 7px; }
.post-actions > .btn-secondary { font-weight: 500; }
.vote-pill.big { background: var(--solid); color: var(--on-solid); }
.vote-pill.big:hover { background: var(--solid); opacity: 0.88; }
.vote-pill.big[aria-pressed="true"] { background: var(--blue); color: #fff; }
.vote-pill.big .num { font-variant-numeric: tabular-nums; }

.board-detail { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; border-radius: 18px; background: var(--cell); scrollbar-width: thin; }
.board-detail .placeholder { display: grid; place-items: center; align-content: center; text-align: center; min-height: 440px; padding: 40px; color: var(--label-2); }
.board-detail .placeholder .icon { font-size: 46px; color: var(--label-3); margin-bottom: 12px; }
.board-detail .placeholder strong { color: var(--label); font: 700 20px/1.3 var(--font-display); }
@media (max-width: 999px) { .board-detail { display: none; } }
.board-detail .composer, .board-detail .grouped { background: var(--cell-2); }
.board-detail .comment.from-team { background: color-mix(in srgb, var(--blue) 14%, var(--cell-2)); }
.empty-state { padding: 34px 20px; text-align: center; color: var(--label-2); }
.empty-state strong { display: block; color: var(--label); font: 700 20px/1.3 var(--font-display); margin-bottom: 4px; }
.empty-state .btn { margin-top: 14px; }
.more { display: flex; justify-content: center; margin-top: 16px; }

/* ------------------------------------------------------------------ one post */

.post-view { padding: clamp(22px, 3vw, 34px); }
.post-page { padding-bottom: 96px; }
.post-page > * { max-width: 820px; }
.post-page .post-view { padding: 0; }
.back-link { display: inline-flex; align-items: center; gap: 2px; color: var(--link); text-decoration: none; font-size: 17px; margin: 22px 0 22px -6px; }
.back-link .icon { font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fill); font: 600 12.5px/1 var(--font); color: var(--label); }
.chip.bug { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.chip.feature { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.chip.team { background: var(--solid); color: var(--on-solid); }
.chip.pending { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); }
.post-view h1 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--font-display); letter-spacing: -0.025em; margin-bottom: 8px; }
.post-meta { font-size: 14.5px; color: var(--label-2); margin: 0 0 24px; }

/* Where a post has got to, drawn like the progress bar under a programme. */
/* Six steps: the line runs from the middle of the first to the middle of the last (1/12 in). */
.track { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.track::before, .track::after { content: ""; position: absolute; top: 6px; left: calc(100% / 12); height: 3px; border-radius: 3px; }
.track::before { right: calc(100% / 12); background: var(--fill-strong); }
.track { --fill-to: var(--blue); }
.track.s-built { --fill-to: var(--teal); }
.track.s-shipped { --fill-to: var(--green); }
.track::after { width: calc(100% * 5 / 6 * var(--progress, 0)); background: var(--fill-to); }
.track li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; align-content: start; text-align: center; font-size: 12.5px; color: var(--label-3); }
.track li i { width: 15px; height: 15px; border-radius: 50%; background: var(--cell); box-shadow: 0 0 0 3px var(--fill-strong) inset; }
.track li.done { color: var(--label-2); }
.track li.done i { background: var(--fill-to); box-shadow: none; }
.track li.current { color: var(--label); font-weight: 600; }
.track li.current i { box-shadow: 0 0 0 5px color-mix(in srgb, var(--fill-to) 30%, transparent); }
.track li small { font-weight: 400; color: var(--label-3); font-size: 11.5px; }
.board-detail .track li:not(.done) i { background: var(--cell); }
.status-note { margin: -12px 0 24px; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 15px; color: var(--label-2); }
.status-note strong { color: var(--label); font-weight: 600; }
.chip.status .status-dot { width: 7px; height: 7px; }
.track-closed { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 14.5px; color: var(--label-2); margin-bottom: 24px; }
.track li span { padding: 0 3px; }
@media (max-width: 520px) { .track li span { font-size: 10.5px; padding: 0 5px; } }

.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.post-text { font-size: 17px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 32px; }
.comments { margin-bottom: 16px; }
.comment { padding: 14px 16px; }
.comment-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 14px; margin-bottom: 4px; }
.comment-head strong { font-size: 15px; }
.comment-head .tertiary { font-size: 13px; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 16px; }
.comment.from-team { background: color-mix(in srgb, var(--blue) 12%, var(--cell)); }
.comment.from-team .who { color: var(--blue); }
.comment .queue-actions { margin-top: 10px; }
.composer { overflow: hidden; }
.composer textarea, .composer input { display: block; width: 100%; border: 0; background: none; outline: none; resize: vertical; font: 400 16px/1.45 var(--font); color: var(--label); padding: 14px 16px; }
.composer textarea { min-height: 96px; }
.composer input { border-top: 0.5px solid var(--separator); }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 4px 0 16px; font-size: 13.5px; color: var(--label-2); }

/* ------------------------------------------------------------------ roadmap (a kanban) */

.roadmap-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.roadmap-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.roadmap-legend { font-size: 14px; color: var(--label-2); margin: 0; }
.roadmap-page { padding-bottom: 96px; }

.kanban {
  --lane: #141416; --card: #232326;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .kanban { --lane: rgba(120, 120, 128, 0.1); --card: #fff; } }
:root[data-theme="light"] .kanban { --lane: rgba(120, 120, 128, 0.1); --card: #fff; }

.lane { background: var(--lane); border-radius: 18px; padding: 14px 10px 10px; min-width: 0; }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.lane-head h2 { display: flex; align-items: center; gap: 8px; font: 600 17px/1.2 var(--font); }
.lane-head .status-dot { width: 9px; height: 9px; }
.lane-count { min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--fill); font: 600 12.5px/1 var(--font-rounded); color: var(--label-2); }
.lane-note { font-size: 13.5px; line-height: 1.4; color: var(--label-2); margin: 6px 6px 12px; min-height: 2.8em; }
.lane-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 64px; border-radius: 12px; transition: background 0.15s ease, box-shadow 0.15s ease; }
.lane-cards.drop { background: color-mix(in srgb, var(--blue) 14%, transparent); box-shadow: 0 0 0 2px var(--blue) inset; }

.kcard {
  display: grid; gap: 8px; padding: 12px 13px 11px; border-radius: 13px; background: var(--card); text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.kcard:hover, .kcard:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lift); outline: none; }
.kcard:focus-visible { box-shadow: 0 0 0 3px var(--blue); }
.kcard[draggable="true"] { cursor: grab; }
.kcard.dragging { opacity: 0.4; }
.kcard-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kcard-top .icon-tile { width: 22px; height: 22px; border-radius: 6px; font-size: 13px; }
.kcard-area { font-size: 13px; font-weight: 500; color: var(--label-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard-top .chip { height: 20px; padding: 0 7px; font-size: 11px; }
.kcard strong { font: 600 15.5px/1.3 var(--font); letter-spacing: -0.01em; }
.kcard-foot { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--font-rounded); color: var(--label-2); }
.kcard-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.kcard-foot .icon { width: 12px; height: 12px; }
.kcard-version { margin-left: auto; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); font-size: 12px; }
.lane-empty { font-size: 14px; color: var(--label-3); padding: 14px 6px; text-align: center; }
.lane-more { width: 100%; height: 36px; border: 0; border-radius: 10px; background: var(--fill); color: var(--link); font: 600 14px/1 var(--font); cursor: pointer; }
.lane-more:hover { background: var(--fill-strong); }

/* Narrower screens: the columns slide sideways one at a time. */
@media (max-width: 1199px) {
  .kanban {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 82vw);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  }
  .kanban::-webkit-scrollbar { display: none; }
  .lane { scroll-snap-align: start; }
}
@media (min-width: 700px) and (max-width: 1199px) { .kanban { grid-auto-columns: minmax(300px, 40vw); } }
.lane-release { margin: -4px 0 12px; width: 100%; height: 36px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal); font: 600 14px/1 var(--font); cursor: pointer; transition: background 0.15s ease; }
.lane-release:hover { background: color-mix(in srgb, var(--teal) 30%, transparent); }
.lane-release[hidden] { display: none; }

/* ------------------------------------------------------------------ sheets and forms */

dialog.sheet {
  width: min(600px, calc(100vw - 20px)); max-height: min(880px, calc(100dvh - 20px)); padding: 0; border: 0;
  border-radius: 20px; background: var(--bg); color: var(--label); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.45); }
@media (max-width: 600px) {
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: calc(100dvh - 40px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
}
.sheet-bar {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 14px 16px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 0.5px solid var(--separator);
}
.sheet-bar h2 { font: 600 17px/1.2 var(--font); text-align: center; }
.sheet-bar .text-button { font-size: 17px; justify-self: start; }
.sheet-bar .text-button.strong { justify-self: end; }
.sheet-body { padding: 16px 16px 24px; display: grid; gap: 18px; }

/* The sheet's title bar stays put and only the form scrolls, under it, with a thin scrollbar
   inside the rounded corners (a scrolling <dialog> draws a full-height bar down its own edge). */
dialog.sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.sheet .sheet-bar { flex: none; position: static; }
dialog.sheet .sheet-body, dialog.sheet .thanks { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

/* Every inner scroll area gets the same thin, faint scrollbar. */
dialog.sheet .sheet-body, .board-detail, .guide-nav, .epg-scroll {
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--label) 22%, transparent) transparent;
}
.form-group .grouped input, .form-group .grouped textarea { display: block; width: 100%; border: 0; background: none; outline: none; font: 400 17px/1.4 var(--font); color: var(--label); padding: 13px 16px; }
.form-group .grouped textarea { min-height: 140px; resize: vertical; }
.field-label { display: flex; align-items: center; gap: 12px; padding-left: 16px; }
.field-label > span { flex: none; width: 128px; font-size: 16px; }
.field-label input { padding-left: 0 !important; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chips label { position: relative; }
.toggle-chips input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chips span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--fill); font-size: 15px; cursor: pointer; user-select: none; }
.toggle-chips input:checked + span { background: var(--solid); color: var(--on-solid); font-weight: 600; }
.toggle-chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-error { color: var(--red); font-size: 15px; margin: 0 16px; }
.note-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--fill); font-size: 14.5px; color: var(--label-2); }
.note-card .icon { font-size: 20px; color: var(--label); margin-top: 1px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding: 44px 20px; text-align: center; }
.thanks .icon { font-size: 56px; color: var(--green); margin: 0 auto 12px; display: block; }
.thanks strong { display: block; font: 700 24px/1.2 var(--font-display); margin-bottom: 6px; }
.thanks p { color: var(--label-2); max-width: 26em; margin: 0 auto 20px; }

/* ------------------------------------------------------------------ the how-to guide */

.guide { display: grid; gap: 32px; padding-bottom: 96px; }
.guide--chapter { padding-top: clamp(24px, 4vw, 44px); }
@media (min-width: 1000px) { .guide { grid-template-columns: 280px minmax(0, 1fr); gap: 60px; align-items: start; } }
.guide-nav { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 2px 2px 20px; scrollbar-width: thin; }
.guide-nav .list-header { margin-top: 20px; }
.guide-nav .list-header:first-child { margin-top: 0; }
.guide-nav .row { min-height: 42px; padding: 8px 12px; gap: 11px; font-size: 15px; }
.guide-nav .icon-tile { width: 26px; height: 26px; border-radius: 6px; font-size: 15px; }
.guide-nav .grouped.with-icons > li + li > .row::before { left: 49px; }
.guide-nav .row[aria-current="page"] { background: var(--blue); color: #fff; }
.guide-nav .row[aria-current="page"] .chev { color: rgba(255, 255, 255, 0.7); }
.guide-nav details > summary { display: none; }
@media (max-width: 999px) {
  .guide-nav { position: static; max-height: none; }
  .guide-nav details > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 13px 16px; border-radius: 14px; background: var(--cell); font-weight: 600; }
  .guide-nav details > summary::-webkit-details-marker { display: none; }
  .guide-nav details[open] > summary { margin-bottom: 18px; }
}

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14.5px; color: var(--label-2); margin: 0 0 10px; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs .icon { font-size: 13px; color: var(--label-3); }
.prose { max-width: 720px; }
.prose h1 { font: 700 clamp(32px, 4.2vw, 44px)/1.1 var(--font-display); letter-spacing: -0.03em; margin-bottom: 12px; }
.prose .lede { font-size: 20px; line-height: 1.45; color: var(--label-2); margin-bottom: 30px; }
.prose h2 { font: 700 24px/1.25 var(--font-display); letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose h3 { font: 600 18.5px/1.3 var(--font); margin: 28px 0 8px; }
.prose p, .prose li { line-height: 1.6; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--label-3); }
.prose a { color: var(--link); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { font-weight: 600; }
.prose code { font: 500 0.88em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--fill); padding: 2px 5px; border-radius: 5px; }
.prose ol.steps { list-style: none; counter-reset: step; padding: 0; }
.prose ol.steps > li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 14px; }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fill-strong); font: 700 13.5px/1 var(--font-rounded); color: var(--label);
}
.prose .shot { margin: 26px 0 30px; }
.shot picture, .shot > img { display: block; border-radius: 14px; overflow: hidden; background: #000; }
.shot img { width: 100%; }
.shot figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--label-2); margin-top: 8px; }

.path { font-weight: 600; color: var(--label); }
.path .sep { display: inline-block; margin: 0 5px; color: var(--label-3); font-weight: 400; }

kbd { display: inline-block; min-width: 1.7em; text-align: center; font: 600 0.82em/1.65 var(--font); padding: 0 6px; border-radius: 6px; background: var(--cell); box-shadow: 0 0 0 0.5px var(--separator), 0 1.5px 0 var(--separator); }
.note {
  position: relative; padding: 15px 18px 15px 50px; border-radius: 14px; background: var(--cell); margin: 24px 0; color: var(--label-2);
}
.note::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230a84ff'/%3E%3Cpath d='M12 10.5v6' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7.2' r='1.4' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}
.note strong:first-child { display: block; color: var(--label); font-weight: 600; margin-bottom: 2px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.platforms span { font: 600 12.5px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: var(--fill); color: var(--label-2); }
.table-wrap { overflow-x: auto; margin: 18px 0 26px; border-radius: 14px; background: var(--cell); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 16px; }
.prose th { font: 600 13px/1.3 var(--font); color: var(--label-2); border-bottom: 0.5px solid var(--separator); }
.prose tr + tr td { border-top: 0.5px solid var(--separator); }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.chapter-nav a { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--cell); text-decoration: none; transition: background 0.15s ease; }
.chapter-nav a:hover { background: var(--cell-hover); }
.chapter-nav a:last-child { text-align: right; }
.chapter-nav small { color: var(--label-2); font-size: 13px; }
.chapter-nav span { color: var(--link); font-weight: 600; }

.guide-index { padding-bottom: 96px; display: grid; gap: 30px; }
.guide-group-label h2 { font: 600 15px/1.3 var(--font); color: var(--label-2); margin: 0 0 8px 16px; }
.guide-group-label p { display: none; }
@media (min-width: 900px) {
  .guide-index { gap: 0; }
  .guide-group { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding: 36px 0; }
  .guide-group + .guide-group { border-top: 0.5px solid var(--separator); }
  .guide-group:first-child { padding-top: 8px; }
  .guide-group-label { position: sticky; top: 84px; padding-top: 12px; }
  .guide-group-label h2 { font: 700 22px/1.2 var(--font); color: var(--label); margin: 0 0 8px; letter-spacing: -0.01em; }
  .guide-group-label p { display: block; margin: 0; font-size: 15px; line-height: 1.45; color: var(--label-2); }
}

/* ------------------------------------------------------------------ FAQ */

.faq { display: grid; gap: 30px; padding-bottom: 96px; }
@media (min-width: 1000px) { .faq { grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; } }
.faq-topics { position: sticky; top: 76px; }
@media (max-width: 999px) { .faq-topics { display: none; } }
.faq-topics .row[aria-current="true"] { background: color-mix(in srgb, var(--blue) 16%, var(--cell)); }
.faq-body { display: grid; gap: 30px; max-width: 760px; }
.qa > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 52px; font-weight: 500; transition: background 0.15s ease; }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary:hover { background: var(--cell-hover); }
.qa > summary .chev { margin-left: auto; transition: transform 0.25s var(--ease); }
.qa[open] > summary .chev { transform: rotate(90deg); }
.qa .answer { padding: 0 16px 16px; color: var(--label-2); line-height: 1.55; }
.qa .answer > :last-child { margin-bottom: 0; }
.qa .answer a { color: var(--link); text-decoration: none; }
.qa .answer a:hover { text-decoration: underline; }
.qa .answer strong { color: var(--label); font-weight: 600; }

/* ------------------------------------------------------------------ admin */

/* Signed in: the review queue's button in the header, with a count like an app's badge. */
.queue-button { position: relative; text-decoration: none; }
.queue-count {
  position: absolute; top: -4px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font: 700 11.5px/19px var(--font);
  text-align: center; box-shadow: 0 0 0 2px var(--bg);
}
body.home .site-header:not(.scrolled) .queue-count { box-shadow: none; }
.admin-page { padding-bottom: 96px; display: grid; gap: 30px; }
.admin-page > * { max-width: 860px; }
.queue-item { padding: 16px; display: grid; gap: 10px; }
.queue-item input, .queue-item textarea, .queue-item select { width: 100%; border: 0; border-radius: 10px; background: var(--field); padding: 10px 12px; font: 400 16px/1.4 var(--font); color: var(--label); outline: none; }
.queue-item select { width: auto; }
.queue-item textarea { min-height: 120px; resize: vertical; overflow: hidden; }
.queue-private { font-size: 13px; color: var(--label-2); margin: 0; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-panel { margin-top: 30px; }
.admin-panel form { padding: 16px; display: grid; gap: 12px; background: var(--cell-2); border-radius: 14px; }
.admin-panel label { display: grid; gap: 6px; font-size: 13.5px; color: var(--label-2); }
.admin-panel input, .admin-panel textarea, .admin-panel select { width: 100%; border: 0; border-radius: 10px; background: var(--field); padding: 10px 12px; font: 400 16px/1.4 var(--font); color: var(--label); }
.admin-panel textarea { min-height: 120px; resize: vertical; overflow: hidden; }
.signin { max-width: 420px; display: grid; gap: 12px; }
.signin .grouped { margin: 0; }
.signin input { width: 100%; border: 0; background: none; padding: 14px 16px 14px 0; font: 400 17px/1.4 var(--font); color: var(--label); outline: none; }
.signin .field-label > span { width: 96px; }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 0.5px solid var(--separator); padding: 30px 0 44px; font-size: 13px; color: var(--label-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; }
.site-footer nav a { color: var(--label); text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 6px; max-width: 70em; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--label); font-weight: 600; font-size: 15px; text-decoration: none; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }

/* ------------------------------------------------------------------ misc */

.hud {
  position: fixed; left: 50%; top: 18px; z-index: 90; transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 600 15px/1.2 var(--font);
  background: color-mix(in srgb, var(--cell) 84%, transparent); color: var(--label);
  -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 0.5px var(--separator); transition: opacity 0.25s ease, transform 0.35s var(--ease);
  max-width: calc(100vw - 32px);
}
.hud.show { opacity: 1; transform: translate(-50%, 0); }

.lightbox { width: min(1400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-height: calc(100dvh - 90px); width: auto; margin: 0 auto; border-radius: 14px; }
.lightbox p { color: rgba(235, 235, 245, 0.75); font-size: 14px; text-align: center; margin: 12px 0 0; }
.lightbox .round-button { position: absolute; top: -14px; right: -14px; background: #2c2c2e; color: #fff; }

/* Screenshots: the picker in the new-post sheet, the thumbnails on a post, and their viewer. */
.form-group .grouped li.shot-row { padding: 14px 16px; }
.shot-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.shot-tile, .shot-add { position: relative; flex: none; width: 84px; height: 84px; border-radius: 12px; }
.shot-tile { background: var(--fill); }
.shot-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: opacity 0.2s ease; }
.shot-tile.is-busy img { opacity: 0.4; }
.shot-spinner { display: none; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--label) 22%, transparent); border-top-color: var(--label); animation: shot-spin 0.8s linear infinite; }
.shot-tile.is-busy .shot-spinner { display: block; }
@keyframes shot-spin { to { transform: rotate(360deg); } }
.shot-add { display: grid; place-content: center; justify-items: center; gap: 5px; padding: 0; border: 1.5px dashed var(--fill-strong); background: none; color: var(--link); font: 500 13px/1 var(--font); cursor: pointer; transition: background 0.15s ease; }
.shot-add .icon { font-size: 22px; }
.shot-add:hover { background: var(--fill); }
.shot-picker.is-over .shot-strip { outline: 2px dashed var(--blue); outline-offset: 6px; border-radius: 12px; }
.shot-message { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: var(--red); }
.shot-remove { position: absolute; top: -8px; right: -8px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #48484a; color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 0 0 2px var(--cell); }
.shot-remove:hover { background: var(--red); }

.shot-gallery { list-style: none; margin: -12px 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.shot-gallery li { position: relative; min-width: 0; }
.shot-open { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--fill); cursor: zoom-in; box-shadow: 0 0 0 0.5px var(--separator); }
.shot-open img { width: auto; height: 180px; max-width: min(340px, 100%); object-fit: cover; transition: opacity 0.15s ease; }
.shot-open:hover img { opacity: 0.88; }
.shot-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.shot-open img.is-missing { width: 120px; }
.queue-item .shot-gallery { margin: 2px 0 4px; }
.queue-item .shot-open img { height: 120px; }
@media (max-width: 520px) { .shot-open img { height: 140px; } }

.lightbox.shot-viewer { width: fit-content; max-width: calc(100vw - 32px); }
.shot-viewer .shot-frame img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 80px); width: auto; height: auto; }
.lightbox .shot-prev, .lightbox .shot-next { top: 50%; right: auto; transform: translateY(-50%); }
.lightbox .shot-prev { left: 10px; }
.lightbox .shot-next { left: auto; right: 10px; }

/* ------------------------------------------------------------------ updates */

.updates { padding-bottom: 96px; display: grid; }
.release { display: grid; gap: 14px; padding: 32px 0; }
.release + .release { border-top: 0.5px solid var(--separator); }
.release:first-child { padding-top: 8px; }
.release-label h2 { display: flex; align-items: center; gap: 10px; font: 700 28px/1.1 var(--font-display); letter-spacing: -0.02em; margin: 0 0 6px; }
.release-label p { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.5; }
.chip.latest { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.release-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.release-body { min-width: 0; max-width: 760px; }
.release-title { font: 600 22px/1.25 var(--font-display); letter-spacing: -0.015em; margin: 0 0 12px; }
.release-notes { font-size: 17px; line-height: 1.55; }
.release-notes h3 { font: 600 13.5px/1.3 var(--font); color: var(--label-2); margin: 20px 0 6px; }
.release-notes h3:first-child { margin-top: 0; }
.release-notes ul { margin: 0; padding-left: 22px; }
.release-notes li { margin: 4px 0; }
.release-notes li::marker { color: var(--label-3); }
.release-notes p { margin: 0 0 12px; }
.release-posts { margin-top: 26px; }
.release-body > .release-posts:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .release { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
  .release-label { position: sticky; top: 84px; }
}
.form-group .grouped .check-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; font-size: 16px; }
.form-group .grouped .check-row input { display: inline-block; flex: none; width: 20px; height: 20px; padding: 0; accent-color: var(--blue); }
.form-group .grouped .check-detail { padding: 8px 16px 8px 48px; font-size: 14px; color: var(--label-2); border-top: 0; }

/* Discord: its own colour, wherever it's linked. */
.icon-tile.t-discord { background: #5865f2; }
.discord-button:hover { color: #5865f2; }
.discord-card {
  display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 20px 22px; border-radius: 20px;
  background: #5865f2; color: #fff; text-decoration: none; transition: filter 0.2s ease, transform 0.25s var(--ease);
}
.discord-card:hover { filter: brightness(1.07); transform: translateY(-2px); }
.discord-card:focus-visible { outline: 3px solid var(--label); outline-offset: 3px; }
.discord-mark { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(255, 255, 255, 0.16); font-size: 30px; }
.discord-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.discord-text strong { font: 600 18px/1.25 var(--font); }
.discord-text small { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.86); }
.discord-join { flex: none; padding: 11px 18px; border-radius: 999px; background: #fff; color: #4752c4; font: 600 15px/1 var(--font); }
@media (max-width: 599px) {
  .discord-card { flex-wrap: wrap; }
  .discord-join { width: 100%; text-align: center; }
}

/* Search matches, in the FAQ. */
mark { background: color-mix(in srgb, var(--yellow) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--fill), var(--fill-strong), var(--fill)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 404: colour bars, no signal. */
.no-signal { display: grid; justify-items: center; padding-top: clamp(40px, 8vw, 90px); padding-bottom: 110px; }
.bars { width: min(720px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; position: relative; display: grid; grid-template-rows: 67fr 8fr 25fr; box-shadow: var(--shadow-lift); }
.bars > div { display: grid; }
.bars .top, .bars .mid { grid-template-columns: repeat(7, 1fr); }
.bars .bottom { grid-template-columns: 5fr 5fr 5fr 9fr 1.67fr 1.67fr 1.66fr 5fr; }
.bars .msg { position: absolute; inset: 0; display: grid; place-items: center; }
.bars .msg strong { padding: 12px 22px; border-radius: 12px; background: rgba(0, 0, 0, 0.8); color: #fff; font: 700 clamp(18px, 3vw, 26px)/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.no-signal h1 { margin-top: 32px; text-align: center; }
.no-signal p { color: var(--label-2); text-align: center; margin: 8px 0 22px; }
.no-signal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

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

.post-skeleton { display: grid; gap: 16px; }
.sk-title { height: 44px; max-width: 520px; }
.sk-body { height: 160px; }
.faq-search { margin-top: 22px; }
.search-field.big { height: 50px; max-width: 640px; padding: 0 14px; border-radius: 14px; gap: 10px; }
.search-field.big .icon { font-size: 20px; }
.search-field.big input { font-size: 17px; }
.search-field kbd { font: 600 12px/1 var(--font); color: var(--label-3); border: 1px solid var(--fill-strong); border-radius: 6px; padding: 4px 7px; }
.search-field:focus-within kbd { display: none; }
@media (hover: none) { .search-field kbd { display: none; } }
.faq-count { margin: 10px 0 0 4px; font-size: 14px; color: var(--label-2); min-height: 1.4em; }
.inline-link { color: var(--link); text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.support { padding-bottom: 96px; }
.support > * { max-width: 760px; }
.support-prose { margin-top: 40px; }
.support-prose h2:first-child { margin-top: 0; }
/* SMPTE colour bars. */
.bars i { display: block; }
.b1 { background: #c0c0c0; } .b2 { background: #c0c000; } .b3 { background: #00c0c0; } .b4 { background: #00c000; }
.b5 { background: #c000c0; } .b6 { background: #c00000; } .b7 { background: #0000c0; }
.m1 { background: #0000c0; } .m2 { background: #131313; } .m3 { background: #c000c0; } .m4 { background: #131313; }
.m5 { background: #00c0c0; } .m6 { background: #131313; } .m7 { background: #c0c0c0; }
.l1 { background: #00214c; } .l2 { background: #fff; } .l3 { background: #32006a; } .l4 { background: #131313; }
.l5 { background: #090909; } .l6 { background: #131313; } .l7 { background: #1d1d1d; } .l8 { background: #131313; }
.admin-gap { margin-top: 30px; }
.admin-signout { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.admin-page .grouped > li.queue-item + li.queue-item { border-top: 0.5px solid var(--separator); }

/* What's on, on a phone: Now and Next for each channel, titles in full. */
.epg-grid.now-next { grid-template-columns: var(--ch-w) minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
.epg-grid.now-next .epg-corner, .epg-grid.now-next .epg-channel { position: static; }
.epg-grid.now-next .prog { margin-right: 6px; }
.epg-grid.now-next .prog strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 759px) {
  .hero-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-buttons .btn-play { grid-column: 1 / -1; }
}

/* The theme button shows where it will take you: a sun in dark mode, a moon in light mode. */
.theme-button span { display: inline-grid; }
.theme-button .to-dark { display: none; }
:root[data-theme="light"] .theme-button .to-light { display: none; }
:root[data-theme="light"] .theme-button .to-dark { display: inline-grid; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-button .to-light { display: none; }
  :root:not([data-theme="dark"]) .theme-button .to-dark { display: inline-grid; }
}

/* The bug form: choices sit on the right of their row, as in Settings. */
.field-label select {
  flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; border: 0; outline: none; cursor: pointer;
  padding: 13px 34px 13px 0; text-align: right; text-align-last: right; font: 400 17px/1.4 var(--font); color: var(--label-2);
  background: transparent no-repeat right 16px center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.field-label select:focus-visible { color: var(--label); }
.form-group .grouped textarea.rows-2 { min-height: 64px; }
.form-group .grouped textarea.rows-4 { min-height: 112px; }
@media (max-width: 520px) { .field-label > span { width: 112px; font-size: 15px; } }

/* A bug report's sections, as the form wrote them. */
.post-text .body-heading { font: 600 13.5px/1.3 var(--font); color: var(--label-2); margin: 18px 0 4px; }
.post-text .body-heading:first-child { margin-top: 0; }
.post-text p { margin: 0; white-space: pre-wrap; }

/* What the admin sees about a post. */
.private-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13.5px; }
.private-details dt { color: var(--label-2); }
.private-details dd { margin: 0; overflow-wrap: anywhere; }
