/* Aural Projection - a night sky with a gold sun, after the astrology blanket. */

:root {
  --night-900: #0b0e28;
  --night-800: #121741;
  --night-700: #1a2059;
  --night-600: #232a6b;
  --night-500: #333c86;
  --ink: #0b0e28;

  --gold-400: #f5d387;
  --gold-500: #e9b949;
  --gold-600: #c9952c;
  --coral: #d95b3f;
  --coral-soft: #e8836a;
  --cream: #f6ead0;
  --cream-dim: #cdc2ac;
  --muted: #8f95c6;

  --wave-idle: #3b4494;
  --wave-played: var(--gold-500);
  --wave-hover: #4b56b4;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(3, 5, 24, .55);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------------- the sky */

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #26307a 0%, #171d4f 42%, #0b0e28 100%);
}
.sky-stars {
  position: absolute; inset: -20%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(246,234,208,.9), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(246,234,208,.75), transparent 60%),
    radial-gradient(1.6px 1.6px at 34% 42%, rgba(245,211,135,.8), transparent 60%),
    radial-gradient(1.1px 1.1px at 63% 34%, rgba(246,234,208,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 62%, rgba(245,211,135,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 74%, rgba(246,234,208,.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 52% 88%, rgba(246,234,208,.55), transparent 60%),
    radial-gradient(1.1px 1.1px at 5% 52%, rgba(245,211,135,.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 95% 26%, rgba(246,234,208,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 44% 8%, rgba(246,234,208,.5), transparent 60%);
  background-size: 620px 520px, 780px 640px, 540px 460px, 900px 720px, 700px 560px,
                   660px 540px, 820px 680px, 580px 500px, 740px 600px, 860px 700px;
  opacity: .85;
  animation: drift 240s linear infinite;
}
@keyframes drift { to { transform: translate3d(-160px, -120px, 0); } }
.sky-glow {
  position: absolute; left: 50%; top: -220px; width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(233,185,73,.14), transparent 62%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .sky-stars { animation: none; } }

/* ------------------------------------------------------------------ chrome */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 18px clamp(16px, 4vw, 40px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-mark { width: 34px; height: 34px; color: var(--gold-500); filter: drop-shadow(0 0 10px rgba(233,185,73,.4)); }
.brand-text { font-family: var(--serif); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.brand-text em { font-style: normal; color: var(--gold-400); }
.topnav { display: flex; align-items: center; gap: 10px; }

.page { flex: 1; width: min(1080px, 100%); margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 64px; }

.footer {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 26px 20px 34px; color: var(--gold-600); opacity: .6; font-size: 14px;
}
.footer .rule { flex: 0 1 180px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-600), transparent); }

/* ---------------------------------------------------------------- controls */

button, input, textarea, select { font: inherit; color: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(233,185,73,.35);
  background: rgba(35,42,107,.55);
  color: var(--cream);
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: rgba(51,60,134,.7); border-color: rgba(233,185,73,.6); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); color: #1a1330; border-color: transparent; font-weight: 600; }
.btn-gold:hover { background: linear-gradient(180deg, #f9e0a4, #d5a233); }
.btn-ghost { background: transparent; border-color: rgba(143,149,198,.35); color: var(--cream-dim); }
.btn-ghost:hover { color: var(--cream); border-color: rgba(233,185,73,.5); background: rgba(35,42,107,.4); }
.btn-danger:hover { border-color: rgba(217,91,63,.8); background: rgba(217,91,63,.18); color: #ffd9cd; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid rgba(143,149,198,.28);
  background: rgba(18,23,65,.6); color: var(--cream-dim); cursor: pointer;
  transition: all .15s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--gold-400); border-color: rgba(233,185,73,.55); background: rgba(35,42,107,.75); }
.icon-btn.danger:hover { color: #ffc9ba; border-color: rgba(217,91,63,.7); background: rgba(217,91,63,.2); }

input[type="text"], input[type="password"], input[type="number"], textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: rgba(11,14,40,.6); border: 1px solid rgba(143,149,198,.28);
  color: var(--cream); outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(143,149,198,.7); }
input:focus, textarea:focus { border-color: rgba(233,185,73,.65); box-shadow: 0 0 0 3px rgba(233,185,73,.12); }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }

/* ------------------------------------------------------------------ panels */

.panel {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26,32,89,.82), rgba(15,19,55,.9));
  border: 1px solid rgba(233,185,73,.22);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}
.panel::before {
  content: ""; position: absolute; inset: 6px; border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(233,185,73,.12); pointer-events: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(28px, 4.2vw, 42px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 10px 0 26px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 8px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--gold-600); margin: 22px 0; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,185,73,.35), transparent); }

