/* Overlay controls never reserve any height from the original film frame. */
.cinema-player{position:relative;background:#000;outline-offset:5px}
.player-stage{position:relative;width:100%;aspect-ratio:var(--film-aspect,16/9);overflow:hidden;isolation:isolate;background:#000}
.cinema-player .player-screen{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;min-height:0}
.cinema-player .player-screen video,.cinema-player .player-poster{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;background:#000}
.cinema-player .player-controls{position:absolute;inset:auto 0 0;z-index:4;display:flex;align-items:center;gap:.65rem;min-height:0;padding:2.5rem 1rem .6rem;border:0;background:linear-gradient(transparent,#000b 62%,#000e);opacity:1;visibility:visible;transition:opacity .22s,visibility .22s;color:#f5f2ee}
.cinema-player .player-controls[hidden],.cinema-player .player-start[hidden],.cinema-player .player-waiting[hidden],.cinema-player .player-error[hidden]{display:none}
.cinema-player.controls-hidden .player-controls{opacity:0;visibility:hidden;pointer-events:none}
.cinema-player.is-playing.controls-hidden,.cinema-player.is-playing.controls-hidden *{cursor:none!important}
.cinema-player .player-controls button{width:44px;min-width:44px;height:44px;color:inherit;cursor:pointer}
.cinema-player .player-controls button:hover{color:var(--accent)}
.cinema-player .player-scrub{flex:1;min-width:32px;min-height:44px}
.cinema-player .player-volume{width:64px;min-height:44px}
.player-quality{display:flex;align-items:center;min-height:44px;flex-shrink:0;font-size:.75rem;letter-spacing:0}
.player-quality select{max-width:86px;min-height:44px;padding:.25rem .3rem;border:0;border-radius:0;font-size:.75rem;line-height:1.2;font-weight:500;font-family:inherit;color:inherit;background:transparent;cursor:pointer;letter-spacing:0}
.player-quality option{background:#0b0c0c;color:#fff}
.player-quality select:disabled{opacity:.6;cursor:wait}
.cinema-player .player-time{font-size:.75rem;color:#eee}
.cinema-player .player-controls :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cinema-player .player-start{z-index:2;cursor:pointer}
.cinema-player .player-waiting{z-index:3;bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap}
.cinema-player .player-error{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;justify-content:center;text-align:center;border:0;background:#080909ec;gap:1rem}
.cinema-player:is(:fullscreen,:-webkit-full-screen,.is-theater){position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;display:block;overflow:hidden;background:#000;view-transition-name:none}
.cinema-player.is-theater{z-index:1000000}
.cinema-player:is(:fullscreen,:-webkit-full-screen,.is-theater) .player-stage{width:100%;height:100%;aspect-ratio:auto}
.cinema-player:is(:fullscreen,:-webkit-full-screen,.is-theater) .player-controls{padding-right:max(1rem,env(safe-area-inset-right));padding-left:max(1rem,env(safe-area-inset-left));padding-bottom:max(.6rem,env(safe-area-inset-bottom))}
.cinema-player.is-rotated .player-stage{position:absolute;left:50%;top:50%;width:var(--view-height);height:var(--view-width);transform:translate(-50%,-50%) rotate(90deg);transform-origin:center}
@media(max-width:760px){
 .cinema-player .player-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 76px 44px 44px;gap:0;padding:1.75rem .4rem .15rem}
 .cinema-player .player-scrub{grid-column:1/-1;grid-row:1;min-height:28px;padding:0 .5rem}
 .cinema-player .player-toggle{grid-column:1;grid-row:2}
 .cinema-player .player-time{grid-column:2;grid-row:2;font-size:.75rem;letter-spacing:0}
 .cinema-player .player-quality{grid-column:3;grid-row:2;justify-content:center}
 .cinema-player [data-mute]{grid-column:4;grid-row:2}
 .cinema-player [data-fullscreen]{grid-column:5;grid-row:2}
 .cinema-player .player-volume{display:none}
}
@media(prefers-reduced-motion:reduce){.cinema-player .player-controls{transition:none}}
