:root {
  --bg: #edf4ee;
  --surface: rgba(248, 252, 248, 0.9);
  --surface-strong: #fbfefb;
  --surface-muted: #eef5ef;
  --border: rgba(42, 74, 56, 0.12);
  --text: #16261d;
  --text-soft: #4d6657;
  --accent: #508364;
  --accent-deep: #2e5941;
  --shadow: 0 20px 60px rgba(37, 66, 49, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --font-heading: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(158, 197, 169, 0.34), transparent 34%),
    radial-gradient(circle at right center, rgba(210, 233, 216, 0.7), transparent 30%),
    linear-gradient(180deg, #f7fbf7 0%, var(--bg) 100%);
}

button,
input,
a {
  font: inherit;
}

audio {
  display: none;
}

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

.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;
}

.page-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.top-banner {
  padding: 26px 24px 16px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.06;
}

.page-intro {
  max-width: 40rem;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1.75;
}

.layout {
  display: grid;
  gap: 24px;
}

.hero-player,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-player {
  display: grid;
  gap: 24px;
  padding: 22px;
}

.cover-wrap {
  display: flex;
  justify-content: center;
}

.cover-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(205, 233, 214, 0.96), rgba(86, 141, 108, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 24px 50px rgba(56, 95, 70, 0.18);
}

.cover-art::before,
.cover-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.28;
}

.cover-art::before {
  width: 78%;
  aspect-ratio: 1;
  background: rgba(244, 251, 245, 0.54);
}

.cover-art::after {
  width: 28%;
  aspect-ratio: 1;
  background: rgba(54, 98, 71, 0.22);
}

.cover-label {
  position: relative;
  z-index: 1;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(248, 252, 248, 0.82);
  color: var(--accent-deep);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.cover-art.has-image {
  background-position: center;
  background-size: cover;
}

.cover-art.has-image::before,
.cover-art.has-image::after,
.cover-art.has-image .cover-label {
  display: none;
}

.hero-copy {
  display: grid;
  gap: 12px;
}

.episode-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.episode-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.3rem;
  line-height: 1.65;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 0;
}

.meta-item {
  min-width: 158px;
  padding: 12px 15px 10px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid rgba(78, 51, 33, 0.08);
}

.meta-item dt {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.meta-item dd {
  margin: 6px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.player-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fcfffc 0%, #f1f8f2 100%);
  border: 1px solid rgba(51, 88, 67, 0.1);
}

.player-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.panel-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(80, 131, 100, 0.12);
  color: var(--accent-deep);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.player-note {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.player-controls {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.play-toggle {
  min-width: 124px;
  min-height: 56px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fffdfb;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  box-shadow: 0 12px 24px rgba(53, 89, 67, 0.2);
}

.play-toggle:hover:not(:disabled),
.play-toggle:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(53, 89, 67, 0.26);
}

.play-toggle:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.speed-wrap {
  display: grid;
  gap: 10px;
}

.speed-label {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.speed-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.speed-button {
  min-width: 72px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(50, 87, 66, 0.14);
  border-radius: 999px;
  background: #f8fcf8;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.speed-button.is-active {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fffdfb;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(53, 89, 67, 0.16);
}

.speed-button:hover,
.speed-button:focus-visible {
  transform: translateY(-1px);
}

.timeline-wrap {
  display: grid;
  gap: 12px;
}

.progress-slider {
  width: 100%;
  height: 48px;
  margin: 0;
  background: transparent;
  accent-color: var(--accent-deep);
  cursor: pointer;
}

.progress-slider:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-size: 1.08rem;
  font-weight: 700;
}

.volume-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.volume-toggle {
  min-width: 108px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(50, 87, 66, 0.18);
  border-radius: 999px;
  background: #f8fcf8;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.volume-slider-wrap {
  display: grid;
  gap: 10px;
}

.volume-label {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.volume-slider {
  width: 100%;
  height: 40px;
  margin: 0;
  accent-color: var(--accent-deep);
  cursor: pointer;
}

.content-column {
  display: grid;
  gap: 24px;
}

.info-card {
  padding: 28px 24px;
}

.lead-copy {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.75;
}

.description-copy {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.9;
}

.description-copy p {
  margin: 0;
}

.hosts-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.host-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid rgba(78, 51, 33, 0.08);
}

.host-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(160deg, #9bc7ac 0%, #4f8163 100%);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
}

.host-avatar.has-photo {
  background: #dfe9e3;
}

.host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-name {
  margin: 0;
  font-size: 1.28rem;
}

.host-role {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: 1rem;
  font-weight: 700;
}

.host-bio {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.resources-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.resource-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  border: 1px solid rgba(78, 51, 33, 0.08);
}

.resource-card--entry {
  display: flex;
  align-items: center;
  min-height: 132px;
}

.resource-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.resource-card__head h4 {
  margin: 0;
  font-size: 1.28rem;
}

.resource-button {
  min-width: 132px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(50, 87, 66, 0.18);
  border-radius: 14px;
  background: #f8fcf8;
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 700;
}

.resource-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.resource-button:hover:not(:disabled),
.resource-button:focus-visible:not(:disabled),
.speed-button:focus-visible,
.volume-toggle:hover,
.volume-toggle:focus-visible,
.play-toggle:focus-visible,
.progress-slider:focus-visible,
.volume-slider:focus-visible {
  outline: 3px solid rgba(80, 131, 100, 0.28);
  outline-offset: 3px;
}

@media (min-width: 860px) {
  .layout {
    grid-template-columns: minmax(360px, 0.94fr) minmax(420px, 1.06fr);
    align-items: stretch;
  }

  .hero-player {
    min-height: 100%;
    grid-template-rows: auto auto 1fr;
  }

  .player-panel {
    align-self: end;
  }

  .content-column {
    height: 100%;
  }

  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hosts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .page-shell {
    width: min(100% - 24px, 760px);
  }

  .top-banner {
    padding: 18px 8px 8px;
  }

  .hero-player,
  .info-card {
    border-radius: 28px;
  }

  .player-head,
  .resource-card__head {
    display: grid;
  }

  .volume-wrap {
    grid-template-columns: 1fr;
  }

  .meta-list {
    gap: 10px;
  }

  .meta-item {
    min-width: 0;
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
