/* =========================================================
   MUSIC CREATOR – OBJETIVO SPACE
   CSS ESPECÍFICO (não interfere no estilo.css)
   ========================================================= */

/* Escopo geral da página */
body {
  background: radial-gradient(circle at top, #2a2a40, #0f0f1a);
  color: #ffffff;
}

/* Cabeçalho */
header {
  text-align: center;
  padding: 40px 20px 20px;
}

header h1 {
  color: #ffd700;
  font-size: 2.2em;
  margin-bottom: 10px;
}

header h2 {
  color: #cccccc;
  font-weight: normal;
  font-size: 1.2em;
}

/* Área da letra */
.lyrics-area {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
  background: #1f1f2e;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lyrics-area textarea {
  width: 100%;
  min-height: 160px;
  background: #12121c;
  color: #ffffff;
  border: none;
  font-size: 1em;
  resize: vertical;
  outline: none;
  padding: 15px;
  border-radius: 8px;
  text-align: left;
}

/* Container dos ritmos */
.rhythms-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px;
  margin: 10px auto 120px;
  scroll-behavior: smooth;
}

/* Card de ritmo */
.rhythm-card {
  min-width: 160px;
  background: linear-gradient(135deg, #3a3a55, #1b1b2d);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.rhythm-card strong {
  display: block;
  font-size: 1.1em;
  margin-bottom: 6px;
  color: #ffffff;
}

.rhythm-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 18px rgba(255,215,0,0.6);
}

/* Ritmo selecionado */
.rhythm-card.active {
  background: linear-gradient(135deg, #ffd700, #ff9800);
  color: #1a1a1a;
  box-shadow: 0 0 28px rgba(255,215,0,0.9);
  transform: scale(1.08);
}

.rhythm-card.active strong {
  color: #1a1a1a;
}

/* Player fixo */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #1f1f2e, #2b2b45);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.8);
  z-index: 1000;
}

/* Botão play */
.player button {
  background: #ffd700;
  color: #1a1a1a;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.player button:hover {
  background: #ffea61;
}

/* Barra de progresso */
.progress {
  flex: 1;
  height: 6px;
  background: #444;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd700, #ff9800);
  transition: width 0.2s linear;
}

/* Nome do ritmo */
#currentRhythm {
  font-size: 0.95em;
  color: #ffffff;
  white-space: nowrap;
}

/* Responsivo */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.7em;
  }

  .rhythm-card {
    min-width: 140px;
  }

  .player {
    flex-wrap: wrap;
  }
}
