.rating-pill {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
}

.story-teaser-section .section-heading {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.story-teaser {
  width: min(100%, 820px);
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 28px);
  padding: clamp(14px, 2.2vw, 22px);
}

.story-teaser__cover {
  min-height: 250px;
  max-width: 190px;
}

.story-teaser__body h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.story-teaser__body > p:not(.eyebrow) {
  max-width: 500px;
  font-size: clamp(.96rem, 1.25vw, 1.08rem);
}

.story-teaser__meta {
  margin: 14px 0 0;
}

.story-teaser__thumbs {
  display: none;
}

.story-demo-button {
  margin-top: 18px;
}

.story-player {
  padding: clamp(10px, 2vw, 28px);
}

.story-player__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1500px, 96vw);
  height: min(820px, 90svh);
  overflow: hidden;
  border: 1px solid rgba(214, 231, 255, .22);
  border-radius: clamp(26px, 3vw, 42px);
  padding: clamp(16px, 2.2vw, 30px);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 201, 74, .16), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(140, 241, 210, .13), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(45, 91, 172, .22), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045)),
    rgba(6, 19, 55, .97);
  box-shadow: 0 40px 130px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.story-player__close {
  position: absolute;
  top: clamp(12px, 1.4vw, 20px);
  right: clamp(12px, 1.4vw, 20px);
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--cream);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  backdrop-filter: blur(16px);
}

.story-player__intro,
.story-player__stage {
  min-width: 0;
  min-height: 0;
}

.story-player__intro {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  grid-template-columns: minmax(250px, .72fr) minmax(360px, 1fr);
  grid-template-areas:
    "cover eyebrow"
    "cover title"
    "cover summary"
    "cover meta"
    "cover action";
  column-gap: clamp(28px, 5vw, 80px);
  row-gap: 12px;
  align-content: center;
  align-items: center;
  justify-items: start;
  padding: clamp(26px, 4.5vw, 72px);
  text-align: left;
}

.story-player__intro[hidden],
.story-player__stage[hidden] {
  display: none;
}

.story-player__intro img {
  grid-area: cover;
  width: min(390px, 31vw, 50vh);
  height: min(520px, 64vh);
  max-width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
  border-radius: 28px;
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, .42));
  transform: perspective(900px) rotateY(-7deg);
}

.story-player__intro > .eyebrow {
  grid-area: eyebrow;
  margin: 0;
}

.story-player__intro h3 {
  grid-area: title;
  margin: 0;
  color: var(--cream);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: .92;
}

.story-player__intro p:not(.eyebrow) {
  grid-area: summary;
  max-width: 650px;
  margin: 0;
  color: rgba(232, 238, 255, .8);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.story-player__meta {
  grid-area: meta;
  justify-content: center;
  margin: 6px 0;
}

.story-player__start,
.story-player__toggle,
.story-player__nav {
  border: 0;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-weight: 900;
}

.story-player__start {
  grid-area: action;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 30px;
  background: linear-gradient(180deg, var(--moon), var(--honey));
  color: #15152b;
  box-shadow: 0 18px 42px rgba(255, 178, 56, .25);
}

.story-player__stage {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 18px);
}

.story-player__scene-wrap {
  display: flex;
  gap: clamp(12px, 1.5vw, 18px);
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline: clamp(12px, 1.5vw, 18px);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(214, 231, 255, .17);
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(12px, 1.5vw, 18px);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 201, 74, .14), transparent 34%),
    linear-gradient(180deg, rgba(5, 16, 50, .78), rgba(3, 10, 31, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 70px rgba(0, 0, 0, .32);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.story-player__scene-wrap::-webkit-scrollbar {
  display: none;
}

.story-player__scene {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 28px);
  scroll-snap-align: center;
  opacity: .44;
  pointer-events: auto;
  transform: scale(.965);
  transition: opacity .42s ease, transform .42s ease;
}

.story-player__scene.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-player__scene img {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  align-self: stretch;
  justify-self: stretch;
  min-height: 0;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 214, 110, .08), transparent 45%),
    rgba(3, 11, 34, .54);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, .42));
}

.story-player__scene--moral img {
  width: 100%;
  justify-self: stretch;
}

.story-player__caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(14px, 2vw, 24px);
  transform: translateX(-50%);
  width: min(900px, 100%);
  max-width: calc(100% - clamp(24px, 4vw, 56px));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: clamp(18px, 2vw, 24px);
  padding: clamp(12px, 1.5vw, 18px);
  background: linear-gradient(135deg, rgba(6, 17, 52, .88), rgba(11, 34, 82, .76));
  color: var(--cream);
  text-align: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.story-player__caption span {
  display: block;
  margin-bottom: 6px;
  color: var(--mint);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-player__caption p {
  margin: 0;
  color: rgba(248, 244, 234, .9);
  font-size: clamp(.96rem, 1.15vw, 1.08rem);
  line-height: 1.45;
}

.story-player__controls {
  display: grid;
  grid-template-columns: auto auto auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(214, 231, 255, .14);
  border-radius: 999px;
  padding: 10px;
  background: rgba(4, 14, 45, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.story-player__nav,
.story-player__toggle {
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--cream);
}

.story-player__nav {
  width: 44px;
  font-size: 1.65rem;
  line-height: 1;
}

.story-player__toggle {
  min-width: 94px;
  padding: 0 18px;
  background: linear-gradient(180deg, var(--moon), var(--honey));
  color: #17152b;
}

.story-player__progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.story-player__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moon), var(--mint));
  transition: width .18s linear;
}

.story-player__time {
  color: rgba(248, 244, 234, .82);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
}

.story-player audio {
  display: none;
}

@media (max-width: 980px) {
  .story-teaser {
    width: min(100%, 680px);
  }

  .story-player__panel {
    width: 96vw;
    height: 92svh;
  }

  .story-player__intro {
    grid-template-columns: minmax(180px, .72fr) minmax(300px, 1fr);
    column-gap: 28px;
    padding: 44px 32px 28px;
  }

  .story-player__intro img {
    width: min(300px, 35vw, 44vh);
    height: min(440px, 54vh);
  }
}

@media (max-width: 700px) {
  .rating-pill {
    margin-inline: auto;
  }

  .story-teaser {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .story-teaser__cover {
    min-height: 230px;
    transform: none;
  }

  .story-teaser__meta {
    justify-content: center;
  }

  .story-player {
    padding: 8px;
  }

  .story-player__panel {
    width: 96vw;
    height: 94svh;
    border-radius: 24px;
    padding: 14px;
  }

  .story-player__close {
    width: 40px;
    height: 40px;
  }

  .story-player__intro {
    overflow: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "eyebrow"
      "title"
      "summary"
      "meta"
      "action";
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 42px 8px 12px;
    text-align: center;
  }

  .story-player__intro img {
    width: min(210px, 52vw, 30vh);
    height: min(260px, 34vh);
    transform: none;
  }

  .story-player__intro h3 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .story-player__stage {
    gap: 10px;
  }

  .story-player__scene {
    gap: 8px;
  }

  .story-player__caption {
    max-height: 30svh;
    overflow: auto;
    border-radius: 18px;
  }

  .story-player__caption p {
    font-size: .94rem;
  }

  .story-player__controls {
    grid-template-columns: auto auto auto;
    border-radius: 24px;
  }

  .story-player__progress,
  .story-player__time {
    grid-column: 1 / -1;
  }

  .story-player__time {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-player__scene,
  .story-player__progress span {
    transition: none;
  }
}
