body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background-color: #111;
  color: #FFD700;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.player-container {
  background: linear-gradient(to bottom right, #222, #111);
  border: 4px solid #C0C0C0;
  border-radius: 20px;
  padding: 0px 30px;
  margin-top: 40px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 0 15px #FFD700;
}

.cassette-player {
  background: url('images/brushed_metal_texture.png');
  background-size: cover;
  border-radius: 15px;
  padding: 20px;
  box-shadow: inset 0 0 10px #FFD700, 0 0 10px #FFD700;
  margin-top: 5px;
}

.cassette-window {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  background: linear-gradient(to bottom, #000, #222);
  border: 2px inset #C0C0C0;
  padding: 10px 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.tape {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 8px #FFD700);
  transition: transform 0.1s linear;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.controls button {
  flex: 1 0 50px;
  min-width: 48px;
  height: 48px;
  background: linear-gradient(to bottom, #5E4B8B, #2A1F3D);
  border: 2px solid #C0C0C0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px #5E4B8B;
  transition: background 0.3s, box-shadow 0.3s;
}

.controls button:hover {
  background: #FFD700;
  box-shadow: 0 0 10px #FFD700;
}

.controls button .material-icons {
  color: #FFD700;
  font-size: 24px;
}

.controls button:hover .material-icons {
  color: #111;
}

.controls input[type="range"]#seekBar {
  width: 100%;
  margin-top: 10px;
  appearance: none;
  height: 8px;
  background: #5E4B8B;
  border-radius: 5px;
  outline: none;
  box-shadow: 0 0 5px #FFD700;
  cursor: pointer;
}

.controls input[type="range"]#seekBar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 3px #FFD700;
}

.controls input[type="range"]#seekBar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 3px #FFD700;
}

.tracklist {
  max-height: 150px;
  overflow-y: auto;
  margin-top: 20px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px inset #FFD700;
  border-radius: 10px;
  scrollbar-width: thin;
}

.tracklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tracklist li {
  padding: 5px 0;
  cursor: pointer;
  color: #FFD700;
  border-bottom: 1px solid #333;
  transition: background 0.2s;
  font-weight: bold;
  text-shadow: 0 0 6px #FFD700;
}

.tracklist li:hover {
  background-color: #222;
  color: #FFF;
}

#visualizer {
  margin-top: 30px;
  width: 100%;
  height: 80px;
  background: #111;
  border: 2px solid #5E4B8B;
  border-radius: 10px;
  box-shadow: 0 0 8px #5E4B8B inset;
}

@media (max-width: 768px) {
  .cassette-window {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    padding: 10px 15px;
  }

  .tape {
    width: 80px;
    height: 80px;
  }

  .controls {
    gap: 6px;
    padding: 0 10px;
  }

  .controls button {
    flex: 1 0 18%;
    min-width: 44px;
    max-width: 56px;
    height: 44px;
  }

  .controls input[type="range"] {
    width: 100%;
  }

  .player-container {
    padding: 20px;
  }

  #visualizer {
    width: 100% !important;
    height: auto !important;
  }
}

.volume-container {
  margin-top: 15px;
  text-align: center;
}

.volume-container label {
  display: inline-block;
  font-size: 1em;
  color: #111;
  background-color: #FFD700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 6px #FFD700;
}

.volume-container input[type="range"] {
  width: 120px;
  max-width: 30%;
  height: 6px;
  appearance: none;
  background: #5E4B8B;
  border-radius: 5px;
  box-shadow: 0 0 4px #FFD700;
  cursor: pointer;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 3px #FFD700;
}

.volume-container input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 3px #FFD700;
}

.now-playing {
  position: relative;
  font-weight: bold;
  color: #FFF;
  background-color: #5E4B8B;
  border-radius: 6px;
  padding: 5px 10px;
  margin: 4px 0;
  box-shadow: 0 0 8px #FFD700;
}

.now-playing::after {
  content: '🎶 Now Playing';
  display: inline-block;
  margin-left: 10px;
  padding: 2px 6px;
  background-color: #FFD700;
  color: #111;
  font-size: 0.75em;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
  box-shadow: 0 0 3px #FFD700;
}