:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #181b1e;
  --panel-2: #202428;
  --line: #30353a;
  --text: #f4f5f5;
  --muted: #979ea5;
  --lime: #c8f45b;
  --coral: #ff765f;
  --cyan: #63d8e5;
  --yellow: #f4cc57;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.shell { width: min(100%, 520px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 11px; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--lime); color: #111; border-radius: 7px; }
.brand-mark svg { width: 23px; }
.topbar h1 { font-size: 17px; line-height: 1.1; margin: 0; font-weight: 700; }
.topbar p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.format { margin-left: auto; border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; padding: 5px 7px; border-radius: 4px; }
.start-view { padding-top: 28px; }
.meter { height: 122px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 2px; overflow: hidden; }
.meter span { width: 100%; height: var(--h); min-height: 12px; border-radius: 2px; background: var(--lime); opacity: .9; transform-origin: center; animation: pulse 1.5s ease-in-out infinite alternate; }
.meter span:nth-child(3n) { background: var(--cyan); animation-delay: -.7s; }
.meter span:nth-child(4n) { background: var(--coral); animation-delay: -.35s; }
@keyframes pulse { to { transform: scaleY(.52); opacity: .55; } }
.intro { margin: 31px 0 30px; }
.intro h2 { font-size: 34px; line-height: 1.12; margin: 0; font-weight: 600; }
.intro p { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 440px; margin: 15px 0 0; }
form label { display: block; font-size: 12px; color: #c9cdd0; margin-bottom: 8px; font-weight: 600; }
.url-field { height: 56px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); padding: 0 13px; border-radius: 6px; transition: border-color .2s; }
.url-field:focus-within { border-color: var(--lime); }
.url-field > svg { width: 19px; color: var(--muted); flex: 0 0 auto; }
.url-field input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 14px; }
.url-field input::placeholder { color: #666d73; }
.clear-btn, .icon-btn { width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 5px; }
.clear-btn svg { width: 17px; }
.primary-btn { width: 100%; height: 56px; margin-top: 12px; border: 0; border-radius: 6px; background: var(--lime); color: #121410; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; cursor: pointer; }
.primary-btn svg { width: 19px; }
.primary-btn:disabled { opacity: .55; cursor: wait; }
.limit { color: #737a80; font-size: 10px; line-height: 1.5; display: flex; justify-content: center; align-items: flex-start; gap: 5px; margin: 11px 3px 0; text-align: center; }
.limit svg { width: 13px; flex: 0 0 auto; }
.process-view { padding-top: 29px; }
.track-head { display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.icon-btn { border: 1px solid var(--line); background: var(--panel); flex: 0 0 auto; }
.icon-btn svg { width: 17px; }
.track-head span, .result-title span { text-transform: uppercase; font-size: 9px; color: var(--muted); font-weight: 700; }
.track-head h2 { font-size: 15px; margin: 4px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 100px); }
.progress-panel { padding: 70px 0 40px; text-align: center; }
.disc { width: 76px; height: 76px; margin: 0 auto 24px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 50%; animation: spin 3s linear infinite; color: var(--lime); }
.disc svg { width: 41px; height: 41px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-panel p { font-size: 14px; margin: 0 0 19px; }
.progress-track { width: 100%; height: 5px; background: var(--panel-2); overflow: hidden; border-radius: 2px; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--lime); transition: width .45s ease; }
.progress-panel strong { display: block; color: var(--muted); font-size: 11px; margin-top: 9px; }
.error-panel { text-align: center; padding: 66px 12px; }
.error-panel > svg { color: var(--coral); width: 42px; height: 42px; }
.error-panel h3 { font-size: 17px; margin: 17px 0 7px; }
.error-panel p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.secondary-btn { min-height: 45px; border: 1px solid var(--line); border-radius: 6px; padding: 0 18px; color: var(--text); background: var(--panel); font-weight: 600; cursor: pointer; }
.results { padding-top: 25px; }
.result-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.result-title h2 { margin: 2px 0 0; font-size: 25px; }
.result-title > svg { color: var(--lime); width: 27px; height: 27px; }
.stem-list { display: grid; gap: 10px; }
.stem { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.stem-meta { display: flex; gap: 10px; align-items: center; min-width: 0; }
.stem-icon { width: 36px; height: 36px; border-radius: 5px; display: grid; place-items: center; background: #252b24; color: var(--lime); flex: 0 0 auto; }
.stem-icon svg { width: 18px; }
.stem h3 { font-size: 14px; margin: 0; }
.stem p { font-size: 9px; color: var(--muted); margin: 3px 0 0; }
.stem audio { grid-column: 1 / -1; width: 100%; height: 35px; accent-color: var(--lime); }
.download-btn { min-width: 92px; height: 34px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 600; }
.download-btn svg { width: 15px; }
.full { width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.full svg { width: 16px; }
@media (min-width: 700px) { .shell { padding-top: 32px; } .start-view { padding-top: 36px; } }
@media (max-width: 360px) { .intro h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
