:root {
  --bg: #0f0d14;
  --panel: #1a1622;
  --panel-2: #241e30;
  --line: #2f2840;
  --text: #f3eef9;
  --muted: #a69cb8;
  --accent: #ffb020;
  --accent-ink: #1a1200;
  --ok: #4ade80;
  --bad: #f87171;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; }
a { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 10px 14px; background: var(--panel-2); }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
button:disabled { opacity: .45; cursor: default; }
button.ghost { background: transparent; border: 1px solid var(--line); }
input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); outline: none; }
input:focus { border-color: var(--accent); }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.brand { font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > input { flex: 1; }
.song { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.song + .song { border-top: 1px solid var(--line); }
.song img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; background: var(--panel-2); }
.song .info { flex: 1; min-width: 0; }
.song .title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.song .meta { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .pos { width: 26px; text-align: center; color: var(--muted); font-weight: 700; flex: none; }
.song.mine .title::after { content: " · tuya"; color: var(--accent); font-weight: 700; }
.now img { width: 120px; }
.tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.empty { color: var(--muted); padding: 6px 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); box-shadow: 0 8px 30px #0008; z-index: 10; }
.toast.ok { border-color: var(--ok); }
.toast.bad { border-color: var(--bad); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
small.muted { font-size: .85rem; }

@media (max-width: 420px) {
  .song img { width: 78px; }
  .now img { width: 96px; }
}

.stack { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.coins { background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-weight: 800; }
.card.hi { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.center { text-align: center; }
button.small { padding: 6px 12px; font-size: .9rem; color: var(--muted); }

.coin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -0.15em; margin-right: 6px;
  background: radial-gradient(circle at 35% 35%, #ffe08a, #ffb020 55%, #c27c00); box-shadow: inset 0 0 0 2px #a86a00; }
