/* =========================================================================
   Emilialetizia Archive — archive.css
   -------------------------------------------------------------------------
   EDITORIAL / minimal: typography-forward, quiet surfaces, ONE accent.
   No gradients, no glows, no backdrop blur, no hover-lift shadows.

   Layout notes:
   - ONE search field (masthead, suggestions via archive.js) — the toolbar
     only carries facets (provider / shorts / long) and the order toggle.
   - The browse grid is a CSS-COLUMN MASONRY: cards keep their natural
     aspect ratio (the archive is ~93% portrait shorts), so nothing gets
     cropped and no grid row is left ragged.
   - The player section is functional chrome and stays conventional.

   Contrast: every grey below is >= 4.5:1 on --bg / --bg2 / --bg3
   (--muted-2 #82828c is the darkest at 4.56:1 on --bg3 = WCAG AA).
   ========================================================================= */

:root {
  color-scheme: dark;

  /* surfaces — flat, near-black, neutral (no blue cast) */
  --bg: #0d0d0f;
  --bg2: #141416;      /* card / field surface */
  --bg3: #1a1a1d;      /* raised (menus, popovers) */
  --bg4: #222226;      /* active / selected */

  /* hairlines */
  --line: #2c2c31;
  --line-soft: #1f1f24;

  /* ink */
  --ink: #f2f2f4;
  --muted: #8f8f99;    /* 6.06:1 on --bg */
  --muted-2: #82828c;  /* 5.10:1 on --bg, 4.56:1 on --bg3 */

  /* the single accent, used sparingly (active facets, links, play) */
  --accent: #ff3355;   /* 5.41:1 on --bg, 4.84:1 on --bg3 */
  --accent-ink: #fff;
  --focus: #7cc4ff;

  --ok: #58c98a;
  --warn: #f0b23c;

  --shadow: 0 1px 2px rgb(0 0 0 / .35);

  --radius: 8px;
  --radius-sm: 5px;
  --radius-pill: 999px;

  --max: 1480px;
  --topbar-h: 56px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;

  --step--2: .72rem;
  --step--1: .8rem;
  --step-0: .9375rem;
  --step-1: 1.05rem;
  --step-2: 1.35rem;
  --step-3: 1.9rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
mark { background: transparent; color: var(--accent); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: #0b0b0d;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .12s ease;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Tabler outline glyphs are STROKES on currentColor, not fills — a
   `fill: currentColor` rule would turn every icon into a blob. The
   stroke-width / linecap / linejoin live on the <symbol> itself so this
   rule cannot clobber the player's loader circle. */
.sprite symbol { fill: none; stroke: currentColor; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; flex: none; }

/* ====================================================== masthead (header) */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.masthead__in {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px 18px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.brand__mark svg { font-size: 13px; }
.brand__name {
  font-family: var(--serif);
  font-size: var(--step-1);
  letter-spacing: .01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.nav__link {
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: var(--step--1);
  white-space: nowrap;
  transition: color .12s ease, background .12s ease;
}
.nav__link:hover { color: var(--ink); background: var(--bg2); }
.nav__link.is-on { color: var(--ink); }
.nav__link.is-on::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav__link--ext svg { font-size: 12px; margin-left: 4px; vertical-align: -1px; }

/* the single site-wide search field (combobox, suggestions) */
.gsearch {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .12s ease;
}
.gsearch:focus-within { border-color: var(--muted-2); }
.gsearch__icon {
  font-size: 15px;
  color: var(--muted-2);
  margin-left: 9px;
}
.gsearch input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  outline: none;
  appearance: none;
}
.gsearch input::-webkit-search-cancel-button { display: none; }
.gsearch input::placeholder { color: var(--muted-2); }

.gsearch__listbox {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / .45);
  max-height: 62vh;
  overflow-y: auto;
}
.gsearch__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}
.gsearch__opt:hover, .gsearch__opt.is-active {
  background: var(--bg4);
  outline: none;
}
.gsearch__opt--all { color: var(--muted); font-size: var(--step--1); }
.gsearch__thumb {
  width: 52px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  background: var(--bg4);
  flex: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.gsearch__thumb.is-loaded { opacity: 1; }
.gsearch__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gsearch__title {
  font-size: var(--step--1);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gsearch__meta {
  font-size: var(--step--2);
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.locales { display: flex; align-items: center; gap: 4px; flex: none; }
.locales__link {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: var(--step--2);
  letter-spacing: .06em;
  color: var(--muted-2);
  transition: color .12s ease;
}
.locales__link:hover { color: var(--ink); }
.locales__link.is-on { color: var(--ink); border-bottom: 2px solid var(--accent); }

.auth {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: auto;
}
.auth__name {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 190px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  color: var(--ink);
}
.auth__name:hover { background: var(--bg2); }
.auth__name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth__name svg { font-size: 15px; color: var(--muted); }
.auth__form { display: flex; }
.auth__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: inherit;
  font-size: var(--step--1);
  cursor: pointer;
  white-space: nowrap;
  transition: color .12s ease, border-color .12s ease;
}
.auth__btn:hover { color: var(--ink); border-color: var(--muted-2); }
.auth__btn svg { font-size: 14px; }
.auth__btn--in { color: var(--ink); border-color: var(--muted-2); }

/* =============================================================== page frame */

.page {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding: 34px 0 64px;
}

.page-head { margin-bottom: 26px; }
.page-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.page-sub { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ======================================================== front-page lead */

/* One compact editorial block: image beside the headline. Never a
   full-bleed cinematic banner — the grid starts right after it. */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 0 0 30px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.lead__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lead__media--portrait { aspect-ratio: 9 / 16; max-width: 200px; }
.lead__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s ease;
}
.lead__media img.is-loaded { opacity: 1; }
.lead__media.no-img::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg3);
}

.lead__body { min-width: 0; }
.lead__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: var(--step--2);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.lead__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.012em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.lead__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
  font-size: var(--step--1);
  color: var(--muted);
}
.lead__fact { display: inline-flex; align-items: center; gap: 5px; }
.lead__fact svg { font-size: 13px; color: var(--muted-2); }
.lead__more { margin: 0; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .12s ease, color .12s ease;
}
.link-more:hover { border-color: var(--accent); color: var(--accent); }
.link-more svg { font-size: 14px; }

