/* AFTERKICK — afterkick.tv
 * V3-01 Tailored — dark mode, restrained typography
 *
 * Brand tokens
 *   Kick Orange  #FF4E2B
 *   Blackout     #0A0A0A
 *   Paper        #F5F5F5
 *   Ash          #8A8A8A
 */

:root {
  --orange:       #FF4E2B;
  --yt-red:       #CD201F;   /* dimmed YouTube red */
  --yt-red-top:   #D62C24;
  --yt-red-bot:   #B81A14;
  --black:        #0A0A0A;
  --paper:        #F5F5F5;
  --ash:          #8A8A8A;
  --line:         rgba(245,245,245,0.08);
  --card:         rgba(245,245,245,0.03);
  --card-hi:      rgba(245,245,245,0.05);

  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius:       8px;
  --radius-lg:    10px;
  --max-width:    1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-display);
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--paper); text-decoration: none; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
}

/* ───────────── LIVE TICKER ─────────────
 * Label pinned left ("Live Now:"), only chips scroll past it.
 * Shared across index.html, episodes.html, rankings.html.
 * Hidden when nobody is live.
 */
.ticker {
  background: var(--orange);
  color: var(--black);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,0.14);
}
.ticker-label {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0.55rem 1.1rem 0.55rem 1.5rem;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--orange);
  position: relative; z-index: 2;
  /* Soft shadow on the right so chips look like they slide behind */
  box-shadow: 10px 0 14px -6px rgba(0,0,0,0.35);
  color: var(--black);
}
.ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 0.55rem 0;
  min-width: 0;
}
.ticker-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  align-items: center;
  padding-left: 1rem;
  animation: ticker-scroll 22s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }  /* requires duplicated content */
}

.ticker-item {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--black);
  font-weight: 500; font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.ticker-item:hover {
  opacity: 0.7;
  color: var(--black);
}
.ticker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--black);
  display: inline-block;
  animation: blink 1.2s infinite;
}
.ticker-live-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 1px 4px;
  border: 1px solid var(--black);
  border-radius: 2px;
  animation: blink 1.1s infinite;
}
.ticker-name    { font-weight: 500; }
.ticker-viewers { font-weight: 400; opacity: 0.7; }

@keyframes blink { 0%,60%,100% { opacity: 1; } 30% { opacity: 0.3; } }

/* ───────────── HEADER ───────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--line);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-stamp    { width: 36px; height: 36px; flex-shrink: 0; }
.brand-wordmark { height: 26px; width: auto; }

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  transition: opacity 0.15s;
}
.nav-link:hover,
.nav-link.is-active { opacity: 1; }

/* ───────────── HOME MAIN ───────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}
.home { padding: 2.5rem 2rem 4rem; }

/* ───────────── HERO ───────────── */
.hero {
  padding: 0 0 3rem;
}

.hero-kicker {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.78rem;
  margin: 0 0 0.85rem;
}

.hero-headline {
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--paper);
  margin: 0 0 2rem;
  max-width: 22ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hero-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg,#1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-player iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.player-skeleton {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,78,43,0.10), transparent),
    linear-gradient(135deg,#1a1a1a 0%, #2a2a2a 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}
.player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ash);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.side-block {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
}
.side-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.45rem;
}
.side-main {
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.015em;
  color: var(--paper);
  line-height: 1.1;
}
.side-main-live { color: var(--orange); }
.side-sub {
  font-size: 0.75rem;
  color: var(--ash);
  margin-top: 0.35rem;
  font-weight: 400;
}

/* ───────────── RECENT AFTERMATH (5 TILES) ───────────── */
.recent { margin-top: 4rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-title {
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0;
}
.section-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ash);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

