/* VARIABLES DE COLOR */
:root {
  --bg: #ffffff;
  --text: #111;
  --card: #f2f2f2;
  --primary: #1db954;
}

/* TEMA OSCURO */
body.dark {
  --bg: #121212;
  --text: #ffffff;
  --card: #1e1e1e;
  --primary: #1db954;
}

/* BASE */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  transition: 0.3s;
}

/* TOP BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

#themeToggle {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* CONTENEDOR */
.container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* BOTONES */
.sound-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 120px;
  height: 120px;
  margin: 15px;

  border: none;
  border-radius: 20px;
  cursor: pointer;

  background: var(--card);
  color: var(--text);

  transition: 0.2s;
}

/* ICONO */
.icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* HOVER */
.sound-btn:hover {
  background: var(--primary);
  color: white;
}

/* CLICK */
.sound-btn:active {
  transform: scale(0.9);
}

/* ANIMACIÓN */
.sound-btn.playing {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
