/* M28 Investigates · v0.5 · documentaries (browse, watch, series) and podcasts. Dark surface. */
/* converted to the v0.5 design language by tools/restyle_v05.py; the parts drawn by hand for v0.5 follow at the end */

/* ---------------------------------------------------------------- billboard: the featured documentary */
.bill { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(30rem, calc(100vh - 13rem), 52rem); overflow: hidden; }
.bill__media { position: absolute; inset: 0; z-index: -2; }
.bill__media .ph, .bill__media img { width: 100%; height: 100%; }
.bill__media img { object-fit: cover; object-position: center 30%; }
.bill::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / .95) 0%, rgb(0 0 0 / .72) 40%, rgb(0 0 0 / .1) 76%),
              linear-gradient(0deg, rgb(0 0 0 / 1) 0%, rgb(0 0 0 / .3) 36%, rgb(0 0 0 / 0) 60%); }
.bill__in { padding-block: clamp(4rem, 10vh, 7rem) clamp(2rem, 5vh, 3.5rem); }
.bill .crumbs-nav { position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(1rem, 2.5vh, 1.75rem); }
.bill .crumbs { color: var(--grey-s22); } .bill .crumbs a { color: var(--grey); }
.bill .kicker { color: var(--grey); margin-bottom: 1.1rem; }
.bill h1 { max-width: 17ch; font: 600 clamp(2.5rem, 1.5rem + 4.4vw, 5rem)/.98 var(--f-serif); letter-spacing: -.026em; }
.bill--long h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); max-width: 24ch; line-height: 1.02; }
.bill__deck { margin-top: 1.25rem; max-width: 36rem; font: 400 var(--t-deck)/1.42 var(--f-text); color: var(--grey); }
.bill .meta { margin-top: 1rem; color: var(--grey-s22); }
.bill .btnrow { margin-top: 1.6rem; }
@media (max-width: 47.99em) {
  .bill { display: block; min-height: 0; }
  .bill__media { position: relative; aspect-ratio: 16 / 10; }
  .bill::before { display: none; }
  .bill__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 1) 0%, rgb(0 0 0 / .4) 30%, rgb(0 0 0 / 0) 60%), linear-gradient(180deg, rgb(0 0 0 / .75) 0%, rgb(0 0 0 / 0) 30%); }
  /* the way back sits on the picture's top edge (darkened for it), not on the title */
  .bill__in { padding-block: 0 2rem; margin-top: -2rem; position: static; }
  .bill__in > * { position: relative; z-index: 1; }
  .bill .crumbs-nav { position: absolute; z-index: 2; top: .3rem; }
}

/* a series whose films are shown by drawn cards has no photograph: its head is set on the cards' own ground, a fine grid */
.bill--card { min-height: clamp(22rem, 52vh, 34rem); background-color: var(--charcoal);
  background-image: linear-gradient(var(--charcoal-t04) 1px, transparent 1px), linear-gradient(90deg, var(--charcoal-t04) 1px, transparent 1px); background-size: 4rem 4rem; border-bottom: 1px solid var(--charcoal-t12); }
.bill--card::before { display: none; }
.bill--card h1::before { content: ""; display: block; width: 4.5rem; height: 4px; margin-bottom: 1.5rem; background: var(--red); }
@media (max-width: 47.99em) { .bill--card { min-height: 0; } .bill--card .bill__in { margin-top: 0; padding-top: 4.25rem; } }

/* ---------------------------------------------------------------- rows */
.rows { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--sec); }
.row { padding-top: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1rem; }
.row__head h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); letter-spacing: -.012em; }
.row__head h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.row__head p { font: 400 .75rem/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--grey-s22); }
.row__head .more { flex: none; }
.row .rail { --rail-btn-top: 5.4rem; }
.row .rail__track { --rail-w: min(72vw, 19.5rem); padding-block: .75rem 1rem; margin-block: -.75rem 0; }
/* hover preview: a still picture and text. A moving preview would have to load YouTube before a click. */
.vc__more { display: none; }
@media (hover: hover) and (min-width: 62em) {
  .rail .vc { transition: transform .22s var(--ease); transform-origin: center top; }
  .rail .vc:hover, .rail .vc:focus-within { transform: scale(1.06); z-index: 5; }
  .rail .vc:hover .vc__more, .rail .vc:focus-within .vc__more { display: block; }
  .rail .vc:hover::before, .rail .vc:focus-within::before { content: ""; position: absolute; inset: -.6rem -.6rem -.75rem; z-index: -1; background: var(--charcoal-t04); border: 1px solid var(--charcoal-t25); }
  .rail li:first-child .vc { transform-origin: left top; }
}
.vc__more { font: 400 .875rem/1.4 var(--f-text); color: var(--grey-s22); }
.vc__more b { display: inline-flex; align-items: center; gap: .4em; margin-top: .5rem; font: 600 .8125rem/1 var(--f-ui); color: var(--white); }
.vc__more b .icon { width: .85rem; height: .85rem; }
.vc--part .vc__n { position: absolute; right: .6rem; bottom: .5rem; font: 600 2.5rem/1 var(--f-serif); color: var(--white); letter-spacing: -.03em; text-shadow: 0 0 1rem var(--charcoal-d2); }
.row--device .row__head h2 span { color: var(--grey-s22); }

