/* Both finished Canal Dark videos and YouTube cuts open this workspace. */
.vv-editor-page {
  --studio-shell: #09090c;
  --studio-canvas: #17171d;
  --studio-panel: #101014;
  --studio-line: #292930;
  --studio-text: #f4f3f7;
  --studio-muted: #a6a4b3;
  --studio-accent: #9c8cf4;
  --studio-rail-width: clamp(72px, 6.5vw, 96px);
  --studio-inspector-width: clamp(260px, 22vw, 344px);
  --studio-header-height: 52px;
  --studio-timeline-height: clamp(186px, 34dvh, 370px);
}

.vv-caption-heading,
.vv-caption-search,
.vv-caption-replacement {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vv-caption-heading { justify-content: space-between; }
.vv-editor-page .vv-caption-heading h3 { margin: 0; }
.vv-editor-page [data-editor-tab="legendas"] svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vv-caption-icon {
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--studio-line);
  border-radius: 7px;
  background: transparent;
  color: var(--studio-muted);
  cursor: pointer;
}
.vv-caption-icon:is(:hover, [aria-expanded="true"], [aria-pressed="true"]) {
  color: var(--studio-accent);
  background: #242136;
}
.vv-editor-page [data-editor-tab="legendas"] .vv-editor-subtabs {
  margin: 12px 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--studio-line);
  border-radius: 0;
  background: transparent;
}
.vv-editor-page [data-editor-caption-view]:not(.vv-caption-icon) {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
}
.vv-caption-search input, .vv-caption-replacement input { flex: 1; min-width: 0; }
.vv-caption-replacement { margin-top: 6px; }
.vv-editor-page .vv-editor-segments { gap: 0; margin-top: 12px; }
.vv-editor-page [data-editor-words-section] .vv-editor-segment {
  gap: 4px;
  padding: 10px 0 8px;
  border: 0;
  border-top: 1px solid var(--studio-line);
  border-radius: 0;
  background: transparent;
}
.vv-editor-page .vv-editor-segment-head button:first-child {
  padding-inline: 0;
  color: var(--studio-muted);
  font-size: 11px;
}
.vv-editor-page .vv-editor-segment.is-current .vv-editor-segment-head button:first-child {
  color: var(--studio-accent);
}
body.platform .vv-editor-page .vv-editor-segment textarea,
.vv-editor-page .vv-editor-segment textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 2.8em;
  padding: 4px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--studio-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
@supports (field-sizing: content) {
  .vv-editor-page .vv-editor-segment textarea { field-sizing: content; resize: none; }
}
body.platform .vv-editor-page .vv-editor-segment textarea:focus,
.vv-editor-page .vv-editor-segment textarea:focus {
  border-color: var(--studio-accent);
  background: var(--studio-canvas);
}
.vv-caption-icon:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 2px; }
.vv-caption-replacement[hidden],
.vv-editor-page .vv-editor-segment[hidden],
[data-caption-view="texto"] [data-caption-advanced] { display: none; }