/* ============================================================== facet row */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
  transition: color .12s ease, border-color .12s ease;
}
.chip:hover { color: var(--ink); border-color: var(--muted-2); }
.chip.is-on { color: var(--accent); border-color: var(--accent); }
.chip__n {
  font-size: var(--step--2);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.chip.is-on .chip__n { color: var(--accent); }

.sorter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step--1);
}
.sorter__label { color: var(--muted-2); }
.sorter__opt {
  padding-bottom: 2px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}
.sorter__opt:hover { color: var(--ink); }
.sorter__opt.is-on { color: var(--ink); border-bottom-color: var(--accent); }

.searchinfo {
  margin: 0 0 20px;
  font-size: var(--step--1);
  color: var(--muted);
}
.searchinfo a {
  margin-left: 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.searchinfo a:hover { border-color: var(--accent); }

/* ==================================================== browse grid (masonry) */

/* CSS multi-column masonry: cards keep their natural aspect ratio, so a
   9:16 short and a 16:9 video can share the layout without cropping and
   without the ragged row bottoms a stretched grid produces. Column-major
   order (top to bottom, then across) is the accepted trade-off. */
.grid {
  column-width: 250px;
  column-gap: 22px;
}

/* ================================================================== card */

.card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 30px;
  display: block;
}

.card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card--short .card__media { aspect-ratio: 9 / 16; }

.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s ease;
}
.card__media img.is-loaded { opacity: 1; }
.card__media.no-img::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg3);
}

/* Subtle bottom scrim so the duration chip stays legible on any frame —
   a legibility device, not decoration. */
