:root {
  --ink: #191716;
  --muted: #665f59;
  --paper: #fbf7f0;
  --paper-2: #f1e7da;
  --teal: #1f6f68;
  --coral: #c85f43;
  --gold: #bd8b2d;
  --blue: #384f7a;
  --line: rgba(25, 23, 22, 0.16);
  --shadow: 0 20px 70px rgba(28, 23, 18, 0.18);
  color-scheme: light;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(31, 111, 104, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 30px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(200, 95, 67, 0.14);
}

.hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: flex-end;
  color: #fffaf2;
  background-image:
    linear-gradient(90deg, rgba(110, 76, 52, 0.34), rgba(92, 67, 49, 0.16) 40%, rgba(17, 18, 20, 0.02) 72%),
    linear-gradient(120deg, rgba(214, 169, 111, 0.18), transparent 45%),
    var(--hero-image, linear-gradient(120deg, #1b2a2d, #425a62 58%, #d9e0d8));
  background-size: cover, cover;
  background-position: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(transparent, var(--paper));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 120px;
}

.eyebrow,
.label {
  letter-spacing: 0;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.eyebrow {
  color: #f0c46a;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.label {
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  margin: 16px 0;
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.96;
}

.hero.hero-episode h1 {
  max-width: none;
  font-size: 34px;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 250, 242, 0.9);
  font-size: 19px;
  line-height: 1.85;
}

.hero-keywords {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
  margin-top: 24px;
  color: #fffaf2;
}

.hero-keywords span {
  min-width: 0;
  color: rgba(255, 250, 242, 0.84);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.hero-actions,
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 7px;
  background: rgba(200, 95, 67, 0.9);
  color: #fffaf2;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: rgba(25, 23, 22, 0.32);
}

.main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 76px;
}

.section {
  margin: 0 0 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 27, 24, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.icon-toggle:hover {
  color: var(--ink);
  border-color: rgba(31, 111, 104, 0.28);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.icon-toggle svg {
  width: 18px;
  height: 18px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.section p {
  color: var(--muted);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  border-top: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.58);
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.series-grid,
.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.episode-archive {
  display: grid;
  gap: 14px;
}

.episode-archive-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(31, 27, 24, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.episode-archive-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 104, 0.28);
  box-shadow: 0 14px 34px rgba(31, 27, 24, 0.08);
}

.episode-archive-entry a {
  display: block;
  padding: 22px 24px 20px;
  text-decoration: none;
}

.episode-archive-head {
  margin-bottom: 10px;
}

.series-card,
.episode-card,
.detail-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 35px rgba(31, 27, 24, 0.06);
}

.series-card {
  min-height: 220px;
  padding: 22px;
  text-decoration: none;
}

.series-card:nth-child(3n + 1) {
  border-top: 4px solid var(--teal);
}

.series-card:nth-child(3n + 2) {
  border-top: 4px solid var(--coral);
}

.series-card:nth-child(3n) {
  border-top: 4px solid var(--gold);
}

.series-card h3,
.episode-card h3,
.episode-archive-entry h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.episode-archive-entry h3 {
  width: 100%;
  margin-bottom: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.16;
}

.episode-archive-entry .number {
  margin-bottom: 8px;
}

.episode-voices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.episode-voices span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.episode-voices b {
  color: var(--teal);
  font-weight: 800;
}

.series-card p,
.episode-card p,
.episode-archive-entry p {
  margin: 0;
}

.episode-quote {
  color: var(--muted);
  line-height: 1.8;
}

.episode-archive-entry .episode-quote {
  max-width: 900px;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(25, 23, 22, 0.78);
}

.episode-quote-text {
  display: block;
}

.episode-quote-source {
  display: block;
  margin-top: 6px;
  text-align: right;
}

.meta,
.tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.pill,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(251, 247, 240, 0.8);
}

.episode-card {
  overflow: hidden;
}

.episode-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.episode-image {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
}

.episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-archive-entry .meta {
  margin-top: 14px;
}

.order-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  padding: 10px 14px;
  border: 1px solid rgba(25, 23, 22, 0.12);
  border-radius: 999px;
  background: rgba(25, 23, 22, 0.9);
  color: #fffaf2;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(31, 27, 24, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.order-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.episode-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.episode-body .number {
  color: var(--coral);
  font-family: "Courier New", monospace;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.meta .pill:last-child {
  margin-left: auto;
}

.episode-body .meta {
  margin-top: auto;
  padding-top: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.filter-bar button {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.filter-bar button.is-active {
  background: var(--ink);
  color: #fffaf2;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.detail-panel {
  padding: 24px;
}

.detail-panel > p {
  margin: 0;
}

.detail-panel > p + p {
  margin-top: 16px;
}

.detail-panel br + br {
  display: block;
  content: "";
  margin-top: 12px;
}

.shownotes {
  line-height: 1.82;
}

.shownotes p,
.shownotes ul,
.shownotes blockquote {
  margin-top: 0;
}

.shownotes img {
  width: min(100%, 760px);
  border-radius: 8px;
  margin: 14px 0;
}

.shownotes blockquote {
  border-left: 4px solid var(--teal);
  padding-left: 14px;
  color: var(--muted);
}

.episode-quickcard {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.episode-quickcard h2 {
  margin: 0 0 12px;
}

.episode-quickcard-image img {
  width: 100%;
  border-radius: 10px;
}

.episode-quickcard-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.episode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.episode-quickcard audio {
  width: 100%;
}

.episode-quickcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice {
  padding: 18px;
  color: var(--muted);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 231, 218, 0.78));
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.platform-card:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 104, 0.24);
  box-shadow: 0 12px 28px rgba(31, 27, 24, 0.08);
}

.platform-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-name {
  font-size: 22px;
  font-weight: 800;
}

.host-list {
  display: grid;
  gap: 12px;
}

.host-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.host-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.host-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.host-role {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.host-card p {
  margin: 0;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .nav,
  .hero-inner,
  .main {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .nav,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 520px;
  }

  .stats,
  .series-grid,
  .episode-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .episode-quickcard {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 72px);
  }

  .hero.hero-episode h1 {
    font-size: 28px;
  }

  .hero-keywords {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .hero-keywords span {
    min-width: 0;
    width: 100% !important;
    font-size: clamp(18px, 5vw, 24px);
  }

  .platforms {
    grid-template-columns: 1fr;
  }

  .platform-name {
    font-size: 20px;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .filter-bar button {
    max-width: none;
    width: 100%;
    font-size: 14px;
    word-break: break-all;
  }
}
