/**
 * silKO.TV
 *
 * A streaming service, not a page of links: a full-bleed rotating hero, rows
 * that scroll sideways, posters that lift on hover, a numbered top ten, live
 * channels on glass tiles. The palette is the app's own teal on near-black.
 */
:root {
  --canvas: #08090b;
  --raise-1: #101216;
  --raise-2: #171a20;
  --raise-3: #20242c;
  --ink: #eef0f3;
  --ink-2: #b4b9c4;
  --ink-3: #828896;
  --line: rgba(255, 255, 255, 0.08);
  --teal: #4fb3d9;
  --teal-deep: #2f7fa3;
  --live: #ff3b4e;
  --gold: #e8b45a;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --ui: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --poster-w: clamp(132px, 12.6vw, 210px);
  --live-w: clamp(244px, 21vw, 340px);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--ink); color: #000; padding: 8px 14px; border-radius: 8px; }

/* ================================================================ masthead */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  height: 68px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.78) 0%, rgba(8, 9, 11, 0) 100%);
  transition: background 260ms var(--ease), box-shadow 260ms var(--ease);
}
.masthead.solid {
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 23px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span { color: var(--teal); }
.brand.small { font-size: 16px; }
nav.primary { display: flex; gap: clamp(4px, 1.2vw, 18px); }
nav.primary a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 160ms;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.search-link {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 160ms, color 160ms;
}
.search-link:hover, .search-link[aria-current="page"] { background: var(--raise-2); color: var(--ink); }

/* ==================================================================== hero */

.hero {
  position: relative;
  height: clamp(540px, 86vh, 940px);
  overflow: hidden;
  isolation: isolate;
}
.hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1100ms var(--ease);
}
.hero-layer.show { opacity: 1; }
.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 22%;
  transform: scale(1.04);
  transition: transform 9s linear;
}
.hero-layer.show img { transform: scale(1); }

/* A live channel's artwork carries its own name, so it is shown as a screen
   on the right, over a blur of itself, and the title has the left to itself. */
