:root{--bg: #f6f5fb;--surface: #ffffff;--surface-2: #f0eef8;--text: #1b1830;--muted: #625e78;--border: #e2def0;--accent: #6c4cf1;--accent-hover: #5a3ad9;--accent-text: #ffffff;--accent-soft: #ece7ff;--ok: #187a4a;--error: #b42318;--check-a: #ffffff;--check-b: #e9e7f1;--radius: 16px;--shadow: 0 1px 2px rgb(20 10 60 / .06), 0 4px 16px rgb(20 10 60 / .06);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #12101c;--surface: #1c1929;--surface-2: #262236;--text: #efedf7;--muted: #a7a2bd;--border: #322d47;--accent: #8b70ff;--accent-hover: #9d86ff;--accent-text: #12101c;--accent-soft: #2b2450;--ok: #5fd39a;--error: #ff8a80;--check-a: #2a2638;--check-b: #221f2f;--shadow: none;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}main,header.site,footer.site{max-width:760px;margin:0 auto;padding:0 16px}header.site{padding-top:16px;padding-bottom:8px}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:750;font-size:1.15rem;color:var(--text);text-decoration:none}.hero{padding:24px 0 20px}.hero h1{font-size:clamp(1.7rem,5vw,2.4rem);line-height:1.15;margin:0 0 8px;letter-spacing:-.02em;text-wrap:balance}.hero p{margin:0;color:var(--muted);font-size:1.05rem}h2{font-size:1.15rem;margin:0 0 12px}.input-card,.card,.howto,.rules{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.drop{display:flex;flex-direction:column;align-items:center;gap:4px;padding:36px 16px;border:2px dashed var(--border);border-radius:12px;background:var(--surface-2);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}.drop:hover,.drop.over,.drop:focus-within{border-color:var(--accent);background:var(--accent-soft)}.drop-icon{width:40px;height:40px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-bottom:6px}.drop-title{font-weight:650;font-size:1.1rem}.drop-sub{color:var(--muted);font-size:.9rem}.or{display:flex;align-items:center;gap:12px;margin:18px 0 12px;color:var(--muted);font-size:.9rem}.or:before,.or:after{content:"";flex:1;height:1px;background:var(--border)}.link-row{display:flex;gap:8px}.link-row input{flex:1;min-width:0;font:inherit;padding:10px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text)}.link-row input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}.msg{margin:10px 0 0;min-height:1.5em;font-size:.92rem;color:var(--muted)}.msg:empty{display:none}.msg.error{color:var(--error)}button,.primary,.secondary{font:inherit;cursor:pointer}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-text);font-weight:650;text-decoration:none}.primary:hover{background:var(--accent-hover)}.primary[hidden]{display:none}.secondary{padding:9px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-weight:600}.secondary:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.secondary:disabled{opacity:.5;cursor:default}.small{padding:4px 12px;font-size:.9rem}.icon{width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--muted);flex:none}.icon:hover{background:var(--surface-2);color:var(--text)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.engine{margin-top:16px;padding:14px 16px;border-radius:12px;background:var(--accent-soft);font-size:.95rem}.engine.error{color:var(--error)}.engine-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.engine[hidden]{display:none}progress{width:100%;height:6px;border:0;border-radius:99px;background:var(--border);overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}progress::-webkit-progress-bar{background:var(--border)}progress::-webkit-progress-value{background:var(--accent);border-radius:99px;transition:width .2s}progress::-moz-progress-bar{background:var(--accent)}progress[hidden]{display:none}.list{display:grid;gap:16px;margin:16px 0}.list:empty{display:none}.card{padding:16px;display:grid;gap:12px}.card-head{display:flex;align-items:center;gap:8px}.name{flex:1;min-width:0;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.previews{display:grid;grid-template-columns:1fr 1fr;gap:12px}figure{margin:0;min-width:0}figcaption{margin-top:6px;font-size:.85rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}.frame{aspect-ratio:1;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--border)}.frame img,.frame video{width:100%;height:100%;object-fit:contain;display:block}.checker{background-color:var(--check-a);background-image:conic-gradient(var(--check-b) 25%,transparent 0 50%,var(--check-b) 0 75%,transparent 0);background-size:20px 20px}.badge{font-weight:650;color:var(--ok)}.badge:empty{display:none}.badge.bad{color:var(--error)}.spinner{width:32px;height:32px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--accent);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}.status{display:grid;gap:6px;font-size:.95rem}.status[data-kind=ok] .status-text{color:var(--ok);font-weight:600}.status[data-kind=error] .status-text{color:var(--error)}.notes{margin:0;font-size:.9rem;color:var(--muted);background:var(--surface-2);padding:8px 12px;border-radius:8px}.notes[hidden]{display:none}.actions{display:flex}.actions .download{flex:1;padding:12px 20px}.actions:not(:has(.download:not([hidden]))){display:none}.options{border-top:1px solid var(--border);padding-top:10px}.options summary{cursor:pointer;color:var(--muted);font-size:.95rem;font-weight:600;padding:4px 0}.options summary:hover{color:var(--text)}.options[open] summary{margin-bottom:10px}.opt{margin-bottom:14px}.opt-label{display:block;font-size:.9rem;font-weight:600;margin-bottom:6px}.opt input[type=range]{width:100%;accent-color:var(--accent);margin-top:6px}.speed-out{font-weight:500;color:var(--muted);margin-left:4px}.seg{display:grid;grid-template-columns:1fr 1fr;gap:6px}.seg label{position:relative}.seg input{position:absolute;opacity:0;top:0;right:0;bottom:0;left:0;margin:0;cursor:pointer}.seg span{display:block;padding:8px 10px;text-align:center;font-size:.9rem;border:1px solid var(--border);border-radius:10px}.seg input:checked+span{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}.seg input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}.trim{display:grid;grid-template-columns:1fr 1fr;gap:10px}.trim label{font-size:.9rem;font-weight:600;display:grid;gap:4px}.trim input{font:inherit;font-weight:400;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);width:100%}.trim-hint{font-size:.88rem;color:var(--muted);margin:-4px 0 12px}.trim-hint.error{color:var(--error)}.howto,.rules{margin-top:16px}.tabs{display:inline-flex;gap:4px;padding:4px;background:var(--surface-2);border-radius:10px;margin-bottom:8px}.tabs button{border:0;background:transparent;color:var(--muted);padding:6px 16px;border-radius:8px;font-weight:600}.tabs button[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.tab-panel{margin:0;padding-left:22px}.tab-panel li{margin:8px 0}.rules ul{margin:0;padding-left:22px}.rules li{margin:6px 0}code{font-size:.9em;background:var(--surface-2);padding:1px 5px;border-radius:5px}footer.site{padding-top:24px;padding-bottom:40px;color:var(--muted);font-size:.88rem;text-align:center}footer.site p{margin:4px 0}@media(max-width:480px){.input-card,.howto,.rules{padding:16px}.drop{padding:28px 12px}.previews{gap:8px}}.card.still .speed-opt,.card.still .trim,.card.still .trim-hint{display:none}.footer-links{margin-bottom:8px}.footer-links a,.legal a{color:var(--accent)}.footer-links a{text-decoration:none;font-weight:600}.footer-links a:hover{text-decoration:underline}.legal{max-width:68ch;padding-top:16px;padding-bottom:16px}.legal h1{font-size:clamp(1.7rem,5vw,2.2rem);letter-spacing:-.02em;margin:16px 0 4px}.legal h2{font-size:1.15rem;margin:28px 0 8px}.legal .updated{color:var(--muted);font-size:.9rem;margin:0 0 20px}.legal .lead{font-size:1.08rem;background:var(--accent-soft);padding:14px 16px;border-radius:12px}.legal p,.legal li{line-height:1.65}.legal ul{padding-left:22px}.legal li{margin:8px 0}
