.film-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.film-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 6px 1.15rem 6px 6px;
  border: 1.5px solid rgba(30, 35, 43, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.film-btn[hidden] { display: none !important; }
.film-btn:hover { border-color: var(--ink); background: #fff; }
.film-btn__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 6px 16px rgba(180, 30, 35, 0.28);
  transition: transform 0.3s var(--ease-out), background 0.25s;
}
.film-btn__icon::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 13px;
  margin: -6.5px 0 0 -4px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}
.film-btn:hover .film-btn__icon { transform: scale(1.08); background: var(--red-deep); }

html.js:not(.calm) .film-btn--on-dark {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(16, 28, 40, 0.46);
  color: #fff;
  text-shadow: 0 1px 6px rgba(20, 40, 60, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.js:not(.calm) .film-btn--on-dark:hover { border-color: #fff; background: rgba(16, 28, 40, 0.6); }

@media (max-width: 760px) {
  .film-btn { min-height: 46px; font-size: 0.96rem; }
  html.js:not(.calm) .scene--photo .actions .film-btn,
  html.js:not(.calm) .prolog__answer .actions .film-btn,
  html.js:not(.calm) .breath__row .film-btn {
    justify-content: center;
    width: 46px;
    padding: 0;
  }
  html.js:not(.calm) .scene--photo .actions .film-btn__label,
  html.js:not(.calm) .prolog__answer .actions .film-btn__label,
  html.js:not(.calm) .breath__row .film-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

html.film-open { overflow: hidden; }

.film {
  --film-r: 1.7778;
  --film-chrome: 206px;
  --film-bg: #0E1114;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  background: var(--film-bg);
  color: #fff;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.film[open] { display: flex; flex-direction: column; align-items: center; }
.film.is-open { opacity: 1; }
.film::backdrop { background: transparent; }
.film:focus { outline: none; }
.film :focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

.film__col {
  width: min(100%, 1600px, calc((100dvh - var(--film-chrome)) * var(--film-r)));
  min-width: min(100%, 300px);
  margin-block: auto;
  transform: translate3d(0, 14px, 0) scale(0.985);
  transition: transform 0.42s var(--ease-out, ease);
}
.film.is-open .film__col { transform: none; }
html.calm .film,
html.calm .film__col { transition: none; }
html.calm .film__col { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .film, .film__col { transition: none; }
  .film__col { transform: none; }
}

.film__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}
.film__kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.film__title {
  margin: 0.15rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.film__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.film__close:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.film__close svg { width: 18px; height: 18px; }

.film__stage {
  position: relative;
  width: min(100%, calc((100dvh - var(--film-chrome)) * var(--film-r)));
  aspect-ratio: var(--film-r);
  margin: 10px auto 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.film__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}
.film__video::cue {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  line-height: 1.35;
  color: #fff;
  background: rgba(14, 17, 20, 0.84);
}
.film__glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(180, 30, 35, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.25s var(--ease-out, ease);
  pointer-events: none;
}
.film__glyph svg { width: 34px; height: 34px; margin-left: 4px; }
.film.is-paused:not(.is-loading):not(.is-ended) .film__glyph { opacity: 1; transform: none; }
.film__spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: film-spin 0.9s linear infinite;
  pointer-events: none;
  transition: opacity 0.2s;
}
.film.is-loading .film__spin { opacity: 1; }
html.calm .film__spin { animation: none; border-top-color: rgba(255, 255, 255, 0.22); border-right-color: #fff; }
@keyframes film-spin { to { transform: rotate(360deg); } }
.film__msg {
  position: absolute;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--red);
  background: rgba(14, 17, 20, 0.9);
  font-size: 0.92rem;
  line-height: 1.45;
}
.film__msg[hidden] { display: none; }

.film__end {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(14, 17, 20, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
  animation: film-fade 0.4s ease both;
}
.film__end[hidden] { display: none; }
@keyframes film-fade { from { opacity: 0; } to { opacity: 1; } }
html.calm .film__end { animation: none; }
.film__end-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.film__end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1rem; }
.film__end-cta,
.film__end-again {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.film__end-cta { border: 0; background: var(--red, #B41E23); color: #fff; }
.film__end-cta:hover { background: var(--red-deep, #8F161B); }
.film__end-again { border: 1px solid rgba(255, 255, 255, 0.45); background: transparent; color: #fff; }
.film__end-again:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.film__stage:fullscreen { width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; box-shadow: none; }
.film__stage:-webkit-full-screen { width: 100%; height: 100%; margin: 0; border-radius: 0; box-shadow: none; }
.film.is-fs .film__glyph { display: none; }

.film__bar {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
}
.film__btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.film__btn:hover { background: rgba(255, 255, 255, 0.1); }
.film__btn svg { width: 24px; height: 24px; }
.film__play { background: rgba(255, 255, 255, 0.08); }
.film__cc { padding: 0 0.9rem; border: 1px solid rgba(255, 255, 255, 0.3); }
.film__cc[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--ink, #1E232B); }
.film__cc-box {
  position: relative;
  width: 18px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
}
.film__cc-box::before {
  position: absolute;
  left: 2.5px;
  right: 2.5px;
  bottom: 2.5px;
  height: 1.6px;
  background: currentColor;
  box-shadow: 0 -3px 0 currentColor;
  content: "";
}
.film__mute[aria-pressed="true"] { color: #fff; background: rgba(180, 30, 35, 0.5); }
.film__fs svg { width: 22px; height: 22px; }
.film__btn[hidden] { display: none; }
.film__time {
  flex: none;
  min-width: 5.7em;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.film__seek {
  --p: 0%;
  flex: 1 1 auto;
  min-width: 80px;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.film__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 var(--p), rgba(255, 255, 255, 0.28) var(--p) 100%);
}
.film__seek::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  -webkit-appearance: none;
  appearance: none;
}
.film__seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); }
.film__seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--red); }
.film__seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.film__seek:focus-visible { outline-offset: -4px; }

@media (max-width: 480px) {
  .film__bar { flex-wrap: wrap; gap: 2px 6px; }
  .film__seek { flex: 1 1 calc(100% - 56px); }
  .film__time { min-width: 0; margin-right: auto; padding-left: 4px; text-align: left; }
  .film__cc { padding: 0 0.75rem; }
}

.film__info { display: grid; gap: 0.6rem; margin-top: 6px; }
.film__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1.4rem;
}
.film__hint { max-width: 46rem; margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.86rem; line-height: 1.45; }
.film__ai { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.74rem; letter-spacing: 0.02em; }
.film__note {
  max-width: 46rem;
  margin: 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--red);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  line-height: 1.5;
}
.film__text summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.film__text-body { max-width: 46rem; padding: 0.2rem 0 1rem; font-size: 0.92rem; line-height: 1.55; }
.film__text-body p { margin: 0 0 0.45rem; }
.film__text-img { color: rgba(255, 255, 255, 0.7); font-style: italic; }
.film__text-note { padding-left: 0.65rem; border-left: 2px solid var(--red); }
.film__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .film { --film-chrome: 268px; }
  .film__close { width: 44px; padding: 0; }
  .film__close-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .film { --film-chrome: 120px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .film__bar { margin-top: 2px; }
  .film__info { gap: 0.15rem; margin-top: 0; }
  .film__hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .film__ai { font-size: 0.7rem; }
  .film__note { padding-left: 0.5rem; font-size: 0.72rem; line-height: 1.35; }

  .film__col { transform: none; }
  .film__head { min-height: 0; }
  .film__titles {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .film__close {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    z-index: 2;
    width: 44px;
    padding: 0;
    background: rgba(14, 17, 20, 0.7);
  }
  .film__close-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .film__stage { margin-top: 0; }
}

.sub-hero .actions.film-row { margin-top: 1.1rem; }
