.tts-controls {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tts-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tts-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.tts-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tts-status {
  font-size: 0.78rem;
  color: #475569;
}

.tts-status.ok {
  color: #0f766e;
}

.tts-status.warn {
  color: #9a3412;
}

.tts-status.error {
  color: #b91c1c;
}

.tts-word {
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.12s ease;
}

.tts-word:hover {
  background: rgba(34, 116, 194, 0.12);
}

.tts-word.tts-word-active {
  background: rgba(34, 116, 194, 0.3);
  box-shadow: inset 0 -1px 0 rgba(34, 116, 194, 0.45);
}

@media (max-width: 1024px) {
  .tts-controls {
    gap: 6px;
  }

  .tts-btn {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}
