:root {
  --bg: #0b0b0d;
  --panel: #16161b;
  --line: #2a2a33;
  --text: #f1f1f4;
  --dim: #9a9aa8;
  --accent: #b8ff3c;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 24px); }
header h1 { font-size: 20px; letter-spacing: .08em; margin: 14px 0 10px; font-weight: 900; }
header h1 span { display: block; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: .02em; }

#now { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
#cover { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 12px;
  display: block; margin: 0 auto 12px; background: #000; }
#title { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#artist { color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#seek { width: 100%; margin: 14px 0 2px; accent-color: var(--accent); }
#times { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
#controls { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
#controls button { background: none; border: 0; color: var(--text); font-size: 28px; width: 56px; height: 56px; border-radius: 50%; }
#controls #play { background: var(--accent); color: #000; font-size: 26px; width: 68px; height: 68px; }
#controls #shuffle, #controls #repeat { font-size: 22px; color: var(--dim); }
#controls .on { color: var(--accent) !important; }

#actions { display: flex; gap: 10px; margin: 16px 0 6px; }
.btn { display: inline-block; background: var(--accent); color: #000; border: 0; border-radius: 12px;
  padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--dim); border: 1px solid var(--line); font-weight: 500; }
.btn.small { padding: 6px 10px; font-size: 13px; }
#status { color: var(--dim); font-size: 13px; min-height: 18px; }

#list { list-style: none; padding: 0; margin: 8px 0 20px; }
#list li { display: flex; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
#list li img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #000; flex: none; }
#list li .t { min-width: 0; }
#list li .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#list li .t .a { color: var(--dim); font-size: 13px; }
#list li.cur .t div:first-child { color: var(--accent); font-weight: 700; }

#logBox { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
#logBox summary { font-weight: 700; cursor: pointer; }
.hint { color: var(--dim); font-size: 13px; }
#log { font-size: 12px; white-space: pre-wrap; color: var(--dim); max-height: 50vh; overflow: auto; }
