/* Selah: the rooms of the video table, on the GSA design system (gsa/,
   copied from gsa-dash by tools/sync_gsa.sh; its DESIGN.md is the law here
   too). Numbers come from gsa/tokens.css; the few Selah owns are below and
   in DESIGN.md. */

:root {
  /* the three lenses are Selah's shelves, so each wears a cloth (DESIGN.md: cloth says which shelf) */
  --lens-academic: var(--c-res);
  --lens-apologetic: var(--c-read);
  --lens-culture: var(--c-quote);
  /* Selah's masthead: the name of the place, the one loud thing on Today */
  --t-display-serif: clamp(64px, 9vw, 128px);
  --page-w: 1180px;

  /* Selah's faces (Noah, 2026-11-01): Geist, and Vercel's Geist Serif for headers and titles. Geist
     Serif has one weight and no italic, so nothing here asks it for either. */
  --display: "Geist Serif", Georgia, serif;
  --serif: "Geist Serif", Georgia, serif;
  --track-display: -.02em;
}
@font-face { font-family: "Geist Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/geist-serif.woff2) format("woff2"); }
body { font-synthesis: none; }

/* ---------- the shell ---------- */
.bar { background: var(--frost); -webkit-backdrop-filter: var(--frost-filter); backdrop-filter: var(--frost-filter);
  transition: left var(--d-panel) var(--ease), box-shadow var(--d-fast); }
.bar.under { box-shadow: inset 0 -.5px 0 var(--edge); }
body.today .bar:not(.under) { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar .back-to { font: 500 var(--t-md) var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 24vw; padding-right: var(--s-2); }
.bar .back { width: auto; padding-right: var(--s-1); }
@media (max-width: 720px) { .bar .back-to { display: none; } }
.find { display: flex; align-items: center; gap: var(--s-2); width: min(520px, 42vw); height: var(--plate); padding: 0 var(--s-3);
  border-radius: var(--r-ctl); background: var(--fill); color: var(--ink-3); transition: box-shadow var(--d-fast), background var(--d-fast); }
.find:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge-hover); }
.find input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: var(--t-md); -webkit-appearance: none; appearance: none; }
.find input::placeholder { color: var(--ink-3); }
.find input::-webkit-search-cancel-button { display: none; }
@media (max-width: 720px) { .find { width: min(60vw, 280px); } .find input { font-size: var(--t-body); } }

#sidebar .mark { flex: none; width: var(--icon-md); display: flex; justify-content: center; }
#sidebar .mark i { width: 4px; height: 16px; border-radius: var(--r-xs); background: var(--cloth); }
#sidebar .row svg.ext { margin-left: auto; color: var(--ink-3); }

#view { padding: calc(var(--bar-h) + var(--safe-top)) 0 0 var(--side); transition: padding-left var(--d-panel) var(--ease); }
.page { max-width: calc(var(--page-w) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-6) var(--gutter) var(--s-9); }
.page .head { margin-bottom: var(--s-6); }
.page .head h1 { font: 400 var(--t-5xl)/var(--lh-tight) var(--display); letter-spacing: var(--track-display); overflow-wrap: anywhere; }
.page .head .meta { margin-top: var(--s-2); color: var(--ink-3); font-size: var(--t-sm); }
.page .head .playpill { margin-top: var(--s-4); }
@media (max-width: 720px) { .page .head h1 { font-size: var(--t-4xl); } .page { padding-top: var(--s-5); } }
h2.sec { font: 400 var(--t-3xl)/var(--lh-snug) var(--display); letter-spacing: var(--track-display); margin: var(--s-8) 0 var(--s-4); }
.state { color: var(--ink-3); font-size: var(--t-md); padding: var(--s-6) 0; }

/* the up-breadcrumb over a title */
.crumbs { display: flex; align-items: center; gap: 0 2px; min-width: 0; margin: 0 0 var(--s-2) calc(-1 * var(--s-2)); color: var(--ink-3); }
.crumbs a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 var(--t-sm) var(--sans); color: var(--ink-3);
  border-radius: var(--r-sm); padding: 2px var(--s-2); transition: background var(--d-fast), color var(--d-fast); }
