/* Holidaze: every holiday episode. Three colours at any time, the season's: its ground, its ink and its accent.
   Noll for everything; ExtraBold for the name and the big lines; a Noll OS cut, the season's, for the accents (the ranks,
   the holiday's own word). The stills do the picturing: no boxes, strokes, shadows or fades. */

@font-face { font-family: 'Noll'; src: url('../fonts/noll.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Noll'; font-style: italic; src: url('../fonts/noll-italic.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Noll OS Knit'; src: url('../fonts/os-knit.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Wave'; src: url('../fonts/os-wave.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Trace'; src: url('../fonts/os-trace.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Bead'; src: url('../fonts/os-bead.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS StarOver'; src: url('../fonts/os-starover.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Pill'; src: url('../fonts/os-pill.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Dot'; src: url('../fonts/os-dot.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Mist'; src: url('../fonts/os-mist.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Plus'; src: url('../fonts/os-plus.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS AngleHeavy'; src: url('../fonts/os-angleheavy.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Square'; src: url('../fonts/os-square.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Noll OS Foam'; src: url('../fonts/os-foam.woff2') format('woff2'); font-display: swap; }

:root {
  --ground: #ff6141; --ink: #170b08; --accent: #fff0c9; --os: 'Noll OS Wave';
  --mute: color-mix(in srgb, var(--ink) 62%, var(--ground));
  --tint: color-mix(in srgb, var(--ink) 9%, var(--ground));
  --pad: clamp(16px, 3.2vw, 48px);
  --wide: 1480px;
  --r: 10px;
}
[data-holiday='halloween'] { --ground: #2b0a45; --ink: #ff7b22; --accent: #b8f24a; --os: 'Noll OS Trace'; }
[data-holiday='thanksgiving'] { --ground: #ff6141; --ink: #170b08; --accent: #fff0c9; --os: 'Noll OS Wave'; }
[data-holiday='christmas'] { --ground: #540d1f; --ink: #dcc8ff; --accent: #ff5a47; --os: 'Noll OS Knit'; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 450 17px/1.4 'Noll', system-ui, sans-serif; font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.hide { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); }
.os { font-family: var(--os), 'Noll', sans-serif; font-weight: 400; color: var(--accent); }

/* ---------- The top ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { font-weight: 800; font-size: 28px; letter-spacing: -0.035em; line-height: 1; margin-right: 8px; white-space: nowrap; }
.mark:hover { color: var(--ink); }
.seasons, .kinds { display: flex; gap: 20px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.seasons a[aria-current], .kinds a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top .end { margin-left: auto; display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.top .count { font-family: var(--os), 'Noll'; color: var(--accent); font-weight: 400; margin-left: 4px; }
.top .count:empty { display: none; }
.kinds { color: var(--mute); }
.kinds a[aria-current] { color: var(--ink); }

@media (max-width: 900px) {
  .top .wrap { height: auto; flex-wrap: wrap; row-gap: 6px; column-gap: 18px; padding-block: 12px 10px; }
  .mark { font-size: 26px; }
  .top .end { order: 2; gap: 18px; }
  .seasons { order: 3; width: 100%; gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .kinds { order: 4; display: none; }
  .seasons::-webkit-scrollbar { display: none; }
}

/* ---------- The big lines ---------- */
.hero { padding-block: clamp(28px, 6vw, 88px) clamp(20px, 3vw, 40px); }

/* A big line set to the page's width (src/fit.mjs adds up its ems): one line, or two on a phone. */
.fitbox { container-type: inline-size; width: 100%; }
.fit {
  --max: 200px; margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: .9; white-space: nowrap;
  font-size: min(var(--max), 100cqw / var(--ems) * .985);
}
.fit .os { letter-spacing: -0.01em; }
.fit .br2 { display: none; }
@media (max-width: 700px) {
  .fit.two { font-size: min(var(--max), 100cqw / var(--ems2) * .985); }
  .fit.two .br2 { display: inline; }
}
.band { background: var(--ground); color: var(--ink); margin-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 72px); }
.band .section { padding-top: clamp(36px, 5vw, 72px); }
.band + .foot { margin-top: 0; }
.hero .sub { margin-top: 18px; font-size: clamp(17px, 1.6vw, 22px); color: var(--mute); font-weight: 500; }
.h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 56px); line-height: .95; letter-spacing: -0.035em; text-wrap: pretty; }
.row .title, .card .t, .search .hit .t, .summary { text-wrap: pretty; }
.section { padding-block: clamp(36px, 5vw, 72px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(16px, 2vw, 28px); }
.section-head .more { font-weight: 600; white-space: nowrap; }

/* ---------- The toggles: All, Comedy, Drama, Animated, Kids & Family ---------- */
.toggles { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; font-size: 18px; margin-bottom: 18px; }
.toggles a { color: var(--mute); }
.toggles a:hover { color: var(--ink); }
.toggles a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- A ranked list ---------- */
.rank { counter-reset: n; }
.row {
  display: grid; grid-template-columns: 5.4rem minmax(140px, 15rem) minmax(0, 1fr) auto; column-gap: clamp(14px, 1.6vw, 24px);
  align-items: center; padding-block: 10px;
}
.row .n { font-family: var(--os), 'Noll'; color: var(--accent); font-size: clamp(40px, 4.4vw, 64px); line-height: .8; text-align: right; font-variant-numeric: tabular-nums; }
.row .pic { display: block; }
.row .what { min-width: 0; }
.row .title { font-weight: 700; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.12; letter-spacing: -0.012em; display: block; }
.row .of { margin-top: 5px; color: var(--mute); font-size: 15px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; }
.row .of a { color: var(--ink); font-weight: 600; }
.row .of a:hover { color: var(--accent); }
.row .act { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.row.plain { grid-template-columns: minmax(140px, 15rem) minmax(0, 1fr) auto; }

@media (max-width: 700px) {
  .row { grid-template-columns: 2.6rem 34vw minmax(0, 1fr); align-items: start; row-gap: 6px; padding-block: 9px; }
  .row.plain { grid-template-columns: 34vw minmax(0, 1fr); }
  .row .n { font-size: 34px; padding-top: 2px; }
  .row .title { font-size: 17px; }
  .row .of { font-size: 14px; }
  .row .act { grid-column: 3; gap: 20px; }
  .row.plain .act { grid-column: 2; }
}

/* ---------- Stills ---------- */
.still { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.still img { width: 100%; height: 100%; object-fit: cover; }
.still .name {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; text-align: center;
  font-weight: 800; letter-spacing: -0.03em; line-height: .95; font-size: clamp(14px, 1.6vw, 22px); color: var(--ink);
}
.still.poster img { object-position: 50% 22%; }

/* ---------- Scores and stars (Noll's own ★) ---------- */
.score { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.stars { position: relative; display: inline-block; font-size: 17px; letter-spacing: .06em; line-height: 1; color: color-mix(in srgb, var(--ink) 26%, var(--ground)); }
.stars::before { content: '★★★★★'; }
.stars i { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--accent); font-style: normal; }
.stars i::before { content: '★★★★★'; }
.score b { font-weight: 700; font-variant-numeric: tabular-nums; }
.row .score { font-size: 16px; }
@media (max-width: 700px) { .row .score .stars { display: none; } }

/* Your rating: ten halves of five stars */
.rate { display: inline-flex; align-items: center; gap: 14px; }
.rate .pick { position: relative; display: inline-flex; font-size: 34px; line-height: 1; letter-spacing: .04em; color: color-mix(in srgb, var(--ink) 26%, var(--ground)); }
.rate .pick .fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--accent); pointer-events: none; }
.rate .pick .hits { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); }
.rate .pick .hits button { height: 100%; }
.rate .yours { font-weight: 600; color: var(--mute); }

/* ---------- Buttons set in type: ♡ + ✓ ---------- */
.b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; white-space: nowrap; min-height: 40px; }
.b .g { font-size: 26px; line-height: 1; }
.b:hover { color: var(--accent); }
.b[aria-pressed='true'] .g, .b.on .g { color: var(--accent); }
.b.add .g { font-weight: 500; }
.b.add.on .g { font-family: var(--os), 'Noll'; font-weight: 400; }
.row .b { min-width: 34px; justify-content: center; }
.row .b .g { font-size: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.big-b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 700; font-size: 18px; white-space: nowrap; }
.big-b:hover { color: var(--ground); background: var(--accent); }
[data-holiday='thanksgiving'] .big-b:hover { color: var(--ink); }

/* ---------- Shelves: a row of stills you scroll ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23%, 340px); gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--tint) transparent; }
.card { scroll-snap-align: start; min-width: 0; }
.card .t { margin-top: 10px; font-weight: 700; font-size: 17px; line-height: 1.15; }
.card .s { margin-top: 3px; color: var(--mute); font-size: 15px; font-weight: 500; }
.card .top-n { font-family: var(--os), 'Noll'; color: var(--accent); font-size: 30px; line-height: 1; margin-bottom: 8px; display: block; }
@media (max-width: 700px) { .shelf { grid-auto-columns: 64vw; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); } }

/* ---------- Logos, in the season's ink ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(26px, 3.4vw, 54px) clamp(30px, 4vw, 64px); }
.logo { display: inline-block; height: var(--h, 46px); aspect-ratio: var(--ar, 2.6); background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.logos a { color: var(--ink); display: inline-flex; }
.logos a:hover { color: var(--accent); }
.logos .word { font-weight: 800; font-size: 30px; letter-spacing: -0.035em; line-height: 1; }
.show-logo { --h: clamp(64px, 11vw, 150px); color: var(--ink); }
.show-logo.word { font-weight: 800; font-size: clamp(56px, 10vw, 160px); letter-spacing: -0.045em; line-height: .9; }

/* ---------- An episode ---------- */
.ep-still { margin-top: clamp(12px, 2vw, 28px); }
.ep-still .still { border-radius: calc(var(--r) * 1.4); }
.ep-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-top: clamp(22px, 3vw, 40px); }
.ep-head .from { display: inline-flex; color: var(--ink); --h: clamp(30px, 3.4vw, 46px); margin-bottom: 14px; }
.ep-head .from .word { font-weight: 800; font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.035em; line-height: 1; }
.ep-head .from:hover { color: var(--accent); }
.ep-head .fit { line-height: .92; }
.facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; color: var(--mute); }
.facts a { color: var(--ink); }
.ep-score { text-align: right; }
.ep-score .big { font-family: var(--os), 'Noll'; color: var(--accent); font-size: clamp(64px, 8vw, 128px); line-height: .8; }
.ep-score .stars { font-size: 26px; margin-top: 12px; }
.ep-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); padding-top: clamp(26px, 3vw, 44px); }
.summary { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 40em; }
.label { font-weight: 700; margin-bottom: 10px; }
.watch a { font-weight: 700; font-size: 20px; }
.credit { margin-top: 14px; color: var(--mute); font-size: 14px; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .ep-head { grid-template-columns: 1fr; }
  .ep-score { text-align: left; display: flex; align-items: center; gap: 18px; }
  .ep-score .stars { margin-top: 0; }
  .ep-body { grid-template-columns: 1fr; }
}

/* ---------- A show ---------- */
.show-hero { padding-top: clamp(28px, 5vw, 72px); display: grid; gap: 22px; }
.show-hero .facts { margin-top: 0; }
.show-hero .actions { margin-top: 8px; }
.holiday-block + .holiday-block { margin-top: clamp(36px, 5vw, 64px); }

/* ---------- Search ---------- */
.search { position: fixed; inset: 0; z-index: 50; background: var(--ground); overflow-y: auto; display: none; }
.search.open { display: block; }
.search .wrap { padding-top: 20px; }
.search .bar { display: flex; align-items: center; gap: 24px; }
.search input {
  flex: 1; min-width: 0; font: 800 clamp(36px, 6vw, 92px)/1 'Noll', sans-serif; letter-spacing: -0.04em; color: var(--ink);
  background: none; border: 0; outline: 0; padding: 12px 0; caret-color: var(--accent);
}
.search input::placeholder { color: color-mix(in srgb, var(--ink) 34%, var(--ground)); }
.search .close { font-weight: 600; font-size: 18px; }
.search .results { padding-block: 18px 80px; }
.search .group + .group { margin-top: 30px; }
.search .group h2 { font-weight: 700; color: var(--mute); font-size: 15px; margin-bottom: 8px; }
.search .hit { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 7px; }
.search .hit.on .t, .search .hit:hover .t { color: var(--accent); }
.search .hit .t { font-weight: 700; font-size: 19px; line-height: 1.15; }
.search .hit .s { color: var(--mute); font-size: 15px; font-weight: 500; }
.search .hit .logo { --h: 34px; color: var(--ink); justify-self: start; }
.search .hit .word { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.find { display: block; width: 100%; text-align: left; margin-top: clamp(18px, 2.4vw, 32px); font: 700 clamp(22px, 2.6vw, 38px)/1.1 'Noll', sans-serif; letter-spacing: -0.025em; color: color-mix(in srgb, var(--ink) 40%, var(--ground)); }
.find:hover { color: var(--ink); }

/* ---------- The lineup ---------- */
.lineup-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; padding-top: clamp(28px, 5vw, 72px); }
.lineup-head h1 { font-weight: 800; font-size: clamp(44px, 7.6vw, 132px); line-height: .9; letter-spacing: -0.045em; outline: 0; }
.lineup-head h1[contenteditable='true']:focus { color: var(--accent); }
.lineup-head .actions { gap: 10px 14px; }
.ghost { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--tint); font-weight: 700; font-size: 18px; white-space: nowrap; }
.ghost:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 18%, var(--ground)); }
.lineup { margin-top: clamp(20px, 3vw, 40px); }
.lineup .row { touch-action: pan-y; }
.lineup .row.drag { opacity: .55; }
.lineup .grip { cursor: grab; font-size: 24px; color: var(--mute); padding: 6px; touch-action: none; user-select: none; }
.slots .slot { display: grid; grid-template-columns: 5.4rem minmax(140px, 15rem); column-gap: clamp(14px, 1.6vw, 24px); align-items: center; padding-block: 10px; }
.slots .slot .n { font-family: var(--os), 'Noll'; color: color-mix(in srgb, var(--ink) 26%, var(--ground)); font-size: clamp(40px, 4.4vw, 64px); line-height: .8; text-align: right; }
.slots .slot .still { background: var(--tint); }
@media (max-width: 700px) { .slots .slot { grid-template-columns: 2.6rem 34vw; } .slots .slot .n { font-size: 34px; } }

/* Watching a lineup through */
.through { position: fixed; inset: 0; z-index: 60; background: var(--ground); display: none; overflow-y: auto; }
.through.open { display: block; }
.through .wrap { padding-block: 20px 40px; display: grid; gap: 22px; }
.through .bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.through .of-n { font-family: var(--os), 'Noll'; color: var(--accent); font-size: 40px; line-height: 1; }
.through h2 { font-weight: 800; font-size: clamp(36px, 5.6vw, 88px); line-height: .92; letter-spacing: -0.04em; }
.through .still { max-height: 56vh; aspect-ratio: 16 / 9; width: auto; }
.through .actions { gap: 12px 14px; }

/* ---------- You ---------- */
.you-head { padding-top: clamp(28px, 5vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.you-head h1 { font-weight: 800; font-size: clamp(48px, 8vw, 140px); line-height: .9; letter-spacing: -0.045em; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 600; font-size: 18px; margin-top: 26px; }
.tabs button { color: var(--mute); }
.tabs button[aria-selected='true'] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tabs .c { font-family: var(--os), 'Noll'; color: var(--accent); margin-left: 6px; }
.quiet { color: var(--mute); font-weight: 500; }

/* ---------- The note that comes and goes ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--ground); font-weight: 700; padding: 13px 22px; border-radius: 999px; white-space: nowrap; display: none; }
.toast.show { display: block; }

/* ---------- The foot ---------- */
.foot { margin-top: clamp(64px, 9vw, 140px); padding-block: 40px 48px; }
.foot .wrap { display: grid; gap: 22px; }

.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }
.foot .credit { margin-top: 0; max-width: 60em; }
