/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0b1c2d 0%, #02040a 70%);
  color: #e6ecf3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  padding: 40px;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

.album-title {
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #8aa4c8;
  opacity: 0.85;
}


/* ===== TITLE ===== */
.wave {
  display: inline-flex;
  white-space: nowrap;
  font-size: clamp(1.8rem, 5vw, 3rem);
  gap: 0.25em;
  margin-bottom: 0.75rem;
}

.wave span {
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
}

/* stagger */
.wave span:nth-child(1)  { animation-delay: 0s; }
.wave span:nth-child(2)  { animation-delay: 0.05s; }
.wave span:nth-child(3)  { animation-delay: 0.1s; }
.wave span:nth-child(4)  { animation-delay: 0.15s; }
.wave span:nth-child(5)  { animation-delay: 0.2s; }
.wave span:nth-child(6)  { animation-delay: 0.25s; }
.wave span:nth-child(7)  { animation-delay: 0.3s; }
.wave span:nth-child(8)  { animation-delay: 0.35s; }
.wave span:nth-child(9)  { animation-delay: 0.4s; }
.wave span:nth-child(10) { animation-delay: 0.45s; }
.wave span:nth-child(11) { animation-delay: 0.5s; }
.wave span:nth-child(12) { animation-delay: 0.55s; }
.wave span:nth-child(13) { animation-delay: 0.6s; }
.wave span:nth-child(14) { animation-delay: 0.65s; }

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== TEXT ===== */
.subtitle {
  color: #8aa4c8;
  margin-bottom: 1.75rem;
}

.about {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== TRACKLIST ===== */
.tracklist {
  margin: 24px 0 28px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  line-height: 2;
  color: #8aa4c8;
}

.track {
  cursor: pointer;
  opacity: 0.45;
  user-select: none;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.track:hover {
  opacity: 0.8;
}

.track.active {
  opacity: 1;
  color: #e6ecf3;
  text-shadow:
    0 0 6px rgba(138,164,200,0.35),
    0 0 12px rgba(138,164,200,0.15);
}

/* ===== CONTROLS ===== */
#musicBtn {
  margin-top: 20px;
  background: transparent;
  color: #8aa4c8;
  border: 1px solid #2e4a70;
  padding: 12px 26px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#musicBtn:hover {
  background: rgba(138, 164, 200, 0.1);
  color: #ffffff;
}

.volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #8aa4c8;
}

input[type="range"] {
  width: 120px;
}

/* ===== FADE IN ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .wave span {
    animation: none;
  }

  .wave {
    text-shadow:
      0 0 8px rgba(138,164,200,0.35),
      0 0 16px rgba(138,164,200,0.15);
  }
}
