/* Reuse the site's existing editor geometry, without changing other editors. */
.vm-sidebar { display: flex; flex-direction: column; overflow: hidden; }
.vm-sidebar > .trimmer-editor__save-actions { flex-shrink: 0; }
.vm-sidebar-scroll { flex: 1; min-height: 0; margin-top: 20px; overflow: auto; scrollbar-width: none; }
.vm-sidebar-scroll > .vm-transitions { margin-top: 0; }
.vm-sidebar-scroll::-webkit-scrollbar { display: none; }
.vm-status { margin: 8px 0; color: #ff608a; font-size: 11px; line-height: 1.7; }
.vm-status:empty { display: none; }
.vm-editor button:disabled { cursor: default; }
.vm-editor .vm-track { position: relative; height: 80px; margin: 20px 0 0; }
.vm-clip, .vm-clip:active { cursor: grab; border: 2px solid #ffdc49; border-radius: 6px; overflow: hidden; box-sizing: border-box; }
.vm-clip.is-active { z-index: 2; }
.vm-clip canvas { height: 46px; }
.vm-clip-name { position: absolute; top: 0; left: 0; max-width: 100%; padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-top-left-radius: 4px; background: #0009; color: #fff; font-size: 10px; pointer-events: none; }
.vm-transition, .vm-timeline-add { position: absolute; display: grid; place-items: center; top: 17px; width: 24px; height: 18px; padding: 0px; transform: translateX(-50%); z-index: 3; border: 2px solid #000000; border-radius: 5px; background: #ffdc49; color: #c8c9d1; cursor: pointer; }
.vm-timeline-add { top: 0; width: 50px; height: 50px; padding: 7px; border: 0; border-radius: 8px; background: #292929; transform: none; box-sizing: border-box; color: #777; }
.vm-transition svg, .vm-timeline-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vm-timeline-add svg { width: 20px; height: 20px; stroke-width: 1.8px; stroke: rgb(96 96 96); }
.vm-transition svg { fill: #000000; width: 9px; height: 9px; stroke: none; margin-left: 1px; }
.vm-transition.has-effect { border-color: #151515; background: #ffdc49; color: #fff; }
.vm-transition:hover, .vm-timeline-add:hover { color: #fff; border-color: #111111; }
.vm-timeline-add:disabled, .vm-transition:disabled { opacity: .35; cursor: default; }
.vm-transitions-heading svg { fill: currentColor; stroke: none; }
.vm-effects { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px 10px; }
.vm-effects button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; min-width: 0; border: 0; border-radius: 0; background: transparent; color: #ccc; font: inherit; font-size: 10px; cursor: pointer; }
.vm-effects button[aria-pressed=true] .vm-effect-preview { box-shadow: 0 0 0 2px #a29cff; }
.vm-editor .vm-effects button:focus-visible { outline: none; }
.vm-effects button:focus-visible .vm-effect-preview { outline: 1px solid #aaa; outline-offset: 2px; }
.vm-effect-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; }
.vm-effect-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.vm-effect-preview canvas, .vm-effect-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.vm-effect-preview canvas[hidden], .vm-effect-canvas[hidden] { display: none; }
.vm-effect-preview [data-preview-layer=incoming] { z-index: 1; opacity: 0; }
.vm-effect-preview--none { display: grid; place-items: center; background: #202024; color: #73737a; }
.vm-effect-preview--none svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3; }
.vm-panel .trimmer-editor__controls { display: grid; grid-template-areas: "history transport zoom"; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 12px; }
.vm-panel .trimmer-editor__history { grid-area: history; position: static; gap: 8px; min-width: 0; }
.vm-panel .trimmer-editor__transport { grid-area: transport; }
.vm-panel .trimmer-editor__zoom { grid-area: zoom; position: static; justify-content: flex-end; }
.vm-aspect-ratios { display: flex; flex: 0 1 270px; min-width: 180px; padding: 4px; border-radius: 8px; background: #141414; margin-left: 10px; }
.vm-aspect-ratios button { flex: 1; width: auto; height: 24px; padding: 0 8px; border-radius: 5px; color: #eee; font: inherit; font-size: 11px; font-weight: 300; }
.vm-aspect-ratios button[aria-pressed=true] { background: #2f2f2f; color: #fff; }
.vm-volume { position: absolute; right: 16px; bottom: 16px; z-index: 2; min-width: 48px; box-sizing: border-box; padding: 5px 8px; border-radius: 6px; background: #000a; color: #eee; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; text-align: center; cursor: ns-resize; user-select: none; opacity: 0; pointer-events: none; }
.vm-picture:hover .vm-volume, .vm-volume:focus-visible { opacity: 1; pointer-events: auto; }
.vm-volume:focus-visible { outline: 1px solid #aaa; outline-offset: 2px; }
.vm-editor button:focus-visible { outline: 1px solid #aaa; outline-offset: 2px; }
#vmPlay.is-playing .trimmer-editor__play-icon { display: none; }
#vmPlay.is-playing .trimmer-editor__pause-icon { display: block; }
#vmPlay svg { width: 20px; height: 20px; }
.vm-tip { margin: 6px 0 0; color: #777; font-size: 10px; line-height: 1.4; }
.vm-picture { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; overflow: hidden; border-radius: 8px; background: #000; }
.vm-preview .vm-picture video { inset: 0; top: 0; left: 0; transform: none; width: 100%; height: 100%; border-radius: 0; object-fit: contain; background: #000; }
.vm-preview-status { position: absolute; bottom: 12px; left: 12px; color: #aaa; font-size: 11px; pointer-events: none; }
.vm-editor.is-exporting .vm-panel, .vm-editor.is-exporting .vm-sidebar-scroll { opacity: .5; pointer-events: none; }
.vm-editor [aria-busy=true] { opacity: .6; }
@media(max-width:700px) { .vm-sidebar-scroll { max-height: 220px; margin-top: 10px; } .vm-tip { font-size: 9px; } }
@media(max-width:1100px) { .vm-panel .trimmer-editor__controls { grid-template-areas: "history zoom" "transport transport"; grid-template-columns: minmax(0,1fr) auto; gap: 4px; padding: 8px 0; } .vm-panel .trimmer-editor__transport { justify-content: center; } }
@media(max-width:560px) { .vm-panel .trimmer-editor__controls { grid-template-areas: "history" "transport" "zoom"; grid-template-columns: minmax(0,1fr); } .vm-panel .trimmer-editor__history { margin: 0; } .vm-panel .trimmer-editor__zoom { margin: 0; justify-content: center; } .vm-aspect-ratios { flex-grow: 1; min-width: 0; } .vm-aspect-ratios button { padding: 0 5px; font-size: 12px; } .vm-volume { right: 8px; bottom: 8px; } }
