/* --- Hero film: the intro video, looping and muted, in place of the old teaser --- */

/* The film's own rim (18 px of 1080, black in the light scenes) is cut out of the file itself
   (crop 1856x1044+32+18 of the 1080p master, scaled to 720p; same for the posters). It used to be pushed
   out of view with scale: 1.04, but Safari does not clip a scaled video to a rounded box, so on iPhones the
   film spilled over the bottom edge and showed the black rim. Now nothing overflows, and the video rounds
   its own corners as well. */
.hero-film {
  max-width: 760px;
  background: var(--surface-hero);
  border: 0;
  isolation: isolate;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

/* Where the film did not start by itself (hero-video.js adds .needs-tap): our play button in the middle,
   and Safari's own hidden, so there is one button and a tap on it plays the film where it is. */
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero-film::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.6v12.8a1 1 0 0 0 1.5.86l10.2-6.4a1 1 0 0 0 0-1.72L9.5 4.74A1 1 0 0 0 8 5.6z'/%3E%3C/svg%3E") 56% 50% / 26px no-repeat;
  box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--shadow) 60%, transparent);
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.2s, scale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-film.needs-tap {
  cursor: pointer;
}

.hero-film.needs-tap::after {
  opacity: 1;
  scale: 1;
}

@media (max-width: 760px) {
  .hero-film {
    border-radius: 20px;
  }
}
