:root {
  color-scheme: dark;
  --bg: #101313;
  --panel: #191e1e;
  --line: #2c3634;
  --text: #f2f4eb;
  --muted: #a8b5aa;
  --accent: #b6ef63;
  --accent-ink: #17200f;
  --error: #ff9c83;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 85% 0%, #293d2a 0, var(--bg) 32rem);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 40px; }
.hero { max-width: 720px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 660px; font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: 1.45rem; }
.lede { max-width: 650px; margin: 20px 0; color: var(--muted); font-size: 1.08rem; }
.pill, .method { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--muted); font-size: 12px; }
.pill { color: var(--accent); border-color: #48632f; }
.card { margin: 18px 0; padding: clamp(20px, 4vw, 32px); background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px #0002; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.method { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.inline-form { display: flex; gap: 10px; }
input, textarea { width: 100%; color: var(--text); background: #0e1111; border: 1px solid var(--line); border-radius: 9px; outline: none; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
input { min-width: 0; padding: 12px 13px; }
textarea { min-height: 220px; padding: 13px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #b6ef6320; }
button { border: 0; border-radius: 9px; padding: 0 18px; color: var(--accent-ink); background: var(--accent); font: inherit; font-weight: 750; cursor: pointer; white-space: nowrap; }
button:hover { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: .65; }
.hint { margin: -10px 0 18px; color: var(--muted); font-size: 14px; }
.result { min-height: 56px; margin: 20px 0 0; overflow: auto; padding: 14px; color: #d9e8d5; background: #0e1111; border: 1px solid var(--line); border-radius: 9px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.result.error { color: var(--error); }
.catalog-preview { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.album-summary { display: flex; align-items: center; gap: 22px; }
.album-artwork { display: block; width: min(220px, 35vw); height: auto; border-radius: 8px; }
.album-copy { min-width: 0; }
.album-title { margin: 0 0 14px; font-size: clamp(1.5rem, 4vw, 2.35rem); line-height: 1.1; overflow-wrap: anywhere; }
.spotify-link { color: var(--accent); font-weight: 700; }
.catalog-embed { display: block; width: 100%; min-height: 352px; margin-top: 24px; border: 0; border-radius: 12px; background: #0e1111; }
.download-actions { margin-top: 20px; }
.download-actions button { min-height: 46px; }
.download-auth-link { display: inline-block; margin-left: 12px; color: var(--accent); font-size: 14px; font-weight: 700; }
.download-progress { margin-top: 18px; padding: 18px; background: #0e1111; border: 1px solid var(--line); border-radius: 12px; }
.progress-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.progress-heading .eyebrow { margin-bottom: 5px; }
.progress-heading h3 { margin: 0; font-size: 1.05rem; }
.progress-heading .hint { margin: 6px 0 0; }
.progress-count { flex: 0 0 auto; color: var(--accent); font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.progress-track { height: 8px; margin: 16px 0; overflow: hidden; background: #29302c; border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s ease; }
.track-progress-list { display: grid; gap: 7px; max-height: 340px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.track-progress-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 11px; background: #171c1b; border: 1px solid #252d2a; border-radius: 8px; }
.track-progress-copy { display: grid; min-width: 0; }
.track-progress-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.track-progress-copy small { color: var(--muted); }
.track-progress-state { flex: 0 0 auto; color: var(--muted); font-size: 12px; text-align: right; }
.is-working { border-color: #708c4c; }
.is-working .track-progress-state, .is-saved .track-progress-state { color: var(--accent); }
.is-failed .track-progress-state { color: var(--error); }
footer { margin-top: 32px; color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 650px) { .shell { padding-top: 40px; } .section-heading { display: block; } .method { margin-top: 14px; } .inline-form { display: block; } .inline-form button { width: 100%; min-height: 44px; margin-top: 10px; } button { min-height: 44px; } .album-summary { align-items: start; } .album-artwork { width: 110px; } .catalog-embed { min-height: 300px; } .progress-heading { gap: 8px; } .track-progress-item { align-items: start; } .track-progress-state { max-width: 44%; } .download-auth-link { display: block; margin: 12px 0 0; } }
