.youtube-audio-player {
  width: 100%;
  background: #6A0DAD;
  background: linear-gradient(45deg, rgba(106, 13, 173, 1) 27%, rgba(0, 0, 0, 1) 71%);
  padding: 20px;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  border-radius: 12px;
}

.youtube-audio-player .controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.youtube-audio-player .play-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.youtube-audio-player .play-toggle img {
  width: 36px;
  height: 36px;
}

.youtube-audio-player .status {
  font-size: 16px;
  font-weight: bold;
  margin-left: auto;
  text-transform: uppercase;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
}

.youtube-audio-player .status.playing {
  background: linear-gradient(270deg, red, orange, yellow, green, cyan, blue, violet);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowColor 5s ease infinite, waveText 1.5s ease-in-out infinite;
}

@keyframes glowColor {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes waveText {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.bars {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  height: 20px;
  gap: 4px;
}

.bar {
  width: 4px;
  background-color: white;
  animation: bounce 1s infinite ease-in-out;
  border-radius: 2px;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

.progress-container {
  margin-top: 10px;
}

input[type=range] {
  width: 100%;
  appearance: none;
  height: 6px;
  background: #ffffff; /* Fondo blanco para la pista */
  border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #fc1607; /* Bolita roja */
  cursor: pointer;
  margin-top: -4px;
  box-shadow: 0 0 10px rgba(252, 22, 7, 0.6);
  transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.time-display {
  font-size: 12px;
  color: #eee;
  text-align: right;
  margin-top: 4px;
}
