:root{color-scheme:dark;font:16px "Segoe UI",sans-serif;background:#000;color:#fff}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
[hidden]{display:none!important}
#player{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#000}
canvas{display:block;width:100%!important;height:100%!important;margin:0!important;outline:none;touch-action:none}
#fullscreen,#fullscreen-enter{position:fixed;top:10px;right:10px;z-index:2;width:36px;height:36px;display:grid;place-items:center;padding:6px;border:0;border-radius:4px;background:rgba(0,0,0,.25);color:rgba(255,255,255,.7);cursor:pointer;opacity:.65}
#fullscreen:hover,#fullscreen:focus-visible,#fullscreen-enter:hover,#fullscreen-enter:focus-visible{opacity:1;color:#fff;background:rgba(0,0,0,.6)}
#fullscreen:focus-visible,#fullscreen-enter:focus-visible{outline:1px solid #fff;outline-offset:2px}
#player-error{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:3;max-width:90%;margin:0;padding:10px 16px;background:rgba(0,0,0,.85);color:#fff;text-align:center;font-size:14px}
#connection-status{position:fixed;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;margin:0;padding:24px;background:rgba(0,0,0,.6);text-align:center}

#fullscreen-region{position:fixed;top:0;right:0;width:56px;height:56px;z-index:2}
#fullscreen-confirm{border:1px solid #666;border-radius:6px;background:#171717;color:#fff;max-width:90%;padding:20px}
#fullscreen-confirm::backdrop{background:rgba(0,0,0,.6)}
#fullscreen-confirm p{margin:0 0 20px}
#fullscreen-confirm div{display:flex;justify-content:flex-end;gap:12px}
#fullscreen-confirm button{font:inherit;padding:6px 12px;border:1px solid #777;border-radius:4px;background:#252525;color:#fff;cursor:pointer}
