@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=DM+Sans:wght@300;400;500;600&display=swap");

:root {
  --ink: #392d33;
  --muted: #786970;
  --pink: #ec2a71;
  --pink-dark: #c91e5a;
  --rose: #fce7ed;
  --rose-pale: #fff7f8;
  --paper: #fffdfc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  height: 112px;
  padding: 26px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(247, 183, 200, 0.45), transparent 28%),
    linear-gradient(180deg, #fff7f9 0%, #fffdfc 100%);
  border-bottom: 1px solid rgba(236, 42, 113, 0.08);
}

.official-logo {
  display: block;
  width: 180px;
  height: 96px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.eyebrow,
.episode-kicker {
  color: var(--pink-dark);
  letter-spacing: 3px;
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 18px;
}

.listen-first {
  padding: 38px 0 78px;
  background:
    radial-gradient(circle at 10% 22%, rgba(252, 219, 229, 0.55), transparent 22%),
    radial-gradient(circle at 92% 72%, rgba(252, 224, 232, 0.5), transparent 22%),
    var(--paper);
}

.series-intro {
  max-width: 792px;
  padding: 0 24px 28px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--pink-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
}

.section-label span {
  width: 34px;
  height: 1px;
  background: #eba5bd;
}

.series-intro h1,
.episodes-heading h2,
.archive h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(38px, 9vw, 54px);
  margin: 13px 0;
  line-height: 1;
  letter-spacing: -1.5px;
}

.series-intro h1 {
  margin: 10px 0 7px;
}

.series-intro > p {
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
  white-space: nowrap;
}

.featured {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 75px rgba(100, 42, 62, 0.12);
  overflow: hidden;
}

.featured-content {
  padding: 52px 58px 44px;
}

.featured-heading {
  max-width: 610px;
}

.featured-content h2 {
  font: 600 54px/1 "Cormorant Garamond", serif;
  margin: 0 0 14px;
}

.episode-description {
  color: var(--muted);
  font: 19px/1.55 "Cormorant Garamond", serif;
  max-width: 480px;
}

.player {
  background: var(--rose-pale);
  border: 1px solid #f3dce4;
  border-radius: 18px;
  padding: 17px;
  margin: 30px 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-button {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #f4387d, #d8175a);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(220, 27, 94, 0.25);
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  margin-left: 3px;
}

.pause-icon {
  display: flex;
  gap: 4px;
}

.pause-icon i {
  display: block;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
}

.player-body {
  flex: 1;
  min-width: 0;
}

.player-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 12px;
  margin-bottom: 10px;
}

.player-top strong {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playing-indicator {
  height: 13px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.is-playing .playing-indicator {
  opacity: 1;
}

.playing-indicator i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--pink);
  animation: sound-wave 720ms ease-in-out infinite alternate;
}

.playing-indicator i:nth-child(2) {
  height: 11px;
  animation-delay: -240ms;
}

.playing-indicator i:nth-child(3) {
  height: 7px;
  animation-delay: -480ms;
}

@keyframes sound-wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

.player-top span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  display: block;
  height: 5px;
}

.progress-track input {
  --progress: 0%;
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--pink) var(--progress),
    #eccdd8 var(--progress)
  );
}

.progress-track input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8b7c82;
  font-size: 9px;
  letter-spacing: 1.2px;
  margin: 18px 0 24px;
}

.meta-row i,
.episode-info p i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #dfa4b9;
}

.download-link {
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #efb5c9;
  padding: 0 0 6px;
}

.download-link span {
  font-size: 17px;
  margin-right: 5px;
}

.feedback-cta {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7f9, #fdebf1);
  border: 1px solid #f3d9e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.feedback-cta strong {
  font: 600 19px/1.2 "Cormorant Garamond", serif;
}

.feedback-cta p {
  max-width: 330px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.feedback-cta > a {
  flex: 0 0 auto;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(220, 27, 94, 0.18);
}

.feedback-cta > a span {
  font-size: 15px;
  margin-left: 4px;
}

.episodes-section {
  background: #fff7f8;
  padding: 90px max(24px, calc((100% - 960px) / 2)) 110px;
}

.episodes-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.episodes-heading h2 {
  margin: 0;
}

.episodes-heading > span {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 6px;
}

.episode-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.episode-row {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #efdee4;
  border-radius: 16px;
  min-height: 136px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0.68;
}

.episode-row.available {
  opacity: 1;
  border-color: #ed9cba;
  background: #fff;
  box-shadow: 0 12px 35px rgba(104, 57, 72, 0.08);
}

.episode-number {
  font: italic 36px/1 "Cormorant Garamond", serif;
  color: #d6bdc6;
}

.available .episode-number {
  color: var(--pink);
}

.episode-info {
  flex: 1;
}

.episode-info > span {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--pink-dark);
  font-weight: 600;
}

.episode-info h3 {
  font: 600 26px/1 "Cormorant Garamond", serif;
  margin: 7px 0;
}

.episode-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.episode-row > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e8d2da;
  background: transparent;
  display: grid;
  place-items: center;
  color: #a98d98;
}

.available > button {
  cursor: pointer;
  border: 0;
  color: white;
  background: var(--pink);
}

.available > button .play-icon {
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 8px;
}

footer {
  text-align: center;
  padding: 38px 24px 28px;
  background: #31272b;
  color: #d7ccd0;
}

.footer-logo-wrap {
  width: 132px;
  height: 74px;
  margin: 0 auto 4px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer > p {
  font: italic 17px "Cormorant Garamond", serif;
  color: #bfb1b6;
  margin: 10px 0 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--pink);
}

.social-links a:focus-visible {
  outline: 2px solid #f47ba7;
  outline-offset: 3px;
}

.social-links img {
  width: 17px;
  height: 17px;
}

.footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  max-width: 680px;
  margin: 24px auto 18px;
}

footer small {
  font-size: 9px;
  color: #82757a;
}

footer small span {
  color: var(--pink);
  margin: 0 8px;
}

@media (max-width: 720px) {
  .topbar {
    height: 92px;
    padding-top: 20px;
  }

  .official-logo {
    width: 154px;
    height: 82px;
  }

  .listen-first {
    padding-top: 28px;
    padding-bottom: 62px;
  }

  .series-intro {
    padding-bottom: 22px;
  }

  .series-intro h1 {
    font-size: 38px;
  }

  .series-intro > p {
    font-size: 17px;
    white-space: normal;
  }

  .featured {
    border-radius: 22px;
  }

  .featured-content {
    padding: 32px 22px 32px;
  }

  .featured-content h2 {
    font-size: 40px;
  }

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

  .feedback-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .player {
    padding: 13px;
  }

  .player-top {
    font-size: 10px;
  }

  .episodes-section {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .episodes-heading {
    display: block;
  }

  .episodes-heading > span {
    display: block;
    margin-top: 10px;
  }

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

  .episode-row {
    min-height: 116px;
    padding: 20px 17px;
    gap: 14px;
  }

}

@media (max-width: 370px) {
  .meta-row {
    letter-spacing: 0.6px;
    font-size: 8px;
  }

  .episode-row > button {
    width: 38px;
    height: 38px;
  }
}

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

  .playing-indicator i {
    animation: none;
  }
}