.card__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .55));
  opacity: 0;
  transition: opacity .15s ease;
}
.card__media:hover .card__shade,
.card__media:focus-visible .card__shade { opacity: 1; }

.card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(10 10 12 / .68);
  border: 1px solid rgb(255 255 255 / .22);
  color: #fff;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.card__play svg { font-size: 16px; margin-left: 2px; }
.card__media:hover .card__play,
.card__media:focus-visible .card__play { opacity: 1; transform: scale(1); }

.card__prov {
  position: absolute;
  top: 8px; left: 8px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgb(10 10 12 / .72);
  color: #fff;
}
.card__prov svg { font-size: 14px; }

.card__dur {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgb(10 10 12 / .82);
  color: #fff;
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.card__body { padding-top: 10px; }
.card__title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--step--2);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.card__hist {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0;
  font-size: var(--step--2);
  color: var(--muted);
}
.card__hist svg { font-size: 12px; color: var(--muted-2); }

/* ============================================ provider chips, tags, facts */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: var(--step--2);
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.5;
}
.tag svg { font-size: 11px; }
.tag--media { color: var(--ink); border-color: var(--muted-2); }
.tag--meta { color: var(--muted); border-style: dashed; }
.tag--shorts { color: var(--accent); border-color: var(--accent); }

.prov {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--step--1);
  color: var(--muted);
}
.prov svg { font-size: 15px; }
.prov--youtube { color: var(--muted); }
.prov--youtube svg { color: #ff4e45; }
.prov--instagram { color: var(--muted); }
.prov--instagram svg { color: #e182c8; }
.prov--tiktok { color: var(--muted); }
.prov--tiktok svg { color: #6ee7e0; }

/* ================================================================ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { border-color: var(--muted-2); background: var(--bg2); }
.btn svg { font-size: 15px; }
.btn__dim { color: var(--muted-2); font-weight: 400; }
.btn--primary { border-color: var(--accent); color: var(--accent); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover .btn__dim { color: rgb(255 255 255 / .8); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--ink); }

/* ============================================================= empty state */

.empty {
  column-span: all;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.empty__icon { font-size: 30px; color: var(--muted-2); }
.empty__title { margin: 0; font-family: var(--serif); font-size: var(--step-2); color: var(--ink); }

.muted { color: var(--muted); font-size: var(--step--1); margin: 0; }
.mono-wrap { word-break: break-all; }

/* ================================================================== pager */

.pager {
  column-span: all;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.pager a, .pager span {
  min-width: 32px;
  padding: 5px 9px;
  text-align: center;
  font-size: var(--step--1);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
.pager a:hover { color: var(--ink); background: var(--bg2); }
.pager .is-on {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  font-weight: 600;
}
.pager__next, .pager__prev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pager .is-disabled { opacity: .35; pointer-events: none; }
.pager svg { font-size: 12px; }

/* ============================================================ history tabs */

.htabs {
  display: flex;
  gap: 18px;
  margin: 14px 0 24px;
  border-bottom: 1px solid var(--line);
}
.htabs__tab {
  padding: 0 0 9px;
  color: var(--muted);
  font-size: var(--step--1);
  border-bottom: 2px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}
.htabs__tab:hover { color: var(--ink); }
.htabs__tab.is-on {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ============================================================== detail page */

.watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: start;
}
.watch__main { min-width: 0; }

/* Below the player: the editorial block reads as the video's caption. */
.watch__head {
  padding-top: 4px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.watch__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  font-size: var(--step--1);
  color: var(--muted);
}
.watch__ksep { color: var(--muted-2); }
.watch__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.014em;
}
.watch__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.watch__fact { display: inline-flex; align-items: center; gap: 6px; }
.watch__fact svg { font-size: 13px; color: var(--muted-2); }

.watch__media { margin-bottom: 22px; }
.watch__actions {
  display: flex;
  align-items: flex-start;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.dl { display: flex; flex-direction: column; gap: 7px; }
.dl__quota {
  margin: 0;
  font-size: var(--step--2);
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.dl__sep { margin: 0 6px; }

/* Technical evidence: available, but collapsed by default. */
.prov-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
}
.prov-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: var(--step--1);
  color: var(--muted);
  transition: color .12s ease;
}
.prov-block > summary::-webkit-details-marker { display: none; }
.prov-block > summary:hover { color: var(--ink); }
.prov-block[open] > summary { border-bottom: 1px solid var(--line); color: var(--ink); }
.prov-block__chev {
  font-size: 13px;
  color: var(--muted-2);
  transition: transform .15s ease;
}
.prov-block[open] .prov-block__chev { transform: rotate(90deg); }

.prov-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 18px;
  margin: 0;
  padding: 14px;
  font-size: var(--step--1);
}
.prov-dl dt { color: var(--muted-2); }
.prov-dl dd {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--step--2);
  overflow-wrap: anywhere;
}
.prov-json {
  margin: 0;
  padding: 0 14px 14px;
  max-height: 320px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--step--2);
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.notice {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.notice__icon { font-size: 22px; color: var(--muted-2); }
.notice__title { margin: 0 0 4px; font-weight: 600; font-size: var(--step--1); }
.notice__text { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------------------------------------------------------------- side rail */

.watch__side { position: sticky; top: calc(var(--topbar-h) + 20px); }
.watch__side-title {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 500;
}
.rail { list-style: none; margin: 0; padding: 0; }
.rail__item { margin-bottom: 14px; }
.rail__link {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.rail__link:hover .rail__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.rail__media {
  position: relative;
  flex: none;
  width: 118px;
  aspect-ratio: 16 / 9;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rail__media--portrait { aspect-ratio: 9 / 16; width: 74px; }
.rail__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s ease;
}
.rail__media img.is-loaded { opacity: 1; }
.rail__media.no-img::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg3);
}
.rail__dur {
  position: absolute;
  right: 4px; bottom: 4px;
  padding: 0 4px;
  border-radius: 2px;
  background: rgb(10 10 12 / .82);
  color: #fff;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.rail__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rail__title {
  font-size: var(--step--1);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step--2);
  color: var(--muted-2);
}

/* ================================================================= footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
}
.foot__in {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.foot__brand {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step--1);
  color: var(--muted);
}
.foot__links { margin: 0; font-size: var(--step--2); color: var(--muted-2); }
.foot__links a { color: var(--muted); border-bottom: 1px solid var(--line); }
.foot__links a:hover { color: var(--ink); border-color: var(--muted-2); }

/* --------------------------------------------------------------- player */

/* One video surface plus an overlay layer: chrome, end card and error
   state all sit absolutely on top of the <video>, so nothing reflows the
   page when they appear. State is carried by classes on the root
   (is-playing / is-loading / is-idle / is-scrubbing / is-muted /
   is-fullscreen) and by the `hidden` attribute on the overlays. */
.player {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  color: var(--ink);
}
/* `hidden` must win over the display values below. */
.player [hidden] { display: none !important; }

.player--short { max-width: 460px; margin: 0 auto; }

.player__video {
  display: block;
  width: 100%;
  /* Clamped by viewport height: taller-than-screen ratios letterbox
     instead of pushing the rest of the page off screen. */
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

/* Legibility scrim behind the control bar — a device, not decoration. */
.player__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .72));
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.player:not(.is-idle) .player__scrim { opacity: 1; }

/* --------------------------------------------------------------- spinner */

.player__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.player__spinner svg {
  width: 100%;
  height: 100%;
  animation: player-spin 1s linear infinite;
}
.player__spinner circle {
  stroke: rgb(255 255 255 / .28);
  stroke-linecap: round;
  stroke-dasharray: 90 150;
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: player-spin-dash 1.4s ease-in-out infinite;
}
@keyframes player-spin { to { transform: rotate(360deg); } }
@keyframes player-spin-dash {
  0% { stroke-dasharray: 1 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90 150; stroke-dashoffset: -124; }
}
@media (prefers-reduced-motion: reduce) {
  .player__spinner svg, .player__spinner circle { animation: none; }
  .player__controls, .player__scrim, .player__seek-track, .player__seek-thumb,
  .player__bigplay, .player__volume { transition: none; }
}

/* -------------------------------------------------------------- big play */

.player__bigplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgb(10 10 12 / .72);
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.player__bigplay svg { font-size: 24px; margin-left: 3px; }
.player__bigplay:hover { background: rgb(10 10 12 / .88); transform: scale(1.04); }

/* -------------------------------------------------------------- controls */

.player__controls {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 12px 10px;
  transition: opacity .18s ease, transform .18s ease;
}
.player.is-idle .player__controls {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
/* Hovering the box or focusing a control brings the chrome back. */
.player.is-idle:hover .player__controls,
.player.is-idle:focus-within .player__controls { opacity: 1; transform: none; pointer-events: auto; }

/* ------------------------------------------------------------------ seek */

.player__seek {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none; /* pointer events own the gesture on touch */
}
.player__seek-track {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / .26);
  transition: height .12s ease;
}
.player__seek:hover .player__seek-track,
.player.is-scrubbing .player__seek-track { height: 5px; }

.player__seek-buffer,
.player__seek-played {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  pointer-events: none;
}
.player__seek-buffer { background: rgb(255 255 255 / .22); }
.player__seek-played { background: var(--accent); }

.player__seek-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(0 0 0 / .35);
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  pointer-events: none;
}
.player__seek:hover .player__seek-thumb,
.player.is-scrubbing .player__seek-thumb { opacity: 1; }
.player.is-scrubbing .player__seek-thumb { transform: scale(1.15); }

.player__seek-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 2px 7px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

/* ------------------------------------------------------------------- bar */

.player__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.player__spacer { flex: 1; }

.player__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: rgb(255 255 255 / .9);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.player__btn:hover { background: rgb(255 255 255 / .12); color: #fff; }
.player__btn svg { font-size: 18px; }
.player__btn--skip svg { font-size: 16px; }

/* Icon pairs swap on state; keep both in the DOM so labels stay stable. */
.player__btn .ico-pause,
.player__btn .ico-vol-off,
.player__btn .ico-fs-exit { display: none; }
.player.is-playing .player__btn .ico-play { display: none; }
.player.is-playing .player__btn .ico-pause { display: block; }
.player.is-muted .player__btn .ico-vol { display: none; }
.player.is-muted .player__btn .ico-vol-off { display: block; }
.player.is-fullscreen .player__btn .ico-fs { display: none; }
.player.is-fullscreen .player__btn .ico-fs-exit { display: block; }

.player__time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  color: rgb(255 255 255 / .78);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
}
.player__time-sep { color: rgb(255 255 255 / .4); }

/* ---------------------------------------------------------------- volume */

.player__vol {
  display: flex;
  align-items: center;
  gap: 2px;
}
.player__volume {
  width: 0;
  opacity: 0;
  height: 3px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  transition: width .16s ease, opacity .16s ease;
}
.player__vol:hover .player__volume,
.player__volume:focus-visible { width: 76px; opacity: 1; }

/* -------------------------------------------------------------- settings */

.player__settings { position: relative; }

.player__menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / .5);
}
.player__menu-group + .player__menu-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.player__menu-title {
  margin: 0 0 4px;
  padding: 0 6px;
  color: var(--muted-2);
  font-size: var(--step--2);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.player__menu-items { display: flex; flex-direction: column; gap: 1px; }

.player__menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 6px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  text-align: left;
  cursor: pointer;
}
.player__menu-item:hover { background: var(--bg4); }
.player__menu-item .ico-check { font-size: 14px; color: var(--accent); opacity: 0; flex: none; }
.player__menu-item.is-on .ico-check { opacity: 1; }
.player__menu-item.is-on { color: var(--ink); }
.player__menu-label { flex: 1; }
.player__menu-note { color: var(--muted-2); font-size: var(--step--2); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- end card */

.player__end {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(8 8 10 / .88);
}
.player__end-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 420px);
  text-align: center;
}
.player__end-title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--muted);
}
.player__end-next {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(20 20 22 / .9);
  text-align: left;
}
.player__end-next:hover { border-color: var(--muted-2); }
.player__end-media {
  flex: none;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg4);
}
.player__end-media img { width: 100%; height: 100%; object-fit: cover; }
.player__end-next-title {
  font-size: var(--step--1);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.player__end-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------------ error */

.player__error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgb(8 8 10 / .92);
  text-align: center;
}
.player__error-icon { font-size: 40px; color: var(--accent); }
.player__error-message { margin: 0; font-weight: 600; }
.player__error-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------ fullscreen */

