.stories33-dialog{margin:auto;padding:0;border:0;width:min(100%,560px);height:100dvh;max-width:100%;max-height:100dvh;background:var(--paper);color:var(--ink);font:14px/1.4 var(--font-ui)}
.stories33-dialog::backdrop{background:#04101de8}.stories33-shell{height:100%;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);box-sizing:border-box;overflow-y:auto}
.stories33-shell header{display:flex;align-items:center;gap:12px;padding:8px 14px;flex:none}.stories33-shell h1{font-size:18px;margin:0}.stories33-shell small,.stories33-hint{color:var(--muted);font-size:11px}
.stories33-shell button{min-width:44px;min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}.stories33-shell header button{background:transparent;border:0;font-size:24px}.stories33-shell button:disabled{opacity:.45;cursor:default}
.stories33-shell button:focus-visible,.stories33-shell input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.stories33-stage{position:relative;flex:1;min-height:160px;background:#071521;color:#fff;overflow:hidden}.stories33-stage>img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.stories33-identity{position:absolute;inset:0 0 auto;z-index:1;padding:16px;background:linear-gradient(#000c,transparent);display:flex;flex-direction:column;pointer-events:none}.stories33-identity strong{font-size:16px}.stories33-identity span{font-size:11px}.stories33-load{position:absolute;inset:45% 0 auto;text-align:center}.stories33-error,.stories33-end{position:relative;padding:30px 20px;text-align:center}.stories33-end>span{font-size:32px}.stories33-error button{margin:4px}
.stories33-shell footer{padding:8px 18px 12px;flex:none}.stories33-caption{margin:0 0 4px;max-height:64px;overflow:auto;font-size:13px}.stories33-shell input[type=range]{accent-color:var(--action);height:44px;min-width:0;cursor:pointer}.stories33-shell [data-film-seek]{width:100%;margin:0;display:block}.stories33-time{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;margin-top:-5px}.stories33-controls{display:flex;justify-content:center;gap:12px;margin:10px 0 4px}.stories33-shell .stories33-play{min-width:100px;background:var(--action);color:var(--on-action);border-color:transparent;font-weight:700}.stories33-speed{display:flex;align-items:center;gap:12px}.stories33-speed input{flex:1}.stories33-speed output{width:42px;text-align:right;font-variant-numeric:tabular-nums}.stories33-hint{margin:0;text-align:center}.stories33-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.stories33-entry-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.stories33-entry-actions>button{min-height:44px}
@media(prefers-reduced-motion:reduce){.stories33-dialog *{transition:none!important;animation:none!important}}
/* Immersive player: compact identity and transport, speed disclosed on demand. */
.stories33-backdrop{position:absolute;inset:-28px;background-size:cover;background-position:center;filter:blur(24px);opacity:.38;pointer-events:none}
.stories33-shell [data-film-seek]{border:0;padding:0;box-shadow:none}
.stories33-dialog{position:fixed;border-radius:0;background:#071521;color:#fff}.stories33-dialog:focus{outline:none}
.stories33-shell header{gap:8px;padding:6px 12px}.stories33-heading{min-width:0}.stories33-shell h1{font-size:9px;letter-spacing:1.4px;color:#b9c7d3;margin:0 0 2px}.stories33-author{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;min-height:24px}.stories33-author img{height:24px;width:24px;border-radius:50%;object-fit:cover}.stories33-author>span{overflow-wrap:anywhere}
.stories33-shell button{border:0;border-radius:50%;background:transparent;color:#fff;padding:8px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.stories33-shell button:disabled{opacity:.35}.stories33-shell summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.stories33-shell footer{padding:9px 18px 8px;background:linear-gradient(#071521,#0b1d2d)}.stories33-caption{margin:0 0 1px;max-height:52px;font-size:13px;color:#e0e8ef}.stories33-time{font-size:10px;color:#b9c7d3;margin-top:-8px}
.stories33-shell [data-film-seek]{appearance:none;-webkit-appearance:none;background:transparent}.stories33-shell [data-film-seek]::-webkit-slider-runnable-track{height:3px;border-radius:8px;background:linear-gradient(to right,var(--action) var(--film-progress,0%),#526170 var(--film-progress,0%))}.stories33-shell [data-film-seek]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#fff;margin-top:-4.5px;box-shadow:0 0 0 3px #ffffff14}.stories33-shell [data-film-seek]::-moz-range-track{height:3px;background:#526170}.stories33-shell [data-film-seek]::-moz-range-progress{height:3px;background:var(--action)}.stories33-shell [data-film-seek]::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#fff}
.stories33-controls{display:grid;grid-template-columns:1fr 52px 52px 52px 1fr;align-items:center;gap:8px;margin:6px 0 0}.stories33-controls>[data-film-action=back]{grid-column:2}.stories33-shell .stories33-play{min-width:52px;width:52px;height:52px;background:#fff;color:#0b1d2d;font-size:30px}.stories33-controls button svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stories33-controls button svg text{fill:currentColor;stroke:none;font:600 14px var(--font-ui);text-anchor:middle}.stories33-symbol.play{width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:14px solid currentColor;margin-left:3px}.stories33-symbol.pause{width:14px;height:18px;border-left:5px solid currentColor;border-right:5px solid currentColor;box-sizing:border-box}
.stories33-speed-menu{justify-self:end}.stories33-speed-menu summary{display:flex;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;font-size:12px;font-weight:600;cursor:pointer;list-style:none;border-radius:20px}.stories33-speed-menu summary::-webkit-details-marker{display:none}.stories33-speed-menu[open] summary{background:#ffffff18}.stories33-speed-panel{position:absolute;bottom:calc(78px + env(safe-area-inset-bottom));left:14px;right:14px;padding:12px 16px;background:#172d40;border:1px solid #536879;border-radius:18px;box-shadow:0 10px 30px #0006;z-index:3}.stories33-hint{color:#c3d0dc;font-size:10px;margin:2px 0}.stories33-error button,.stories33-end button{background:#203348;border-radius:14px;padding:10px 16px}
@media(max-width:350px){.stories33-controls{gap:3px;grid-template-columns:1fr 46px 52px 46px 1fr}.stories33-shell footer{padding-inline:12px}}
/* Always-visible speed controls; all touch targets remain at least 44px. */
.stories33-controls{display:flex;justify-content:center;gap:4px;flex-wrap:wrap}
.stories33-speed-stepper{display:flex;align-items:center;margin-left:auto;border-radius:24px;background:#ffffff0c}
.stories33-speed-stepper button{width:44px;height:44px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-size:22px}
.stories33-speed-stepper output{min-width:38px;text-align:center;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.stories33-speed-stepper button[aria-disabled=true]{opacity:.35}
@media(max-width:350px){.stories33-controls{display:flex;gap:2px}.stories33-speed-stepper{margin-left:0}}
