@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #04040a;
  overflow: hidden;
  position: relative;
}

/* ── CANVAS BACKGROUND ── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* ── FLOATING PARTICLES ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: #1db954;
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1.5);
  }
}

/* ── MAIN SCENE ── */
.scene {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
}

/* ── CARD ── */
.card {
  width: 300px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow:
    0 0 80px rgba(29, 185, 84, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── TOP SECTION ── */
.card-top {
  padding: 22px 22px 0;
}

.pill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.quality-pill {
  background: rgba(29, 185, 84, 0.15);
  border: 1px solid rgba(29, 185, 84, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px;
  color: #1db954;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.menu-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 3px;
}
.menu-btn span {
  width: 14px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  display: block;
}

/* ── ALBUM ART ── */
.art-wrap {
  position: relative;
  width: 200px;
  margin: 0 auto 20px;
}

.art-glow {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(29, 185, 84, 0.35) 0%,
    transparent 65%
  );
  animation: pulse-glow 2.5s ease-in-out infinite alternate;
}
@keyframes pulse-glow {
  to {
    opacity: 0.35;
    transform: scale(1.12);
  }
}

.art-disc {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(29, 185, 84, 0.2),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.disc-spin {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 8s linear infinite paused;
}
.disc-spin.on {
  animation-play-state: running;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.disc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.r1 {
  width: 180px;
  height: 180px;
}
.r2 {
  width: 150px;
  height: 150px;
}
.r3 {
  width: 120px;
  height: 120px;
}
.r4 {
  width: 90px;
  height: 90px;
}
.r5 {
  width: 60px;
  height: 60px;
}

.disc-center {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #04040a;
  border: 3px solid #1db954;
  box-shadow: 0 0 18px rgba(29, 185, 84, 0.7);
  z-index: 2;
  position: absolute;
}

/* ── WAVEFORM ── */
.waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 24px;
  margin-bottom: 18px;
  justify-content: center;
}
.wbar {
  width: 3px;
  border-radius: 2px;
  background: #1db954;
  opacity: 0.55;
  transform-origin: bottom;
  transition: height 0.2s;
}
.wbar-1 {
  height: 4px;
}
.wbar-2 {
  height: 8px;
}
.wbar-3 {
  height: 5px;
}
.wbar-4 {
  height: 12px;
}
.wbar-5 {
  height: 6px;
}
.wbar-6 {
  height: 16px;
}
.wbar-7 {
  height: 9px;
}
.wbar-8 {
  height: 14px;
}
.wbar-9 {
  height: 7px;
}
.wbar-10 {
  height: 11px;
}
.wbar-11 {
  height: 5px;
}
.wbar-12 {
  height: 8px;
}
.wbar-13 {
  height: 4px;
}
.wbar-14 {
  height: 10px;
}
.wbar-15 {
  height: 6px;
}
.wbar.on {
  animation: wave 0.6s ease-in-out infinite alternate;
  opacity: 1;
}
@keyframes wave {
  to {
    transform: scaleY(3);
    opacity: 1;
  }
}

/* ── TRACK META ── */
.track-meta {
  text-align: center;
  margin-bottom: 18px;
}
.track-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 5px;
  text-shadow: 0 0 30px rgba(29, 185, 84, 0.5);
}
.track-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ── LIKE ROW ── */
.like-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.like-btn,
.share-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.like-btn:hover,
.share-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}
.like-btn.liked {
  background: rgba(255, 77, 109, 0.15);
  border-color: rgba(255, 77, 109, 0.45);
}
.song-number {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  font-family: monospace;
}

/* ── PROGRESS ── */
.prog-wrap {
  margin-bottom: 16px;
}
.prog-bg {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.prog-bar {
  height: 3px;
  background: linear-gradient(90deg, #1db954, #00d4ff);
  border-radius: 2px;
  width: 0%;
  position: relative;
  transition: width 1s linear;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.6);
}
.prog-bar::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  right: -5px;
  top: -4px;
  display: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.prog-bar.on::after {
  display: block;
}
.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  font-family: monospace;
}

/* ── CONTROLS ── */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.ctrl-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1db954, #00c853);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow:
    0 0 30px rgba(29, 185, 84, 0.65),
    0 4px 20px rgba(0, 0, 0, 0.5);
}
.play-btn:hover {
  transform: scale(1.07);
  box-shadow:
    0 0 40px rgba(29, 185, 84, 0.8),
    0 4px 24px rgba(0, 0, 0, 0.5);
}
.play-btn:active {
  transform: scale(0.95);
}

/* ── VOLUME ── */
.vol-section {
  padding: 0 22px 22px;
}
.vol-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.vol-track {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vol-sl {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.vol-sl::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1db954;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(29, 185, 84, 0.7);
}

/* ── MESSAGE BAR ── */
.msg-bar {
  background: linear-gradient(
    90deg,
    rgba(29, 185, 84, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
}
.msg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1db954;
  flex-shrink: 0;
  box-shadow: 0 0 8px #1db954;
}
.msg-dot.pulse {
  animation: blink 1.2s infinite;
}
.msg-dot.off {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  animation: none;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}
.msg-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  transition: opacity 0.35s;
  line-height: 1.4;
}
.msg-text.fade {
  opacity: 0;
}