/* In fullscreen the root box is the viewport: let the video fill it and
   keep the chrome anchored to the screen edges. */
.player.is-fullscreen { border: 0; border-radius: 0; background: #000; }
.player.is-fullscreen .player__video { max-height: 100vh; object-fit: contain; }
.player__error-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }


/* ============================================================== snapshot */

/*
 Snapshot dialog — cut a still out of the video, describe a change, get
 the edited image back from the model.

 Same editorial rules as the rest of the archive: flat surfaces, hairlines,
 ONE accent (the send button), no blur, no hover-lift. Modal semantics,
 focus trap and ESC all come from the platform's <dialog> — the CSS only
 ever positions and paints it.

 NOTE: every block below toggles through the `hidden` attribute, and most
 of them are flex — without the explicit rule they would ignore it. (The
 `.player [hidden]` rule covers this dialog too, but this one says it out
 loud so the two never drift apart.)
*/
.snap [hidden] { display: none !important; }

.snap {
  width: min(560px, calc(100vw - 28px));
  max-height: min(88vh, 780px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
}
/* Only when open: an unconditional `display: flex` would override the
   UA rule that hides a closed <dialog>. */
.snap[open] { display: flex; flex-direction: column; }
.snap::backdrop { background: rgb(0 0 0 / .74); }

.snap__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.snap__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}
.snap__mark { display: inline-flex; color: var(--accent); }
.snap__mark svg { font-size: 16px; }
.snap__title { margin: 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; }
.snap__close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
}
.snap__close:hover { color: var(--ink); border-color: var(--line); }
.snap__close svg { font-size: 17px; }

