:root{color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;background:#0b0b0d;color:#eee;font:16px system-ui,sans-serif}
main{max-width:1100px;margin:0 auto;padding:16px}
#video{background:#000;border-radius:8px;overflow:hidden;height:min(62vh,calc(100vw - 32px)*0.75)}
#cam{display:block;width:100%;height:100%;object-fit:contain;background:#000}
#info{margin-top:14px}
#file{font-weight:600;word-break:break-all;margin-bottom:8px}
#bar{height:10px;background:#2a2a30;border-radius:5px;overflow:hidden}
#fill{height:100%;width:0;background:#3ecf8e;transition:width .5s}
#row{display:flex;justify-content:space-between;gap:12px;margin-top:8px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
#offline{margin-top:14px;text-align:center;font-size:1.3rem;padding:20px;background:#2a1618;border-radius:8px}
[hidden]{display:none!important}
body.off #video{display:none}