.hero-layer.chan > img.bg { filter: blur(48px) saturate(1.3) brightness(0.5); transform: scale(1.3); transition: none; }
.hero-layer.chan .screen {
  position: absolute;
  right: var(--gutter);
  top: 43%;
  width: min(46vw, 800px);
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hero-layer.chan .screen img { transform: none; transition: none; object-position: center; }

/* Short windows (a laptop with its toolbars, a phone on its side): the title
   and words shrink so they never climb under the masthead. */
@media (max-height: 700px) {
  .hero h1 { font-size: clamp(34px, min(6.4vw, 9.5vh), 96px); }
  .hero p.blurb { -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 18px; }
  .hero-copy { bottom: clamp(104px, 18vh, 160px); }
}
/* The blend into the page below is shared; the shading behind the words
   belongs to each slide, so a live channel's screen can sit above it. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, var(--canvas) 2%, rgba(8, 9, 11, 0.45) 16%, rgba(8, 9, 11, 0) 34%);
  pointer-events: none;
}
.hero-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.96) 0%, rgba(8, 9, 11, 0.72) 30%, rgba(8, 9, 11, 0.12) 64%, rgba(8, 9, 11, 0) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.5) 22%, rgba(8, 9, 11, 0) 48%);
}
.hero-layer.chan::after { background: linear-gradient(90deg, rgba(8, 9, 11, 0.82) 0%, rgba(8, 9, 11, 0.35) 42%, rgba(8, 9, 11, 0) 62%); }
.hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: clamp(120px, 21vh, 220px);
  width: min(620px, 86vw);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.hero-copy.out { opacity: 0; transform: translateY(8px); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.hero-kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 78%;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
.hero-meta .pill {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.on-air { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.on-air::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 2s ease-in-out infinite; }
.hero p.blurb {
  font-size: clamp(14.5px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 54ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* What the button does and the limits true of it, said once, quietly. */
.watch-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); max-width: 56ch; }
.hero .watch-note { margin-top: 14px; color: rgba(238, 240, 243, 0.62); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
/* A Creative Commons film's maker and licence, as the licence asks. */
.credit { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.credit a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px 0 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 160ms var(--ease), background 160ms, opacity 160ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-play { background: var(--ink); color: #050608; }
.btn-play:hover { background: #fff; }
.btn-soft { background: rgba(120, 128, 142, 0.34); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-soft:hover { background: rgba(140, 148, 162, 0.46); }
.btn svg { flex: none; }
.btn .ext { opacity: 0.7; margin-left: -2px; }

.hero-dots {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(128px, 22vh, 226px);
  display: flex;
  gap: 6px;
}
.hero-dots button {
  appearance: none;
  border: 0;
  padding: 10px 0;
  width: 34px;
  background: none;
  cursor: pointer;
}
.hero-dots button span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}
.hero-dots button span i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}
.hero-dots button.done span i { width: 100%; }
.hero-dots button.run span i { animation: fill var(--hero-ms, 9000ms) linear forwards; }
.hero.paused .hero-dots button.run span i { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* The rows rise into the hero, the way a streaming home page reads. */
.hero + .rails { margin-top: clamp(-150px, -16vh, -70px); position: relative; z-index: 4; }

/* ==================================================================== rails */

.rails { padding-bottom: 40px; }
.page-top { padding-top: 96px; }

section.rail {
  position: relative;
  margin: 0 0 clamp(6px, 1.4vw, 22px);
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}
.rail-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 var(--gutter);
  margin-bottom: 10px;
}
.rail-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 92%;
  font-size: clamp(18px, 1.5vw, 23px);
  letter-spacing: 0.005em;
  margin: 0;
}
.rail-head .see {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms, transform 200ms var(--ease);
}
section.rail:hover .see, .rail-head .see:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .rail-head .see { opacity: 1; transform: none; } }

.track {
  display: flex;
  gap: clamp(8px, 0.8vw, 12px);
  overflow-x: auto;
  overflow-y: visible;
  padding: 14px var(--gutter) 22px;
  margin: -14px 0 0;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.arrow:focus-visible { opacity: 1; }
.track > * { scroll-snap-align: start; flex: none; }

.arrow {
  position: absolute;
  z-index: 6;
  top: 38px;
  bottom: 8px;
  width: calc(var(--gutter) - 4px);
  min-width: 36px;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  opacity: 0;
  transition: opacity 200ms;
  display: grid;
  place-items: center;
}
.arrow.prev { left: 0; background: linear-gradient(90deg, rgba(8, 9, 11, 0.92), rgba(8, 9, 11, 0)); }
.arrow.next { right: 0; background: linear-gradient(270deg, rgba(8, 9, 11, 0.92), rgba(8, 9, 11, 0)); }
section.rail:hover .arrow:not([disabled]) { opacity: 1; }
.arrow[disabled] { pointer-events: none; }
@media (hover: none) { .arrow { display: none; } }

/* =================================================================== tiles */

.tile {
  appearance: none;
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--raise-2);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover, .tile:focus-visible {
  will-change: transform;
  transform: scale(1.07);
  z-index: 5;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tile.poster { width: var(--poster-w); aspect-ratio: 2 / 3; }

/* A poster's title and year sit on a pane of glass that appears on hover —
   the picture is the poster, the glass is the information. */
.tile-glass {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 11px 10px;
  background: linear-gradient(0deg, rgba(8, 9, 11, 0.94) 30%, rgba(8, 9, 11, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.tile:hover .tile-glass, .tile:focus-visible .tile-glass { opacity: 1; transform: none; }
@media (hover: none) { .tile-glass { opacity: 1; transform: none; } }
.tile-title { font-size: 13px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* A picture that never arrived becomes a typeset card — a designed state,
   never a grey box pretending to be a photograph. */
.plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(79, 179, 217, 0.18), transparent 60%),
    linear-gradient(160deg, var(--raise-3), var(--raise-1));
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: calc(var(--poster-w) * 0.13);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
  word-break: break-word;
}

/* The numbered top ten. */
.rank-tile { display: flex; align-items: flex-end; flex: none; }
.rank-num {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: calc(var(--poster-w) * 1.18);
  line-height: 0.72;
  letter-spacing: -0.06em;
  color: var(--canvas);
  -webkit-text-stroke: 3px #59606e;
  margin-right: calc(var(--poster-w) * -0.16);
  user-select: none;
  transform: translateY(4px);
}
.rank-tile:nth-child(10) .rank-num { letter-spacing: -0.14em; }

/* Live channels: landscape glass tiles. */
.tile.live { width: var(--live-w); aspect-ratio: 16 / 9; }
.tile.live.logo-only {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 30% 10%, rgba(79, 179, 217, 0.16), transparent 60%),
    linear-gradient(160deg, var(--raise-3), var(--raise-1));
}
.tile.live.logo-only .big-logo { width: 46%; height: auto; max-height: 46%; object-fit: contain; margin-bottom: 18%; }
.live-pip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  border-radius: 5px;
  background: rgba(8, 9, 11, 0.82);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.live-pip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(255, 59, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); } }
.chan-logo {
  position: absolute;
  top: 9px;
  right: 10px;
  z-index: 2;
  width: auto !important;
  height: 22px !important;
  max-width: 34%;
  object-fit: contain !important;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}
.glass-foot {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px 11px;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-foot .chan { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-foot .now { font-size: 13.5px; font-weight: 650; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-foot .bar { height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.glass-foot .bar i { display: block; height: 100%; background: var(--live); }

/* ============================================ Late Night With Raymond Silko */

/* The show's key art is typeset, not a picture of type: it stays sharp at
   every size, and it is the same lockup on the poster, the sheet and the
   broadcast. The name goes big across the art with a heavy shadow. */
.ln-poster { container-type: inline-size; }
.ln-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 30%;
}
.ln-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 18%, rgba(255, 170, 90, 0.18), transparent 70%),
    linear-gradient(0deg, rgba(5, 5, 8, 0.96) 18%, rgba(5, 5, 8, 0.35) 55%, rgba(5, 5, 8, 0.1) 100%);
}
.ln-lock {
  position: absolute;
  inset: auto 0 9% 0;
  z-index: 2;
  text-align: center;
  color: #fff6e8;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
  line-height: 0.86;
}
.ln-lock .ln-late {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 66%;
  font-size: 22cqw;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffd79a;
}
.ln-lock .ln-with {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 10cqw;
  margin: 1.5cqw 0 0.5cqw;
  color: #fff;
}
.ln-lock .ln-name {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: 12.5cqw;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ln-lock .ln-rule { display: block; width: 34cqw; height: 0.9cqw; margin: 3cqw auto 0; background: #ffd79a; border-radius: 1cqw; opacity: 0.85; }

/* ============================================================= the sheet */

.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; overflow-y: auto; padding: clamp(0px, 4vh, 48px) 12px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(3, 4, 6, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-panel {
  position: relative;
  width: min(920px, 100%);
  margin-bottom: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--raise-1);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
  animation: rise 320ms var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: none; } }
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(8, 9, 11, 0.7);
  color: var(--ink);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.sheet-close:hover { background: rgba(30, 33, 40, 0.9); }
.sheet-media { position: relative; aspect-ratio: 16 / 8.2; background: var(--raise-2); overflow: hidden; }
.sheet-media > img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media.blurred > img { filter: blur(26px) saturate(1.1); transform: scale(1.2); opacity: 0.7; }
.sheet-media .float-poster { position: absolute; left: 36px; bottom: 26px; width: 150px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8); }
.sheet-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--raise-1) 0%, rgba(16, 18, 22, 0.4) 40%, rgba(16, 18, 22, 0) 70%); }
.sheet-media .ln-lock { inset: auto 0 14% 0; container-type: normal; }
.sheet-media.ln { container-type: inline-size; }
/* The show's name is already set on its art; the heading stays for screen
   readers only, as a title treatment would on any service. */
