/* ============================================================
   KnowYourPod.com — Design System
   ============================================================ */

:root {
  --bg:             #F7F4EF;
  --surface:        #FFFFFF;
  --surface-tint:   #FBF9F6;
  --surface-alt:    #F0EBE3;
  --text:           #111111;
  --text-muted:     #6B6860;
  --text-light:     #9E9890;
  --accent:         #C0390A;
  --accent-hover:   #9A2E08;
  --accent-subtle:  #FBF0EC;
  --notable-bg:     #FEF2C1;
  --notable-text:   #8A3A0A;
  --notable-dot:    #D97706;
  --notable-border: #F0A830;
  --border:         #E5DED5;
  --border-dark:    #CFC7BC;
  --shadow-xs:      0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:      0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 4px 14px rgba(0,0,0,.08);
  --shadow-lg:      0 8px 28px rgba(0,0,0,.13);
  --radius-xs:      4px;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif:   "Iowan Old Style", "Apple Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono:    "SF Mono", Menlo, Consolas, monospace;
  --max-w:         1140px;
  --max-w-article: 680px;
  --max-w-prose:   660px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.375rem;
}
.container-article {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.375rem;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.logo-mark {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-family: var(--sans);
  line-height: 1;
}
.logo-word {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.125rem; }
.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.12s, color 0.12s;
}
.nav-link:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--accent); }

/* ============================================================
   PAGE HEADER / MASTHEAD
   ============================================================ */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0 1.5rem;
}
.page-header .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.page-header-info {}
.page-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.page-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.5;
}

/* Stat grid — mirrors the app's stat-mini */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.25rem;
}
.stat-cell {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 16px;
  gap: 2px;
  line-height: 1.15;
}
.stat-cell-num { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.stat-cell-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.stat-cell--shows .stat-cell-num   { color: #6366f1; }
.stat-cell--notable .stat-cell-num { color: var(--notable-dot); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-aside {
  font-size: 0.8125rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ============================================================
   EPISODE CARDS — app-style square-art + tape overlay
   (mirrors the listening app's dash-card exactly)
   ============================================================ */
.ep-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .ep-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .ep-cards-grid { grid-template-columns: 1fr; } }

.ep-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  background: var(--surface);
}
.ep-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.12);
}
.ep-card a { display: block; text-decoration: none; color: inherit; }

/* Square artwork area */
.ep-card-art {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 square */
  background-size: cover;
  background-position: center;
  background-color: var(--surface-alt);
}
/* Placeholder: show first letter of show name */
.ep-card-art-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border-dark);
  font-weight: 800;
  font-family: var(--sans);
  letter-spacing: -0.05em;
}

/* Tape overlay — notable headline, bottom of art */
.ep-card-tape-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 10px 9px;
  max-height: 80px;
  overflow: hidden;
}
.ep-card-tape {
  display: inline;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.38;
  padding: 5px 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  letter-spacing: 0.01em;
}

/* Card body */
.ep-card-body { padding: 10px 13px 13px; }
.ep-card-show {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.32;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 7px;
}
.ep-card-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Notable badge */
.badge-notable {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--notable-bg);
  color: var(--notable-text);
  padding: 0.2rem 0.55rem 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(240,168,48,.35);
  white-space: nowrap;
}
.badge-notable::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--notable-dot);
  flex-shrink: 0;
}

/* ============================================================
   SHOW DIRECTORY (podcast grid)
   ============================================================ */
.search-wrap { position: relative; margin-bottom: 1.5rem; }
.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 1rem;
  line-height: 1;
}
.search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.575rem 1rem 0.575rem 2.25rem;
  font-size: 0.9375rem;
  font-family: var(--sans);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,10,.1);
}
.search-input::placeholder { color: var(--text-light); }

