.player-fullscreen-button{position:absolute;top:12px;right:12px;z-index:3;display:grid;place-items:center;width:40px;height:40px;padding:8px;border:1px solid #ffffff55;border-radius:9px;background:#0e1722cc;color:#fff;cursor:pointer;box-shadow:0 2px 10px #0003}
.player-fullscreen-button:hover{background:#2b5278}.player-fullscreen-button:focus-visible{outline:2px solid #80c4f5;outline-offset:3px}
.player-surface:fullscreen{width:100%;height:100%;max-width:none;border-radius:0;display:flex;align-items:center;justify-content:center;background:#000!important;overflow:hidden}
.player-surface:fullscreen #video{width:100%;height:100%;max-height:none;min-height:0;object-fit:contain}
.player-surface:fullscreen #subtitle-overlay{position:absolute;left:50%;bottom:calc(80px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:max-content;max-width:90%;max-height:40%;overflow:auto;min-height:0;padding:8px 16px;border-radius:8px;background:#000b!important;color:#fff!important;text-align:center;font-size:clamp(22px,2.5vw,38px);line-height:1.5;text-shadow:0 2px 3px #000;z-index:2;white-space:pre-line}
.player-surface:fullscreen #subtitle-overlay:has(>.small.muted){display:none}
.player-surface:-webkit-full-screen{width:100%;height:100%;max-width:none;border-radius:0;display:flex;align-items:center;justify-content:center;background:#000!important;overflow:hidden}
.player-surface:-webkit-full-screen #video{width:100%;height:100%;max-height:none;min-height:0;object-fit:contain}
.player-surface:-webkit-full-screen #subtitle-overlay{position:absolute;left:50%;bottom:calc(80px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:max-content;max-width:90%;max-height:40%;overflow:auto;min-height:0;padding:8px 16px;border-radius:8px;background:#000b!important;color:#fff!important;text-align:center;font-size:clamp(22px,2.5vw,38px);line-height:1.5;text-shadow:0 2px 3px #000;z-index:2;white-space:pre-line}
.player-surface:-webkit-full-screen #subtitle-overlay:has(>.small.muted){display:none}
#video::cue{background:#000c;color:#fff;font-family:Arial,sans-serif;text-shadow:0 1px 2px #000}
.player-subtitle-box{display:contents}.subtitle-position-tools{display:none}
.player-surface:is(:fullscreen,:-webkit-full-screen) .player-subtitle-box{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;left:var(--subtitle-left,50%);top:var(--subtitle-top,85%);transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 24px);max-height:calc(100% - 100px);z-index:2}
.player-surface:is(:fullscreen,:-webkit-full-screen) .player-subtitle-box:has(>#subtitle-overlay>.small.muted){display:none}
.player-surface:is(:fullscreen,:-webkit-full-screen) .player-subtitle-box>#subtitle-overlay{position:static;left:auto;bottom:auto;transform:none;max-width:100%;max-height:none;flex:0 1 auto;min-height:0}
.player-surface:is(:fullscreen,:-webkit-full-screen) .subtitle-position-tools{display:flex;align-items:center;gap:5px;flex:0 0 auto;opacity:.7}
.player-subtitle-box:hover .subtitle-position-tools,.player-subtitle-box:focus-within .subtitle-position-tools,.player-subtitle-box.is-dragging .subtitle-position-tools{opacity:1}
.subtitle-drag-handle,.subtitle-position-reset{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;border:1px solid #ffffff40;border-radius:8px;padding:6px 10px;background:#0e1722de;color:#fff;font-size:12px;line-height:1.3;user-select:none;-webkit-user-select:none}
.subtitle-drag-handle{cursor:grab;touch-action:none}.is-dragging .subtitle-drag-handle{cursor:grabbing}.subtitle-position-reset{font-size:20px;min-width:34px;padding:3px 8px}
.subtitle-drag-handle:focus-visible,.subtitle-position-reset:focus-visible{outline:2px solid #80c4f5;outline-offset:2px}
@media(pointer:coarse){.subtitle-drag-handle,.subtitle-position-reset{min-height:44px}.subtitle-position-reset{min-width:44px}}