/* Base card */
.ep-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
  color: inherit;
  text-decoration: none;
}
.ep-card:hover {
  border-color: rgba(255,78,43,0.4);
  transform: translateY(-1px);
  color: inherit;
}
.ep-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg,#1f1f1f,#141414);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.ep-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ep-num {
  position: absolute; top: 0.65rem; left: 0.85rem;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
  z-index: 1;
}
.ep-num.recap { color: #F5A623; }
.ep-runtime {
  position: absolute; bottom: 0.65rem; right: 0.85rem;
  font-size: 0.68rem; font-weight: 500;
  color: var(--paper);
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 1;
}
.ep-body {
  padding: 0.9rem 1rem 1.1rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.ep-title {
  font-size: 0.92rem; font-weight: 600;
  line-height: 1.35;
  color: var(--paper);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--ash);
  font-weight: 400;
}

/* Weekly recap tile (static placeholder until the weekly exists) */
.ep-card.recap .ep-thumb {
  background: linear-gradient(135deg,#2a1f14,#161008);
}

/* Subscribe tile — dimmed YouTube red with subtle gradient */
.ep-card.sub {
  background: linear-gradient(180deg, var(--yt-red-top) 0%, var(--yt-red-bot) 100%);
  border-color: var(--yt-red);
}
.ep-card.sub:hover {
  border-color: var(--yt-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(205,32,31,0.22);
}
.ep-card.sub .ep-thumb {
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ep-card.sub .ep-thumb::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at 70% 85%, rgba(0,0,0,0.18), transparent 65%);
}
.yt-logo {
  width: 64px; height: auto;
  position: relative; z-index: 1;
  opacity: 0.96;
}
.sub-tag {
  position: absolute; top: 0.65rem; left: 0.85rem;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper);
  opacity: 0.9;
  z-index: 1;
}
.sub-airtime {
  position: absolute; bottom: 0.65rem; right: 0.85rem;
  font-size: 0.68rem; font-weight: 600; color: var(--paper);
  background: rgba(0,0,0,0.35);
  padding: 2px 7px; border-radius: 3px;
  z-index: 1;
}
.ep-card.sub .ep-body { background: transparent; }
.ep-card.sub .ep-title { color: var(--paper); }
.ep-card.sub .ep-meta  { color: rgba(255,255,255,0.75); }

/* Archive tile — dark card with peek list of recent episodes */
.ep-card.archive .ep-thumb {
  background: linear-gradient(135deg,#151515,#0a0a0a);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.archive-peek {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  width: 80%; height: 100%;
  padding: 1.2rem 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.peek-row {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 0;
  border-bottom: 1px solid rgba(245,245,245,0.08);
  color: rgba(245,245,245,0.5);
}
.peek-row.active { color: var(--orange); font-weight: 700; }
.peek-row:last-child { border-bottom: none; }
.archive-tag {
  position: absolute; top: 0.65rem; left: 0.85rem;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange);
  z-index: 2;
}
.archive-count {
  position: absolute; bottom: 0.65rem; right: 0.85rem;
  font-size: 0.68rem; font-weight: 500; color: var(--paper);
  background: rgba(0,0,0,0.55);
  padding: 2px 7px; border-radius: 3px;
  z-index: 2;
}

.episode-skeleton {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
  position: relative;
  overflow: hidden;
}
.episode-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

.empty-msg {
  color: var(--ash);
  font-style: italic;
  padding: 1.5rem 0;
  grid-column: 1 / -1;
}

/* ───────────── EPISODES ARCHIVE PAGE ───────────── */
.archive-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.archive-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.archive-header h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}
.archive-sub {
  color: var(--ash);
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.archive-card:hover {
  border-color: rgba(255,78,43,0.4);
  transform: translateY(-1px);
  color: inherit;
}

.archive-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg,#1f1f1f,#141414);
  overflow: hidden;
}
.archive-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.archive-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.15s;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.archive-card:hover .archive-play { opacity: 1; }
.archive-duration {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.75);
  color: var(--paper);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.archive-body { padding: 0.9rem 1rem 1.1rem; }
.archive-ep {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.archive-hook {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--paper);
}
.archive-meta {
  font-size: 0.72rem;
  color: var(--ash);
  font-weight: 400;
}

/* ───────────── FOOTER ───────────── */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ash);
  text-align: center;
}
.site-footer p {
  font-size: 0.78rem;
  font-weight: 400;
  margin: 0;
}
.site-footer .meta { margin-top: 0.4rem; }
.site-footer .meta a { color: var(--ash); opacity: 0.8; }
.site-footer .meta a:hover { color: var(--paper); opacity: 1; }
.site-footer .meta span { margin: 0 0.5rem; opacity: 0.5; }


/* ═════════════════════════════════════════════════════════════════
   RANKINGS PAGE (VIEW COUNTS) — V3-01 Tailored
   ═════════════════════════════════════════════════════════════════ */
.rankings-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.rankings-head {
  text-align: center;
  margin-bottom: 2rem;
}
.rankings-kicker {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
}
.rankings-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.9rem 0;
}
.rankings-lede {
  color: var(--ash);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Underline tab group (replaces pill tabs) */
.rankings-tabs {
  display: inline-flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 auto;
}
.rankings-tab {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ash);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms ease, border-color 120ms ease;
}
.rankings-tab:hover { color: var(--paper); }
.rankings-tab.is-active {
  color: var(--paper);
  border-bottom-color: var(--orange);
}

