/* ========================================================================= */
/* ESTÚDIO DE EDIÇÃO & MONTAGEM (1/2) — PARIDADE 1:1 COM ESTÚDIO DE CANAIS DARK */
/* ========================================================================= */

.editing-studio-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #0c1017;
  color: #f1f5f9;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.editing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111824;
  border-bottom: 1px solid #1c2637;
  flex-shrink: 0;
  gap: 16px;
}

.editing-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.editing-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
}

.editing-header-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.editing-title {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.2;
}

.editing-subtitle {
  font-size: 12px;
  color: #8c9bb0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

/* Abas Centrais: Montagem / Editor */
.editing-header-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.editing-tab-btn {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.editing-tab-btn:hover {
  background: #162030;
  color: #ffffff;
  border-color: #243044;
}

.editing-tab-btn.active {
  background: #00e599;
  color: #041c12;
  font-weight: 600;
  border-color: #00e599;
  box-shadow: 0 0 14px rgba(0, 229, 153, 0.25);
}

/* Controles da Direita */
.editing-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editing-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 500;
}

.editing-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.editing-top-btn {
  background: #141c2a;
  border: 1px solid #233146;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editing-top-btn:hover {
  background: #1c273a;
  border-color: #3b4e6d;
  color: #ffffff;
}

/* ========================================================================= */
/* CORPO PRINCIPAL COM DUAS COLUNAS */
/* ========================================================================= */
.editing-main-body {
  display: grid;
  grid-template-columns: 390px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0a0e15;
}

/* Coluna Esquerda: Configurações, Prontidão e Estilo */
.editing-left-col {
  padding: 16px 18px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid #1a2436;
  background: #0c111a;
}

.editing-card {
  background: #101725;
  border: 1px solid #1d2a3d;
  border-radius: 10px;
  padding: 14px 16px;
}

.editing-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
}

/* Linhas de Prontidão */
.editing-readiness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #172233;
}

.editing-readiness-row:last-child {
  border-bottom: none;
}

.editing-readiness-label {
  font-size: 12px;
  color: #94a3b8;
}

.editing-readiness-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Itens de Checkbox do Estilo */
.editing-check-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.editing-check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.editing-check-line input[type="checkbox"] {
  accent-color: #00cc7a;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.editing-check-desc {
  font-size: 11px;
  color: #708098;
  padding-left: 23px;
  line-height: 1.35;
}

/* Linhas de Select */
.editing-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.editing-select-label {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.editing-select-input {
  background: #0d131f;
  border: 1px solid #233044;
  color: #cbd5e1;
  font-size: 11.5px;
  border-radius: 6px;
  padding: 5px 10px;
  width: 190px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.editing-select-input:focus {
  border-color: #38bdf8;
}

/* Accordion Corte a Corte */
.editing-accordion-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #172233;
}

.editing-accordion-header {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.editing-accordion-subtext {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 8px;
}

.editing-cuts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  background: #090e16;
  border: 1px solid #1a2536;
  border-radius: 6px;
  padding: 8px;
}

.editing-cut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #111824;
}

.editing-cut-item.has-trans {
  border-left: 2px solid #00e599;
}

/* Botão Atualizar Receita */
.editing-update-btn {
  width: 100%;
  margin-top: 14px;
  background: #00cc7a;
  color: #041c12;
  font-weight: 600;
  font-size: 12.5px;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 14px rgba(0, 204, 122, 0.25);
}

.editing-update-btn:hover {
  background: #00e599;
}

/* Card Receita do Vídeo */
.editing-recipe-stats-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #080d15;
  border: 1px solid #1a2538;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.editing-stat-box {
  background: #0b121e;
  border: 1px solid #192437;
  border-radius: 6px;
  padding: 8px 6px;
}

.editing-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.editing-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #708098;
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.editing-recipe-transitions-note {
  font-size: 11.5px;
  color: #8c9bb0;
  margin-top: 10px;
  line-height: 1.4;
}

/* Warning box no estilo do aviso amarelo */
.editing-warning-card {
  margin-top: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #fef3c7;
  font-size: 11px;
  line-height: 1.45;
}

