/* === tts/tts-float.css === */

.tts-fab-wrap {
  position: fixed;
  top: 5px; 
  right: 10px; 
  bottom: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.tts-bubble {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);

  /* Анімація появи */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.tts-bubble.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tts-bubble-label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  margin-bottom: 5px;
}

.tts-progress {
  height: 3px;
  background: #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.tts-progress-fill {
  height: 100%;
  width: 0;
  background: #1D9E75;
  border-radius: 2px;
  transition: width 0.5s linear;
}

.tts-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1D9E75;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(29,158,117,0.35);
  transition: background 0.2s, transform 0.15s;
}

.tts-fab:hover {
  background: #0F6E56;
  transform: scale(1.06);
}

.tts-fab.tts-playing { background: #f59e0b; }
.tts-fab.tts-playing:hover { background: #d97706; }

.tts-fab:focus-visible {
  outline: 3px solid #1D9E75;
  outline-offset: 3px;
}

.tts-spd {
  font-size: 11px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 3px 6px;
  cursor: pointer;
  background: #fff;
}

.tts-stop {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 26px; height: 26px;
  cursor: pointer;
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tts-stop:hover { background: #f0f0f0; }

/* Ховаємо на мобільних, якщо треба */
@media (max-width: 480px) {
  .tts-fab-wrap { bottom: 16px; right: 16px; }
  .tts-bubble { min-width: 170px; font-size: 11px; }
}