@media (hover: hover) { .crumbs a:hover { background: var(--fill); color: var(--ink); } }

/* ---------- a video: the frame and its card ---------- */
.lens { display: inline-flex; align-items: center; gap: 6px; }
.lens::before { content: ""; flex: none; width: 3px; height: 11px; border-radius: var(--r-xs); background: var(--cloth); }
.lens.academic { --cloth: var(--lens-academic); }
.lens.apologetic { --cloth: var(--lens-apologetic); }
.lens.culture { --cloth: var(--lens-culture); }

.frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm); transition: transform var(--d-panel) var(--ease), filter var(--d-panel) var(--ease); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--d-panel) ease; }
.frame img.in { opacity: 1; }
.frame .dur { position: absolute; right: var(--s-2); bottom: var(--s-2); font: 500 var(--t-xs)/1 var(--sans); color: var(--ink); padding: 4px 6px;
  border-radius: var(--r-xs); background: color-mix(in srgb, var(--bg) 78%, transparent); }
.frame .seen { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--w, 0) * 100%); background: var(--accent); }
.frame .seen.done { background: var(--ink-3); width: 100%; }
.frame.tall { aspect-ratio: 9 / 16; }

.vcard { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
@media (hover: hover) { .vcard:hover .frame { transform: translateY(-3px); filter: brightness(1.07); } }
.vcard .frame { margin-bottom: var(--s-1); }
.vcard .why { font: 500 var(--t-xs)/var(--lh-ui) var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard .t { font: 400 var(--t-body)/var(--lh-snug) var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .m { display: flex; align-items: center; gap: 0; min-width: 0; font-size: var(--t-sm); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.vcard .m > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.vcard.watched .t { color: var(--ink-2); }
/* the channel's picture: a true circle (DESIGN.md §5), beside the title as in YouTube's own cards */
.av { flex: none; display: block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--fill); }
.av.sm { width: 20px; height: 20px; margin-right: var(--s-2); }
.av.md { width: 28px; height: 28px; }
.vcard .info { display: flex; gap: var(--s-3); align-items: flex-start; min-width: 0; }
.vcard .info .av { margin-top: 1px; }
.vcard .txt { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.bites .vcard .av { width: 24px; height: 24px; }
.bites .vcard .info { gap: var(--s-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-6) var(--s-5); }
.grid.tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- Today: a table, set once a day, that ends ---------- */
.masthead { padding: var(--s-7) 0 var(--s-7); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-5); }
.masthead .name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s-4); }
.masthead h1 { font: 400 var(--t-display-serif)/.9 var(--display); letter-spacing: var(--track-display); }
/* what the name means, beside it: small, quiet, italic Geist; the Hebrew in the archive's Hebrew face */
.masthead .gloss { font: italic 400 var(--t-md) var(--sans), "CFM Hebrew"; color: var(--ink-3); white-space: nowrap; border-radius: var(--r-sm); padding: 2px var(--s-1);
  transition: color var(--d-fast), background var(--d-fast); }
.masthead .gloss span { font: normal 400 var(--t-lg) "CFM Hebrew", var(--serif); color: var(--ink-2); }
@media (hover: hover) { .masthead .gloss:hover { color: var(--ink); background: var(--fill); } }
.masthead .day { text-align: right; display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--s-2); }
.masthead .day b { font: 500 var(--t-md) var(--sans); color: var(--ink); }
.masthead .day span { font-size: var(--t-sm); color: var(--ink-3); }
.masthead .day a { color: var(--ink-2); }
@media (hover: hover) { .masthead .day a:hover { color: var(--ink); } }
@media (max-width: 720px) {
  .masthead { grid-template-columns: 1fr; padding: var(--s-5) 0 var(--s-6); gap: var(--s-3); }
  .masthead .day { text-align: left; order: -1; }
}

.lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-6); align-items: center; margin-bottom: var(--s-8); }
.lead .frame { box-shadow: var(--shadow-lg); }
.lead .why { font: 500 var(--t-sm) var(--sans); color: var(--ink-2); margin-bottom: var(--s-3); }
.lead h2 { font: 400 var(--t-4xl)/var(--lh-tight) var(--display); letter-spacing: var(--track-display); margin-bottom: var(--s-4); }
.lead p { font: 400 var(--t-lg)/var(--lh-read) var(--sans); color: var(--ink-2); margin-bottom: var(--s-4); }
.lead .m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: var(--t-sm); color: var(--ink-3); }
@media (hover: hover) { .lead:hover .frame { transform: translateY(-3px); filter: brightness(1.07); } }
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; gap: var(--s-4); } .lead h2 { font-size: var(--t-3xl); } }

.interests { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) var(--s-6); padding: 2px var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }   /* lint-ok: a mask's alpha, not a colour */
.interests::-webkit-scrollbar { display: none; }
.interests .chip { flex: none; height: 34px; padding: 0 var(--s-3); font-size: var(--t-sm); }
.table { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .table { grid-template-columns: repeat(2, minmax(0, 1fr)); } .table > :nth-child(9) { display: none; } }   /* rows stay whole */
@media (max-width: 560px) { .table > :nth-child(9) { display: flex; } }
@media (max-width: 560px) { .table { grid-template-columns: 1fr; } }

.bites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.bites .vcard .t { font-size: var(--t-md); }
@media (max-width: 720px) { .bites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the end of the table: selah, a pause */
.end { margin: var(--s-9) auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.pausemark { display: inline-flex; gap: 7px; }
.pausemark i { width: 9px; height: 30px; border-radius: 3px; background: var(--ink-3); }
.pausemark i + i { background: var(--accent); }   /* the icon's own two bars, the second in the accent */
.end .next { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-3); }
.end .more { margin-top: var(--s-5); }

/* ---------- a video's page ---------- */
.watch .stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.watch .stage .ply, .watch .stage .ply iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.watch .stage .go { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.watch .stage .go span { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: var(--frost-filter); backdrop-filter: var(--frost-filter); color: var(--ink);
  box-shadow: var(--frost-edge); transition: transform var(--d-fast) var(--ease); }
.watch .stage .go svg.i { width: var(--icon-lg); height: var(--icon-lg); }
@media (hover: hover) { .watch .stage .go:hover span { transform: scale(1.06); } }

.watch .body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); margin-top: var(--s-5); }
.watch h1 { font: 400 var(--t-4xl)/var(--lh-tight) var(--display); letter-spacing: var(--track-display); margin-bottom: var(--s-3); overflow-wrap: anywhere; }
.watch .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: var(--t-sm); color: var(--ink-3); }
.watch .meta a { color: var(--ink-2); }
.watch .meta .who { display: inline-flex; align-items: center; gap: var(--s-2); margin-right: var(--s-3); font: 500 var(--t-md) var(--sans); color: var(--ink); }
@media (hover: hover) { .watch .meta .who:hover span { text-decoration: underline; text-decoration-color: var(--edge-hover); text-underline-offset: 3px; } }
@media (hover: hover) { .watch .meta a:hover { color: var(--ink); } }
.watch .acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 var(--s-5); }
.act { display: inline-flex; align-items: center; gap: var(--s-2); height: 36px; padding: 0 var(--s-3) 0 10px; border-radius: var(--r-ctl);
  background: var(--fill); color: var(--ink-2); font: 500 var(--t-md) var(--sans); transition: background var(--d-fast), color var(--d-fast); }
@media (hover: hover) { .act:hover { background: var(--fill-2); color: var(--ink); } }
.act[aria-pressed="true"] { background: var(--fill-2); color: var(--ink); }
.act[aria-pressed="true"] svg.i { color: var(--accent); }
.watch .sum { font: 400 var(--t-body)/var(--lh-read) var(--sans); color: var(--ink); max-width: 68ch; }
.watch .whyline { font: 400 var(--t-body)/var(--lh-read) var(--sans); color: var(--ink-3); margin-top: var(--s-3); max-width: 68ch; }
.watch .side { display: flex; flex-direction: column; gap: var(--s-5); }
.watch .side h6 { font: 500 var(--t-xs) var(--sans); color: var(--ink-3); margin-bottom: var(--s-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--t-sm) var(--sans); color: var(--ink-2); padding: 5px var(--s-3); border-radius: var(--r-ctl);
  background: var(--fill); transition: background var(--d-fast), color var(--d-fast); }