.editing-warning-icon {
  font-size: 14px;
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 1px;
}

.editing-warning-text {
  flex: 1;
}

.editing-warning-text strong {
  color: #f59e0b;
}

.editing-recipe-timestamp {
  font-size: 11px;
  color: #64748b;
  margin-top: 10px;
  line-height: 1.35;
}

/* ========================================================================= */
/* COLUNA DIREITA: TIMELINE POR CENA & EXPORTAR */
/* ========================================================================= */
.editing-right-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #090d14;
}

.editing-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #1a2436;
  background: #0d121c;
  flex-shrink: 0;
}

.editing-timeline-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editing-timeline-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.editing-timeline-subtext {
  font-size: 12px;
  color: #8c9bb0;
  font-weight: 400;
}

.editing-export-btn {
  background: #00e599;
  color: #041c12;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.3);
  transition: all 0.15s ease;
}

.editing-export-btn:hover {
  background: #00ffaa;
  transform: translateY(-1px);
}

.editing-export-btn.exporting {
  background: #3b82f6;
  color: #ffffff;
  cursor: wait;
}

/* Lista Rolável de Cenas (1 a 136) */
.editing-timeline-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.editing-timeline-row {
  display: grid;
  grid-template-columns: 46px 85px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid #141c2a;
  transition: background 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.editing-timeline-row:hover {
  background: #111826;
}

.editing-row-idx-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.editing-row-num {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.editing-row-dur {
  font-size: 10.5px;
  color: #708098;
}

.editing-row-badge {
  background: #0f1826;
  border: 1px solid #1e2c40;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-transform: uppercase;
}

.editing-row-text {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editing-timeline-row:hover .editing-row-text {
  color: #ffffff;
}

/* Modal de Prévia Rápida da Cena */
.editing-preview-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 14, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.editing-preview-dialog {
  background: #0d121c;
  border: 1px solid #1f2c40;
  border-radius: 12px;
  max-width: 720px;
  width: 90vw;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.editing-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #1a2538;
}

.editing-preview-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editing-preview-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #080d14;
}

.editing-preview-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  background: #080d14;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid #00cc7a;
}

/* ========================================================================= */
/* CAPCUT-STYLE VIDEO EDITOR (ABA "EDITOR") */
/* ========================================================================= */

.editing-view-montagem {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.editing-view-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #0a0e16;
}

/* Toolbar Secundária do Editor */
.editor-secondary-toolbar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #111723;
  border-bottom: 1px solid #1c2738;
  flex-shrink: 0;
}

.editor-toolbar-title {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 550px;
}

.editor-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-tool-pill {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: #090e17;
}

.editor-icon-btn {
  background: transparent;
  border: 1px solid #233044;
  color: #94a3b8;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.editor-icon-btn:hover {
  background: #1c283a;
  color: #ffffff;
  border-color: #3b82f6;
}

.editor-lousa-btn {
  background: #182232;
  border: 1px solid #2a3b54;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.editor-lousa-btn:hover {
  background: #202d42;
  border-color: #3b82f6;
}

.editor-top-export-btn {
  background: #00e599;
  color: #041c12;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.25);
  transition: all 0.15s ease;
}

.editor-top-export-btn:hover {
  background: #00ffaa;
}

/* Área Superior (3 Colunas: Mídia, Player, Propriedades) */
.editor-upper-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 290px 1fr 260px;
  border-bottom: 1px solid #1c2738;
}

/* Coluna 1: Mídia (153) */
.editor-media-col {
  display: flex;
  flex-direction: column;
  background: #0d121c;
  border-right: 1px solid #1c2738;
  min-height: 0;
  overflow: hidden;
}

.editor-media-tabs {
  display: flex;
  background: #0f1623;
  border-bottom: 1px solid #1a2537;
  flex-shrink: 0;
}

.editor-media-tab {
  flex: 1;
  padding: 9px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #708098;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.editor-media-tab.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

.editor-media-subtabs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #0a0e16;
  border-bottom: 1px solid #162030;
  flex-shrink: 0;
}

