/* TTS Player — installed by narro hugo install */

.tts-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  background: var(--surface-subtle, #f8f9fa);
  border: 1px solid var(--border-color, #e2e8f0);
}

.tts-play {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: inherit;
}

.tts-play:hover {
  background: var(--border-color, #e2e8f0);
}

.tts-time {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* Active sentence highlight */
.tts-active {
  background-color: rgba(37, 99, 235, 0.08);
  border-left: 3px solid rgba(37, 99, 235, 0.5);
  padding-left: 0.75rem;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

/* Dark mode */
[data-theme="dark"] .tts-active {
  background-color: rgba(96, 165, 250, 0.08);
  border-left-color: rgba(96, 165, 250, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .tts-active {
    transition: none;
  }
}
