/* Spec 238: the studio's films (lib/films.mjs, assets/films.js). The box is sized from the start (width, height and
   aspect-ratio), so nothing moves when the poster gives way to the moving picture. */
.film-loop,.film-player{position:relative;margin:0}
.film-loop video,.film-player video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 18px 42px -24px rgba(18,47,115,.35)}
/* The button keeps clear of Oobi (bottom left on wide screens, above the top right on narrow ones) and of the film's own
   invented-example line (bottom left of the picture): top right on wide screens, bottom right on narrow ones. */
.film-loop-toggle{position:absolute;right:14px;top:14px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(18,47,115,.86);color:#fff;box-shadow:0 4px 14px rgba(18,47,115,.3)}
.film-loop-toggle:hover{background:#122f73}
.film-loop-toggle svg{fill:currentColor}
.film-loop-toggle .film-icon-pause,.film-loop.is-playing .film-loop-toggle .film-icon-play{display:none}
.film-loop.is-playing .film-loop-toggle .film-icon-pause{display:block}
.film-block{padding-top:24px;padding-bottom:56px}
.film-block h2{font-size:clamp(28px,2.6vw,40px);margin-bottom:24px}
.film-play{position:absolute;inset:0;margin:auto;width:max-content;height:max-content;display:inline-flex;align-items:center;gap:12px;padding:14px 24px 14px 16px;border:0;border-radius:999px;background:#122f73;color:#fff;font-size:16px;font-weight:600;box-shadow:0 8px 24px rgba(18,47,115,.35)}
.film-play:hover{background:var(--ember-ink)}
.film-play-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#122f73}
.film-play-icon svg{fill:currentColor}
/* Spec 240: the Home film in the home hero. The length sits beside the label; on a phone the button gets smaller. */
.home-hero-shot .film-play{max-width:calc(100% - 24px);text-align:left}
.film-play-length{padding-left:12px;border-left:1px solid rgba(255,255,255,.45);font-weight:500;white-space:nowrap}
@media(max-width:560px){.home-hero-shot .film-play{gap:8px;padding:9px 14px 9px 9px;font-size:14px}.home-hero-shot .film-play-icon{width:28px;height:28px}.film-play-length{padding-left:8px}}
@media(max-width:900px){.film-loop-toggle{top:auto;right:8px;bottom:8px;width:40px;height:40px}}
@media(max-width:700px){.film-block{padding-bottom:40px}}
/* Reduced motion: the loop never starts by itself (assets/films.js); nothing here animates either. */
@media(prefers-reduced-motion:reduce){.film-loop-toggle,.film-play{transition:none}}
/* Spec 245: the home page chart video uses the same large play button. */
.home-video[data-film=chart]{position:relative}.home-video[data-film=chart] video{cursor:pointer}