/* ---------------------------------------------------------------- watch page */
.watch { padding-block: clamp(1.25rem, 1rem + 1.5vw, 2rem) var(--sec); }
.watch .crumbs { margin-bottom: 1.5rem; }
.watch__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap) clamp(1.5rem, 3vw, 3rem); }
.watch--series .watch__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 61.99em) { .watch--series .watch__grid { grid-template-columns: 1fr; } }
.watch__head { margin-top: 1.5rem; }
.watch__head h1 { margin-top: .8rem; max-width: 26ch; font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.04; letter-spacing: -.02em; }
.watch__head .meta { margin-top: .9rem; }
.watch__about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap) clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--charcoal-t25); }
.watch__about h2 { font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-s22); margin-bottom: .9rem; }
.watch__about p { color: var(--grey); max-width: 40rem; }
.watch__about p + p { margin-top: .9rem; }
.watch__about .dl dt, .watch__about .dl dd { border-top-color: var(--charcoal-t12); }
.watch__about .dl dt { color: var(--grey-s22); }
@media (max-width: 54em) { .watch__about { grid-template-columns: 1fr; } }
.watch .player__note { color: var(--grey-s22); }
/* up next: a card inside the player, about 20 seconds before the end; then a 5-second countdown */
.upnext { position: absolute; right: clamp(.5rem, 2vw, 1.25rem); bottom: clamp(3.5rem, 12%, 5rem); z-index: 4; width: min(22rem, calc(100% - 1rem)); padding: 1rem 1.1rem 1.1rem; background: var(--charcoal); border: 1px solid var(--grey-s38); border-left: var(--bar) solid var(--accent); transform: translateX(110%); transition: transform .45s var(--ease); }
.upnext.is-in { transform: none; }
.upnext__k { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey-s22); }
.upnext h3 { margin-top: .4rem; font: 600 1.25rem/1.15 var(--f-serif); color: var(--white); }
.upnext__count { display: none; margin-top: .7rem; font: 400 .8125rem/1.3 var(--f-mono); color: var(--grey); }
.upnext.is-counting .upnext__count { display: block; }
.upnext__n { font-weight: 500; color: var(--white); }
.upnext__bar { display: none; height: 3px; margin-top: .5rem; background: var(--charcoal-t25); }
.upnext.is-counting .upnext__bar { display: block; }
.upnext__bar i { display: block; width: 0; height: 100%; background: var(--red); }
.upnext .btnrow { margin-top: .9rem; gap: .5rem; }
/* the parts of a series, beside the player */
.parts { counter-reset: p; }
.parts h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--charcoal-t25); font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.parts h2 a { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--grey-s22); text-decoration: underline; text-underline-offset: .2em; }
.parts li { border-bottom: 1px solid var(--charcoal-t12); }
.parts li a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .8rem 0; }
.parts .ph { aspect-ratio: 16 / 9; }
.parts b { display: block; font: 600 .75rem/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--grey-s22); }
.parts span { display: block; margin-top: .25rem; font: 600 1.0625rem/1.2 var(--f-serif); color: var(--white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.parts li a:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.parts li[aria-current] a { box-shadow: inset 3px 0 0 var(--red); padding-left: .8rem; background: var(--charcoal-t04); }
.parts li[aria-current] b { color: var(--red-t45); }

/* ---------------------------------------------------------------- series pages */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: var(--gap); }
.scard { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 19rem; padding: 1.5rem; overflow: hidden; background: var(--charcoal-d2); }
.scard .ph { position: absolute; inset: 0; z-index: -2; }
.scard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .97) 0%, rgb(0 0 0 / .7) 45%, rgb(0 0 0 / .2) 100%); }
.scard h2 { margin-top: .7rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.02; }
.scard h2 a::after { content: ""; position: absolute; inset: 0; }
.scard:hover h2 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; text-decoration-color: var(--red); }
.scard:hover .ph img { transform: scale(1.025); }
.scard .meta { margin-top: .8rem; color: var(--grey); }
.plist { counter-reset: pl; border-top: 1px solid var(--charcoal-t25); }
.plist li { position: relative; display: grid; grid-template-columns: 3.5rem minmax(10rem, 20rem) minmax(0, 1fr); gap: 1rem clamp(1rem, 3vw, 2.5rem); align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--charcoal-t12); }
.plist i { font: 600 2.5rem/1 var(--f-serif); font-style: normal; color: var(--grey-s22); letter-spacing: -.03em; }
.plist .vc__thumb { position: relative; }
.plist .ph { aspect-ratio: 16 / 9; }
.plist b { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red-t45); }
.plist h3 { margin-top: .4rem; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); }
.plist h3 a::after { content: ""; position: absolute; inset: 0; }
.plist li:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.plist li:hover .vc__play { background: var(--red); border-color: var(--red); }
.plist .meta { margin-top: .6rem; }
@media (max-width: 47.99em) { .plist li { grid-template-columns: 2.25rem minmax(0, 1fr); } .plist li > div:last-child { grid-column: 2; } .plist i { font-size: 1.75rem; } }