.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
}
.show-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.15s;
}
.show-card:hover { box-shadow: var(--shadow); }
.show-card a {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.125rem;
  text-decoration: none;
  color: inherit;
}
.show-art {
  width: 58px; height: 58px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-alt);
}
.show-art-placeholder {
  width: 58px; height: 58px;
  border-radius: 9px;
  background: var(--surface-alt);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-light);
}
.show-info { flex: 1; min-width: 0; }
.show-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.show-author { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.show-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

/* ============================================================
   PODCAST DETAIL — show hero
   ============================================================ */
.show-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}
.show-hero-inner { display: flex; gap: 1.5rem; align-items: flex-start; }
.show-hero-art {
  width: 112px; height: 112px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.show-hero-art-placeholder {
  width: 112px; height: 112px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-light);
  flex-shrink: 0;
}
.show-hero-info { flex: 1; min-width: 0; }
.show-hero-name {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.show-hero-author { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.show-hero-desc { font-size: 0.9rem; color: var(--text-muted); max-width: 560px; line-height: 1.55; margin-bottom: 0.75rem; }
.show-hero-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.show-hero-stats strong { font-weight: 600; color: var(--text); }
.show-hero-stats .dot { color: var(--border-dark); }
.show-hero-stats .notable-count { color: var(--notable-dot); font-weight: 600; }

/* ============================================================
   EPISODE LIST (on podcast page)
   ============================================================ */
.episode-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ep-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.ep-row:hover { box-shadow: var(--shadow-sm); border-color: var(--border-dark); }
.ep-row.is-notable { border-left: 3px solid var(--notable-border); padding-left: calc(1.25rem - 2px); }
.ep-row a { text-decoration: none; color: inherit; }
.ep-row-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.ep-row-meta .dot { color: var(--border-dark); }
.ep-row-title { font-size: 0.9375rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 0.2rem; }
.ep-row-lede { font-size: 0.875rem; font-weight: 600; color: var(--accent); line-height: 1.4; margin-bottom: 0.2rem; }
.ep-row-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   DOSSIER (show profile)
   ============================================================ */
.dossier-wrap { }
.dossier-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 0;
}
.dossier-collapse-btn:hover { text-decoration: underline; color: var(--accent-hover); }
.dossier-collapsed { max-height: 340px; overflow: hidden; position: relative; }
.dossier-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ============================================================
   TABS
   ============================================================ */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--sans);
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.75rem 0 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--border-dark); }
.bc-cur {
  color: var(--text);
  font-weight: 500;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   ARTICLE LAYOUT (episode detail page)
   ============================================================ */
.article-header-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.25rem;
}
.article-show-attr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.article-show-attr a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.article-show-attr a:hover { color: var(--accent); }
.article-show-thumb {
  width: 26px; height: 26px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--surface-alt);
  flex-shrink: 0;
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 0.875rem;
  max-width: 800px;
}
.article-lede {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 660px;
  margin-bottom: 1.125rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.article-meta .dot { color: var(--border-dark); }
.article-meta a { color: var(--accent); font-weight: 500; }
.article-meta a:hover { text-decoration: underline; }

/* Two-column layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 3.5rem;
  padding: 2.5rem 0;
}
@media (max-width: 820px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
}

/* Notable reason callout */
.article-notable-callout {
  background: var(--notable-bg);
  border-left: 3px solid var(--notable-dot);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  color: var(--notable-text);
  line-height: 1.6;
}
.article-notable-callout strong { font-weight: 700; }

/* Article prose */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text);
  max-width: var(--max-w-prose);
}
.article-content h2, .article-content h3, .article-content h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 1.75em 0 0.5em;
}
.article-content h2 { font-size: 1.3125rem; }
.article-content h3 { font-size: 1.125rem; }
.article-content h4 { font-size: 1rem; }
.article-content h2:first-child, .article-content h3:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.05em; }
.article-content ul, .article-content ol { margin: 0 0 1.05em; padding-left: 1.5em; }
.article-content li { margin-bottom: 0.3em; }
.article-content strong { font-weight: 700; }
.article-content em { font-style: italic; color: var(--text-muted); }
.article-content blockquote {
  border-left: 3px solid var(--border-dark);
  padding: 0.4em 0 0.4em 1.125em;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 1.75em 0; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-content code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface-alt);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
}
.article-no-content { font-size: 0.9375rem; color: var(--text-muted); font-style: italic; padding: 1rem 0; }

/* Social context */
.social-context {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 2rem;
  padding: 0.875rem 1rem;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: var(--max-w-prose);
}
.social-context-icon { flex-shrink: 0; color: var(--text-light); }
.social-context strong { font-weight: 700; color: var(--text); }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; }
.sidebar-sticky {
  position: sticky;
  top: 68px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Listen button */
.listen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--sans);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.listen-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

