/* Film page */
.fm-stage { padding: calc(var(--hdr) + clamp(28px, 5vh, 56px)) 0 clamp(40px, 7vh, 80px); }
.fm-in { display: grid; gap: clamp(18px, 3vh, 28px); }
.fm-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--gut); flex-wrap: wrap; }
.fm-player { position: relative; aspect-ratio: 16 / 9; max-height: calc(100svh - var(--hdr) - 220px); margin: 0 auto; width: 100%; background: #000; overflow: hidden; }
@supports (aspect-ratio: 16 / 9) { .fm-player { width: min(100%, calc((100svh - var(--hdr) - 220px) * 16 / 9)); } }
.fm-v { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.fm-v::cue { opacity: 0; }  /* captions are drawn by the page, in the brand type */
.fm-cap { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; pointer-events: none; padding: 0 6%; transition: bottom .35s var(--ease); }
.fm-cap span { font-size: clamp(15px, 1.5vw, 21px); line-height: 1.35; letter-spacing: -.005em; text-align: center; color: var(--paper); background: rgba(10,11,13,.72); padding: 4px 12px 5px; opacity: 0; transition: opacity .2s; }
.fm-cap span.on { opacity: 1; }
.fm-player[data-state="playing"]:not(.ui) .fm-cap { bottom: 22px; }
.fm-player.nocc .fm-cap { display: none; }

.fm-big { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; background: linear-gradient(180deg, rgba(10,11,13,0) 40%, rgba(10,11,13,.6)); color: var(--paper); transition: opacity .5s var(--ease); }
.fm-ring { width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(245,245,243,.6); display: grid; place-items: center; transition: background .3s var(--ease), border-color .3s, transform .5s var(--ease-out); }
.fm-ring svg { width: 24px; height: 24px; margin-left: 4px; }
.fm-big:hover .fm-ring { background: var(--marron); border-color: var(--marron); transform: scale(1.04); }
.fm-big-t { display: grid; gap: 6px; text-align: left; font-size: 22px; letter-spacing: -.01em; }
.fm-big-t .label { color: var(--mist); }
.fm-player:not([data-state="idle"]) .fm-big { opacity: 0; pointer-events: none; }

.fm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: linear-gradient(180deg, rgba(10,11,13,0), rgba(10,11,13,.85)); opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.fm-player.ui .fm-bar, .fm-player[data-state="paused"] .fm-bar, .fm-player[data-state="ended"] .fm-bar { opacity: 1; transform: none; }
.fm-player[data-state="idle"] .fm-bar { display: none; }
.fm-b { width: 34px; height: 34px; display: grid; place-items: center; color: var(--paper); flex: none; }
.fm-b svg { width: 18px; height: 18px; }
.fm-b .label { color: inherit; font-size: 11px; letter-spacing: .1em; }
.fm-cc[aria-pressed="false"] { color: var(--steel-t); }
.fm-play .i-pause { display: none; }
.fm-player[data-state="playing"] .fm-play .i-play { display: none; }
.fm-player[data-state="playing"] .fm-play .i-pause { display: inline; }
.fm-mute .i-off { display: none; }
.fm-mute[aria-pressed="true"] .i-on { display: none; }
.fm-mute[aria-pressed="true"] .i-off { display: inline; }
.fm-time { color: var(--mist); min-width: 6.5em; }
.fm-track { position: relative; flex: 1; height: 22px; cursor: pointer; }
.fm-track::before, .fm-buf, .fm-fill { content: ''; position: absolute; left: 0; top: 10px; height: 2px; }
.fm-track::before { right: 0; background: rgba(245,245,243,.18); }
.fm-buf { width: 0; background: rgba(245,245,243,.28); }
.fm-fill { width: 0; background: var(--marron); }
.fm-ticks i { position: absolute; top: 6px; width: 1px; height: 10px; background: var(--paper); opacity: .7; }
.fm-track:focus-visible { outline: 1px solid var(--paper); outline-offset: 2px; }

.fm-chap { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fm-ch { display: grid; gap: 4px; padding: 16px 16px 4px 0; text-align: left; position: relative; color: var(--steel-t); transition: color .3s; }
.fm-ch .label { color: inherit; }
.fm-ch-n { font-size: 22px; letter-spacing: -.015em; color: inherit; }
.fm-ch .dim { color: inherit; opacity: .8; }
.fm-ch:hover, .fm-ch.on { color: var(--paper); }
.fm-ch.on::before { content: ''; position: absolute; left: 0; right: 16px; top: -1px; height: 1px; background: var(--marron); }

/* the words */
.fm-words-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gut); }
.fm-words-h { display: grid; gap: 10px; align-content: start; position: sticky; top: calc(var(--hdr) + 24px); }
.fm-hint { margin: 0; font-size: 15px; }
.fm-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fm-ln { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 6px 0; text-align: left; width: 100%; color: var(--steel); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.16; letter-spacing: -.022em; font-weight: 300; transition: color .45s var(--ease); }
.fm-ln .label { color: var(--steel-t); font-size: 11px; opacity: 0; transition: opacity .3s; }
.fm-ln:hover { color: var(--mist); }
.fm-ln:hover .label { opacity: 1; }
.fm-ln.past { color: var(--steel-t); }
.fm-ln.on { color: var(--paper); }
.fm-ln.on .label { opacity: 1; color: var(--marron-hi); }
.fm-gap { height: clamp(28px, 4vh, 48px); }
.fm-gap .label { display: block; padding-top: 16px; color: var(--marron-hi); }

/* credits */
.fm-credits { padding-bottom: clamp(56px, 9vh, 120px); }
.fm-det { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fm-det summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr 16px; gap: 18px; align-items: baseline; padding: 20px 0; }
.fm-det summary::-webkit-details-marker { display: none; }
.fm-det summary .dim { font-size: 15px; }
.fm-det .pm { width: 14px; height: 14px; position: relative; align-self: center; }
.fm-det .pm::before, .fm-det .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--paper); transition: transform .3s var(--ease); }
.fm-det .pm::after { transform: rotate(90deg); }
.fm-det[open] .pm::after { transform: rotate(0); }
.fm-cr { list-style: none; margin: 0; padding: 0 0 24px; columns: 2; column-gap: calc(var(--gut) * 2); }
.fm-cr li { break-inside: avoid; display: grid; grid-template-columns: 12em 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fm-cr li span { color: var(--steel-t); }
.fm-cr a { color: var(--mist); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.fm-cr a:hover { color: var(--paper); text-decoration-color: var(--paper); }

@media (max-width: 900px) {
  .fm-player { max-height: none; width: 100%; }
  .fm-ring { width: 64px; height: 64px; }
  .fm-big { gap: 14px; }
  .fm-big-t { font-size: 18px; }
  .fm-bar { gap: 6px; padding: 0 6px; }
  .fm-time { min-width: 0; font-size: 11px; }
  .fm-cap { bottom: 54px; }
  .fm-chap { grid-template-columns: 1fr; }
  .fm-ch { grid-template-columns: 92px 64px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .fm-ch-n { font-size: 17px; }
  .fm-ch.on::before { right: 0; }
  .fm-words-in { grid-template-columns: 1fr; }
  .fm-words-h { position: static; }
  .fm-ln { grid-template-columns: 1fr; gap: 2px; font-size: 24px; }
  .fm-ln .label { opacity: 1; }
  .fm-cr { columns: 1; }
  .fm-cr li { grid-template-columns: 1fr; gap: 2px; }
}
