/* ═════════════════════════ Video: the front and the story ═════════════════════════ */

/* the player: the poster and a leaf to play it, then the browser's own controls */
.player { margin: 0; min-width: 0; }
.player__frame { position: relative; background: var(--stone-950); }
.player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--stone-950); }
.player__play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: var(--sp-3);
  width: 100%; padding: var(--sp-4); border: 0; background: none; color: var(--stone-0); cursor: pointer; text-align: left;
}
.player__play[hidden] { display: none; }
.player__btn { display: grid; place-items: center; width: 64px; height: 64px; background: var(--tot-ink); transition: background-color .2s; }
.player__btn .lf { --lf: 30px; rotate: -90deg; }            /* the leaf points the way: play */
.player__play:hover .player__btn, .player__play:focus-visible .player__btn { background: var(--context); }
.player__dur { padding: 5px 8px 4px; background: rgb(25 7 7 / .78); font: 700 var(--t-meta)/1 var(--sans); font-variant-numeric: tabular-nums; }
.player__cap { margin-top: var(--sp-2); }

/* a running time, wherever a video is listed */
.vdur { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.vdur .lf { --lf: .95em; rotate: -90deg; color: var(--context); }

/* chapters: a storyboard; each frame plays from its moment */
.chapters {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: var(--sp-3);
  margin: var(--sp-4) calc(-1 * var(--margin)) 0; padding: 0 var(--margin) var(--sp-1); list-style: none; overflow-x: auto; scrollbar-width: none;
}
.chapters::-webkit-scrollbar { display: none; }
.chapter button {
  position: relative;
  display: grid; align-content: start; gap: var(--sp-2); width: 100%; padding: 0 0 var(--sp-2); border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.chapter .photo { aspect-ratio: 16 / 9; }
.chapter__t { font: 700 var(--t-meta)/1 var(--sans); color: var(--meta); font-variant-numeric: tabular-nums; }
.chapter__name { font: 600 .9375rem/1.3 var(--serif); text-wrap: balance; }
.chapter button:hover .chapter__name { text-decoration: underline; text-decoration-color: var(--context); text-underline-offset: .15em; }
.chapter button[aria-current="true"] { border-bottom-color: var(--context); }
.chapter button[aria-current="true"] .chapter__t { color: var(--context); }
@container (min-width: 720px) {
  .chapters { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
}

/* a listed video: the still is 16:9, like the film */
.vrow .thumb { width: 112px; height: 63px; }

/* ── The front: the lead film on ink ── */
.vhub .secp__top { padding-bottom: var(--sp-8); }
.vlead__grid { display: grid; gap: var(--sp-6) var(--gutter); }
.vlead__main { min-width: 0; }
.vlead .player { margin: 0 calc(-1 * var(--margin)); }
.vlead .player__cap { padding-inline: var(--margin); }
.vlead__info { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.vlead__title { margin: 0; font: italic 700 clamp(2rem, 1.5rem + 1.8cqi, 3.125rem)/1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.vlead__title a { text-decoration: none; }
.vlead__title a:hover { text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .12em; text-decoration-color: var(--context); }
.vlead__dek { margin: 0; max-width: 44ch; font: 400 1.0625rem/1.5 var(--serif); color: var(--text-2); text-wrap: pretty; }
.vlead__next { margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--rule-strong); }
.vlead__next .card--row:first-of-type { border-top: 0; }
@container band (min-width: 720px) {
  .vlead .player { margin: 0; }
  .vlead .player__cap { padding: 0; }
}
@container band (min-width: 1100px) {
  .vlead__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
  .vlead__main { grid-column: 1 / 9; }
  .vlead__info { grid-column: 9 / 13; padding-left: var(--sp-3); }
}

/* ── A series: one view, filmed over the years ── */
.reel__dek { margin: calc(-1 * var(--sp-4)) 0 var(--sp-6); max-width: 60ch; font: 400 1.0625rem/1.5 var(--serif); color: var(--text-2); }
.reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--gutter); margin: 0; padding: 0; list-style: none; }
.clip { position: relative; display: grid; row-gap: var(--sp-2); align-content: start; min-width: 0; }
.clip .photo { aspect-ratio: 16 / 9; margin-bottom: var(--sp-1); }
.clip .kicker { font-weight: 600; color: var(--meta); }
.clip__title { margin: 0; font: 600 1.125rem/1.25 var(--serif); text-wrap: balance; }
.clip__title a { text-decoration: none; }
.clip__title a::after { content: ""; position: absolute; inset: 0; }
.clip:hover .clip__title a { text-decoration: underline; text-decoration-color: var(--context); text-underline-offset: .15em; }
@container (min-width: 1100px) {
  .reel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clip__title { font-size: 1.25rem; }
}

/* ── Every video, by place: the archive's ledger with running times ── */
.vgroups { margin: 0; padding: 0; list-style: none; }
.vgroup { display: grid; gap: var(--sp-1) var(--gutter); padding-block: var(--sp-4); border-top: 1px solid var(--rule-strong); }
.vgroup__place { margin: 0; font: italic 600 1.375rem/1.1 var(--serif); letter-spacing: -.01em; }
.vgroup__place a { text-decoration: none; }
.vgroup__place a:hover { text-decoration: underline; text-decoration-color: var(--context); text-underline-offset: .15em; }
.vitems { margin: 0; padding: 0; list-style: none; }
.vitem { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; column-gap: var(--sp-3); align-items: start; padding-block: var(--sp-3); }
.vitem + .vitem { border-top: 1px solid var(--rule); }
.vitem__dur { grid-column: 1; grid-row: 1; font: 700 var(--t-meta)/1.55 var(--sans); color: var(--meta); font-variant-numeric: tabular-nums; }
.vitem__text { grid-column: 2; grid-row: 1; display: grid; row-gap: .35em; min-width: 0; }
.vitem .thumb { grid-column: 3; grid-row: 1; }
.vitem__dek { display: none; margin: 0; max-width: 60ch; font: 400 1rem/1.45 var(--serif); color: var(--text-2); text-wrap: pretty; }
.vitem__title { font: 600 1.0625rem/1.3 var(--serif); color: var(--text); text-decoration: none; text-wrap: pretty; }
.vitem__title::after { content: ""; position: absolute; inset: 0; }
.vitem:hover .vitem__title { text-decoration: underline; text-decoration-color: var(--context); text-underline-offset: .15em; }
.vitem__text .kicker { font-weight: 600; color: var(--meta); }
.vitem .thumb { width: 96px; height: 54px; }
@container (min-width: 720px) {
  .vitem__dek { display: block; }
}
@container (min-width: 1100px) {
  .vgroup { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .vgroup__place { grid-column: 1 / 4; padding-top: var(--sp-3); font-size: 1.75rem; }
  .vitems { grid-column: 4 / 13; }
  /* the stills line up like a filmstrip, the words take the rest of the row */
  .vitem { grid-template-columns: 4rem 176px minmax(0, 1fr); column-gap: var(--sp-5); }
  .vitem .thumb { grid-column: 2; width: 176px; height: 99px; }
  .vitem__text { grid-column: 3; }
  .vitem__title { font-size: 1.25rem; }
}

/* ── The story: the film on ink, then chapters · the words · what to watch next ── */
.vid { container: vid / inline-size; }
.vid__stage { padding-bottom: var(--sp-8); }
.vid__top { padding-top: var(--sp-6); }
.vid__grid { display: grid; gap: var(--sp-5) var(--gutter); margin-top: var(--sp-5); }
.vid__grid .player { margin: 0 calc(-1 * var(--margin)); }
.vid__grid .player__cap { padding-inline: var(--margin); }
.vid__info { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.vid__title { margin: 0; font: italic 700 clamp(2.25rem, 1.6rem + 2.2cqi, 3.5rem)/1 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.vid__dek { margin: 0; max-width: 46ch; font: 400 var(--t-dek)/1.42 var(--serif); color: var(--text-2); text-wrap: pretty; }
.vid__meta { row-gap: .3em; }
.vid__note { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--sp-3); align-items: center; padding-block: var(--sp-4); border-block: 1px solid var(--rule); }
.vid__note .ring { width: 36px; height: 36px; }
.vid__note p { margin: 0; font: 400 .9375rem/1.5 var(--serif); color: var(--text-2); }
.vid__note a { color: var(--text); font-weight: 600; text-decoration-color: var(--context); text-underline-offset: .15em; }
.vid__info .share { margin-top: auto; padding-top: var(--sp-2); }

.vid__body { display: grid; gap: var(--sp-8) var(--gutter); padding-block: var(--sp-8) var(--sp-4); }
.vid__chapters .chapters { margin-top: var(--sp-3); }
.vid__h { margin: 0 0 .5em; font: 600 var(--t-h2)/1.1 var(--serif); letter-spacing: -.012em; }
.vid__text > p { margin: 0 0 1em; max-width: 66ch; font: 400 1.1875rem/1.62 var(--serif); text-wrap: pretty; }
.vid__text .note-std { margin-top: var(--sp-6); }
.vid__text .topics { margin-top: var(--sp-5); }
.transcript { margin: var(--sp-5) 0 0; border-block: 1px solid var(--rule-strong); }
.transcript summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font: 700 var(--t-ui)/1.2 var(--sans); }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary .lf { --lf: 14px; transition: rotate .2s; }
.transcript[open] summary .lf { rotate: 180deg; }
.transcript__body { padding-bottom: var(--sp-3); }
.transcript__body p { margin: 0 0 .8em; max-width: 66ch; font: 400 1.0625rem/1.6 var(--serif); color: var(--text-2); }
.vid__side { display: grid; gap: var(--sp-7); align-content: start; }
.vid__next .card--row:first-of-type { border-top: 0; padding-top: var(--sp-2); }

@container vid (min-width: 720px) {
  .vid__grid .player { margin: 0; }
  .vid__grid .player__cap { padding: 0; }
}
@container vid (min-width: 1100px) {
  .vid__top { padding-top: var(--sp-7); }
  .vid__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
  .vid__grid .player { grid-column: 1 / 9; }
  .vid__info { grid-column: 9 / 13; padding-left: var(--sp-3); }
  .vid__body { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; padding-top: var(--sp-9); }
  .vid__chapters { grid-column: 1 / 4; position: sticky; top: calc(var(--bar-h) + var(--sp-5)); padding-right: var(--sp-2); }
  .vid__text { grid-column: 4 / 10; }
  .vid__side { grid-column: 10 / 13; }
  /* in the rail the storyboard becomes a list: still, time, name */
  .chapters--list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chapters--list .chapter button {
    grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--sp-3); row-gap: var(--sp-1);
    padding-block: var(--sp-3); border-bottom: 1px solid var(--rule);
  }
  .chapters--list .chapter .photo { grid-row: 1 / span 2; }
  .chapters--list .chapter button[aria-current="true"] { border-bottom-color: var(--rule); }
  .chapters--list .chapter button[aria-current="true"] .chapter__name { color: var(--context); }
}
