/* Option 9 styles (moved from inline <style>) */

/* SAME as Option 7 helpers */
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:end; }
.field { display:flex; flex-direction:column; gap:6px; }
.field label { font-size: 13px; opacity: .8; }

input {
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #d1d5db;
  min-width: 180px;
}

button {
  padding:10px 12px;
  border-radius:10px;
  border:0;
  background:#111827;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

button:disabled { opacity:.45; cursor:not-allowed; }

.btn-blue  { background:#2563eb; }
.btn-green { background:#059669; }
.btn-red   { background:#dc2626; }

.two { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px){ .two { grid-template-columns: 1fr; } }

.card2 {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

video { width:100%; background:#000; border-radius: 12px; }

/* ✅ Transcript + Log box styling + word-wrap fix */
pre {
  background:#0b1020;
  color:#e5e7eb;
  padding:12px;
  border-radius:12px;
  overflow:auto;
  min-height: 180px;

  /* ✅ wrap long lines/words/URLs */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.small { font-size: 13px; opacity: .8; }

a { color:#2563eb; }

/* Caption boxes */
.captionBox {
  background:#0b1020;
  color:#e5e7eb;
  padding:12px;
  border-radius:12px;
  min-height: 90px;
  border:1px solid rgba(255,255,255,0.08);
}

.captionLine {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.captionMeta {
  font-size: 12px;
  opacity: .75;
  margin-top: 8px;
}

/* ✅ NEW: Captions header row + switch */
.captionHeader {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.mt0 { margin-top: 0; }

/* ✅ Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 999px;
  transition: .2s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: .2s;
}

.switch input:checked + .slider {
  background-color: #111827;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* small spacing helpers (so we can avoid inline styles) */
.twoTopSpace { margin-top: 14px; }
.mt8 { margin-top: 8px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.mt14 { margin-top: 14px; }

.checkboxRow {
  display:block;
  margin-top:8px;
}

/* Match dropdown styling with inputs */
.lkSelect{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #d1d5db;
  min-width: 180px;
  background:#fff;
}

/* Optional helpers (if you want to remove inline styles later) */
.rowCenter { align-items:center; }
.mb8 { margin-bottom: 8px; }
