:root {
  --bg-1: #fff5fa;
  --bg-2: #fde7f0;
  --bg-3: #f3e7ff;
  --card: rgba(255, 255, 255, 0.82);
  --ink: #4a2b3a;
  --muted: #9b7186;
  --accent: #e5549a;
  --accent-soft: #f9a8d4;
  --ring: rgba(229, 84, 154, 0.25);
  --shadow: 0 20px 55px rgba(139, 47, 99, 0.18);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 12% 18%, var(--bg-1), transparent 40%),
              radial-gradient(circle at 85% 10%, var(--bg-3), transparent 44%),
              linear-gradient(145deg, var(--bg-2), #fff8fc);
  color: var(--ink);
  padding: 30px 16px 48px;
}

.shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero { text-align: center; margin: 10px 0 24px; }

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 9vw, 74px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.heart { color: var(--accent); margin-left: 8px; animation: pulse 1.6s ease-in-out infinite; display: inline-block; }

.tagline { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

.now-playing-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.art { flex: 0 0 auto; }

.vinyl {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #2b1c22 0 2px, #120c0e 2px 7px);
  box-shadow: inset 0 0 0 12px #3a2730, 0 10px 28px rgba(0,0,0,0.28);
  position: relative;
  display: grid;
  place-items: center;
  transition: box-shadow 0.3s ease;
}

.vinyl span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd7ea, #e5549a 62%, #b92e75);
  box-shadow: 0 0 0 5px #fff, 0 0 22px var(--accent);
}

.vinyl.spin { animation: spin 4s linear infinite; }

.meta { min-width: 0; }

.meta .label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.meta h2 {
  margin: 4px 0;
  font-size: clamp(20px, 4.5vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.meta p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.player {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 18px 18px 16px;
  margin-bottom: 18px;
}

.time-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 14px;
}

.controls button {
  border: none;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.controls button:hover { transform: translateY(-2px); }

.controls button:active { transform: translateY(1px); }

.round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(139, 47, 99, 0.14);
}

.round.on { background: var(--accent); color: #fff; }

.play {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 27px;
  color: #fff;
  background: linear-gradient(135deg, #ff77bb, var(--accent));
  box-shadow: 0 12px 26px rgba(229, 84, 154, 0.4);
}

.volume-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 380px;
  margin: 0 auto;
}

.playlist { margin-bottom: 30px; }

.playlist h2 {
  margin: 0 4px 12px;
  font-size: 20px;
}

.playlist ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.playlist li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(139, 47, 99, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.playlist li:hover { transform: translateY(-1px); }

.playlist li.active {
  background: linear-gradient(135deg, rgba(255, 221, 238, 0.9), rgba(236, 210, 255, 0.85));
  border-color: var(--accent-soft);
}

.list-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--accent);
  background: #fff;
  box-shadow: 0 5px 14px rgba(139, 47, 99, 0.14);
}

.song-text { min-width: 0; }

.song-text strong { display: block; font-size: 16px; overflow-wrap: anywhere; }

.song-text small { color: var(--muted); font-size: 12px; }

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.equalizer i {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
  animation: none;
}

.equalizer:not(.paused) i:nth-child(1) { animation: bounce 0.6s ease-in-out infinite; }
.equalizer:not(.paused) i:nth-child(2) { animation: bounce 0.65s 0.12s ease-in-out infinite; }
.equalizer:not(.paused) i:nth-child(3) { animation: bounce 0.55s 0.24s ease-in-out infinite; }
.equalizer.paused i { height: 5px; opacity: 0.45; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes bounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@media (max-width: 520px) {
  body { padding: 20px 12px 40px; }
  .now-playing-card { padding: 18px; gap: 16px; }
  .vinyl { width: 84px; height: 84px; box-shadow: inset 0 0 0 10px #3a2730, 0 8px 22px rgba(0,0,0,0.26); }
  .vinyl span { width: 31px; height: 31px; }
  .controls { gap: 10px; }
  .round { width: 42px; height: 42px; font-size: 17px; }
  .play { width: 62px; height: 62px; font-size: 24px; }
}