@media (hover: hover) { .chip:hover { background: var(--fill-2); color: var(--ink); } }
.chip svg.i { width: var(--icon-sm); height: var(--icon-sm); color: var(--ink-3); }
.chip[aria-current] { background: var(--ink); color: var(--bg); }
.watch .after { margin-top: var(--s-8); }
.watch .after .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .watch .body { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .watch .after .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .watch.page { padding-top: 0; }
  .watch .stage { margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); border-radius: 0; }
  .watch h1 { font-size: var(--t-3xl); }
  .watch .after .grid { grid-template-columns: 1fr; }
}
/* a short stands tall beside its card */
.watch.tall .top { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.watch.tall .stage { aspect-ratio: 9 / 16; max-height: calc(100dvh - var(--bar-h) - var(--s-8)); }
.watch.tall .body { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
@media (max-width: 720px) { .watch.tall .top { grid-template-columns: 1fr; gap: var(--s-5); } .watch.tall .stage { margin: 0 auto; width: 100%; max-height: 72dvh; border-radius: var(--r-lg); } .watch.tall.page { padding-top: var(--s-4); } }

/* when it ends: no countdown, a pause */
.pause { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3);
  padding: var(--s-5); background: var(--bg); text-align: center; animation: pause-in var(--d-sheet) var(--ease) both; }
.pause .pausemark { margin-bottom: var(--s-3); }
.pause .opts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.pause .nextup { display: flex; align-items: center; gap: var(--s-3); max-width: 420px; margin-top: var(--s-3); padding: var(--s-2); padding-right: var(--s-4);
  border-radius: var(--r-lg); background: var(--surface); text-align: left; transition: background var(--d-fast); }
@media (hover: hover) { .pause .nextup:hover { background: color-mix(in srgb, var(--surface), var(--ink) 5%); } }
.pause .nextup .frame { width: 120px; flex: none; box-shadow: none; }
.pause .nextup small { display: block; font: 500 var(--t-xs) var(--sans); color: var(--ink-3); }
.pause .nextup b { font: 400 var(--t-md)/var(--lh-snug) var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes pause-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) { .pause .nextup .frame { width: 88px; } .pause { gap: var(--s-2); } }

/* ---------- Browse ---------- */
/* one row: the lens as a segment, then Subject, Length and Sort as buttons that name their
   choice and open a menu; a set filter inverts (the active facet), Clear undoes them all */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-6); }
.filters .seg a { display: inline-flex; align-items: center; height: 30px; padding: 0 var(--s-3); border-radius: calc(var(--r-ctl) - 3px); font: 500 var(--t-sm) var(--sans); color: var(--ink-2);
  transition: background var(--d-fast), color var(--d-fast); white-space: nowrap; }
@media (hover: hover) { .filters .seg a:hover { color: var(--ink); } }
.filters .seg a[aria-current] { background: var(--fill-2); color: var(--ink); }
.filters .seg .lens::before { height: 10px; }
.filters .seg { margin-right: var(--s-2); }
.filters [data-open="f-lens"] { display: none; }   /* phones: the lens is a menu like the rest */
.fbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 var(--s-3); border-radius: var(--r-ctl); background: var(--fill);
  font: 500 var(--t-sm) var(--sans); color: var(--ink-2); white-space: nowrap; transition: background var(--d-fast), color var(--d-fast); }
