.drop{display:grid;gap:4px;place-items:center;min-height:160px;padding:20px;border:2px dashed var(--line);border-radius:14px;background:var(--panel2);cursor:pointer;text-align:center}
.drop span{color:var(--muted)}
.drop.drag,.drop:hover,.drop:focus-within{border-color:var(--yellow)}
.file-info{color:var(--muted);font-size:13px;margin-bottom:8px;overflow-wrap:anywhere}
#preview{display:block;width:100%;max-height:60vh;background:#000;border-radius:12px}
.player{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 18px}
.btn,.dl{min-height:44px;min-width:44px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--ink);font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.btn-main{background:var(--yellow);border-color:var(--yellow);color:var(--yellow-ink);font-weight:750;min-width:72px}
.dl{background:var(--yellow);color:var(--yellow-ink)}
.time{font-variant-numeric:tabular-nums;color:var(--muted);padding:0 4px}
.seek{flex:1 1 100%;min-height:44px;accent-color:var(--yellow);margin:0}
.trim-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px}
.trim-head span{color:var(--muted)}
.trim{padding:0 14px}
.trim-track{position:relative;height:56px;border-radius:10px;background:var(--panel2);border:1px solid var(--line);touch-action:none}
.trim-sel{position:absolute;top:0;bottom:0;background:rgba(255,212,0,.18);border-top:3px solid var(--yellow);border-bottom:3px solid var(--yellow)}
.trim-head-marker{position:absolute;top:0;bottom:0;width:2px;background:#fff;pointer-events:none}
.handle{position:absolute;top:-4px;bottom:-4px;width:44px;margin-left:-22px;cursor:ew-resize;touch-action:none;display:grid;place-items:center}
.handle::before{content:"";width:12px;height:100%;border-radius:6px;background:var(--yellow)}
.handle:focus-visible{outline:2px solid #fff;outline-offset:1px;border-radius:8px}
.fine{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}
.fine label{display:grid;gap:4px;color:var(--muted);font-size:13px}
.fine input{width:120px;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--ink);font:inherit}
.fine input:focus-visible,.btn:focus-visible,.seek:focus-visible,.drop:focus-within,.dl:focus-visible,.wg-btn-primary:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.wg-btn-primary:disabled{opacity:.5;cursor:not-allowed}
.progress-wrap{margin-top:12px}.progress-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}
progress{width:100%;accent-color:var(--yellow)}
.result p{color:var(--muted);margin:14px 0 0}
.error{margin-top:12px;padding:10px 12px;border:1px solid #7a1230;border-radius:10px;background:#2a0f18;color:#ffb4c4}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:480px){.wg-canvas{padding:14px}.fine input{width:100%}.fine label{flex:1 1 40%}}
