/* Keep the complete 16:9 film, with a long progress rail on its bottom edge. */
.has-teaser-chapters { display: flex; flex-direction: column; aspect-ratio: auto; }
.hero-visual { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.has-teaser-chapters .hero-film { position: absolute; inset: 0; margin: 0; }
.has-teaser-chapters #hero-video { width: 100%; height: 100%; aspect-ratio: 16/9; }
.hero-visual::after {
  content: ''; position: absolute; z-index: 2; pointer-events: none; inset: auto 0 0;
  height: clamp(48px, 7vw, 132px); background: linear-gradient(transparent, #07100e82);
}
.has-teaser-chapters .hero-scroll { display: none; }
.hero-chapters {
  position: absolute; z-index: 3; left: clamp(16px, 3vw, 56px); right: clamp(16px, 3vw, 56px); bottom: clamp(8px, 1vw, 18px);
  color: #fff; font: 15px/1.3 'NVIDIA Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 1px 5px #0009;
}
.hero-timeline { position: relative; height: 12px; }
.hero-timeline-track { position: absolute; top: 4px; left: 0; right: 0; height: 3px; border-radius: 3px; background: #ffffff5c; box-shadow: 0 1px 4px #0003; }
.hero-timeline-fill { position: absolute; inset: 0; border-radius: inherit; background: #f4f7ef; transform: scaleX(var(--film-progress, 0)); transform-origin: left; }
.hero-timeline-divider { position: absolute; top: 0; width: 4px; height: 100%; background: #23322dc9; translate: -50% 0; }
.hero-timeline-head { position: absolute; z-index: 1; top: 50%; left: calc(var(--film-progress, 0) * 100%); width: 7px; height: 7px; border-radius: 50%; background: #fff; translate: -50% -50%; box-shadow: 0 0 5px #0003; }
.hero-seek {
  position: absolute; z-index: 2; left: 0; top: -16px; width: 100%; height: 44px; padding: 0; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; color: transparent; border: 0; border-radius: 3px;
  cursor: pointer; touch-action: pan-y;
}
.hero-seek::-webkit-slider-runnable-track { height: 3px; background: transparent; border: 0; }
.hero-seek::-moz-range-track { height: 3px; background: transparent; border: 0; }
.hero-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 0; height: 3px; background: transparent; border: 0; box-shadow: none; }
.hero-seek::-moz-range-thumb { width: 0; height: 3px; background: transparent; border: 0; box-shadow: none; }
.hero-chapter-list { position: relative; z-index: 3; display: grid; grid-template-columns: var(--seg-cols, repeat(6, 1fr)); gap: 0; }
.hero-chapter-list button {
  position: relative; min-width: 0; min-height: 24px; padding: 1px 8px 0 0; border: 0; border-radius: 3px;
  text-align: left; color: #e0e5e1; background: transparent; font: inherit; font-size: clamp(12px, 1.05vw, 16px);
  white-space: nowrap; cursor: pointer; text-shadow: inherit; transition: color .15s;
}
.hero-chapter-list button:hover, .hero-chapter-list button[aria-current='step'] { color: #fff; }
.hero-chapter-list button[aria-current='step'] { font-weight: 600; }
.hero-chapters :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-play { position: absolute; right: 0; bottom: calc(100% + 12px); border: 1px solid #ffffff42; border-radius: 20px; padding: 8px 14px; color: #fff; background: #14201ed4; font: inherit; font-size: 13px; cursor: pointer; }
.hero-chapter-preview { position: absolute; bottom: calc(100% + 18px); left: 0; width: 174px; overflow: hidden; border: 1px solid #ffffff40; border-radius: 8px; background: #12201ef0; box-shadow: 0 8px 30px #0004; translate: var(--peek-x, 0px) 0; pointer-events: none; }
.hero-chapter-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.hero-chapter-preview > span { display: block; padding: 7px 10px; font-size: 12px; }
@media (max-width: 899px) {
  .hero-chapters { left: 14px; right: 14px; bottom: 5px; }
  .hero-timeline { height: 17px; }
  .hero-timeline-track { top: 7px; height: 3px; }
  .hero-seek { top: -22px; }
  .hero-chapter-list { display: none; }
  .hero-chapter-preview { width: 148px; bottom: calc(100% + 10px); }
  .hero-caption { display: none; }
  .hero-visual::after { height: 42px; }
}
@media (hover: none), (pointer: coarse) {
  .hero-chapter-preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chapters, .hero-chapters * { animation: none !important; transition: none !important; }
}
