.ys-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.1fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". film" "intro film" "actions film" ". film";
  align-items: center;
  gap: 0 clamp(28px, 3.3vw, 48px);
}
.ys-copy { grid-area: intro; }
.ys-actions { grid-area: actions; display: grid; gap: 22px; margin-top: 22px; }
.ys-film {
  grid-area: film;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #465360;
  border-radius: 14px;
  background: #09121b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}
.ys-film video { display: block; width: 100%; height: auto; aspect-ratio: auto 1440 / 900; object-fit: contain; }
.ys-film-cues { display: none; }
@media (max-width: 700px) {
  /* Only the bottom keyboard-caption band is replaced on small screens. */
  .ys-player-ready:not(:fullscreen) .ys-film-screen { position: relative; aspect-ratio: 1440 / 760; overflow: clip; }
  .ys-player-ready:not(:fullscreen) .ys-film-screen video { position: absolute; top: 0; left: 0; }
  .ys-player-ready:not(:fullscreen) .ys-film-cues {
    display: grid; place-items: center; min-height: 42px; padding: 4px 8px;
    font-size: 16px; font-weight: 600; color: #f1f3f3;
  }
  .ys-film-cues > span:not([hidden]) { display: flex; gap: 4px; align-items: center; }
  .ys-film-cues kbd {
    font: 650 15px/1.2 'Figtree', sans-serif; padding: 2px 6px;
    border: 1px solid #f1f4f5; border-bottom: 2px solid #a8b8c0; border-radius: 4px;
    background: #dfe7eb; color: #172631;
  }
  .ys-film-cues kbd + span { margin-inline-start: 5px; }
}
.ys-film-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  min-height: 42px;
  color: #d1dbe2;
  border-top: 1px solid rgba(255,255,255,.12);
}
.ys-film-bar[hidden], .ys-film-bar [hidden] { display: none; }
.ys-film-bar button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; min-width: 34px; padding: 0 5px;
  background: transparent; border: 0; border-radius: 6px; color: inherit; cursor: pointer;
}
.ys-film-bar button:hover { color: #fff; background: #172733; }
.ys-film-bar svg { display: block; width: 17px; height: 17px; }
.ys-film-bar input {
  appearance: none; flex: 1 1 0; min-width: 24px; height: 32px; margin: 0;
  background: transparent; cursor: pointer;
}
.ys-film-bar input:focus-visible { outline: 2px solid var(--sole); outline-offset: 1px; border-radius: 4px; }
.ys-film-bar input::-webkit-slider-runnable-track {
  height: 3px; border-radius: 99px;
  background: linear-gradient(to right, #ff965e var(--progress,0%), #40515f var(--progress,0%));
}
.ys-film-bar input::-moz-range-track { height: 3px; border-radius: 99px; background: #40515f; }
.ys-film-bar input::-moz-range-progress { height: 3px; background: #ff965e; }
.ys-film-bar input::-webkit-slider-thumb {
  appearance: none; width: 9px; height: 9px; margin-top: -3px; border-radius: 50%; background: #fff;
}
.ys-film-bar input::-moz-range-thumb { width: 9px; height: 9px; border: none; border-radius: 50%; background: #fff; }
.ys-film-time { color: #b8c7d1; white-space: nowrap; font: 11px 'JetBrains Mono',monospace; }
.ys-film:fullscreen { display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; background: #050708; }
.ys-film:fullscreen .ys-film-screen { flex: 1; min-height: 0; }
.ys-film:fullscreen video { height: 100%; }
.ys-film:fullscreen .ys-film-bar { flex: none; }
@media (max-width: 920px) {
  .ys-hero {
    max-width: 670px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "intro" "film" "actions";
    gap: 22px;
  }
  .ys-copy { max-width: none; gap: 15px; }
  .ys-actions { margin-top: 0; gap: 14px; }
  .ys-h1 { max-width: 15em; }
}
@media (max-width: 560px) {
  .ys-hero { padding-top: 24px; gap: 18px; }
  .ys-film { border-radius: 10px; }
  .ys-actions .ys-buyrow { margin-top: 0; }
  .ys-film-bar { gap: 8px; min-height: 40px; padding-inline: 4px; }
}

#window-preview { scroll-margin-top: 62px; }
.ys-preview-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  grid-template-areas: "film intro";
  gap: clamp(30px, 5vw, 78px);
}
.ys-preview-copy { grid-area: intro; display: grid; gap: 16px; }
.ys-preview-copy .ys-lede { max-width: 29em; }
.ys-preview-copy kbd {
  padding: .04em .35em .08em; white-space: nowrap; font-size: .83em;
  font-family: 'JetBrains Mono', monospace; color: var(--snow);
  border: 1px solid #516372; border-bottom-width: 2px; border-radius: 5px;
}
.ys-preview-layout video { aspect-ratio: auto 1440 / 900; }
@media (max-width: 920px) {
  .ys-preview-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "film";
    max-width: calc(670px + 2 * clamp(16px, 4vw, 40px));
    gap: 24px;
  }
}
