/**
 * ============================================================================
 * PLAYER DE ÁUDIO AO VIVO (Rádios da Paraíba)
 * ============================================================================
 */

/* Badge de Status com Ponto Pulsante */
.player-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  user-select: none;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.25s ease;
}

/* Status: AO VIVO */
.player-status-badge.status-live {
  background-color: rgba(229, 9, 20, 0.18);
  border: 1px solid #ef4444;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.player-status-badge.status-live .live-dot {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseLive 1.2s infinite;
}

/* Status: CONECTANDO... */
.player-status-badge.status-connecting {
  background-color: rgba(245, 158, 11, 0.18);
  border: 1px solid #f59e0b;
  color: #fef3c7;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.player-status-badge.status-connecting .live-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulseLive 0.6s infinite;
}

/* Status: PARADO */
.player-status-badge.status-paused {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  box-shadow: none;
}

.player-status-badge.status-paused .live-dot {
  background-color: #6b7280;
  box-shadow: none;
  animation: none;
}

@keyframes pulseLive {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Equalizador de Barras de Áudio */
.player-audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.player-audio-bars .bar {
  width: 3px;
  height: 4px;
  background-color: #ef4444;
  border-radius: 2px;
  transition: height 0.15s ease;
}

.player-audio-bars.active .bar {
  animation: barBounce 0.8s ease-in-out infinite alternate;
}

.player-audio-bars.active .bar:nth-child(1) { animation-delay: 0.1s; }
.player-audio-bars.active .bar:nth-child(2) { animation-delay: 0.4s; }
.player-audio-bars.active .bar:nth-child(3) { animation-delay: 0.2s; }
.player-audio-bars.active .bar:nth-child(4) { animation-delay: 0.6s; }
.player-audio-bars.active .bar:nth-child(5) { animation-delay: 0.3s; }
.player-audio-bars.active .bar:nth-child(6) { animation-delay: 0.5s; }
.player-audio-bars.active .bar:nth-child(7) { animation-delay: 0.15s; }
.player-audio-bars.active .bar:nth-child(8) { animation-delay: 0.45s; }

@keyframes barBounce {
  0% {
    height: 4px;
  }
  100% {
    height: 18px;
  }
}

/* Badge de Tempo de Reprodução (Live Timer) */
.player-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  user-select: none;
}

.player-timer-badge i,
.player-timer-badge svg {
  color: #6b7280;
  transition: color 0.2s ease;
}

.player-timer-badge.active {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.45);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.25);
}

.player-timer-badge.active i,
.player-timer-badge.active svg {
  color: #ef4444;
}

/* Botão Play/Stop Grande */
.player-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #e50914;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
}

.player-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.55);
}

.player-play-btn:active {
  transform: scale(0.95);
}

/* Custom Volume Slider */
input[type="range"].radio-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    #ef4444 0%,
    #ef4444 80%,
    #252833 80%,
    #252833 100%
  );
  border-radius: 9999px;
  height: 5px;
  outline: none;
}

input[type="range"].radio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ef4444;
  cursor: pointer;
  box-shadow: 0 0 10px #ef4444;
  transition: transform 0.15s ease;
}

input[type="range"].radio-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

input[type="range"].radio-volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ef4444;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px #ef4444;
  transition: transform 0.15s ease;
}

input[type="range"].radio-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
}

input[type="range"].radio-volume-slider::-moz-range-track {
  background: #252833;
  height: 5px;
  border-radius: 9999px;
}
