* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Dark neon club background */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #020617, #020617 40%, #020617);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* Colorful blurred blobs behind everything */
.bg-glow {
  position: fixed;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.16) 0, transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(244, 63, 94, 0.22) 0, transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(129, 140, 248, 0.25) 0, transparent 55%);
  filter: blur(4px);
  z-index: 0;
}

.app {
  max-width: 430px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Header */

.app-header {
  text-align: center;
  margin-bottom: 18px;
}

.app-header h1 {
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
}

.app-header h1 span {
  background: linear-gradient(120deg, #38bdf8, #a855f7, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-header p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.author {
  font-weight: 600;
  color: #38bdf8;
}

/* Card */

.glass-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 22px;
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(24px);
  padding: 22px 22px 18px;
}

/* Player layout */

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cover: glowing vinyl disc */

.cover {
  margin-bottom: 18px;
}

.cover-art {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #38bdf8, #a855f7, #f97316, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.7),
    0 0 35px rgba(168, 85, 247, 0.5);
  overflow: hidden;
}

.cover-art::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #020617, #020617 60%, #020617);
}

.cover-art::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #020617;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.6);
}

.cover-art span {
  position: relative;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e5e7eb;
}

/* Song info */

.info {
  text-align: center;
  margin-bottom: 14px;
}

#song-title {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: #f9fafb;
}

#song-artist {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* Time + progress */

.time-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin-bottom: 12px;
}

#current-time,
#duration {
  font-size: 0.8rem;
  width: 42px;
  text-align: center;
  color: #9ca3af;
}

#progress {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.65);
  outline: none;
}

/* progress thumb */
#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f97316;
  border: 2px solid #020617;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
}

#progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f97316;
  border: 2px solid #020617;
  cursor: pointer;
}

/* Controls */

.controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.btn {
  border: none;
  padding: 10px 16px;
  font-size: 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(30, 64, 175, 0.5);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
}

.play {
  padding-inline: 26px;
  font-size: 1.6rem;
  background: radial-gradient(circle at top, #22c55e, #16a34a);
  box-shadow:
    0 12px 24px rgba(34, 197, 94, 0.55),
    0 0 0 1px rgba(22, 163, 74, 0.7);
}

/* Volume */

.volume-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin-bottom: 10px;
}

.vol-label {
  font-size: 1.1rem;
}

#volume {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.9);
  outline: none;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #020617;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
}

#volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #020617;
  cursor: pointer;
}

/* Visualizer bars */

.visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin: 6px 0 8px;
  height: 22px;
}

.visualizer span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to top, #0f172a, #38bdf8);
  opacity: 0.9;
  transform-origin: bottom;
  animation: bounce 1s ease-in-out infinite;
}

/* staggered delays for each bar */
.visualizer span:nth-child(1) { animation-delay: 0s; }
.visualizer span:nth-child(2) { animation-delay: 0.1s; }
.visualizer span:nth-child(3) { animation-delay: 0.2s; }
.visualizer span:nth-child(4) { animation-delay: 0.3s; }
.visualizer span:nth-child(5) { animation-delay: 0.4s; }
.visualizer span:nth-child(6) { animation-delay: 0.5s; }
.visualizer span:nth-child(7) { animation-delay: 0.6s; }
.visualizer span:nth-child(8) { animation-delay: 0.7s; }
.visualizer span:nth-child(9) { animation-delay: 0.8s; }
.visualizer span:nth-child(10) { animation-delay: 0.9s; }

@keyframes bounce {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(1); }
}

.hint {
  font-size: 0.75rem;
  text-align: center;
  color: #9ca3af;
  margin-top: 4px;
}

/* While playing: spin disc a bit faster + brighten */
.player.playing .cover-art {
  animation: spin 7s linear infinite;
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.9),
    0 0 40px rgba(168, 85, 247, 0.8);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Responsive */

@media (max-width: 480px) {
  .app-header h1 {
    font-size: 1.45rem;
  }
}
