/* Reporter Studio — "Промпт" voice-follow overlay */
.ist-studio-prompter-row {
  margin-top: 0.45rem;
}
.ist-studio-prompter-row .ist-studio-tool {
  width: 100%;
  justify-content: center;
  min-height: 2.6rem;
}
.ist-studio-prompter-row .ist-studio-tool.is-active {
  background: var(--ist-accent);
  border-color: var(--ist-accent);
  color: #fff;
}

/* Floating teleprompter text, pinned over the top of the camera stage.
   Only the reporter sees it — it is DOM on top of the preview, not part
   of the recorded canvas/stream, so it never ends up in the clip. */
.ist-prompter-overlay {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 6%;
  max-height: 46%;
  z-index: 8;
  background: rgba(5, 7, 12, 0.72);
  border: 1px solid rgba(255, 198, 75, 0.25);
  border-radius: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}
.ist-prompter-overlay[hidden] { display: none; }

.ist-prompter-reading-line {
  position: sticky;
  top: 22%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 198, 75, 0.3);
}

.ist-prompter-text {
  padding: 36px 40px 36px;
  text-align: center;
  color: #f1f5f9;
  font-size: 30px;
  line-height: 1.4;
}
.ist-prompter-text .ist-pr-word { cursor: pointer; }
.ist-prompter-text .ist-pr-word.is-read { color: rgba(241, 245, 249, 0.3); }
.ist-prompter-text .ist-pr-word.is-active {
  color: #ffc64b;
  background: rgba(255, 198, 75, 0.14);
  border-radius: 4px;
  padding: 0 2px;
}
.ist-prompter-placeholder {
  color: rgba(241, 245, 249, 0.4);
  font-size: 16px;
}

.ist-prompter-gear {
  position: sticky;
  top: 8px;
  float: right;
  margin: 6px;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Settings sheet (reuses .ist-studio-media-overlay / .ist-studio-media-sheet look) */
.ist-prompter-sheet-body { padding: 0.85rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 12px; }
.ist-prompter-unsupported {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  padding: 10px;
}

#ist-prompter-script {
  width: 100%;
  min-height: 90px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.ist-prompter-field label,
#ist-prompter-controls > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ist-muted, #94a3b8);
  margin-bottom: 6px;
}

.ist-prompter-slider-row { display: flex; align-items: center; gap: 10px; }
.ist-prompter-slider-row input[type="range"] { flex: 1; }
.ist-prompter-slider-val { font-size: 0.78rem; color: var(--ist-muted, #94a3b8); width: 48px; text-align: right; }

#ist-prompter-lang {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
}

.ist-prompter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ist-prompter-row .ist-studio-tool { flex: 1; justify-content: center; }

.ist-prompter-status {
  margin: 0;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--ist-muted, #94a3b8);
}
.ist-prompter-status.is-live { color: #4caf82; border-color: #4caf82; }

@media (max-width: 480px) {
  .ist-prompter-text { font-size: 24px; padding: 28px 24px 28px; }
  .ist-prompter-overlay { top: 4%; max-height: 50%; }
}