/* ---------------------------------------------------------------- podcasts: M28's own player, typographic covers */
.pod-hero { display: grid; grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr); gap: var(--gap) clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--charcoal-t04); border: 1px solid var(--charcoal-t12); }
.pod-hero h2 { margin-top: .8rem; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.04; }
.pod-hero p:not([class]) { margin-top: .9rem; color: var(--grey); max-width: 38rem; }
.pod-cover svg { display: block; width: 100%; height: auto; }
.pc-m { font: 700 30px var(--f-ui); fill: #FFFFFF; letter-spacing: -.02em; }
.pc-t { font: 600 27px var(--f-serif); fill: #FFFFFF; letter-spacing: -.01em; }
.pc-k { font: 500 9.5px var(--f-mono); fill: #FFFFFF; letter-spacing: .14em; }
@media (max-width: 40em) { .pod-hero { grid-template-columns: 1fr; } .pod-hero .pod-cover { max-width: 14rem; } }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr)); gap: 1.25rem var(--gap); }
.ep { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.1rem; background: var(--charcoal-t04); border: 1px solid var(--charcoal-t12); }
.ep h3 { margin-top: .5rem; font-size: 1.375rem; line-height: 1.12; }
.ep p:not([class]) { margin-top: .5rem; font-size: .9375rem; line-height: 1.45; color: var(--grey-s22); }
.ep .meta { margin-top: .6rem; }
.aplayer { margin-top: 1rem; }
.aplayer__ui { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.aplayer__btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--white); color: var(--charcoal); }
.aplayer__btn:hover { background: var(--grey); }
.aplayer__btn .icon { width: 1.1rem; height: 1.1rem; }
.aplayer__btn[aria-pressed="true"] .i-play, .aplayer__btn:not([aria-pressed="true"]) .i-pause { display: none; }
.aplayer__seek { width: 100%; height: 2.75rem; accent-color: var(--red); }
.aplayer__time { font: 400 .75rem/1 var(--f-mono); color: var(--grey-s22); white-space: nowrap; }
.aplayer__file { display: inline-flex; align-items: center; gap: .5em; margin-top: .5rem; font: 500 .8125rem/1.3 var(--f-ui); color: var(--grey-s22); text-decoration: underline; text-underline-offset: .2em; }
.aplayer__file .icon { width: 1rem; height: 1rem; }
.js .aplayer__file { font-size: .75rem; color: var(--grey-s22); }

/* ---------------------------------------------------------------- listen versions of investigations (brief §12) */
.lvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: var(--gap); }
.lv a { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 1rem; border: 1px solid var(--line-2); background: var(--bg-2); }
.lv a:hover { border-color: var(--line-2); }
.lv__body { display: grid; gap: .5rem; min-width: 0; }
.lv b { font: 600 1.375rem/1.15 var(--f-serif); color: var(--head); letter-spacing: -.005em; }
.lv a:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.lv .meta > span { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.lv .meta svg { width: .95rem; height: .95rem; flex: none; }
.row > .proto { margin-bottom: 1.25rem; }
@media (max-width: 40em) {
  .lv a { grid-template-columns: 6rem minmax(0, 1fr); gap: .9rem; padding: .8rem; }
  .lv b { font-size: 1.125rem; }
}

/* ================================================================ v0.5, drawn by hand (brief §3.5): the rows and "Up next" stay; new type, colours and the case bar */
.bill h1 { font-weight: var(--w-head); letter-spacing: -.026em; }
.bill .kicker { color: var(--accent-ink); }
.bill .kicker > span + span { color: var(--grey); }
.bill__deck { color: var(--white); }
.bill .btn:not(.btn--ghost) { background: var(--red); border-color: var(--red); color: var(--white); }
.bill .btn:not(.btn--ghost):hover { background: var(--red-s15); border-color: var(--red-s15); }
/* a series without a still of its own: a typographic header, made on purpose */
.bill--card { background: var(--charcoal); border-bottom: var(--bar) solid var(--red-t25); }
/* every row opens with the case bar */
.row__head { position: relative; padding-top: 1.1rem; }
.row__head::before { content: ""; position: absolute; left: 0; top: 0; width: 4.5rem; height: var(--bar); background: var(--accent); }
.row__head h2 { font: var(--w-head) clamp(1.5rem, 1.3rem + .9vw, 2.125rem)/1.05 var(--f-serif); letter-spacing: -.016em; color: var(--white); }
.row__head p { color: var(--grey-s22); }
.vc--part .vc__n { color: var(--red-t25); }
.plist li i { color: var(--accent-ink); }
.plist h3 { font-weight: 600; }
.upnext { border-top: var(--bar) solid var(--red-t25); }