.fbtn svg.i { color: var(--ink-3); }
@media (hover: hover) { .fbtn:hover { background: var(--fill-2); color: var(--ink); } }
.fbtn[aria-expanded="true"] { background: var(--fill-2); color: var(--ink); }
.fbtn.on { background: var(--ink); color: var(--bg); }
.fbtn.on svg.i { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.fclear { font: 500 var(--t-sm) var(--sans); color: var(--ink-3); padding: 0 var(--s-2); height: 36px; display: inline-flex; align-items: center; border-radius: var(--r-ctl); }
@media (hover: hover) { .fclear:hover { color: var(--ink); background: var(--fill); } }
/* the menus: a row's name, how many it holds, a check on the current one */
.layer[data-filter] .menu-rows > * { justify-content: space-between; }
.layer[data-filter] .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer[data-filter] .k { flex: none; font-size: var(--t-xs); color: var(--ink-3); }
.layer[data-filter] [aria-current] { color: var(--ink); }
.layer[data-filter] svg.i { flex: none; color: var(--ink); }
.layer.popover[data-filter] .menu-rows.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2px; }
.layer.popover[data-filter]:has(.cols) { width: 520px; }
@media (max-width: 720px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) var(--s-5); padding: 0 var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters > * { flex: none; }
  .filters .seg { display: none; }
  .filters [data-open="f-lens"] { display: inline-flex; }
  /* a phone's sheet holds the subjects in two columns, so all of them fit without scrolling */
  .layer.sheet[data-filter] .menu-rows.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-1); }
  .layer.sheet[data-filter] .menu-rows.cols > * { min-height: var(--hit); font-size: var(--t-md); padding: 0 var(--s-2); }
  .layer.sheet[data-filter] .menu-rows.cols .lbl { white-space: normal; line-height: var(--lh-snug); padding: 6px 0; }
  .layer.sheet[data-filter] .menu-rows.cols .k { display: none; }
}
.more { font: 500 var(--t-md) var(--sans); color: var(--ink); border-radius: var(--r-ctl); padding: 6px var(--s-3); background: var(--fill); transition: background var(--d-fast); }
@media (hover: hover) { .more:hover { background: var(--fill-2); } }
.more span { color: var(--ink-3); margin-left: var(--s-1); }
.page > .more { margin-top: var(--s-7); }

