/* The film page. Every class here starts flm-, so none meets a name in sm.css.
   The film is the first thing on its page: a short head, then the frame, sized from the
   height of the screen so the whole picture and its controls show without scrolling.
   Before it plays, one button stands over the poster, under the name and its line (the
   poster's words end 66% of the way down). After that, the browser's own controls take over. */
.fig-film .f-core { fill: var(--amber); }

@media (min-width: 761px) {
  [data-page="film"] .phead { padding: clamp(30px, 3.8vw, 52px) 0 clamp(20px, 2.2vw, 30px); }
  [data-page="film"] .phead h1 { margin-bottom: 0; font-size: clamp(36px, 4.6vw, 60px); }
}
@media (max-width: 760px) {
  [data-page="film"] .phead { padding-bottom: 22px; }
  /* the name is one long word: the title is sized so it stays whole on a 320-wide phone */
  [data-page="film"] .phead h1 { margin-bottom: 0; max-width: none; font-size: min(42px, 9.4vw); }
  /* a slimmer strip for the figure, so the frame and its button come up the screen */
  [data-page="film"] .band { height: 96px;
    -webkit-mask-image: radial-gradient(72% 130% at 50% 50%, #000 42%, transparent 86%);
    mask-image: radial-gradient(72% 130% at 50% 50%, #000 42%, transparent 86%); }
  [data-page="film"] .band svg { transform: translateX(-12%) scale(1.3); }
}
/* on a short phone screen the figure steps aside: the Play button has to clear the bar at the bottom */
@media (max-width: 760px) and (max-height: 620px) {
  [data-page="film"] .band { display: none; }
  [data-page="film"] .phead { padding-top: 20px; }
}
.sec.flm-sec { padding-top: 0; }

.flm {
  margin: 0 auto;
  width: clamp(min(100%, 420px), calc((100vh - 330px) * 16 / 9), 100%);
  width: clamp(min(100%, 420px), calc((100svh - 330px) * 16 / 9), 100%);
}
.flm-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-l); corner-shape: var(--corner);
  background: #04081a;
  box-shadow: 0 0 0 1px var(--line-2), 0 60px 140px -70px rgb(var(--hue) / .55);
}
.flm-v { display: block; width: 100%; height: 100%; object-fit: contain; background: #04081a; }
.flm-v:focus-visible { outline-offset: -4px; }

.flm-play {
  position: absolute; left: 50%; top: 82%; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 18px 30px 18px 22px;
  border: 0; border-radius: 22px; corner-shape: var(--corner);
  background: rgb(var(--c-pearl)); color: #0b1030;
  font: 620 19px/1 var(--voice); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 18px 50px -18px rgb(var(--c-pearl) / .6);
  transition: transform .2s var(--ease), background-color .2s;
}
.flm-play[hidden] { display: none; }
.flm-play svg { width: 26px; height: 26px; fill: currentColor; }
.flm-play:hover { background: #fff; transform: scale(1.03); }
.flm-play:active { transform: scale(.98); }

.flm figcaption { margin-top: 22px; }
.flm figcaption .lede { max-width: none; }
.flm figcaption p + p { margin-top: 8px; max-width: 64ch; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }

.flm-words p { max-width: 62ch; }
.flm-words .his-line { margin: 0; max-width: none; font-size: clamp(19px, 1.6vw, 22.5px); color: var(--t-violet); }
.flm-next { margin-left: auto; margin-right: auto; margin-top: 18px; }

@media (max-width: 760px) {
  .flm { width: auto; }
  .flm-frame { border-radius: 20px; margin-inline: calc(8px - var(--gut)); }
  .flm-play { top: 83%; min-height: 48px; padding: 11px 20px 11px 15px; gap: 9px; font-size: 16px; border-radius: 16px; }
  .flm-play svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .flm-play { transition: none; } }