.editor-media-subtab {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10.5px;
  background: transparent;
  color: #8c9bb0;
  border: 1px solid #1f2c40;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editor-media-subtab.active {
  background: #1c283a;
  color: #ffffff;
  border-color: #38bdf8;
}

.editor-btn-empty-element {
  margin: 8px 12px;
  padding: 6px;
  border: 1px dashed #24344b;
  border-radius: 6px;
  background: rgba(22, 33, 50, 0.4);
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.editor-btn-empty-element:hover {
  background: rgba(30, 45, 68, 0.8);
  border-color: #38bdf8;
  color: #ffffff;
}

.editor-media-grid {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}

.editor-media-card {
  background: #111724;
  border: 1px solid #1c2738;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.editor-media-card:hover, .editor-media-card.selected {
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.editor-media-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #080d15;
  display: block;
}

.editor-media-title {
  padding: 5px 6px;
  font-size: 10px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #0d131f;
}

/* Coluna 2: Center Player & Canvas Viewport */
.editor-player-col {
  display: flex;
  flex-direction: column;
  background: #070a10;
  min-height: 0;
  overflow: hidden;
}

.editor-viewport-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  background: #05080e;
}

.editor-canvas-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
}

.editor-canvas-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.editor-canvas-captions-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
}

.capcut-caption-line-white {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 2px #000000;
  line-height: 1.25;
  margin-bottom: 2px;
}

.capcut-caption-line-red {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #e1523d;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 2px #000000;
  line-height: 1.25;
  margin-top: 2px;
}

.capcut-caption-gap {
  height: 10px;
}

/* Barra de Transporte do Player */
.editor-transport-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #0d121c;
  border-top: 1px solid #1a2537;
  flex-shrink: 0;
}

.editor-transport-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-play-btn {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.editor-play-btn:hover {
  background: #1c2738;
  color: #00e599;
}

.editor-timecode-display {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.editor-speed-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.editor-speed-pill {
  padding: 2px 6px;
  border-radius: 4px;
  background: #162030;
  font-size: 10.5px;
  color: #cbd5e1;
}

/* Coluna 3: Inspector / Propriedades */
.editor-props-col {
  display: flex;
  flex-direction: column;
  background: #0d121c;
  border-left: 1px solid #1c2738;
  min-height: 0;
  overflow: hidden;
}

.editor-props-tabs {
  display: flex;
  background: #0f1623;
  border-bottom: 1px solid #1a2537;
  flex-shrink: 0;
}

.editor-props-tab {
  flex: 1;
  padding: 9px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #708098;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.editor-props-tab.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

.editor-props-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.editor-props-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
  text-align: center;
  padding: 24px 12px;
}

.editor-props-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.editor-props-empty-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.editor-props-empty-hint {
  font-size: 11px;
  color: #526075;
  margin-top: 4px;
  line-height: 1.35;
}

/* Área Inferior: Multi-track Timeline (Estilo CapCut) */
.editor-timeline-area {
  height: 250px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  background: #080c14;
  border-top: 1px solid #1c2738;
  flex-shrink: 0;
}

.editor-timeline-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #0e1420;
  border-bottom: 1px solid #182333;
  flex-shrink: 0;
}

.editor-tl-tools-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-tl-add-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #233044;
  background: #131b28;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.editor-tl-add-btn:hover {
  background: #1c283a;
  color: #ffffff;
  border-color: #3b82f6;
}

.editor-tl-icon-btn {
  font-size: 12px;
  padding: 3px 6px;
  background: transparent;
  border: 1px solid #233044;
  color: #94a3b8;
  border-radius: 4px;
  cursor: pointer;
}

.editor-tl-icon-btn:hover {
  background: #1c283a;
  color: #ffffff;
}

.editor-timeline-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Cabeçalhos das Trilhas */
.editor-timeline-track-headers {
  width: 140px;
  flex-shrink: 0;
  background: #0a0e16;
  border-right: 1px solid #1a2537;
  display: flex;
  flex-direction: column;
}