/* -------------------------------------------------------------- login page */

.auth-shell { display: grid; place-items: center; padding: 6vh 0; }
.auth-card { width: min(420px, 100%); text-align: center; }
.auth-sun { width: 92px; height: 92px; color: var(--gold-500); margin: 0 auto 14px; display: block; filter: drop-shadow(0 0 22px rgba(233,185,73,.35)); }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; }
.auth-card form { text-align: left; }
.error-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: rgba(217,91,63,.16); border: 1px solid rgba(217,91,63,.4); color: #ffd3c7; font-size: 14px; }

/* --------------------------------------------------------------- dashboard */

.collection-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.collection-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.collection-card h3 { font-size: 20px; }
.collection-card .meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.collection-card .card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-link { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--gold-400);
  background: rgba(11,14,40,.55); border: 1px dashed rgba(233,185,73,.3); border-radius: 10px; padding: 8px 10px; overflow: hidden; }
.card-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h1 { color: var(--cream); margin-bottom: 10px; }
.empty-sigil { font-size: 48px; color: var(--gold-500); margin-bottom: 10px; }

/* ---------------------------------------------------------------- settings */

.settings-grid { display: grid; gap: 20px; }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cred-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(11,14,40,.5); border: 1px solid rgba(143,149,198,.2); }
.cred-list .grow { flex: 1; }
.cred-list small { color: var(--muted); display: block; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track-ui { width: 46px; height: 26px; border-radius: 999px; background: rgba(11,14,40,.8);
  border: 1px solid rgba(143,149,198,.35); position: relative; transition: all .18s ease; flex: none; }
.switch .track-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream-dim); transition: all .18s ease; }
.switch input:checked + .track-ui { background: rgba(233,185,73,.28); border-color: var(--gold-500); }
.switch input:checked + .track-ui::after { left: 23px; background: var(--gold-400); }
.switch input:focus-visible + .track-ui { box-shadow: 0 0 0 3px rgba(233,185,73,.25); }

/* -------------------------------------------------------------- collection */

.collection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 6px 0 22px; }
.collection-head .titles { display: flex; align-items: center; gap: 12px; }
.collection-head h1 { font-size: clamp(30px, 5vw, 46px); }
.collection-sub { color: var(--muted); margin: 8px 0 0; display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }

/* Page-level quality switch. */
.quality-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: rgba(11,14,40,.6); border: 1px solid rgba(143,149,198,.25); }
.quality-option { display: grid; gap: 1px; justify-items: center; padding: 7px 16px; cursor: pointer;
  border: none; border-radius: 999px; background: transparent; color: var(--cream-dim);
  font-size: 13.5px; line-height: 1.25; transition: background .15s ease, color .15s ease; }
.quality-option small { font-size: 10.5px; letter-spacing: .04em; opacity: .75; font-family: var(--mono); }
.quality-option:hover { color: var(--cream); }
.quality-option.active { background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: #1a1330; font-weight: 600; }
.quality-option.active small { opacity: .8; }

.track-list { display: grid; gap: 16px; }

.track {
  position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 18px;
  padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26,32,89,.72), rgba(14,18,52,.86));
  border: 1px solid rgba(143,149,198,.18);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.track.is-active { border-color: rgba(233,185,73,.5); box-shadow: 0 0 0 1px rgba(233,185,73,.12), var(--shadow); }
.track.dragging { opacity: .45; }
.track.drop-target { border-color: var(--coral); }

