.hero-grid:has(.premium-film) {
  grid-template-columns: 1fr;
  gap: 36px;
}
.hero-grid:has(.premium-film) > div:first-child {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.hero-grid:has(.premium-film) .hero-sub {
  max-width: 36ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero-grid:has(.premium-film) .hero-copy {
  max-width: 56ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero-grid:has(.premium-film) .hero-actions {
  justify-content: center;
}
.premium-film {
  --film-expand: 0px;
  --film-radius: 12px;
  position: relative;
  width: calc(100% + var(--film-expand) * 2);
  margin: 0 calc(-1 * var(--film-expand));
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--film-radius);
  background: var(--bg);
  color: var(--ink);
  scroll-margin-top: 72px;
}
.premium-stage {
  position: relative;
  min-height: 0;
}
.premium-film video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
  cursor: pointer;
}
.premium-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.premium-control {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent);
  cursor: pointer;
}
.premium-control:hover {
  background: var(--bg-2);
  border-color: var(--ink-3);
}
.premium-control svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.premium-control .icon-play {
  fill: currentColor;
  stroke: none;
}
.premium-toggle .icon-pause {
  display: none;
}
.premium-toggle.is-playing .icon-pause {
  display: block;
}
.premium-toggle.is-playing .icon-play {
  display: none;
}
.premium-mobile-caption {
  display: none;
}
.premium-chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.premium-chapter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 16px;
}
.premium-chapter-group + .premium-chapter-group {
  border-left: 1px solid var(--line);
}
.premium-family {
  color: var(--ink-3);
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.premium-task-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 14px;
}
.premium-task-links button {
  position: relative;
  padding: 2px 0 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-3);
  font: 500 12px/1.4 var(--font);
  cursor: pointer;
  text-align: center;
}
.premium-task-links button:hover,
.premium-task-links button[aria-current="true"] {
  color: var(--ink);
}
.premium-task-links button[aria-current="true"] {
  border-bottom-color: var(--ink);
}
.premium-film :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.premium-film video:focus-visible {
  outline-offset: -3px;
}
.premium-film:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
}
.premium-film:fullscreen .premium-stage {
  display: flex;
  flex: 1;
}
.premium-film:fullscreen video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.premium-film:fullscreen .premium-chapters,
.premium-film:fullscreen .premium-mobile-caption {
  display: none;
}
.premium-film:fullscreen .premium-controls {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}
@media (min-width: 1100px) {
  .hero.shell:has(.premium-film) {
    --shell: 1360px;
  }
  .hero-grid:has(.premium-film) > div:first-child {
    max-width: 1040px;
  }
  .hero-grid:has(.premium-film) .hero-sub {
    max-width: 46ch;
  }
  .hero-grid:has(.premium-film) .hero-copy {
    max-width: 76ch;
  }
}
@media (max-width: 700px) {
  .premium-controls {
    top: 8px;
    right: 8px;
  }
  .premium-mobile-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.4;
  }
  .premium-current-task {
    min-width: 0;
  }
  .premium-fullscreen-text {
    flex-shrink: 0;
    padding: 3px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: 500 11px/1.4 var(--font);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  .premium-chapters {
    grid-template-columns: 1fr;
  }
  .premium-chapter-group {
    gap: 5px;
    padding: 10px 12px;
  }
  .premium-chapter-group + .premium-chapter-group {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .premium-task-links {
    gap: 3px 12px;
  }
  .premium-task-links button {
    font-size: 12px;
  }
}