/* Meta line above list */
.rankings-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ash);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 1.5rem 0.25rem 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.6rem;
}
.rankings-meta .meta-right { color: var(--ash); opacity: 0.85; }

/* Rank list */
.rankings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-row {
  display: grid;
  grid-template-columns: 40px 44px 1fr auto 14px;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 0.45rem;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
  outline: none;
}
.rank-row:hover,
.rank-row:focus-visible {
  background: var(--card-hi);
  border-color: rgba(245,245,245,0.14);
  transform: translateY(-1px);
}
.rank-row.top-1 {
  box-shadow: inset 3px 0 0 var(--orange);
}

.rank-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ash);
}
.rank-row[data-tier="high"] .rank-num { color: var(--orange); }
.rank-row[data-tier="mid"]  .rank-num { color: rgba(255,78,43,0.75); }
.rank-row[data-tier="low"]  .rank-num { color: var(--ash); }

.rank-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.rank-avatar.av-b { background: #3a2a20; }
.rank-avatar.av-c { background: #26303a; }
.rank-avatar.av-d { background: #2e2638; }
.rank-avatar.av-e { background: #1f3a2a; }
.rank-avatar.av-f { background: #3a2030; }
.rank-avatar.av-g { background: #2a2f1f; }

.rank-info { min-width: 0; }
.rank-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--paper);
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 0.45rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-slug {
  color: var(--ash);
  font-size: 0.78rem;
  margin-top: 2px;
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,78,43,0.18);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.rank-stats { text-align: right; }
.rank-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.rank-sub {
  color: var(--ash);
  font-size: 0.76rem;
  margin-top: 2px;
}
.rank-chevron {
  color: var(--ash);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform 140ms ease, opacity 140ms ease;
}
.rank-row:hover .rank-chevron,
.rank-row:focus-visible .rank-chevron {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .rankings-main { padding: 2rem 1rem 3rem; }
  .rank-row {
    grid-template-columns: 32px 38px 1fr auto;
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
  }
  .rank-chevron { display: none; }
  .rank-avatar { width: 38px; height: 38px; font-size: 0.9rem; }
  .rank-name { font-size: 0.92rem; }
  .rank-value { font-size: 0.95rem; }
}

/* ═════════════════════════════════════════════════════════════════
   EPISODES ARCHIVE PAGE
   ═════════════════════════════════════════════════════════════════ */
.archive-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.archive-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.archive-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem 0;
}
.archive-sub {
  color: var(--ash);
  margin: 0;
  font-size: 0.95rem;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
  display: flex; flex-direction: column;
}
.archive-card:hover {
  background: var(--card-hi);
  border-color: rgba(245,245,245,0.14);
  transform: translateY(-2px);
}
.archive-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
}
.archive-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.archive-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,245,245,0.92);
  font-size: 2.2rem;
  opacity: 0;
  transition: opacity 140ms ease;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  pointer-events: none;
}
.archive-card:hover .archive-play { opacity: 1; }
.archive-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(10,10,10,0.82);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 3px;
}
.archive-body {
  padding: 0.9rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.archive-ep {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.archive-hook {
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.archive-meta {
  color: var(--ash);
  font-size: 0.78rem;
  margin-top: auto;
}
.empty-msg {
  color: var(--ash);
  text-align: center;
  grid-column: 1 / -1;
  padding: 3rem 1rem;
}

/* ═════════════════════════════════════════════════════════════════
   HOMEPAGE TILE SUBSTYLES — Weekly Recap + Archive List Peek
   (JS writes these class names; CSS above only had .peek-row)
   ═════════════════════════════════════════════════════════════════ */

/* Weekly Recap tile innards */
.recap-badge {
  position: absolute;
  top: 0.65rem; left: 0.85rem;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #F5A623;
  z-index: 2;
}
.recap-title {
  position: absolute;
  bottom: 0.9rem; left: 0.85rem; right: 0.85rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--paper);
  z-index: 2;
}

/* Archive List Peek — tight rows inside the 5th homepage tile.
   Rendered by JS as <ul class="archive-peek"><li class="archive-row is-active">
     <span class="archive-num"/><span class="archive-title"/><span class="archive-day"/>
   </li>... */
.archive-peek {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 1px solid rgba(245,245,245,0.08);
  color: rgba(245,245,245,0.55);
}
.archive-row:last-child { border-bottom: none; }
.archive-row.is-active  { color: var(--orange); font-weight: 700; }

.archive-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.archive-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-day {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
  font-size: 0.62rem;
}
