.film-frame{position:relative;min-width:0}
.film-end:not([hidden]){position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:clamp(4px,1.1vw,14px);background:#0002b5;color:white;animation:reveal-brand .35s ease-out}
.film-end img{display:block;width:min(50%,280px);height:40%;object-fit:contain}
.film-end a{padding:9px 24px;background:white;color:#1018a0;text-decoration:none;font:600 1rem/1.4 DM,Arial,sans-serif;border-radius:2px}
.film-end button{background:none;color:white;border:0;cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:.2em;padding:5px 12px}
.film-end a:active,.film-end button:active{transform:scale(.98)}
@keyframes reveal-brand{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.film-end:not([hidden]){animation:none}}

html,body{scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}
html:has(.immersive-film),body:has(.immersive-film){overflow:hidden}
#film-player[open],.film-frame.immersive-film{
  position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;
  max-width:none;max-height:none;border:0;padding:0;border-radius:0;overflow:hidden;background:#000
}
.film-frame.immersive-film{z-index:20}
.film-frame.immersive-film video,#film-player .immersive-film video{
  width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;background:#000
}
.film-exit{display:none}
.immersive-film .film-exit{display:block;position:absolute;left:max(12px,env(safe-area-inset-left));bottom:calc(64px + env(safe-area-inset-bottom));width:44px;height:44px;border:1px solid #ffffff69;border-radius:50%;background:#0009;color:white;font-size:20px;cursor:pointer;opacity:0;pointer-events:none}
.immersive-film.film-controls .film-exit,.immersive-film.film-paused .film-exit,.immersive-film:has(.film-end:not([hidden])) .film-exit,.immersive-film:has(#film-message:not([hidden])) .film-exit,.immersive-film .film-exit:focus-visible{opacity:1;pointer-events:auto}
#film-message:not([hidden]){position:fixed;inset:auto 0 12%;z-index:21;background:#111;color:white;text-align:center;padding:8px}
