/* ──────────────────────────────────────────────────────────────────────────
 *  tv-archive.css: the Archive Channels page.
 *
 *  The website's bright theme (styles/tokens.css): lavender wash room,
 *  white filled cards on violet-tinted shadows, ink type, the site
 *  gradient for the live marks. Headings in the brand display face at
 *  full weight, never small tracked capitals. Focus is a filled lift,
 *  never an outline box. Cards are filled surfaces; nothing here is a
 *  thin bordered box.
 * ────────────────────────────────────────────────────────────────────────── */

.tva {
  --tva-wash: #F3F1FF;
  background: var(--tva-wash);
  color: var(--tg-ink);
  font-family: var(--tg-font-body);
  margin: 0;
  min-height: 100vh;
}
.tva *, .tva *::before, .tva *::after { box-sizing: border-box; }
.tva .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.tva-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 20px clamp(20px, 4vw, 56px) 4px;
  max-width: 1560px; margin: 0 auto;
}
.tva-wordmark-img { display: block; width: min(480px, 62vw); height: auto; }
.tva-topnav { display: flex; gap: 12px; flex-wrap: wrap; }
.tva-pill {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: #FFFFFF; color: var(--tg-ink);
  font-weight: 700; font-size: 17px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  box-shadow: var(--tg-shadow-1);
}
.tva-pill:hover { background: var(--tg-surface-3); }
.tva-pill:focus-visible { background: var(--tg-purple); color: #FFFFFF; outline: none; }

.tva-main { max-width: 1560px; margin: 0 auto; padding: 10px clamp(20px, 4vw, 56px) 64px; }

.tva-head { max-width: 900px; }
.tva-title {
  font-family: var(--tg-font-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02;
  margin: 18px 0 10px; color: var(--tg-ink);
}
.tva-lede {
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.5;
  color: var(--tg-ink-soft); margin: 0;
}

/* ── the player ─────────────────────────────────────────────────────── */

.tva-player-sec { margin-top: 30px; }
.tva-player-sec[hidden] { display: none; }
.tva-screen {
  position: relative; width: min(1180px, 100%); aspect-ratio: 16 / 9;
  max-height: 62vh; background: #000000; border-radius: 24px; overflow: hidden;
  box-shadow: var(--tg-shadow-3);
}
.tva-screen video { width: 100%; height: 100%; display: block; background: #000000; }
.tva-live {
  position: absolute; top: 16px; left: 16px;
  background: var(--tg-magenta); color: #FFFFFF;
  font-weight: 800; font-size: 15px; letter-spacing: 0.04em;
  border-radius: 999px; padding: 5px 14px; line-height: 1.4;
  text-transform: uppercase;
}
.tva-say {
  position: absolute; left: 16px; bottom: 14px; margin: 0;
  color: #FFFFFF; font-weight: 600; font-size: 17px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.tva-card {
  position: absolute; inset: 0; background: var(--tg-grad-diagonal);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 8px;
}
.tva-card[hidden] { display: none; }
.tva-card-brand {
  font-family: var(--tg-font-display); font-weight: 800;
  font-size: clamp(20px, 2.6vw, 34px); color: #FFFFFF; margin: 0;
}
.tva-card-chan {
  font-family: var(--tg-font-display); font-weight: 800;
  font-size: clamp(30px, 5vw, 64px); color: #FFFFFF; margin: 0; line-height: 1.05;
}
.tva-card-next {
  font-size: clamp(16px, 1.8vw, 23px); color: #FFFFFF; margin: 0; font-weight: 600;
}

.tva-nowbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; margin-top: 18px; width: min(1180px, 100%);
}
.tva-now-text { flex: 1 1 420px; min-width: min(420px, 100%); }
.tva-now-line { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tva-now-kicker {
  background: var(--tg-purple); color: #FFFFFF; font-weight: 800;
  font-size: 14px; border-radius: 999px; padding: 4px 12px; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.tva-now-title {
  font-family: var(--tg-font-display); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 34px); color: var(--tg-ink);
}
.tva-now-year { font-size: 19px; color: var(--tg-ink-mute); font-weight: 600; }
.tva-now-sub { margin: 6px 0 0; font-size: 17px; color: var(--tg-ink-soft); font-weight: 600; }
.tva-now-credit { margin: 4px 0 0; font-size: 15px; color: var(--tg-ink-mute); }
.tva-now-credit[hidden] { display: none; }
.tva-progress {
  margin-top: 12px; height: 8px; border-radius: 999px;
  background: var(--tg-surface-3); overflow: hidden; max-width: 560px;
}
.tva-progress-bar { height: 100%; background: var(--tg-grad); border-radius: 999px; width: 0%; }
.tva-upnext {
  margin: 10px 0 0; font-size: 17px; font-weight: 600; color: var(--tg-ink-soft);
  width: min(1180px, 100%);
}

.tva-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tva-ctl {
  appearance: none; border: 0; cursor: pointer;
  background: #FFFFFF; color: var(--tg-ink);
  border-radius: 999px; padding: 12px 14px; line-height: 0;
  box-shadow: var(--tg-shadow-1); font-weight: 700; font-size: 16px;
  font-family: var(--tg-font-body);
}
.tva-ctl [hidden] { display: none !important; }
.tva-ctl:hover { background: var(--tg-surface-3); }
.tva-ctl:focus-visible { background: var(--tg-purple); color: #FFFFFF; outline: none; }
.tva-ctl-wide { line-height: 1.2; padding: 12px 20px; }
.tva-volume { accent-color: var(--tg-purple); width: 110px; }

/* ── the channel grid ───────────────────────────────────────────────── */

.tva-grid-sec { margin-top: 44px; }
.tva-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}
.tva-chan {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  background: #FFFFFF; color: var(--tg-ink);
  border-radius: var(--tg-r-lg); padding: 22px 24px;
  box-shadow: var(--tg-shadow-1);
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--tg-font-body);
  transition: transform var(--tg-dur) var(--tg-ease-out), background var(--tg-dur) var(--tg-ease-out);
}
.tva-chan:hover { transform: translateY(-3px); box-shadow: var(--tg-shadow-2); }
.tva-chan:focus-visible { background: var(--tg-purple); color: #FFFFFF; outline: none; }
.tva-chan:focus-visible .tva-chan-tag,
.tva-chan:focus-visible .tva-chan-now,
.tva-chan:focus-visible .tva-chan-next { color: #EDE9FF; }
.tva-chan.is-on { background: var(--tg-surface-3); }
.tva-chan-top { display: flex; align-items: center; justify-content: space-between; }
.tva-chan-num {
  font-family: var(--tg-font-display); font-weight: 800; font-size: 21px;
  background: var(--tg-grad); color: #FFFFFF;
  border-radius: 12px; padding: 3px 13px; line-height: 1.45;
}
.tva-chan-live {
  background: #E2F5E3; color: #14532D; font-weight: 800; font-size: 13.5px;
  border-radius: 999px; padding: 4px 12px; text-transform: uppercase; letter-spacing: 0.03em;
}
.tva-chan-name {
  font-family: var(--tg-font-display); font-weight: 800;
  font-size: 27px; line-height: 1.08; color: inherit;
}
.tva-chan-tag { font-size: 16px; line-height: 1.45; color: var(--tg-ink-soft); }
.tva-chan-now { font-size: 16.5px; font-weight: 700; color: var(--tg-ink); margin-top: 6px; }
.tva-chan-next { font-size: 15.5px; font-weight: 600; color: var(--tg-ink-mute); }

.tva-status { font-size: 17px; font-weight: 600; color: var(--tg-ink-soft); }
.tva-status[hidden] { display: none; }
.tva-note {
  margin-top: 26px; max-width: 900px;
  font-size: 15.5px; line-height: 1.55; color: var(--tg-ink-mute);
}

/* ── the hub rail and the homepage strip paint with these too ───────── */

.tva-rail-note {
  font-size: 15.5px; font-weight: 600;
}

/* phone widths: everything keeps its gutter, controls wrap under the
 * now line, and the grid becomes one column of full width cards. */
@media (max-width: 700px) {
  .tva-topbar { padding-top: 16px; }
  .tva-nowbar { flex-direction: column; }
  /* in the column layout the desktop flex-basis would become a fixed
   * height and open a void under the now line; let it size to content */
  .tva-now-text { flex: 0 1 auto; min-width: 0; }
  .tva-now-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tva-controls { width: 100%; }
  .tva-volume { flex: 1; min-width: 90px; }
  .tva-screen { max-height: none; }
}

/* ── the homepage Television strip ──────────────────────────────────── */

.tv-archive-strip { margin: 22px 0 6px; }
.tv-archive-strip[hidden] { display: none; }
.tv-archive-strip-title {
  font-family: var(--tg-font-display, 'Space Grotesk', sans-serif);
  font-weight: 800; font-size: 24px; margin: 0; color: var(--tg-ink, #0B0B12);
}
.tv-archive-strip-sub {
  margin: 6px 0 14px; font-size: 16px; font-weight: 600;
  color: var(--tg-ink-soft, #3B3B4C);
}
.tv-archive-strip-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}
.tv-archive-card {
  display: flex; flex-direction: column; gap: 5px;
  text-decoration: none; cursor: pointer;
  background: var(--tg-surface-2, #F3F1FF); color: var(--tg-ink, #0B0B12);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(11, 11, 18, .06), 0 8px 24px rgba(122, 60, 255, .06);
}
.tv-archive-card:hover { background: var(--tg-surface-3, #EDE9FF); }
.tv-archive-card:focus-visible { background: var(--tg-purple, #7A3CFF); color: #FFFFFF; outline: none; }
.tv-archive-card:focus-visible .tv-archive-card-now { color: #EDE9FF; }
.tv-archive-card-num {
  font-family: var(--tg-font-display, 'Space Grotesk', sans-serif);
  font-weight: 800; font-size: 14px; color: var(--tg-purple, #7A3CFF);
}
.tv-archive-card:focus-visible .tv-archive-card-num { color: #FFFFFF; }
.tv-archive-card-name {
  font-family: var(--tg-font-display, 'Space Grotesk', sans-serif);
  font-weight: 800; font-size: 21px; line-height: 1.1;
}
.tv-archive-card-now { font-size: 14.5px; font-weight: 600; color: var(--tg-ink-soft, #3B3B4C); }
