@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap;
  src: url("fonts/Rubik-Medium.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap;
  src: url("fonts/Rubik-Bold.woff2") format("woff2"); }

:root {
  --bg: #14111f; --card: #1f1a30; --line: #342c4d; --text: #f3f0fa; --dim: #a59fbb;
  --accent: #ffc531; --accent-ink: #241a00; --err: #ff7b7b; --ok: #7be0a3;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 500 17px/1.5 "Rubik", system-ui, sans-serif; min-height: 100vh;
  background: radial-gradient(1200px 600px at 80% -10%, #3b2a6b 0%, transparent 60%), var(--bg); }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 48px; }
a { color: var(--accent); }
h1 { font-size: 1.45rem; margin: 0 0 14px; line-height: 1.3; }
h2 { font-size: 1.1rem; color: var(--dim); margin: 28px 4px 12px; }

.top { max-width: 860px; margin: 0 auto; padding: 18px 16px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem;
  color: var(--text); text-decoration: none; }
.mic { width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 18px #ffc53180; position: relative; }
.mic::after { content: ""; position: absolute; left: 11px; top: 22px; width: 4px; height: 12px;
  background: var(--accent); border-radius: 2px; }

.card { background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; margin-top: 8px; }
.narrow { max-width: 380px; margin: 40px auto; }
.stack { display: grid; gap: 12px; }

input[type=url], input[type=password] { width: 100%; font: inherit; color: var(--text);
  background: #120f1c; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .button { font: 700 1rem "Rubik", system-ui, sans-serif; border: 0; border-radius: 12px;
  padding: 13px 22px; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; display: inline-block; text-align: center; }
button.ghost, .button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.link { background: none; color: var(--dim); padding: 6px 0; font-weight: 500; text-decoration: underline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.row > * { flex: 1 1 140px; }
.linkform .row button[type=submit] { flex: 2 1 200px; }

.hint { color: var(--dim); font-size: .92rem; margin: 12px 2px 0; }
.err { color: var(--err); margin: 10px 2px 0; }
.err.big { font-size: 1.05rem; }
.retry { margin-top: 16px; }
.name, .title { text-align: start; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.song { display: block; color: var(--text); text-decoration: none; }
.thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #2b2342, #1a1528); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.name { display: block; margin-top: 6px; font-size: .92rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { position: absolute; inset: auto 8px 8px auto; font-size: .8rem; padding: 3px 10px; border-radius: 99px;
  background: #0009; color: var(--text); }
.badge.error { color: var(--err); }
.badge.working { color: var(--accent); }

.player { width: 100%; border-radius: 14px; background: #000; display: block; aspect-ratio: 16 / 9; }
.actions { margin-top: 14px; }
.danger-zone { margin-top: 18px; }

.steps { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 8px; }
.steps li { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--dim); }
.steps li.now { color: var(--text); border-color: var(--accent); background: #ffc5310f; }
.steps li.done { color: var(--ok); }
.steps li.done::before { content: "✓ "; }
.bar { height: 10px; border-radius: 99px; background: #120f1c; border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .8s ease;
  margin-inline-start: 0; }
.status { margin: 12px 2px 0; }