.track-sigil {
  position: relative; width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(233,185,73,.22), rgba(11,14,40,.7) 70%);
  border: 1px solid rgba(233,185,73,.3); color: var(--gold-500);
  font-family: var(--serif); font-size: 30px;
}
.track-sigil svg { width: 46px; height: 46px; opacity: .9; }
.track.is-active .track-sigil { animation: halo 6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { box-shadow: 0 0 0 rgba(233,185,73,0); } 50% { box-shadow: 0 0 22px rgba(233,185,73,.35); } }
@media (prefers-reduced-motion: reduce) { .track.is-active .track-sigil { animation: none; } }

.track-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.track-top { display: flex; align-items: center; gap: 12px; }
.play-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); color: #17123a; border: none;
  box-shadow: 0 6px 18px rgba(233,185,73,.25);
}
.play-btn svg { width: 20px; height: 20px; margin-left: 1px; }
.play-btn.is-playing svg { margin-left: 0; }
.play-btn.is-busy { background: rgba(35,42,107,.8); color: var(--gold-400); }
.play-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.play-btn.is-busy::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--gold-400); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.track-title-wrap { min-width: 0; flex: 1; }
.track-title { font-family: var(--serif); font-size: 20px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: rgba(11,14,40,.6); border: 1px solid rgba(143,149,198,.25); font-size: 12px; }
.pill.gold { color: var(--gold-400); border-color: rgba(233,185,73,.4); }
.pill.quiet { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.pill.working { color: var(--gold-400); border-color: rgba(233,185,73,.4); animation: pulse 1.8s ease-in-out infinite; }
.pill.bad { color: #ffc9ba; border-color: rgba(217,91,63,.6); }
.pill.lufs { font-family: var(--mono); letter-spacing: -.02em; }
.track-times { font-family: var(--mono); font-size: 12.5px; color: var(--cream-dim); white-space: nowrap; }

.wave-wrap { position: relative; }
.wave { position: relative; height: 92px; cursor: pointer; touch-action: none; }
.wave canvas { display: block; width: 100%; height: 100%; }
.wave-hover-line { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(246,234,208,.5); pointer-events: none; opacity: 0; }
.wave.hovering .wave-hover-line { opacity: 1; }
.wave-hover-time { display: none; position: absolute; top: -22px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px;
  background: rgba(11,14,40,.9); border: 1px solid rgba(143,149,198,.3); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.wave-buffering, .wave-processing { position: absolute; inset: 0; display: none; place-items: center;
  background: rgba(11,14,40,.55); border-radius: 10px; }
.wave-buffering span, .wave-processing span { font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-400); }
.track.is-buffering .wave-buffering { display: grid; }
.track.is-processing .wave-processing { display: grid; }
.track.is-processing .wave-processing span { animation: pulse 1.8s ease-in-out infinite; }
.track.is-processing .wave canvas { opacity: .25; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .track.is-processing .wave-processing span { animation: none; } }

.marker-row { position: relative; height: 30px; margin-top: 2px; }
.marker { position: absolute; top: 2px; transform: translateX(-50%); cursor: pointer; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #12142f; border: 1px solid rgba(11,14,40,.5);
}
.avatar.lg { width: 32px; height: 32px; font-size: 14px; }
.marker .bubble {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 260px; padding: 8px 11px; border-radius: 10px;
  background: rgba(11,14,40,.96); border: 1px solid rgba(233,185,73,.35); font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease; z-index: 5;
}
.marker .bubble b { color: var(--gold-400); display: block; font-size: 12px; margin-bottom: 2px; }
.marker:hover .bubble { opacity: 1; transform: translateX(-50%) translateY(0); }

.composer { display: flex; align-items: center; gap: 10px; }
.composer .avatar { flex: none; }
.composer input { flex: 1; }
.composer .at-time { font-family: var(--mono); font-size: 12px; color: var(--gold-400); white-space: nowrap; }

.track-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(11,14,40,.5); border: 1px solid rgba(143,149,198,.22); color: var(--cream-dim); font-size: 13px;
}
.tool svg { width: 16px; height: 16px; }
.tool:hover { color: var(--cream); border-color: rgba(233,185,73,.45); }
.tool.active { color: var(--gold-400); border-color: rgba(233,185,73,.55); background: rgba(233,185,73,.1); }
.tool .count { font-family: var(--mono); font-size: 11px; opacity: .8; }
.tool-spacer { flex: 1; }

.drawer { display: none; margin-top: 4px; padding: 14px; border-radius: 14px;
  background: rgba(9,12,34,.6); border: 1px solid rgba(143,149,198,.18); }
.drawer.open { display: block; }
.drawer h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 15px; letter-spacing: .04em; color: var(--gold-400); }