.sheet-media.ln + .sheet-body h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sheet-media.ln .ln-late { font-size: 11cqw; }
.sheet-media.ln .ln-with { font-size: 5cqw; }
.sheet-media.ln .ln-name { font-size: 6.4cqw; }
.sheet-media.ln .ln-rule { width: 16cqw; height: 0.5cqw; margin-top: 1.6cqw; }
.sheet-body { padding: 8px clamp(20px, 4vw, 40px) 34px; display: grid; gap: 18px; }
.sheet-body h2 {
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 82%;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.facts .pill { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--ink); }
.facts .free { color: var(--teal); font-weight: 650; }
.sheet-body p.synopsis { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.sheet-body .tags { font-size: 13px; color: var(--ink-3); }
.sheet-body .tags b { color: var(--ink-2); font-weight: 500; }
.now-next { display: grid; gap: 10px; }
.now-next .slot { display: flex; gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: 10px; background: var(--raise-2); }
.now-next .slot .when { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--live); min-width: 54px; }
.now-next .slot.next .when { color: var(--ink-3); }
.now-next .slot .what { font-weight: 600; }
.now-next .slot .time { margin-left: auto; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Episodes. */
.episodes { display: grid; gap: 4px; margin-top: 4px; }
.episodes h3 { font-family: var(--display); font-weight: 700; font-stretch: 92%; font-size: 20px; margin: 0 0 8px; }
.ep {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: 34px 156px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 12px;
  border-radius: 10px;
  background: transparent;
  transition: background 160ms;
}
.ep:hover, .ep:focus-visible { background: var(--raise-2); }
.ep .num { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-3); text-align: center; }
.ep .still { position: relative; width: 156px; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: var(--raise-3); }
.ep .still img { width: 100%; height: 100%; object-fit: cover; }
.ep .still::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,0.35), transparent 60%); opacity: 0; transition: opacity 160ms; }
.ep:hover .still::after { opacity: 1; }
.ep .ep-title { font-weight: 650; font-size: 15px; }
.ep .ep-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.ep .len { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* More like this. */
.alike h3 { font-family: var(--display); font-weight: 700; font-stretch: 92%; font-size: 20px; margin: 6px 0 12px; }
.alike-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.alike-grid .tile.poster { width: 100%; }

/* ============================================================ the theatre */

.theatre, .broadcast { position: fixed; inset: 0; z-index: 120; background: #000; }
.theatre[hidden], .broadcast[hidden] { display: none; }
.theatre video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player-bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  transition: opacity 400ms;
}
.player-bar .back {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
}
.player-bar .back:hover { background: rgba(255, 255, 255, 0.22); }
.player-bar .pt { font-family: var(--display); font-weight: 750; font-stretch: 90%; font-size: 19px; }
.player-bar .ps { font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.player-note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: 15px; z-index: 2; pointer-events: none; }
.player-note a, .player-note button { pointer-events: auto; }

/* A poster set in type, for a title that has only a frame of itself. */
.tile.typeset { background: #101318; }
.typo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 11% 12%;
  overflow: hidden;
  container-type: inline-size;
  --hue: 200;
  background: linear-gradient(165deg, hsl(var(--hue) 38% 24%) 0%, hsl(var(--hue) 30% 9%) 72%);
}
.typo-bg {
  position: absolute;
  inset: -18%;
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.25) brightness(0.62);
  transform: scale(1.1);
  mix-blend-mode: luminosity;
  opacity: 0.55;
}
.typo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 7, 9, 0.92) 0%, rgba(6, 7, 9, 0.35) 55%, rgba(6, 7, 9, 0.1) 100%),
    radial-gradient(120% 70% at 50% 0%, rgba(79, 179, 217, 0.12), transparent 60%);
}
.typo::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 11%;
  top: 11%;
  width: 18%;
  height: 2px;
  background: hsl(var(--hue) 70% 62%);
  opacity: 0.9;
}
.typo-title {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  font-size: 13.5cqw;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.typo-year { position: relative; z-index: 1; margin-top: 7cqw; font-size: 7.5cqw; font-weight: 650; letter-spacing: 0.12em; color: var(--ink-2); }

/* ===================================================== clips: news & sport */

.clip {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: var(--live-w);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.clip-art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--raise-2);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.clip-art img { width: 100%; height: 100%; object-fit: cover; }
.clip:hover .clip-art, .clip:focus-visible .clip-art {
  transform: scale(1.04);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.clip:focus-visible { outline: none; }
.clip:focus-visible .clip-art { outline: 2px solid var(--teal); outline-offset: 2px; }
.clip-len {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.78);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.clip-out {
  position: absolute;
  right: 7px;
  top: 7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--ink);
}
.clip-text { padding: 0 2px; }
.clip-title {
  font-size: 14.5px;
  font-weight: 620;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-meta { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.clip.tall.dead .clip-art::before, .clip.tall.elsewhere .clip-art::before { top: 8px; bottom: auto; }

/* The one-minute clips stand up, with the words over the bottom of the
   picture. */
.clip.tall { width: calc(var(--poster-w) * 0.92); gap: 0; }
.clip.tall .clip-art { aspect-ratio: 9 / 16; }
.clip.tall .clip-text {
  position: relative;
  margin-top: -78px;
  height: 78px;
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.clip.tall .clip-art::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}
.clip.tall .clip-title { font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.clip.tall .clip-meta { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); }

/* A clip this viewer could not play stays, dimmed, and says why; one that
   plays only on YouTube itself stays bright and says so. */
.clip.dead .clip-art { opacity: 0.38; filter: grayscale(0.8); }
.clip.dead .clip-art::before,
.clip.elsewhere .clip-art::before {
  content: attr(data-note);
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 11.5px;
  font-weight: 600;
}

.clip.skeleton { cursor: default; }
.clip.skeleton::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--raise-1) 30%, var(--raise-2) 50%, var(--raise-1) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
.clip.skeleton.tall::before { aspect-ratio: 9 / 16; }
.clip.skeleton::after { content: ""; display: block; height: 34px; margin-top: 9px; border-radius: 6px; background: var(--raise-1); }
.clip.skeleton.tall::after { display: none; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* The clip player: our bar on top, the publisher's player below it. */
.theatre.clips .clip-stage { position: absolute; inset: 76px 0 0 0; display: grid; place-items: center; background: #000; }
.theatre.clips .clip-stage > iframe,
.theatre.clips .clip-stage > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.theatre.clips.tall .clip-stage > iframe,
.theatre.clips.tall .clip-stage > div { inset: 0 auto; left: 50%; width: min(100%, calc((100vh - 76px) * 9 / 16)); transform: translateX(-50%); }
.theatre.clips .clip-bar { height: 76px; padding-top: 0; padding-bottom: 0; background: #000; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.clip-what { min-width: 0; flex: 1; }
.clip-what .pt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-what .ps { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-next { flex: none; height: 42px; }
.theatre.clips .player-note { inset: 76px 0 0 0; }
.theatre.clips .player-note p { font-size: 17px; color: var(--ink); margin: 0 0 16px; }
.theatre.clips .player-note .actions { justify-content: center; }

/* =================================================== the late-night broadcast */

.broadcast { overflow: hidden; }
.bc-still {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 35%;
  animation: drift 46s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.03);
}
@keyframes drift {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.1) translate(-1.5%, 1%); }
  100% { transform: scale(1.05) translate(1.5%, -1%); }
}
.broadcast::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(70% 60% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 38%);
  pointer-events: none;
}
.bc-bug {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: var(--gutter);
  width: 128px;
  aspect-ratio: 1.6;
  container-type: inline-size;
  opacity: 0.78;
}
.bc-bug .ln-lock { inset: 0; display: grid; place-content: center; }
.bc-bug .ln-late { font-size: 30cqw; }
.bc-bug .ln-with { font-size: 13cqw; margin: 1cqw 0 0; }
.bc-bug .ln-name { font-size: 16cqw; }
.bc-bug .ln-rule { display: none; }
.bc-lower {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 168px;
  padding: 14px 22px 15px 18px;
  border-left: 4px solid #ffd79a;
  background: rgba(8, 8, 12, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 10px 10px 0;
  transition: opacity 900ms, transform 900ms var(--ease);
}
.bc-lower.gone { opacity: 0; transform: translateX(-12px); }
.bc-lower .l1 { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #ffd79a; }
.bc-lower .l2 { font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(22px, 2.6vw, 34px); text-transform: uppercase; line-height: 1.02; margin-top: 3px; }
.bc-caption {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  width: min(880px, 88vw);
  text-align: center;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 550;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9);
  min-height: 1.35em;
  max-height: calc(1.35em * 3);
  overflow: hidden;
}
.bc-caption .who { color: #ffd79a; font-weight: 700; margin-right: 8px; }
.bc-controls {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bc-controls audio { flex: 1; height: 44px; filter: invert(0.92) hue-rotate(180deg); opacity: 0.9; }
.bc-controls .btn { height: 44px; }

/* ================================================== browse, grids, search */

.page-head { padding: 0 var(--gutter); margin: 0 0 18px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(34px, 4.4vw, 60px);
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
}
.page-head .sub { color: var(--ink-3); margin-top: 6px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter); margin: 0 0 30px; }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--raise-1);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.chip:hover { background: var(--raise-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #050608; border-color: var(--ink); }
.chip .n { opacity: 0.55; margin-left: 6px; font-variant-numeric: tabular-nums; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--poster-w), 1fr));
  gap: clamp(10px, 1vw, 16px);
  padding: 0 var(--gutter) 30px;
}
.grid .tile.poster { width: 100%; }
.grid.live-grid { grid-template-columns: repeat(auto-fill, minmax(var(--live-w), 1fr)); content-visibility: auto; contain-intrinsic-size: auto 900px; }
.grid.live-grid .tile.live { width: 100%; }
.group-title { font-family: var(--display); font-weight: 700; font-stretch: 92%; font-size: 21px; padding: 0 var(--gutter); margin: 8px 0 12px; }
.sentinel { height: 1px; }

.searchbox { padding: 0 var(--gutter); margin: 0 0 26px; }
.searchbox input {
  width: 100%;
  height: 62px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--raise-1);
  color: var(--ink);
  padding: 0 22px;
  font-size: clamp(18px, 2vw, 24px);
  font-family: var(--ui);
  outline: none;
  transition: border-color 160ms, background 160ms;
}
.searchbox input:focus { border-color: var(--teal-deep); background: var(--raise-2); }
.searchbox input::placeholder { color: var(--ink-3); }
.empty { padding: 30px var(--gutter); color: var(--ink-3); font-size: 15px; }
.loading { padding: 140px var(--gutter); color: var(--ink-3); }

/* ==================================================================== foot */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 34px var(--gutter) 46px;
  color: var(--ink-3);
  font-size: 12.5px;
  border-top: 1px solid var(--line);
}

