.episodes {
  overflow: hidden;
  background: radial-gradient(circle at 86% 12%, #1c455266, transparent 32%), #09151d;
}

.episodes-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 2rem;
}

.episodes-heading > p {
  max-width: 26rem;
  color: #b5c4cb;
}

.episode-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.episode-controls p {
  min-width: 4rem;
  margin: 0;
  text-align: center;
  color: #adc0c9;
  font-size: .8rem;
  letter-spacing: .14em;
}

.episode-arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid #54717e;
  border-radius: 50%;
  background: transparent;
  color: #f1dcae;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background .15s, color .15s, border-color .15s;
}

.episode-arrow:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary);
  color: #101820;
}

.episode-arrow:disabled {
  cursor: default;
  opacity: .3;
}

.episode-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #56717d #13242d;
  scrollbar-width: thin;
  padding: .25rem 0 1.5rem;
}

.episode-card {
  flex: 0 0 min(430px, calc(100vw - 3rem));
  min-height: 690px;
  scroll-snap-align: start;
  border: 1px solid #304751;
  border-top: 3px solid var(--primary);
  background: #0c1820;
  padding: 1.25rem;
}

.episode-card h3 {
  margin: 1.2rem 0;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.episode-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--primary);
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tiktok-player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 560px;
  border: 0;
  background: #05080a;
}

.episode-coming {
  position: relative;
  background:
    linear-gradient(145deg, transparent 0 48%, #d9b55b12 48% 52%, transparent 52%),
    repeating-linear-gradient(90deg, #0c1820, #0c1820 1px, #10232c 1px, #10232c 5rem);
}

.episode-coming::after {
  position: absolute;
  inset: 4.2rem 1.25rem 1.25rem;
  border: 1px solid #78909a33;
  content: "";
  pointer-events: none;
}

.episode-placeholder {
  position: relative;
  z-index: 1;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.episode-placeholder > span {
  color: #e2bd66;
  font-family: Georgia, serif;
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 1;
  opacity: .3;
}

.episode-placeholder h3 {
  margin-bottom: .75rem;
}

.episode-placeholder p {
  max-width: 17rem;
  color: #9db0b9;
}

.episode-swipe {
  margin: 1rem 0 0;
  color: #91a7b1;
  font-size: .8rem;
  letter-spacing: .08em;
}

@media (max-width: 640px) {
  .episodes-heading {
    display: block;
    margin-bottom: 1.25rem;
  }

  .episodes-heading > p {
    max-width: none;
  }

  .episode-controls {
    justify-content: space-between;
  }

  .episode-card {
    flex-basis: calc(100vw - 2.5rem);
    min-height: 620px;
    padding: 1rem;
  }

  .tiktok-player {
    min-height: 480px;
  }

  .episode-placeholder {
    min-height: 520px;
  }
}

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

  .episode-arrow {
    transition: none;
  }
}
