:root{--bg:#000;--bar:#0b0b0b;--line:#2a2a2a;--dim:#6b6b6b;--fg:#e8e8e8}
*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg);color:var(--dim);font:13px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
body{position:fixed;inset:0}
[hidden]{display:none!important}
main{position:absolute;inset:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
button{all:unset;cursor:pointer;width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%;color:var(--dim);transition:.15s}
button:active{color:var(--fg);background:#161616}
button:disabled{opacity:.25;pointer-events:none}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#menu{display:flex}
#ls{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 0}
#ls div{padding:14px 24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#ls div.on{color:var(--fg);background:var(--bar)}
.side{display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:12px 16px;border-left:1px solid var(--line)}
.big{width:64px;height:64px;border:1px solid var(--line);color:var(--fg)}
.big svg,#pp svg{fill:currentColor;stroke:none}
.big svg{width:22px;height:22px}
.big.ld{animation:p 1s infinite alternate}
@keyframes p{to{opacity:.3}}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.bar{position:absolute;top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);display:flex;align-items:center;gap:6px;padding:4px 10px;pointer-events:none}
.bar>*{pointer-events:auto}
#pp svg{width:14px;height:14px}
input[type=range]{-webkit-appearance:none;appearance:none;background:none;width:160px;height:40px;margin:0;cursor:pointer;--p:0%}
input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(90deg,#9a9a9a var(--p),var(--line) var(--p))}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-6px;border-radius:50%;background:var(--fg)}
input[type=range]::-moz-range-track{height:2px;background:var(--line)}
input[type=range]::-moz-range-progress{height:2px;background:#9a9a9a}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--fg)}
#seek{flex:1;width:auto}
#st{position:fixed;inset:0;background:rgba(0,0,0,.85);display:grid;place-items:center}
.panel{position:relative;display:flex;flex-direction:column;gap:2px;padding:14px 56px 14px 20px;background:var(--bar);border:1px solid var(--line);border-radius:12px}
.panel label{display:flex;align-items:center;gap:12px;min-height:44px}
.panel label>span{width:18px;display:grid}
#sx{position:absolute;top:6px;right:6px}
input[type=url],input[type=number]{all:unset;color:var(--fg);border-bottom:1px solid var(--line);padding:4px 0;font:inherit;-webkit-user-select:text;user-select:text}
input[type=url]{width:272px}
input[type=number]{width:60px;text-align:center}
input[type=number]::-webkit-inner-spin-button{display:none}
i{font-style:normal;color:var(--fg);min-width:40px;text-align:right}
#rot{position:fixed;inset:0;background:var(--bg);display:none;place-items:center}
#rot svg{width:40px;height:40px}
@media (orientation:portrait){#rot{display:grid}}
