/* Cinema player: one surface, with controls that leave the picture in focus. */
.player-dialog.cinema-player{width:min(1280px,96vw);max-width:1280px;max-height:calc(100dvh - 24px);border:1px solid #ffffff20;border-radius:14px;background:#070707;color:#fff;overflow:hidden;padding:0}
.cinema-player::backdrop{background:#040509e8;backdrop-filter:blur(14px)}
.cinema-player .video-stage{width:100%;aspect-ratio:16/9;max-height:calc(100dvh - 26px);min-height:300px;isolation:isolate;overflow:hidden}
.cinema-player video{object-fit:contain;height:100%;width:100%;background:#000;cursor:pointer}
.cinema-player .player-header{position:absolute;inset:0 0 auto;padding:24px 28px 56px;z-index:4;align-items:start;pointer-events:none;background:linear-gradient(#000c,transparent);transition:opacity .22s}
.cinema-player .player-header>div{max-width:85%}.cinema-player .player-header h2{font-family:inherit;font-size:clamp(.95rem,1.7vw,1.4rem);font-weight:650;line-height:1.3;margin:6px 0;color:white;text-shadow:0 1px 5px #000}
.cinema-player .player-header .eyebrow{font-size:.6rem;letter-spacing:.14em;color:#ddd;text-transform:uppercase}
.cinema-player .player-header .status-pill{background:none;border:0;padding:0;color:#bbb;font-size:.65rem}
.cinema-player .player-header .status-pill.bad{color:#ff8293}
.cinema-button{width:44px;min-width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:white;padding:9px;cursor:pointer;touch-action:manipulation;transition:background .15s,transform .15s;pointer-events:auto}
.cinema-button svg{width:26px;height:26px;display:block}.cinema-button:hover{background:#ffffff18;transform:scale(1.06)}
.cinema-button:focus-visible,.cinema-player input:focus-visible,.cinema-player select:focus-visible,.player-live:focus-visible{outline:2px solid white;outline-offset:3px}
.cinema-button:disabled{opacity:.3;cursor:default;transform:none}
.cinema-player #closePlayer{background:#13131380;flex-shrink:0}
.cinema-player .player-overlay{z-index:2;background:radial-gradient(ellipse at center,#20232de6,#050608fa);padding:110px 24px 120px;gap:12px}
.cinema-player .player-overlay h3{font-size:clamp(.95rem,1.6vw,1.25rem);font-weight:600;line-height:1.45;margin:0}
.cinema-player .player-overlay p{font-size:.78rem;margin:0;color:#b9bac3}
.cinema-player .loader{width:40px;height:40px;border:3px solid #ffffff20;border-top-color:#ef123b;margin-bottom:4px}
.player-recovery{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:8px}
.cinema-player .player-recovery .button{font-family:inherit;padding:12px 18px;border:1px solid #ffffff30;background:#ffffff12;color:#fff;border-radius:7px;min-height:44px;font-size:.8rem;text-decoration:none;cursor:pointer}
.cinema-player .player-recovery .primary{background:#ed123c;border-color:#ed123c;font-weight:650}
.cinema-controls{display:none;position:absolute;inset:auto 0 0;z-index:4;padding:60px 28px 20px;background:linear-gradient(transparent,#000b 40%,#000e);transition:opacity .22s}
.custom-controls .cinema-controls{display:block}
.player-timeline{margin-bottom:3px}.player-timeline input{width:100%;margin:0;display:block;height:24px;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;--progress:0%;--buffered:0%}
.player-timeline input::-webkit-slider-runnable-track{height:4px;border-radius:3px;background:linear-gradient(to right,#ef123b 0 var(--progress),#aaaaaa90 var(--progress) var(--buffered),#ffffff40 var(--buffered) 100%)}
.player-timeline input::-moz-range-track{height:4px;border-radius:3px;background:linear-gradient(to right,#ef123b 0 var(--progress),#aaaaaa90 var(--progress) var(--buffered),#ffffff40 var(--buffered) 100%)}
.player-timeline input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#ef123b;margin-top:-4px;box-shadow:0 0 0 3px #ef123b22}
.player-timeline input::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#ef123b}
.player-timeline input:disabled{opacity:.4;cursor:default}
.player-times{display:flex;justify-content:space-between;color:#e4e4e9;font-size:.7rem;font-variant-numeric:tabular-nums;gap:12px}.time-divider,#playerDuration{color:#999ba3}
.cinema-control-row,.cinema-control-group{display:flex;align-items:center;gap:8px}.cinema-control-row{justify-content:space-between;margin-top:6px}.cinema-control-group{min-width:0}
.cinema-player #playerToggle svg{width:30px;height:30px}.player-volume{display:flex;align-items:center;gap:2px}
.player-volume input{width:74px;height:24px;accent-color:#fff;cursor:pointer}
.player-live{color:#fff;background:#ffffff12;border:1px solid #ffffff30;font-size:.74rem;border-radius:6px;padding:8px 10px;min-height:36px;cursor:pointer;white-space:nowrap}
.player-live:disabled{opacity:.5;cursor:default}
.player-feedback{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);padding:18px 24px;background:#111b;border-radius:12px;color:#fff;font-size:1.1rem;pointer-events:none;text-align:center}
.player-settings-panel{position:absolute;bottom:86px;right:28px;width:290px;max-width:calc(100% - 40px);padding:20px;border:1px solid #ffffff25;border-radius:12px;background:#17191ff5;box-shadow:0 8px 30px #0007;max-height:calc(100dvh - 120px);overflow:auto;font-family:inherit}
.player-settings-panel h3{margin:0 0 15px;font-size:.95rem;font-weight:650}.player-settings-panel label{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#ddd;font-size:.77rem;margin-top:14px}
.player-settings-panel select{font:inherit;color:#fff;background:#272a33;border:1px solid #ffffff25;padding:9px;border-radius:6px;max-width:145px}
.player-settings-panel p{color:#a5a8b2;font-size:.68rem;line-height:1.6;margin:12px 0 0}.player-settings-panel .player-shortcuts{border-top:1px solid #ffffff15;padding-top:14px}
.controls-hidden .cinema-controls,.controls-hidden .player-header{opacity:0;pointer-events:none}.controls-hidden video{cursor:none}
.controls-hidden .cinema-button,.controls-hidden input,.controls-hidden .player-live{pointer-events:none}
.cinema-player [hidden]{display:none!important}
.cinema-player .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cinema-player .video-stage:fullscreen{width:100vw;height:100dvh;max-height:none;aspect-ratio:auto}.cinema-player .video-stage:fullscreen video{height:100%}
@media(max-width:680px){
 .player-dialog.cinema-player{width:calc(100vw - 12px);border-radius:10px;max-height:calc(100dvh - 12px)}
 .cinema-player .video-stage{min-height:300px;max-height:calc(100dvh - 14px)}
 .cinema-player .player-header{padding:14px 14px 40px;gap:10px}.cinema-player .player-header>div{max-width:calc(100% - 50px)}
 .cinema-player .player-header h2{font-size:.9rem}.cinema-player .player-header .eyebrow{font-size:.5rem}.cinema-player .player-header .status-pill{font-size:.57rem}
 .cinema-controls{padding:44px 12px 10px}.cinema-control-row,.cinema-control-group{gap:0}.cinema-button{width:40px;min-width:40px;height:44px;padding:9px}.cinema-button svg{width:23px;height:23px}
 .player-volume input{display:none}.player-times{font-size:.63rem}.player-settings-panel{right:12px;bottom:72px;padding:16px;max-height:230px}.player-settings-panel .player-shortcuts{display:none}
 .cinema-player .player-overlay{padding:100px 18px 102px;gap:8px}.cinema-player .player-overlay h3{font-size:.85rem}.cinema-player .player-overlay p{font-size:.68rem;line-height:1.45}
 .cinema-player .loader{width:28px;height:28px}.cinema-player .player-recovery .button{font-size:.7rem;padding:8px 10px}.player-feedback{font-size:.85rem;padding:12px}
 .player-live{font-size:.6rem;padding:7px 6px}
}
@media(max-height:500px) and (orientation:landscape){.player-dialog.cinema-player{width:min(100vw,1280px);max-height:100dvh;border-radius:0}.cinema-player .video-stage{height:calc(100dvh - 2px);min-height:0;max-height:none;aspect-ratio:auto}.cinema-player .player-header{padding-top:10px}.cinema-controls{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.cinema-player .player-header,.cinema-controls,.cinema-button{transition:none}}
