/* ==========================================================================
   LinguaReel Studio — Frame.io v4 Render Profiles & Step 3 Inspector Controls
   ========================================================================== */

.render-profile-field {
  display: flex;
  flex-direction: column;
}

.render-profile-summary {
  display: grid;
  gap: 4px;
  min-height: 76px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #F59E0B;
  border-radius: 8px;
  background: #16161C;
  color: #A1A1AA;
  line-height: 1.45;
}

.render-profile-summary strong {
  color: #F59E0B;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.render-profile-summary span {
  color: #F4F4F6;
  font-size: 11.5px;
  font-weight: 600;
}

.render-profile-summary small {
  color: #A1A1AA;
  font-size: 10.5px;
}

.render-profile-field select:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .render-profile-summary {
    min-height: auto;
  }
}

/* Step 3 Inspector Fieldset — Frame.io v4 Dark Matte Surface */
.render-options,
.f4-render-fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #16161C;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.render-options legend {
  padding: 2px 10px;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.render-options label {
  display: grid;
  gap: 6px;
  margin-top: 11px;
  min-width: 0;
}

.render-options label > span {
  color: #F4F4F6;
  font-size: 11.5px;
  font-weight: 600;
}

.render-options input,
.render-options select {
  width: 100%;
  min-width: 0;
  background: #09090B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F4F4F6;
  border-radius: 7px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.render-options input:focus,
.render-options select:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
  outline: none;
}

/* Custom Feature Switch Card for Delogo (Erase Original Subtitles) */
.f4-feature-switch-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 12px 0 !important;
  padding: 12px 14px !important;
  border-radius: 9px !important;
  background: #111115 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
}

.f4-feature-switch-card:hover {
  border-color: rgba(245, 158, 11, 0.4) !important;
  background: #16161C !important;
}

.f4-feature-switch-card:has(input:checked) {
  border-color: rgba(245, 158, 11, 0.65) !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(17, 17, 21, 0.96)) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.12);
}

.f4-feature-switch-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.f4-switch-ui {
  width: 38px;
  height: 21px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.18s ease;
}

.f4-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #A1A1AA;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease;
}

.f4-feature-switch-card input:checked + .f4-switch-ui {
  background: rgba(245, 158, 11, 0.25);
  border-color: #F59E0B;
}

.f4-feature-switch-card input:checked + .f4-switch-ui .f4-switch-thumb {
  transform: translateX(17px);
  background: #FFD700;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.f4-feature-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.f4-feature-switch-copy strong {
  color: #F4F4F6;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.f4-delogo-chip {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #FFD700;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.f4-feature-switch-copy small {
  color: #A1A1AA;
  font-size: 11px;
  line-height: 1.4;
}

/* Custom Drag & Drop Logo Zone */
.f4-logo-controls-card {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #111115;
}

.f4-logo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.f4-logo-card-title {
  color: #F4F4F6;
  font-size: 11.5px;
  font-weight: 600;
}

.f4-logo-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 13px;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.82);
  transition: all 0.16s ease;
}

.f4-logo-dropzone:hover,
.f4-logo-dropzone.is-dragover {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
}

.f4-logo-dropzone.has-logo {
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.06);
}

.f4-logo-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.f4-logo-dropzone-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.f4-logo-upload-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.f4-logo-upload-icon .lucide {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.f4-logo-dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.f4-logo-dropzone-text strong {
  color: #F4F4F6;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.f4-logo-status-line {
  margin: 0 !important;
  font-family: var(--font-mono);
  font-size: 10.5px !important;
  color: #A1A1AA !important;
}

.f4-logo-dropzone-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.f4-choose-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FFD700;
  pointer-events: none;
}

.f4-remove-logo-pill {
  position: relative;
  z-index: 2;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #F4F4F6 !important;
}

.f4-remove-logo-pill:hover:not(:disabled) {
  border-color: rgba(239, 68, 68, 0.55) !important;
  background: rgba(239, 68, 68, 0.15) !important;
  color: #FCA5A5 !important;
}

.render-help,
.render-worker-notice {
  margin: 6px 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #A1A1AA;
  overflow-wrap: anywhere;
}

/* Worker Telemetry Status Box */
.f4-worker-telemetry-box {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 3px solid #F59E0B;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.07);
}

.f4-telemetry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  margin-top: 5px;
  flex-shrink: 0;
}

.f4-worker-telemetry-box .render-worker-notice {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #FDE68A;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
}

.render-logo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.render-logo-preview img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #09090B;
}

.render-options :is(input, select, button):focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

.render-options :disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.render-options.hidden,
[data-dubbing-only].hidden {
  display: none !important;
}

#renderThreadsInput {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  cursor: not-allowed;
  opacity: 0.88;
}

.narration-job-voices {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #F59E0B;
  border-radius: 8px;
  background: #16161C;
}

.narration-job-voices.hidden {
  display: none !important;
}

.narration-voice-field {
  display: grid;
  gap: 6px;
}

.narration-voice-field span {
  color: #F4F4F6;
  font-size: 11.5px;
  font-weight: 600;
}

.narration-voice-field select {
  width: 100%;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #09090B;
  color: #F4F4F6;
  font-size: 12px;
}

.narration-voice-field select:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

.narration-job-voices small {
  color: #A1A1AA;
  font-size: 10.5px;
  line-height: 1.45;
}

.narration-job-voices small b {
  color: #F59E0B;
  font-weight: 600;
}