.snap__hint { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }

.snap__block { display: flex; flex-direction: column; gap: 9px; }

.snap__legend {
  margin: 0;
  color: var(--muted-2);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.snap__figure { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Width and height both capped, never cropped — the frame is the point. */
.snap__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46vh;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.snap__pos { margin: 0; color: var(--muted-2); font-size: var(--step--2); font-variant-numeric: tabular-nums; }

.snap__busy {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}
.snap__spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: player-spin .9s linear infinite;
}

.snap__input {
  width: 100%;
  min-height: 74px;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  line-height: 1.5;
  resize: vertical;
}
.snap__input::placeholder { color: var(--muted-2); }

.snap__note { margin: 0; color: var(--muted-2); font-size: var(--step--2); line-height: 1.5; }
.snap__send { align-self: flex-start; }
.snap__send[disabled] { opacity: .45; cursor: not-allowed; }
.snap__send[disabled]:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

.snap__out { padding-top: 13px; border-top: 1px solid var(--line-soft); }
.snap__status { margin: 0; color: var(--muted); font-size: var(--step--1); }
.snap__error { margin: 0; color: var(--accent); font-size: var(--step--1); line-height: 1.5; }
.snap__actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ------------------------------------------------------------- gallery */
/*
 One card per snapshot: the still that went in, what was asked of it, and
 what came back. The still is NEVER cropped (object-fit would lie about
 the frame), so a portrait short simply renders tall — which is what the
 archive's masonry already does everywhere else.
*/
.snaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.snap-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}
.snap-card:first-child { border-top: 0; padding-top: 6px; }

