/* Isolated film presentation; ordinary page layout and spacing stay untouched. */
.film-player > img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.film-dialog {
    --vt-film-ratio: .5625;
    width: min(520px, calc(100vw - 32px), calc((100vh - 164px) * var(--vt-film-ratio)));
    width: min(520px, calc(100vw - 32px), calc((100dvh - 164px) * var(--vt-film-ratio)));
    min-width: min(280px, calc(100vw - 32px));
    height: min(calc(100vh - 32px), calc(min(520px, calc(100vw - 32px)) / var(--vt-film-ratio) + 132px));
    height: min(calc(100dvh - 32px), calc(min(520px, calc(100vw - 32px)) / var(--vt-film-ratio) + 132px));
    max-width: none;
    max-height: none;
    padding: 0;
    margin: auto;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #080607;
    color: var(--text-light);
}
.film-dialog::backdrop { background: #080607e8; }
.film-dialog .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.film-modal-player {
    display: grid;
    grid-template-rows: 44px minmax(0, 1fr) 88px;
    width: 100%;
    height: 100%;
    background: #080607;
}
.film-modal-toolbar { display: flex; justify-content: flex-end; }
.film-modal-stage { position: relative; min-height: 0; min-width: 0; }
.film-modal-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #080607; }
.film-modal-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 44px; padding: 0 8px; align-items: center; }
.film-control { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 0; background: none; color: var(--text-light); cursor: pointer; transition: color .2s; }
.film-control:hover { color: var(--gold); }
.film-control svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.film-dialog [hidden] { display: none !important; }
.film-time { padding-inline: 4px; font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.film-seek { grid-column: 1 / -1; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: var(--gold); cursor: pointer; }
.film-modal-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: #080607ed; text-align: center; }
.film-modal-error p { font-size: .875rem; }
.film-modal-error a { color: var(--gold); text-decoration: underline; }
.film-dialog.is-expanded { inset: 0; width: 100%; height: 100%; height: 100dvh; margin: 0; }
.film-modal-player:fullscreen { width: 100%; height: 100%; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.film-modal-player:-webkit-full-screen { width: 100%; height: 100%; }
.film-dialog.is-expanded .film-modal-player { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.no-js .film-play { display: none; }
