/* 508 Ministry & Alongside+ Universal Autocorrect + Desktop Voice-to-Text */
.vtt-wrap-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 6px;
  min-height: 32px;
  flex-wrap: wrap;
}

.vtt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 75, 0.55);
  background: linear-gradient(180deg, #1b3154 0%, #0f1f38 100%);
  color: #FBF7EE;
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 16, 32, 0.25);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.vtt-btn:hover {
  border-color: #F0CD78;
  background: linear-gradient(180deg, #24406d 0%, #142746 100%);
  transform: translateY(-1px);
}

.vtt-btn:focus-visible {
  outline: 2px solid #F0CD78;
  outline-offset: 2px;
}

.vtt-btn.is-listening {
  border-color: #ff6b6b;
  background: linear-gradient(180deg, #d92d20 0%, #9e1c14 100%);
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.65);
  animation: vttPulse 1.4s ease-in-out infinite;
}

@keyframes vttPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(217, 45, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); }
}

.vtt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #14263f;
  background: #FFF6DC;
  border: 1px solid rgba(212, 168, 75, 0.55);
}

.vtt-status.is-live {
  color: #ffffff;
  background: #b42318;
  border-color: #f97066;
}

.vtt-status[hidden] {
  display: none !important;
}

/* Mobile already has built-in keyboard mic voice-to-text; hide extra bar on <= 900px */
@media (max-width: 900px) {
  .vtt-wrap-bar {
    display: none !important;
  }
}
