/* ─── KODALY RHYTHM PLAYER ───────────────────────────────────────────
   Styles for the rhythmic content panel injected into tune-player
   modals by js/rhythm.js.
   Rollback: delete this file + js/rhythm.js + 2 marked lines in
   booklist.html. Nothing else in the app depends on any of this. */

.rhythm-section {
  border-top: 1px dashed #e5e7eb;
  margin-top: 0.8rem;
  padding-top: 0.65rem;
}

.rhythm-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.rhythm-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3B6D11;
  flex: 1;
}

.rhythm-play-btn,
.rhythm-stop-btn {
  padding: 0.22rem 0.7rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body, sans-serif);
}

.rhythm-play-btn  { background: #d1fae5; color: #065f46; }
.rhythm-play-btn:hover  { background: #a7f3d0; }
.rhythm-stop-btn  { background: #fee2e2; color: #991b1b; }
.rhythm-stop-btn:hover  { background: #fecaca; }

.rhythm-status {
  font-size: 0.75rem;
  color: #6b7280;
}

.rhythm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rhythm-chip {
  background: #f3f4f6;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #374151;
  font-family: var(--font-body, sans-serif);
  transition: background 0.08s, color 0.08s, border-color 0.08s;
}

.rhythm-chip--active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.rhythm-confidence {
  font-size: 0.72rem;
  color: #b45309;
  font-style: italic;
  margin-top: 0.3rem;
}

/* Shown inline in the header when the play sequence comes from tune.rhythm_syllables */
.rhythm-tune-confidence {
  font-size: 0.7rem;
  color: #6b7280;
  font-style: italic;
  margin-left: auto;
}
