/* === Fundo animado estilo arco-íris suave === */
@keyframes rainbowGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  background: linear-gradient(
    270deg,
    #f9844a,
    #f9c74f,
    #90be6d,
    #43aa8b,
    #577590,
    #f9844a
  );
  background-size: 1200% 1200%;
  animation: rainbowGradient 30s ease infinite;
  color: #333;
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* === Header com sombra colorida + glow pulsante === */
header {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 32px;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  z-index: 10;
  box-sizing: border-box;
}

/* Targa branca atrás do header */
header::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; left:0; right:0; bottom:0 */
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.1);
  z-index: -1;
}

/* Título do site */
header h1 {
  font-weight: 900;
  font-size: 2.8rem;
  color: #f9844a;
  text-shadow:
    0 0 8px #f9c74f,
    0 0 15px #f9844a,
    0 0 25px #f9c74f;
  margin: 0;
  white-space: nowrap;
  transition: transform 0.3s ease;
  z-index: 11;
}
header h1:hover {
  transform: scale(1.1);
}

/* Contador Axé destacado */
.axe-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 2.4rem;
  color: #fff;
  background: linear-gradient(45deg, #f9844a, #f9c74f);
  padding: 12px 24px;
  border-radius: 40px;
  box-shadow:
    0 0 12px #f9c74f,
    0 0 25px #f9844a,
    0 0 40px #f9c74f;
  user-select: none;
  cursor: default;
  transition: box-shadow 0.5s ease;
  z-index: 11;
}

/* Ícone Axé */
.axe-display .icon-axe {
  font-size: 2.8rem;
  text-shadow:
    0 0 10px #f9c74f,
    0 0 18px #f9844a;
  user-select: none;
}

/* Animação pulsante */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 12px #f9c74f,
      0 0 25px #f9844a,
      0 0 40px #f9c74f;
  }
  50% {
    box-shadow:
      0 0 25px #f9c74f,
      0 0 45px #f9844a,
      0 0 70px #f9c74f;
  }
}

.axe-display {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Responsivo */
@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 16px;
    padding: 8px 12px;
  }

  header h1 {
    font-size: 2rem;
  }

  .axe-display {
    font-size: 1.8rem;
    padding: 8px 18px;
  }

  .axe-display .icon-axe {
    font-size: 2.2rem;
  }
}
/* Pequena animação pulsante no Axé */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 12px #f9c74f,
      0 0 25px #f9844a,
      0 0 40px #f9c74f;
  }
  50% {
    box-shadow:
      0 0 25px #f9c74f,
      0 0 45px #f9844a,
      0 0 70px #f9c74f;
  }
}

.axe-display {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Responsivo */
@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 16px;
    padding: 8px 12px;
  }

  header h1 {
    font-size: 2rem;
  }

  .axe-display {
    font-size: 1.8rem;
    padding: 8px 18px;
  }

  .axe-display .icon-axe {
    font-size: 2.2rem;
  }
}


@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 8px #f9c74f,
      0 0 15px #f9844a,
      0 0 20px #f9c74f;
  }
  50% {
    text-shadow:
      0 0 20px #f9c74f,
      0 0 35px #f9844a,
      0 0 45px #f9c74f;
  }
}

/* === Axé display no header === */
.axe-display {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 0 6px #f9c74f,
    0 0 10px #f9844a;
}

/* === Botão voltar fixo e estilizado === */
.btn-voltar {
  position: fixed;
  top: 15px;
  left: 15px;
  background-color: #f9844a;
  border: none;
  color: white;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.35);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1000;
  user-select: none;
}
.btn-voltar:hover {
  background-color: #f9c74f;
  color: #333;
  transform: scale(1.05);
}

/* === Container dos álbuns com grid 3 colunas responsivo === */
.albuns-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 120px; /* Espaço para o player fixo */
  padding: 0 12px;
}

/* === Albuns estilizados === */
.album {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.album:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.25);
}

.album-capa {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 0 12px #f9844a;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.album:hover .album-capa {
  transform: scale(1.05);
}

.album h2 {
  font-size: 1.4rem;
  color: #f9844a;
  margin-bottom: 16px;
  text-align: center;
  text-shadow: 1px 1px 3px #f9c74f;
}

/* === Faixas === */
.faixa {
  width: 100%;
  background: #fff9e6;
  margin-bottom: 8px;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 1px 1px 6px rgb(0 0 0 / 0.12);
  transition: background-color 0.3s ease;
}
.faixa:hover {
  background-color: #f9c74f;
}

.faixa span {
  font-size: 0.95rem;
  color: #333;
  user-select: none;
}

.btn-musica {
  background: #f9844a;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.4s ease, transform 0.15s ease;
  user-select: none;
  font-size: 0.9rem;
}
.btn-musica:hover {
  background: #f9c74f;
  color: #333;
  transform: scale(1.1);
}

/* === Player fixo compacto no rodapé === */
.player-footer {
  width: 100%;
  max-width: 480px; /* menor largura para mobile */
  background: #f9c74f;
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow: 0 5px 18px rgb(0 0 0 / 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: background-color 0.4s ease;
}

/* Player capa menor */
.player-capa {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 15px #f9844a;
  transition: transform 0.3s ease;
}

/* Player info texto */
.player-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  user-select: none;
}

.player-titulo {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-album {
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

/* Botões menores */
.player-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease, transform 0.15s ease;
  user-select: none;
  padding: 0 4px;
}
.player-btn:hover {
  color: #f9844a;
  transform: scale(1.2);
}

/* Barra de progresso */
.progress-bar {
  width: 110px;
  cursor: pointer;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 8px;
  background: #ddd;
  outline: none;
  user-select: none;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #f9844a;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  margin-top: -4px;
}

.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #f9844a;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

/* Responsivo para mobile */
@media screen and (max-width: 600px) {
  .albuns-container {
    grid-template-columns: 1fr;
    margin-bottom: 140px;
  }

  .player-footer {
    max-width: 360px;
    padding: 8px 10px;
  }

  .player-capa {
    width: 50px;
    height: 50px;
  }

  .player-btn {
    font-size: 1.5rem;
    padding: 0 2px;
  }

  .progress-bar {
    width: 90px;
  }

  header {
    font-size: 1.5rem;
    justify-content: center;
  }

  .btn-voltar {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}