.editor-track-header-top {
  height: 26px;
  background: #0d131f;
  border-bottom: 1px solid #1a2537;
}

.editor-track-header-row {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #141c2a;
  font-size: 11px;
  color: #8c9bb0;
}

.editor-track-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: #1a2638;
  color: #94a3b8;
}

.editor-track-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #526075;
}

/* Área Rolável das Trilhas */
.editor-timeline-tracks-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  background: #070a10;
}

.editor-timeline-ruler {
  height: 26px;
  width: 3800px;
  background: #0c121d;
  border-bottom: 1px solid #1a2537;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
  position: relative;
  user-select: none;
}

.editor-ruler-mark {
  position: absolute;
  bottom: 0;
  font-size: 9.5px;
  font-family: monospace;
  color: #64748b;
  border-left: 1px solid #1f2c40;
  height: 12px;
  padding-left: 4px;
}

.editor-timeline-tracks-body {
  position: relative;
  width: 3800px;
  height: calc(100% - 26px);
}

.editor-track-row {
  height: 38px;
  position: relative;
  border-bottom: 1px solid #111826;
}

/* Blocos de Clips na Timeline */
.editor-timeline-clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 4px;
  background: #141f2e;
  border: 1px solid #23354d;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 6px;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transition: border-color 0.15s ease;
}

.editor-timeline-clip.visual {
  background: #132236;
  border-color: #2b4568;
}

.editor-timeline-clip.element {
  background: #231f38;
  border-color: #4b3d75;
}

.editor-timeline-clip.audio {
  background: #102620;
  border-color: #1e5241;
}

.editor-timeline-clip.subtitle {
  background: #2a2214;
  border-color: #5c471c;
}

.editor-timeline-clip.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.editor-clip-thumb {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.editor-clip-title {
  font-size: 10px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Playhead Laranja Interativo */
.editor-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f97316;
  pointer-events: none;
  z-index: 50;
  transition: left 0.05s linear;
}

.editor-playhead-cap {
  position: absolute;
  top: 0;
  left: -6px;
  width: 14px;
  height: 14px;
  background: #f97316;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
  cursor: ew-resize;
  pointer-events: auto;
}

/* Divisor e estados de botões da barra da timeline */
.editor-tl-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #1e293b;
  margin: 0 4px;
}

.editor-icon-btn:disabled,
.editor-tl-icon-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: #1a2230 !important;
}

/* Modal de Atalhos de Teclado */
.editor-shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-shortcuts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
}

.editor-shortcuts-dialog {
  position: relative;
  background: #0d1522;
  border: 1px solid #1e293b;
  border-radius: 12px;
  width: 90%;
  max-width: 820px;
  max-height: 85vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.editor-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
  background: #090e17;
}

.editor-shortcuts-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.editor-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editor-modal-close:hover {
  background: #1e293b;
  color: #f8fafc;
}

.editor-shortcuts-body {
  padding: 20px;
  overflow-y: auto;
}

.editor-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.editor-shortcuts-group {
  background: #111a28;
  border: 1px solid #1c2738;
  border-radius: 8px;
  padding: 14px 16px;
}

.editor-shortcuts-group h4 {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #1c2738;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12.5px;
  color: #cbd5e1;
  border-bottom: 1px dashed #172130;
}

.shortcut-row:last-child {
  border-bottom: none;
}

.shortcut-label {
  font-weight: 400;
  color: #94a3b8;
}

.kbd-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  background: #1e293b;
  border: 1px solid #334155;
  border-bottom: 2px solid #0f172a;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}