/* =================================================================== phone */

@media (max-width: 760px) {
  /* Chips are one sideways row, so films are on the first screen. */
  /* The row runs edge to edge already (its parent has no gutter; the row
     carries its own), so it needs no negative margins: those pushed it 16px
     past the screen and let the whole page slide sideways. */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 0 var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 40px; }
  /* Hit areas of at least 40px, the look unchanged. */
  .hero-dots button { width: 28px; padding: 18px 0; }
  .rail-head .see { padding: 10px 0 10px 12px; margin: -10px 0; }
  .search-link { width: 44px; height: 44px; }
  /* The hero on a phone: no synopsis (the title page has it); a live
     channel's screen already shows its name, so the heading is kept for
     screen readers only and the screen sits clear of the words. */
  .hero p.blurb { display: none; }
  .hero-copy.chan h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* A channel whose picture failed keeps its name under the stand-in. */
  .grid.live-grid .tile.live > .plate:first-child { position: relative; inset: auto; }
  /* Two rows on a phone: the wordmark and search, then the sections as a
     row of their own that scrolls sideways if it must. */
  .masthead { height: auto; flex-wrap: wrap; row-gap: 2px; column-gap: 10px; padding-top: 10px; padding-bottom: 6px; }
  .brand { font-size: 19px; }
  nav.primary {
    position: relative; /* the offset parent its links measure from */
    order: 3;
    flex: 1 0 100%;
    gap: 2px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  nav.primary::-webkit-scrollbar { display: none; }
  nav.primary a { font-size: 14px; padding: 10px; flex: none; }
  nav.primary a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
  .page-top { padding-top: 112px; }
  /* Two channels a row: a guide of hundreds is not one long column. */
  .grid.live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  /* At this size the words go under the picture, not over it. */
  .grid.live-grid .tile.live { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--raise-1); }
  .grid.live-grid .tile.live > img:first-child,
  .grid.live-grid .tile.live > .plate:first-child { aspect-ratio: 16 / 9; height: auto; flex: none; }
  .grid.live-grid .tile.live.logo-only .big-logo { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9; object-fit: contain; padding: 12% 26%; margin: 0; }
  .grid.live-grid .glass-foot { position: static; padding: 7px 9px 9px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; }
  .grid.live-grid .glass-foot .now { font-size: 12.5px; }
  .grid.live-grid .live-pip { transform: scale(0.85); transform-origin: top left; }
  .grid.live-grid .chan-logo { display: none; }
  .clip { width: 72vw; }
  .clip.tall { width: 38vw; }
  .theatre.clips .clip-stage { inset: 62px 0 0 0; }
  .theatre.clips .clip-bar { height: 62px; gap: 10px; }
  .theatre.clips .player-note { inset: 62px 0 0 0; }
  .theatre.clips.tall .clip-stage > iframe,
  .theatre.clips.tall .clip-stage > div { width: 100%; left: 0; transform: none; }
  .clip-next { height: 38px; padding: 0 12px; }
  .search-link { width: 36px; height: 36px; flex: none; }
  .hero { height: clamp(480px, 74vh, 640px); }
  .hero-copy { bottom: 108px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero p.blurb { -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 18px; }
  .hero-dots { right: auto; left: var(--gutter); bottom: 64px; }
  .hero-layer.chan .screen { top: 100px; right: 50%; width: 66vw; transform: translateX(50%); border-radius: 10px; }
  .hero-copy.chan p.blurb { display: none; }
  .btn { height: 44px; padding: 0 18px 0 16px; font-size: 15px; }
  .hero + .rails { margin-top: -40px; }
  .sheet { padding: 0; }
  .sheet-panel { border-radius: 0 0 14px 14px; }
  .sheet-media .float-poster { width: 96px; left: 18px; bottom: 16px; }
  .ep { grid-template-columns: 24px 112px 1fr; gap: 12px; }
  .ep .still { width: 112px; }
  .ep .len { display: none; }
  .bc-lower { bottom: 196px; }
  .bc-caption { bottom: 136px; }
  .bc-controls { flex-wrap: wrap; bottom: 18px; }
  .bc-controls audio { flex-basis: 100%; }
  .bc-bug { width: 96px; top: 16px; }
}

/* A phone on its side, or any very short window. */
@media (max-height: 500px) {
  .hero { height: clamp(320px, 100svh, 540px); }
  .hero-copy { bottom: 48px; }
  .hero-dots { bottom: 16px; }
  .hero p.blurb { display: none; }
}

/* Without motion, the current slide's dot is simply full. */
@media (prefers-reduced-motion: reduce) {
  .hero-dots button[aria-selected="true"] span i { width: 100%; }
}
