/**
 * ============================================
 * CallBrazi — Live Subtitle Overlay (Simple & Transparent)
 * ============================================
 * Simple, clean subtitle overlay.
 *
 * - Only current sentence shown (no history, no stacking)
 * - No dark background box
 * - Clean white text with subtle shadow for readability
 * - Auto-fade after 8s of silence.
 */

.subtitle-overlay {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  max-width: 90%;
  text-align: center;
}

.subtitle-overlay.visible {
  opacity: 1;
}

/* ── Subtitle container with subtle dark backdrop ── */
.subtitle-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
}

/* ── Single sentence line ── */
.subtitle-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* ── Original text (top line, smaller & subtle) ── */
.sub-original {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ── Translated text (bottom line, bold & clear) ── */
.sub-translated {
  display: block;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .subtitle-overlay {
    bottom: 44px;
    max-width: 96%;
  }

  .sub-original {
    font-size: 0.85rem;
  }

  .sub-translated {
    font-size: 1.05rem;
  }
}
