/* Video & audio tools */
.mbar{height:8px;margin-top:14px}
.mnote{font-size:13.5px;color:var(--muted);margin:10px 0 0}
.mout{margin-top:16px;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:14px}
.mprev{display:flex;justify-content:center;margin-bottom:12px}
.mprev video,.mprev img{max-height:420px;border-radius:10px;background:#000;max-width:100%}
.mprev img{background:repeating-conic-gradient(#0000000d 0 25%,transparent 0 50%) 0 0/18px 18px}
.mprev audio{width:100%}
.mres{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mres .fname{font-weight:600;word-break:break-all}
.mres .fsub{font-size:13.5px;color:var(--muted)}
.mres .saved{color:var(--ok);font-weight:650}
.mvid{margin-top:16px;display:flex;justify-content:center}
.mvid video{max-height:360px;border-radius:10px;background:#000;width:100%;max-width:720px}
.tinp{display:flex;gap:6px;align-items:center}
.tinp input{width:100%}
.tinp .btn{white-space:nowrap}
/* range with two handles (trim + audio cutter) */
.wave{position:relative;margin-top:16px;height:140px;border-radius:12px;background:var(--surface2);border:1px solid var(--line);touch-action:none;user-select:none}
.wave canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:12px}
.wave .sel{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--brand) 16%,transparent);border-left:2px solid var(--brand);border-right:2px solid var(--brand);pointer-events:none}
.wave .hd{position:absolute;top:0;bottom:0;width:22px;margin-left:-11px;cursor:ew-resize;display:flex;align-items:center;justify-content:center}
.wave .hd::after{content:"";width:8px;height:44px;border-radius:5px;background:var(--brand);box-shadow:0 0 0 2px var(--surface)}
.wave .ph{position:absolute;top:0;bottom:0;width:2px;background:var(--err);pointer-events:none;display:none}
.wave.slim{height:56px}
.wtimes{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:6px;font-variant-numeric:tabular-nums}
/* recorders */
.rec{display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 0 6px;text-align:center}
.rec .clock{font-size:44px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.rec .dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--err);margin-right:8px;vertical-align:middle;animation:mblink 1s infinite}
.rec .meter{width:100%;max-width:520px;height:70px;border-radius:12px;background:var(--surface2);border:1px solid var(--line)}
.rec .actions{justify-content:center;margin-top:4px}
.rec video{max-height:320px;border-radius:10px;background:#000;width:100%;max-width:640px}
@keyframes mblink{50%{opacity:.25}}
.mframes{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-top:12px}
.mframes img{width:100%;border-radius:8px;border:1px solid var(--line);display:block}
.mframes div{font-size:12px;color:var(--muted);text-align:center}
@media (max-width:600px){.wave{height:110px}.rec .clock{font-size:36px}}