/* Montage overview: real scene-bound media and a compact editorial card. */
.editing-icon{width:15px;height:15px;flex-shrink:0;display:inline-block;vertical-align:middle}
.editing-card-title,.editing-timeline-title{display:flex;align-items:center;gap:8px}
.editing-timeline-list{padding:12px;display:flex;flex-direction:column;gap:10px;background:#0b1018}
.editing-timeline-row{grid-template-columns:144px minmax(0,1fr) 24px;gap:16px;padding:12px;border:1px solid #263141;border-radius:10px;background:#141b25;flex-shrink:0;min-height:116px;text-align:left}
.editing-timeline-row:hover{background:#192431;border-color:#4a655c}.editing-timeline-row:focus-visible{outline:2px solid #10c898;outline-offset:2px}
.editing-scene-media{position:relative;aspect-ratio:16/9;background:#0b111c;border:1px solid #344052;border-radius:7px;overflow:hidden}
.editing-scene-media img,.editing-scene-media video{display:block;width:100%;height:100%;object-fit:cover}
.editing-scene-number,.editing-scene-duration{position:absolute;background:#071018db;color:#fff;font:10px/1.4 Arial,sans-serif;padding:3px 6px;border-radius:4px;backdrop-filter:blur(4px)}
.editing-scene-number{left:5px;top:5px}.editing-scene-duration{right:5px;bottom:5px;font-variant-numeric:tabular-nums}
.editing-scene-play{position:absolute;inset:0;display:grid;place-items:center;background:#0002;opacity:0;transition:opacity .15s}.editing-scene-play svg{width:25px;height:25px;color:white;filter:drop-shadow(0 1px 3px #000)}.editing-timeline-row:hover .editing-scene-play{opacity:1}
.editing-scene-info{min-width:0}.editing-scene-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;color:#8396ac}.editing-scene-meta strong{color:#e6edf6;font-size:12px}.editing-scene-meta>span{display:inline-flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.editing-row-text{margin:8px 0 10px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55;font-size:12px;color:#c7d3e3}
.editing-scene-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.editing-scene-chips>span{display:inline-flex;align-items:center;gap:4px;border:1px solid #2c3c4d;border-radius:4px;padding:3px 6px;color:#92a6bd;background:#101722;font-size:9px;line-height:1.4}.editing-scene-chips svg{width:12px;height:12px}.editing-scene-chips .editing-scene-element{color:#62d7b4;border-color:#265e4e}
.editing-scene-meta .editing-block-marker{color:#63ddbc;font-size:9px;background:#10332c;border-radius:4px;padding:3px 5px}
.editing-scene-open{color:#6d8a9c}.editing-scene-placeholder{display:none;position:absolute;inset:0;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#8191a5;font-size:9px}.editing-scene-media.is-unavailable .editing-scene-placeholder{display:flex}.editing-scene-media.is-unavailable img,.editing-scene-media.is-unavailable video{visibility:hidden}
@media(max-width:1100px){.editing-timeline-row{grid-template-columns:115px minmax(0,1fr);gap:10px}.editing-scene-open{display:none}.editing-scene-chips>span{font-size:9px;padding:2px 4px}}
@media(max-width:650px){.editing-timeline-list{padding:8px}.editing-timeline-row{grid-template-columns:92px minmax(0,1fr);padding:8px;gap:9px}.editing-scene-chips{grid-column:1/-1}.editing-row-text{-webkit-line-clamp:3;font-size:11px}.editing-scene-meta{gap:5px;font-size:10px}}
.editing-view-montagem{display:grid;grid-template-columns:minmax(300px,34%) minmax(0,1fr);overflow:hidden}.editing-left-col,.editing-right-col{min-width:0}.editing-left-col{padding:16px;overflow-x:hidden}.editing-timeline-title{white-space:nowrap;font-size:12px}.editing-timeline-header{gap:12px;padding:14px}.editing-timeline-title-wrap{min-width:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.editing-timeline-subtext{white-space:nowrap}.editing-export-btn{flex-shrink:0}
@media(max-width:900px){.editing-view-montagem{grid-template-columns:minmax(260px,38%) minmax(0,1fr)}.editing-timeline-row{grid-template-columns:100px minmax(0,1fr)}}
@media(max-width:650px){.editing-view-montagem{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(160px,38%) minmax(0,1fr)}.editing-left-col{border-right:0;border-bottom:1px solid #263141}.editing-timeline-row{grid-template-columns:100px minmax(0,1fr)}}
.editing-left-col .editing-select-row{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.editing-left-col .editing-select-input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.editing-left-col .editing-select-label{min-width:0}
