.tts-reader {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  font-family: system-ui, sans-serif;
}
.tts-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.tts-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tts-btn {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f9fafb;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  color: #111827;
}
.tts-btn:hover { background: #f3f4f6; }
.tts-status {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}
.tts-current {
  background: #fff7ed;
  transition: background 0.2s ease;
}
.tts-word-current {
  background: #fff2b3;
  font-weight: bold;
}

/* Styly pro vyskakovací okno */
.tts-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: tts-modal-fadein 0.3s forwards;
}
.tts-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transform: scale(0.9);
  animation: tts-modal-popup 0.3s forwards;
}
.tts-modal-box h2 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 12px;
  color: #111827;
}
.tts-modal-box p {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 20px;
}
.tts-modal-close-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.tts-modal-close-btn:hover {
  background: #2563eb;
}

@keyframes tts-modal-fadein {
  to { opacity: 1; }
}
@keyframes tts-modal-popup {
  to { transform: scale(1); }
}

@media (max-width: 520px){
  .tts-buttons { width: 100%; }
  .tts-btn { flex: 1 1 calc(50% - 8px); }
}
