/* ─── TUNE PLAYER ───────────────────────────────────────────────
   Self-contained styles for the tune player feature (js/tunes.js).
   See CLAUDE.md "TUNE PLAYER FEATURE" for what this touches and how
   to remove it cleanly. */

.tune-play-btn {
  display: inline-block;
  margin-left: 0.6rem;
  background: var(--teal-light, #e3f6f5);
  color: var(--teal-dark, #0d7377);
  border: 1.5px solid var(--teal-border, #9fd8d6);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.tune-play-btn:hover { filter: brightness(0.95); }

.tune-player-controls {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}
.tune-player-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--gray-dark);
  font-weight: 600;
}
.tune-player-controls select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--gray-border);
  border-radius: 7px;
  background: #fff;
  min-width: 180px;
}

.tune-notation {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 0.5rem;
  min-height: 80px;
  overflow-x: auto;
}

.tune-player-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.tune-player-status {
  font-size: 0.82rem;
  color: var(--gray-mid);
}

/* ABCjs note highlight — applied while a note is actively playing.
   !important needed because ABCjs sets fill as an SVG presentation
   attribute on child paths, which would otherwise beat a class rule. */
.abcjs-note-selected * { fill: #dc2626 !important; }

/* Rhythm syllable display in the tune player */
.tune-rhythm-display {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 7px;
  padding: 0.45rem 0.7rem;
  margin-top: 0.5rem;
  font-size: 0.83rem;
  line-height: 1.5;
  word-break: break-word;
}
.tune-rhythm-label {
  font-weight: 700;
  color: #92400e;
  margin-right: 0.35rem;
}
.tune-rhythm-seq {
  font-family: monospace;
  color: #1c1917;
  letter-spacing: 0.01em;
}
.tune-rhythm-confidence {
  font-style: italic;
  color: #b45309;
  font-size: 0.76rem;
  margin-left: 0.4rem;
}
