:root {
  color-scheme: light;
  --ink: #161a1d;
  --muted: #687076;
  --line: #d9e1e4;
  --paper: #f7f9f8;
  --panel: #ffffff;
  --blue: #2457c5;
  --green: #2f7d55;
  --red: #c73f34;
  --shadow: 0 18px 60px rgba(17, 31, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 26, 29, 0.08);
  background: rgba(247, 249, 248, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 750;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: auto;
  padding: clamp(30px, 5vh, 56px) 0 clamp(32px, 5vh, 56px);
}

.hero-art {
  position: relative;
}

.hero-art::before {
  position: absolute;
  inset: -14px;
  z-index: -1;
  border: 1px solid rgba(47, 125, 85, 0.22);
  border-radius: 8px;
  content: "";
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.panel-label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.podcast-description {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}

.hero-stats strong {
  margin-right: 4px;
  color: var(--ink);
}

.listen-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1.2fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 46px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 36px rgba(17, 31, 38, 0.08);
}

.listen-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

audio {
  width: 100%;
}

.episodes-section {
  padding: 18px 0 64px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.search-box {
  width: min(360px, 100%);
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--panel);
  color: var(--ink);
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.14);
}

.episodes {
  display: grid;
  gap: 12px;
}

.episode {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.episode-cover {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: #e4eaec;
}

.episode-main {
  min-width: 0;
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.episode h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.episode-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.episode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.play-button,
.details-button,
.episode-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.play-button {
  background: var(--ink);
  color: #fff;
}

.details-button {
  background: transparent;
  color: var(--ink);
}

.episode-link {
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
}

.episode-details {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #31373b;
}

.episode-details.is-open {
  display: block;
}

.episode-details a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.episode-details p {
  margin: 0 0 12px;
}

.episode-details h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--green);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.page-button {
  min-width: 92px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.page-button:disabled {
  border-color: var(--line);
  background: #e8edef;
  color: var(--muted);
  cursor: not-allowed;
}

.page-summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px) 34px;
  border-top: 1px solid rgba(22, 26, 29, 0.08);
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  main {
    width: min(100% - 28px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 30px;
  }

  .hero-art {
    width: min(76vw, 330px);
  }

  .listen-panel,
  .section-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .section-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    padding-inline: 14px;
  }

  .brand span {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .episode {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .episode-cover {
    width: 64px;
  }

  .episode h3 {
    font-size: 17px;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }

  .page-summary {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
    text-align: center;
  }

  .page-button {
    width: 100%;
  }
}
