/* Web Rádio Mix — estilos complementares ao Tailwind (animações e detalhes finos) */

@font-face {
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

.fonte-display {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
}

/* ---------- Equalizador animado (elemento assinatura da marca) ---------- */
.equalizador {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.equalizador span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  animation: pulso-eq 1s ease-in-out infinite;
  transform-origin: bottom;
}

.equalizador span:nth-child(1) { animation-delay: -0.9s; }
.equalizador span:nth-child(2) { animation-delay: -0.6s; }
.equalizador span:nth-child(3) { animation-delay: -0.3s; }
.equalizador span:nth-child(4) { animation-delay: -0.15s; }

.equalizador.parado span {
  animation-play-state: paused;
  height: 4px !important;
}

@keyframes pulso-eq {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* ---------- Ondas de ao-vivo ao redor do botão de play ---------- */
.onda-ao-vivo {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid currentColor;
  opacity: 0;
}

.tocando .onda-ao-vivo {
  animation: onda 2.2s ease-out infinite;
}

.tocando .onda-ao-vivo:nth-child(2) { animation-delay: 0.7s; }
.tocando .onda-ao-vivo:nth-child(3) { animation-delay: 1.4s; }

@keyframes onda {
  0% { transform: scale(0.8); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Ponto pulsante "AO VIVO" ---------- */
.ponto-vivo {
  position: relative;
}

.ponto-vivo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.35;
  animation: pulso-ponto 1.6s ease-in-out infinite;
}

@keyframes pulso-ponto {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Blobs suaves de fundo do herói ---------- */
.blob {
  filter: blur(60px);
  opacity: 0.55;
}

/* Scrollbar fina e discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C9C2E8; border-radius: 9999px; }

/* Rótulo "publicidade" discreto acima dos espaços de anúncio */
.rotulo-anuncio {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

@media (prefers-reduced-motion: reduce) {
  .equalizador span,
  .onda-ao-vivo,
  .ponto-vivo::before {
    animation: none !important;
  }
}
