/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #0b1d08, #000);
  color: #fff;
  text-align: center;
}

/* Blurred album art background */
#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.6);
  z-index: -1;
  transition: background-image 0.5s ease-in-out, transform 10s ease-in-out, opacity 0.4s ease;
  animation: bgZoom 30s infinite alternate;
}

@keyframes bgZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Floating snowflakes */
@keyframes snow {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}
.snowflake {
  position: fixed;
  top: -10px;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
  animation: snow 10s linear infinite;
  z-index: 3;
}

/* Player container */
.player-container {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), 0 0 50px rgba(0, 255, 0, 0.4);
}

/* Album art */
.album-art {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255,0,0,0.6);
  margin: auto;
  border: 4px solid #c41e3a;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

/* Play/Pause button */
.player-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.player-btn::before {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
}
.player-btn.pause::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 25px;
  margin-left: 0;
  border: none;
  background: #fff;
  -webkit-mask: linear-gradient(to right, black 50%, transparent 50%) left/50% 100% repeat-x;
  mask: linear-gradient(to right, black 50%, transparent 50%) left/50% 100% repeat-x;
}
.player-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255,0,0,0.7);
  box-shadow: 0 0 25px #0f0;
}

/* Song info */
.song-info {
  margin-top: 20px;
}
.song-info h2 {
  font-size: 26px;
  margin-bottom: 5px;
  font-weight: 700;
  color: #ff4444;
  transition: opacity 0.3s ease;
}
.song-info p {
  font-size: 18px;
  opacity: 0.9;
  color: #fff;
  transition: opacity 0.3s ease;
}
#djName {
  font-size: 16px;
  margin-top: 8px;
  opacity: 0.7;
  font-style: italic;
  color: gold;
}

/* Volume */
.volume-control {
  margin-top: 20px;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}
#volumeSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(90deg, #c41e3a, #0f0, gold);
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #c41e3a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
#volumeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px gold;
}
#volumeSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #c41e3a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
#volumeSlider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px gold;
}

/* Spotify button */
.spotify-btn {
  display: inline-block;
  margin-top: 15px;
  transition: transform 0.2s ease;
}
.spotify-btn img {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 0 6px #0f0) drop-shadow(0 0 12px red);
}
.spotify-btn:hover {
  transform: scale(1.2) rotate(10deg);
}
