/* Music */
.music-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.vinyl-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.vinyl-shell {
  position: relative;
  width: 380px;
  height: 380px;
  cursor: pointer;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.25));
}
.vinyl-shell.spin .vinyl { animation: spin 3.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #2A2620 0%, #161310 35%, #0a0807 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vinyl-grooves {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 2px, rgba(255,255,255,0.025) 2px 3px);
}
.vinyl-grooves-2 {
  inset: 48px;
  background:
    repeating-radial-gradient(circle, transparent 0 1px, rgba(255,255,255,0.05) 1px 2px);
}
.vinyl-label {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--paper);
  text-align: center;
  gap: 4px;
  z-index: 2;
  box-shadow: inset 0 0 0 4px color-mix(in oklch, var(--accent) 60%, black 20%);
}
.label-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.label-hole {
  position: absolute;
  width: 8px; height: 8px;
  background: #0a0807;
  border-radius: 50%;
}
.vinyl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.12) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 50px;
}
.wave-bar {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.add-song {
  width: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.55) !important;
}
.add-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.add-song .btn { align-self: flex-start; margin-top: 4px; }
.add-song .btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Playlist */
.playlist {
  background: var(--paper);
  border: 1px solid rgba(31,30,26,0.07);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
  max-height: 700px;
  display: flex;
  flex-direction: column;
}
.playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31,30,26,0.08);
  margin-bottom: 12px;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.live-dot span {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 0 5px transparent; }
}

.playlist-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 540px;
  gap: 2px;
  margin: 0 -8px;
}

.song-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  padding: 12px 8px;
  align-items: center;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.song-row:hover { background: var(--bone); }
.song-row.fresh {
  background: color-mix(in oklch, var(--accent) 8%, var(--bone));
  animation: freshIn 0.5s ease;
}
@keyframes freshIn {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.song-num { font-size: 10px; color: var(--ink-mute); letter-spacing: 0.1em; }
.song-title {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.005em;
}
.song-artist {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.song-time { font-family: var(--mono); }

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(31,30,26,0.1);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.voted { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.vote-arrow { font-size: 9px; }
.vote-num { font-size: 12px; font-weight: 500; font-family: var(--mono); }
