* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: #05070d; overflow: hidden; }
body { color: #fff; font-family: Arial, sans-serif; }
#player { position: relative; width: 100%; height: 100%; height: 100dvh; background: #05070d; }
video { display: block; width: 100%; height: 100%; object-fit: contain; background: #05070d; }
[hidden] { display: none !important; }
button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(12,15,25,.78); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:hover { background: rgba(73,67,107,.92); }
button:focus-visible { outline: 3px solid #a398ff; outline-offset: 5px; }
.start { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; padding: 0 0 0 5px; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 8px 38px rgba(0,0,0,.36); }
.tools { position: absolute; z-index: 2; right: 20px; bottom: 20px; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .18s; }
.tools.visible, .tools:focus-within { opacity: 1; pointer-events: auto; }
.tools button { width: 48px; height: 48px; padding: 10px; border-radius: 50%; }
.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; }
#player.idle { cursor: none; }
@media(max-width:600px) { .start { width: 76px; height: 76px; } .tools { right: 12px; bottom: 12px; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); } }
@media(prefers-reduced-motion:reduce) { .tools { transition: none; } }
