:root {
  --ink: #f2ede4;
  --dim: #8f877a;
  --bg: #14120f;
  --bg2: #1c1a15;
  --brass: #c9a45c;
  --line: #2c2924;
  --err: #c96c5c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, var(--bg2), var(--bg) 70%);
  color: var(--ink);
  font-family: 'Iowan Old Style', 'Georgia', serif;
  padding: 2rem 1.25rem;
}

.stage { width: 100%; max-width: 420px; text-align: center; }

.reel {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #0c0b09 0 2px, #201d18 2px 4px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  animation: spin 12s linear infinite paused;
}
.reel.spinning { animation-play-state: running; }
.groove { position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(201,164,92,0.08); }
.groove:nth-child(2) { inset: 30px; }
.groove:nth-child(3) { inset: 46px; }
.label {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--brass); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }

h1#trackTitle { font-size: 1.3rem; font-weight: 500; margin: 0 0 0.25rem; letter-spacing: 0.01em; }
.meta { color: var(--dim); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 1.25rem; }
.status { color: var(--err); font-size: 0.8rem; min-height: 1.2em; margin: 0.5rem 0; }

.start-btn {
  font-family: inherit; background: transparent; border: 1px solid var(--brass);
  color: var(--brass); padding: 0.7rem 2.2rem; border-radius: 999px;
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.start-btn:hover { background: var(--brass); color: var(--bg); }
.start-btn.hidden { display: none; }

.controls { display: flex; gap: 1.4rem; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.controls.hidden { display: none; }
.controls button {
  background: none; border: none; color: var(--ink); font-size: 1.4rem;
  cursor: pointer; opacity: 0.85; transition: opacity 0.2s, transform 0.2s;
}
.controls button:hover { opacity: 1; transform: scale(1.08); }
#playPauseBtn { font-size: 1.7rem; color: var(--brass); }
#shuffleBtn { font-size: 1.15rem; }

.tracklist {
  list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line);
  text-align: left; max-height: 260px; overflow-y: auto;
}
.tracklist li {
  padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 0.9rem; cursor: pointer; display: flex; gap: 0.6rem;
}
.tracklist li:hover { color: var(--ink); }
.tracklist li.active { color: var(--brass); }
.tracklist li .n { width: 1.4rem; text-align: right; opacity: 0.6; flex-shrink: 0; }