.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .body { flex: 1; min-width: 0; }
.comment .who { font-size: 13px; font-weight: 600; }
.comment .who .admin-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  background: var(--gold-500); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.comment .stamp { font-family: var(--mono); font-size: 12px; color: var(--gold-400); background: none; border: none; cursor: pointer; padding: 0 0 0 8px; }
.comment .stamp:hover { text-decoration: underline; }
.comment p { margin: 2px 0 0; font-size: 14px; color: var(--cream); overflow-wrap: anywhere; }
.comment .del { opacity: 0; }
.comment:hover .del { opacity: 1; }

.version-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.version {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(11,14,40,.55); border: 1px solid rgba(143,149,198,.2);
}
.version:hover { border-color: rgba(233,185,73,.45); }
.version.active { border-color: var(--gold-500); background: rgba(233,185,73,.12); }
.version .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(143,149,198,.4); flex: none; }
.version.active .dot { background: var(--gold-500); box-shadow: 0 0 10px rgba(233,185,73,.7); }
.version.is-processing { cursor: progress; }
.version.is-processing .vname, .version.is-processing .vmeta { opacity: .6; }
.version.is-processing .dot { background: var(--gold-600); animation: pulse 1.8s ease-in-out infinite; }
.version.is-failed { cursor: not-allowed; border-color: rgba(217,91,63,.45); }
.version.is-failed .dot { background: var(--coral); }
.version.is-failed .vmeta { color: #ffc9ba; }
.version .vname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.version .vmeta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.version .preloaded { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.version-actions { display: flex; gap: 6px; }
.version-actions .icon-btn { width: 28px; height: 28px; }
.version-actions .icon-btn svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------------- modals */

.modal-backdrop { position: fixed; inset: 0; background: rgba(4,6,22,.72); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; z-index: 40; }
.modal { width: min(480px, 100%); }
.modal h2 { font-size: 22px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dropzone { border: 1px dashed rgba(233,185,73,.4); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer;
  background: rgba(11,14,40,.45); color: var(--muted); transition: all .15s ease; }
.dropzone:hover, .dropzone.hot { border-color: var(--gold-500); color: var(--cream); background: rgba(233,185,73,.08); }
.dropzone strong { display: block; color: var(--cream); margin-bottom: 4px; }
.progress { height: 8px; border-radius: 999px; background: rgba(11,14,40,.8); overflow: hidden; margin-top: 14px; border: 1px solid rgba(143,149,198,.25); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--gold-500)); transition: width .2s ease; }
.progress-label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ----------------------------------------------------------------- toasts */

.toast-stack { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; }
.toast { padding: 11px 16px; border-radius: 12px; background: rgba(18,23,65,.96); border: 1px solid rgba(233,185,73,.35);
  box-shadow: var(--shadow); font-size: 14px; animation: rise .2s ease; max-width: 340px; }
.toast.bad { border-color: rgba(217,91,63,.6); color: #ffd3c7; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .track { grid-template-columns: 1fr; padding: 14px; }
  .track-sigil { display: none; }
  .track-times { display: none; }
  .brand-text { font-size: 17px; }
  .topnav { gap: 6px; }
  .track-top { align-items: flex-start; }
  .play-btn { width: 40px; height: 40px; }
  .composer .at-time { display: none; }
  .page-head, .collection-head { gap: 12px; }
  .quality-option { padding: 6px 12px; font-size: 12.5px; }
  .version { flex-wrap: wrap; }
  .version .vmeta { font-size: 11px; }
}
