:root {
  --primary: #b8f6fb;
  --secondary: #171f2b;
  --accent: #bfccd5;
  --text: #ffffff;
  --bg: #171f2b;
  --progress-bg: rgba(255, 255, 255, 0.2);
  --progress-fill: var(--primary);
  --btn-bg: var(--primary);
  --btn-text: var(--secondary);
  --btn-hover: #aeeff3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  padding: 20px;
}

.music-card {
  width: 100%;
  max-width: 400px;
  padding: 25px;
  background: linear-gradient(145deg, #1e2836, #121b25);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.song-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.album-art {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-visualization {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
}

.bar {
  width: 3px;
  background: var(--primary);
  opacity: 0.6;
  transform-origin: bottom;
  animation: pulse 1.2s infinite ease-in-out;
}

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

.bar1 { animation-delay: 0.2s; }
.bar2 { animation-delay: 0.4s; }
.bar3 { animation-delay: 0.6s; }
.bar4 { animation-delay: 0.8s; }
.bar5 { animation-delay: 1s; }

.song-title {
  flex: 1;
  min-width: 0;
}

.title {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.artist {
  font-size: 0.85rem;
  color: var(--accent);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.time {
  font-size: 0.8rem;
  color: var(--accent);
  min-width: 40px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--progress-bg);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress {
  height: 100%;
  width: 0;
  background: var(--progress-fill);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.control-btn {
  background: var(--btn-bg);
  border: none;
  color: var(--btn-text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 8px rgba(184, 246, 251, 0.3);
}

.control-btn:hover {
  background: var(--btn-hover);
  transform: scale(1.1);
}

.play-pause {
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 12px rgba(184, 246, 251, 0.4);
}

.volume-slider {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--secondary);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
}

.volume-slider.active {
  display: block;
}

.volume-track {
  width: 100px;
  height: 4px;
  background: var(--progress-bg);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.volume-fill {
  position: absolute;
  height: 100%;
  width: 70%;
  background: var(--primary);
  border-radius: 2px;
}

.volume-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 70%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.favorite .control-btn svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.favorite.active svg path {
  fill: transparent;
  stroke: white;
  stroke-width: 2;
}

@media (max-width: 480px) {
  .music-card {
      padding: 20px;
  }
  .title {
      font-size: 1rem;
  }
  .controls {
      gap: 10px;
  }
  .play-pause {
      width: 45px;
      height: 45px;
  }
  .control-btn {
      width: 36px;
      height: 36px;
  }
}