body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #0a0015, #020202 80%);
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.app {
  max-width: 750px;
  margin: 30px auto;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(140, 0, 255, 0.3);
}

/* 🔝 TOPO */
.topbar {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #b38cff;
  text-shadow: 0 0 12px #6100ff;
}

/* 🕹️ Modo atual */
#modoAtual {
  text-align: center;
  font-weight: 600;
  color: #f5dfff;
  margin-bottom: 15px;
  padding: 6px 12px;
  display: inline-block;
  border-radius: 8px;
  background: rgba(120, 0, 255, 0.2);
  box-shadow: 0 0 10px rgba(120, 0, 255, 0.3);
}

/* 🧭 Botões de modo manual */
.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.controls button {
  background: rgba(120, 0, 255, 0.15);
  border: 1px solid rgba(200, 150, 255, 0.3);
  color: #f4eaff;
  padding: 8px 14px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(150, 0, 255, 0.3);
}

.controls button:hover {
  background: rgba(160, 60, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(160, 60, 255, 0.6);
}

/* 🎧 Música atual */
.cover {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 0 25px rgba(150, 0, 255, 0.6);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 25px rgba(140, 0, 255, 0.4); }
  50% { box-shadow: 0 0 45px rgba(140, 0, 255, 0.8); }
}

.now, .next {
  text-align: center;
  margin-bottom: 25px;
}

audio {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

/* 🎚️ Equalizer */
#equalizer {
  width: 100%;
  height: 120px;
  display: block;
  border-radius: 10px;
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(40,0,80,0.9), rgba(10,0,20,0.9));
  box-shadow: 0 0 20px rgba(180,0,255,0.3);
}

/* 🎵 Letras */
.lyrics pre {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px;
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #ddd;
}

/* 🧠 Biografia */
.artist-info {
  margin-top: 20px;
}

/* 📈 Histórico e Top10 */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card {
  flex: 1;
  min-width: 260px;
  background: rgba(30, 10, 50, 0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 12px rgba(150,0,255,0.2);
}

.card h4 {
  margin: 0 0 10px;
  color: #cda8ff;
  text-shadow: 0 0 8px #6100ff;
}

/* 📜 Listas */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.list li:last-child {
  border-bottom: none;
}

.list img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(140,0,255,0.4);
}

.list .info {
  flex: 1;
}

.list .info .title {
  font-weight: 600;
  font-size: 0.95em;
  margin-bottom: 2px;
  color: #fff;
}

.list .info .artist {
  font-size: 0.85em;
  color: #aaa;
}

/* 🎬 YouTube Card */
.youtube iframe {
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(140, 0, 255, 0.3);
  width: 100%;
}

@media (max-width: 640px) {
  .stats { flex-direction: column; }
  .cover { width: 150px; height: 150px; }
  .app { padding: 15px; }
}
/* 🔔 Alerta animado para mudanças de modo */
.mode-alert {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: linear-gradient(135deg, rgba(120, 0, 255, 0.85), rgba(80, 0, 150, 0.85));
  color: #fff;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 25px rgba(200, 0, 255, 0.5), 0 0 60px rgba(180, 0, 255, 0.2);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  backdrop-filter: blur(12px);
  text-align: center;
  font-weight: 600;
  animation: neonPulse 2.5s infinite ease-in-out;
}

.mode-alert.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* 💜 Efeito de brilho pulsante */
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(180, 0, 255, 0.6), 0 0 60px rgba(180, 0, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 45px rgba(220, 0, 255, 0.8), 0 0 80px rgba(220, 0, 255, 0.3);
  }
}
/* 🔮 Botão "Limpar Histórico" */
.btn-clear {
  background: linear-gradient(180deg, #6400ff, #3b0088);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(140, 0, 255, 0.6);
  transition: all 0.3s ease;
  font-size: 0.9em;
}
.btn-clear:hover {
  background: linear-gradient(180deg, #7a2fff, #5100b5);
  box-shadow: 0 0 20px rgba(180, 0, 255, 0.8);
  transform: scale(1.05);
}
.top-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
}