/* Sidebar cards */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
}
.sidebar-card-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
/* Editorial note card: slightly tinted to distinguish from plain white */
.sidebar-card.editorial {
  background: var(--surface-tint);
  border-color: var(--border);
}
.sidebar-card.editorial .sidebar-card-body {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}
.sidebar-card-body { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }

/* Show card in sidebar */
.sidebar-show-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.sidebar-show-link:hover { opacity: 0.75; text-decoration: none; }
.sidebar-show-art {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-alt);
}
.sidebar-show-art-placeholder {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--surface-alt);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}
.sidebar-show-name { font-size: 0.9375rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* Show dossier in sidebar */
.sidebar-dossier {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   RELATED / MORE FROM THIS SHOW
   ============================================================ */
.related-section { border-top: 1px solid var(--border); padding: 2.25rem 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 680px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  transition: box-shadow 0.15s;
}
.related-card:hover { box-shadow: var(--shadow-sm); }
.related-card a { text-decoration: none; color: inherit; }
.related-card.is-notable { border-left: 3px solid var(--notable-border); padding-left: calc(1rem - 2px); }
.rc-meta { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.3rem; display: flex; gap: 0.35rem; }
.rc-title { font-size: 0.9375rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 0.25rem; }
.rc-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PROSE (dossier content)
   ============================================================ */
.prose { font-size: 1rem; line-height: 1.72; color: var(--text); }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 1.75em 0 0.5em;
}
.prose h2 { font-size: 1.1875rem; }
.prose h3 { font-size: 1.0625rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 0.875em; }
.prose ul, .prose ol { margin: 0 0 0.875em; padding-left: 1.5em; }
.prose li { margin: 0.3em 0; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--border-dark);
  padding-left: 1em;
  margin: 1.25em 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 1.5em 0; }

/* ============================================================
   STATES
   ============================================================ */
.loading-state { padding: 3rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.9375rem; }
.loading-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  margin-bottom: 0.75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.9375rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: 4rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); }
.footer-note { font-size: 0.8125rem; color: var(--text-light); max-width: 480px; line-height: 1.5; }

/* ============================================================
   PEOPLE INDEX
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .875rem;
  margin-top: 1.25rem;
}
.person-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
}
.person-card:hover { box-shadow: var(--shadow); color: inherit; }
.person-card-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.person-card-name { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.person-card-count { font-size: .8125rem; color: var(--text-muted); margin-top: .1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .page-header .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .show-hero-inner { flex-direction: column; gap: 1rem; }
  .show-hero-art, .show-hero-art-placeholder { width: 80px; height: 80px; }
  .show-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
}

/* ============================================================
   AUTH / USER NAV
   ============================================================ */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border);
}
.nav-user-name {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.nav-user-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-signout {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: background 0.12s, color 0.12s;
}
.btn-signout:hover { background: var(--surface-alt); color: var(--text); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-card-logo { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); margin-bottom: 0.25rem; }
.login-card-tagline { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 2rem; }
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, box-shadow 0.12s;
  width: 100%;
  justify-content: center;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.btn-google svg { flex-shrink: 0; }
.login-card-error { font-size: 0.875rem; color: #c0392b; margin-top: 1rem; }

/* ============================================================
   LIBRARY PAGE — Subscribe buttons
   ============================================================ */
.btn-subscribe {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--accent); color: #fff; }
.btn-subscribe.subscribed {
  background: var(--accent);
  color: #fff;
}
.btn-subscribe.subscribed:hover {
  background: transparent;
  color: var(--accent);
}
.btn-subscribe:disabled { opacity: 0.5; cursor: default; }
.add-podcast-form {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin-top: 1.25rem;
}
.add-podcast-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
}
.add-podcast-input:focus { outline: none; border-color: var(--accent); }
.btn-add-podcast {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-add-podcast:hover { opacity: 0.88; }
.btn-add-podcast:disabled { opacity: 0.5; cursor: default; }
.add-status { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; min-height: 1.25rem; }
.show-card-actions { margin-top: 0.625rem; }