.snap-card__fig { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.snap-card__img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.snap-card__pos { margin: 0; color: var(--muted-2); font-size: var(--step--2); font-variant-numeric: tabular-nums; }

.snap-card__body { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.snap-card__text {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.snap-card__text--muted { font-family: var(--font); font-size: var(--step--1); color: var(--muted); }

.snap-card__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}
.snap-card__state svg { font-size: 14px; }
.snap-card__state--done { color: var(--ok); }
.snap-card__state--failed { color: var(--accent); }

.snap-card__error { margin: 0; color: var(--accent); font-size: var(--step--1); line-height: 1.5; }
/* The provider's own wording — kept because it is how an operator tells
   "no key" from "quota", shown as fine print so a visitor reads the line
   above it instead. */
.snap-card__detail {
  margin: 0;
  color: var(--muted-2);
  font-size: var(--step--2);
  line-height: 1.5;
  overflow-wrap: anywhere;
  max-height: 7.5em;
  overflow: auto;
}
.snap-card__fig--out { margin-top: 4px; }
.snap-card__fig--out .snap-card__img { max-width: 340px; }

.snap-card__links { display: flex; gap: 16px; flex-wrap: wrap; margin: 2px 0 0; }
.snap-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--step--1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.snap-card__link:hover { color: var(--ink); border-bottom-color: var(--line); }
.snap-card__link svg { font-size: 14px; }

@media (max-width: 620px) {
  .snap-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .snap-card__fig .snap-card__img { max-width: 210px; }
  .snap-card__fig--out .snap-card__img { max-width: 100%; }
}

/* The archive ships no motion of its own beyond colour changes; the one
   spinner is the exception, and only for visitors who allow it. */
@media (prefers-reduced-motion: reduce) {
  .snap__spinner { animation: none; border-color: var(--accent); }
}


/* ================================================================ no-js */

/* no-JS: keep native video controls (JS strips them). */
.no-js .player__controls, .no-js .player__bigplay { display: none; }

/* ============================================================ responsive */

@media (max-width: 1100px) {
  .watch { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .watch__side { position: static; }
  .lead { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 860px) {
  .masthead__in { flex-wrap: wrap; gap: 8px 12px; padding: 9px 0; }
  /* the single search field always drops to its own full-width row */
  .gsearch { order: 10; flex-basis: 100%; max-width: none; }
  .nav { order: 2; }
  .locales { order: 3; }
  .auth { order: 4; }
  .auth__name { max-width: 130px; }

  .page { padding: 24px 0 52px; }
  .page-title { font-size: var(--step-2); }

  .lead { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lead__media--portrait { max-width: 170px; }
  .lead__title { font-size: var(--step-2); }

  .toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    max-width: 100%;
  }
  .chips::-webkit-scrollbar { display: none; }

  .grid { column-width: 150px; column-gap: 15px; }
  .card { margin-bottom: 24px; }

  .watch__title { font-size: var(--step-2); }
  .rail__media { width: 104px; }
  .rail__media--portrait { width: 66px; }

  .player__volume { display: none; }
}

@media (max-width: 480px) {
  .brand__name { font-size: var(--step-0); }
  .nav__link { padding: 5px 7px; }
  .auth__btn span, .auth__name span { display: none; }
  .auth__btn, .auth__name { padding: 5px 7px; }

  .grid { column-width: 128px; column-gap: 12px; }
  .card { margin-bottom: 20px; }
  .card__title { font-size: var(--step-0); }

  .lead__media--portrait { max-width: 140px; }

  /* action buttons share one row when they'd wrap otherwise */
  .watch__actions .btn { flex: 1 1 auto; justify-content: center; }
  .dl { flex: 1 1 100%; }

  /* single-column facts read better than a squeezed label/value grid */
  .prov-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .prov-dl dt { margin-top: 8px; }

  .foot__in { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
