.vid-app{max-width:720px;margin:auto;text-align:center}.vid-app [hidden]{display:none!important}.vid-lead{margin:0 0 18px}.vid-lead strong{color:var(--blue)}.vid-choices,.vid-row{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.vid-choices>*{flex:1;min-width:120px}.vid-pick{background:var(--paper);color:var(--blue);border:1px solid var(--line);font-weight:650;cursor:pointer;padding:10px 14px;min-height:46px;border-radius:10px;margin:0;display:inline-flex;align-items:center;justify-content:center;font-size:inherit}.vid-file{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0;padding:0!important;overflow:hidden}.vid-file:focus-visible+.vid-policy,.vid-pick:focus-within{outline:2px solid var(--blue)}.vid-policy{margin:10px 0 16px}.vid-status{font-size:14px;color:var(--muted);margin:16px 0;min-height:24px}.vid-status[data-error]{color:var(--danger)}#vid-settings,.vid-rules{border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0;text-align:left}.vid-row label:not(.vid-pick){flex:1;min-width:120px;margin:4px 0;font-size:14px}.vid-row select{margin-top:5px;font-size:16px}.vid-app summary{cursor:pointer;color:var(--blue);font-size:14px;min-height:40px;display:list-item;padding:8px 0}.vid-stage{position:relative;background:#000;border-radius:12px;overflow:hidden;width:fit-content;max-width:100%;margin:auto;line-height:0}.vid-stage canvas{display:block;max-width:100%;max-height:55svh;width:auto;height:auto;object-fit:contain}.vid-clock{position:absolute;right:9px;top:9px;padding:8px 10px;border-radius:20px;color:#fff;background:#000b;font-size:14px;line-height:1;display:flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}#vid-rec-dot{width:9px;height:9px;border-radius:50%;background:#f44}#vid-progress{width:100%;max-width:480px;accent-color:var(--blue);height:8px;margin:12px 0}.vid-secondary{background:var(--paper);color:var(--blue);border-color:var(--line)}.vid-app button:disabled{opacity:.5;cursor:not-allowed}#vid-preview{max-height:58svh;width:auto;max-width:100%;margin:auto;border-radius:12px}#vid-meta{margin:8px 0}#vid-submit{margin-top:10px}.vid-notice{margin:12px 0}.vid-source{position:fixed;top:0;left:0;width:1px;height:1px;opacity:.01;pointer-events:none;z-index:-1}.vid-rules p{margin:4px 0 8px}@media(max-width:480px){.vid-app h2{font-size:21px}.vid-row{gap:7px}.vid-row button,.vid-row .vid-pick{font-size:15px;padding:10px 12px}.vid-choices{gap:8px}.vid-choices>*{font-size:16px}.vid-stage canvas{max-height:48svh}}

#vid-dimensions{margin:4px 0 8px}.vid-player-tools{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:8px 0}.vid-player-tools button{font-size:14px;min-height:44px}.vid-player.vid-expanded{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;margin:0;z-index:10000;background:#000;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.vid-expanded #vid-preview{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:0;margin:0;min-height:0}.vid-expanded.vid-fill #vid-preview{object-fit:cover}.vid-expanded .vid-player-tools{position:absolute;left:0;right:0;top:0;padding: max(10px,env(safe-area-inset-top)) 8px 6px;margin:0;background:linear-gradient(#000a,transparent);z-index:2}.vid-expanded .vid-player-tools button{background:#222e!important;color:white!important;border-color:#666}.vid-screen-open{overflow:hidden}.vid-player:not(.vid-expanded) #vid-fit{display:none}.vid-player:fullscreen{width:100%;height:100%}