/* ---------- Series ---------- */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); }
.fcard { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); transition: background var(--d-fast); }
@media (hover: hover) { .fcard:hover { background: color-mix(in srgb, var(--surface), var(--ink) 4%); } .fcard:hover .fan img:nth-child(1) { transform: translateX(-88%) rotate(-7deg) scale(.84); } .fcard:hover .fan img:nth-child(3) { transform: translateX(-12%) rotate(7deg) scale(.84); } }
.fan { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - var(--s-3)); overflow: hidden; background: color-mix(in srgb, var(--cloth, var(--c-watch)) 24%, var(--bg)); }
.fan img { position: absolute; left: 50%; bottom: 20%; width: 62%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xs); box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity var(--d-panel) ease, transform var(--d-panel) var(--ease); }
.fan img.in { opacity: 1; }
.fan img:nth-child(1) { transform: translateX(-80%) rotate(-5deg) scale(.86); filter: brightness(.75); }
.fan img:nth-child(2) { transform: translateX(-50%); z-index: 1; bottom: 16%; }
.fan img:nth-child(3) { transform: translateX(-20%) rotate(5deg) scale(.86); filter: brightness(.75); }
.fcard .n { font: 400 var(--t-body)/var(--lh-snug) var(--serif); color: var(--ink); padding: 0 var(--s-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard .c { font-size: var(--t-sm); color: var(--ink-3); padding: 0 var(--s-1); margin-top: calc(-1 * var(--s-2)); display: flex; gap: var(--s-2); align-items: center; }

.eps { list-style: none; padding: 0; margin: 0 calc(-1 * var(--s-3)); display: flex; flex-direction: column; gap: 2px; }
.ep { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); transition: background var(--d-fast); }
@media (hover: hover) { .ep:hover { background: var(--fill); } }
.ep .no { flex: none; width: 28px; text-align: right; font: 500 var(--t-sm) var(--sans); color: var(--ink-3); }
.ep .frame { flex: none; width: 132px; box-shadow: none; }
.ep .ent { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ep .t { font: 400 var(--t-body)/var(--lh-snug) var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .s { font: 400 var(--t-md)/var(--lh-snug) var(--sans); color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ep.watched .t { color: var(--ink-2); }
@media (max-width: 720px) { .ep .frame { width: 104px; } .ep .no { display: none; } .ep .s { display: none; } }

/* ---------- About ---------- */
.prose { max-width: 680px; }
.prose p, .prose li { font: 400 var(--t-body)/var(--lh-read) var(--sans); color: var(--ink); margin-bottom: var(--s-4); }
.prose h2 { font: 400 var(--t-3xl)/var(--lh-snug) var(--display); letter-spacing: var(--track-display); margin: var(--s-7) 0 var(--s-3); }
.prose a { text-decoration: underline; text-decoration-color: var(--edge-hover); text-underline-offset: 3px; }
.prose .stats { display: flex; flex-wrap: wrap; gap: var(--s-6); margin: var(--s-5) 0 var(--s-6); }
.prose .stats div { display: flex; flex-direction: column; }
.prose .stats b { font: 400 var(--t-5xl)/1 var(--display-sans); letter-spacing: var(--track-display-sans); }
.prose .stats span { font-size: var(--t-sm); color: var(--ink-3); }
.prose .lenses { list-style: none; padding: 0; }
.prose .lenses li { display: flex; gap: var(--s-3); align-items: baseline; }
.prose .lenses .lens { flex: none; width: 110px; font: 500 var(--t-md) var(--sans); }

/* ---------- You ---------- */
.shelfrow .rowhead { display: flex; align-items: baseline; justify-content: space-between; }
.shelfrow:first-of-type h2.sec { margin-top: 0; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: var(--s-5); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s-2); scroll-padding: 0 var(--gutter); }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; }
.youfoot { display: flex; flex-direction: column; gap: 1px; max-width: 420px; margin: var(--s-8) 0 0 calc(-1 * var(--s-2)); }
.youfoot .row { min-height: var(--hit); font-size: var(--t-lg); }
.youfoot .row svg.ext { margin-left: auto; color: var(--ink-3); }

/* ---------- touch: what a thumb feels ---------- */
.vcard, .lead, .ep, .fcard, .tabs a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (hover: none) {
  .vcard:active .frame, .lead:active .frame, .ep:active, .fcard:active { transform: scale(.98); transition-duration: var(--d-fast); }
}

/* ---------- phones: an app, not a website (DESIGN.md, Phones) ---------- */
.tabs { display: none; }
@media (max-width: 720px) {
  /* the four rooms in a tab bar at the foot, where a thumb is; the sidebar stays on wider screens */
  .tabs { position: fixed; z-index: var(--z-bar); left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); border-radius: 0;
    box-shadow: inset 0 .5px 0 var(--edge); }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; color: var(--ink-3);
    font: 500 11px/1 var(--sans); transition: color var(--d-fast); }   /* lint-ok: a tab's label, as iOS sets it */
  .tabs a svg.i { width: var(--icon-lg); height: var(--icon-lg); }
  .tabs a[aria-current] { color: var(--ink); }
  .tabs a:active { color: var(--ink-2); }
  #side-btn, #sidebar { display: none !important; }
  .bar .slot { display: none; }
  #view { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .page { padding-bottom: var(--s-7); }

  /* Today: the masthead tight to the top, the table one column of big frames, bites a row to swipe */
  /* Today's bar holds nothing on a phone, so it shrinks to the status bar's band (frosted once the page scrolls under it) */
  body.today .bar { height: var(--safe-top); }
  body.today #view { padding-top: calc(var(--safe-top) + var(--s-2)); }
  body.today .masthead { padding-top: var(--s-4); }
  .masthead .name { gap: 0 var(--s-3); }
  .masthead .gloss { font-size: var(--t-sm); padding-left: 0; }
  .lead { margin-bottom: var(--s-6); }
  .lead h2 { font-size: var(--t-3xl); }
  .lead p { font-size: var(--t-md); }
  .interests { margin-bottom: var(--s-5); }
  .table { gap: var(--s-6); }
  .bites { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42vw; gap: var(--s-3); overflow-x: auto; scrollbar-width: none;
    scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .bites::-webkit-scrollbar { display: none; }
  .bites > * { scroll-snap-align: start; }
  .strip { grid-auto-columns: 72vw; gap: var(--s-4); }

  /* a video: the player stays at the top while you read under it, as in YouTube's app */
  .watch .stage { position: sticky; top: calc(var(--bar-h) + var(--safe-top)); z-index: 1; }
  .watch.tall .stage { position: relative; top: auto; }
  .watch .acts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .watch .acts::-webkit-scrollbar { display: none; }
  .watch .acts .act { flex: none; height: 40px; }
}
