/* VideoSpark editor (tool/editor.js) - the homepage tool on videospark.xyz, freevideoeditor.xyz, freeonlinevideoeditor.xyz */
.ve-wrap { max-width: 1240px; }
.ve-h1 { font-size: clamp(26px, 3.2vw, 38px); margin: 18px 0 4px; }
.ve-lead { color: #555; margin: 0 0 16px; font-size: 17px; }
.ve { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; font-family: Inter, Arial, sans-serif; }
.ve-main { min-width: 0; }
.ve-stage { position: relative; background: #0d0d10; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 260px; max-height: 70vh; }
.ve-stage canvas { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; aspect-ratio: var(--ve-ratio, 16 / 9); }
.ve-stage.drop { outline: 3px dashed #ffcc33; outline-offset: -8px; }
.ve-open { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: #ddd; text-align: center; padding: 20px; }
.ve-open-btn { background: #ffcc33; color: #1a1a1a; font-weight: 800; font-size: 18px; padding: 13px 28px; border-radius: 999px; }
.ve-open-sub { font-size: 14px; opacity: .8; }
.ve.has-video .ve-open { inset: auto; top: 10px; left: 10px; padding: 0; }
.ve.has-video .ve-open-btn { font-size: 13px; padding: 7px 14px; opacity: .85; }
.ve.has-video .ve-open-btn::before { content: 'Open another'; }
.ve.has-video .ve-open-btn { font-size: 0; }
.ve.has-video .ve-open-btn::before { font-size: 13px; }
.ve.has-video .ve-open-sub { display: none; }
.ve-transport { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ve-time { font: 13px/1 ui-monospace, Menlo, monospace; color: #555; white-space: nowrap; }
.ve-bar { position: relative; flex: 1; height: 34px; background: #ececf0; border-radius: 8px; cursor: pointer; touch-action: none; }
.ve-trim { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: rgba(255, 204, 51, .35); border-left: 0; border-right: 0; pointer-events: none; }
.ve-trim span { position: absolute; top: -3px; bottom: -3px; width: 12px; background: #ffcc33; border-radius: 4px; pointer-events: auto; cursor: ew-resize; }
#ve-ha { left: -6px; } #ve-hb { right: -6px; }
.ve-head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #e5484d; left: 0; pointer-events: none; }
.ve-msg { margin-top: 8px; color: #666; font-size: 14px; min-height: 20px; }
.ve-progress { height: 4px; background: transparent; border-radius: 2px; overflow: hidden; margin-top: 6px; }
.ve-progress i { display: block; height: 100%; width: 0; background: #ffcc33; transition: width .2s linear; }
.ve-side { border: 1px solid #e6e6ea; border-radius: 14px; padding: 6px 14px 14px; background: #fff; }
.ve-side details { border-bottom: 1px solid #f0f0f3; padding: 8px 0; }
.ve-side summary { font-weight: 800; cursor: pointer; padding: 4px 0; }
.ve-row, .ve-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.ve-row label { font-size: 13px; color: #555; }
.ve-row input[type=number] { width: 74px; padding: 5px 6px; border: 1px solid #d8d8de; border-radius: 6px; }
.ve-chips button { border: 1px solid #d8d8de; background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; }
.ve-chips button.on { background: #1d1b3a; color: #fff; border-color: #1d1b3a; }
.ve-btn { border: 0; background: #1d1b3a; color: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 700; cursor: pointer; font-size: 14px; }
.ve-btn.sm { padding: 6px 11px; font-size: 13px; }
.ve-btn.ghost { background: #f1f0f7; color: #1d1b3a; }
.ve-btn.big { width: 100%; margin-top: 14px; padding: 13px; font-size: 16px; background: #ffcc33; color: #1a1a1a; }
.ve.exporting .ve-btn.big { background: #e5484d; color: #fff; }
.ve-faint { color: #777; font-size: 13px; }
.ve-side textarea { width: 100%; box-sizing: border-box; border: 1px solid #d8d8de; border-radius: 8px; padding: 7px 9px; font: 14px/1.35 Inter, Arial, sans-serif; resize: vertical; margin: 6px 0; }
.ve-caps { max-height: 320px; overflow: auto; margin-top: 6px; }
.ve-cap { border: 1px solid #ececf0; border-radius: 10px; padding: 6px 8px; margin: 6px 0; }
.ve-cap textarea { margin: 0 0 4px; }
.ve-cap-t { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }
.ve-cap-t input { width: 62px; padding: 3px 5px; border: 1px solid #d8d8de; border-radius: 6px; }
.ve-cap-t button { border: 0; background: #f1f0f7; border-radius: 6px; padding: 3px 7px; cursor: pointer; }
.ve-empty { color: #888; font-size: 13px; }
.ve-article { max-width: 760px; margin: 34px 0 10px; }
.ve-article h2 { margin-top: 26px; }
@media (max-width: 900px) { .ve { grid-template-columns: minmax(0, 1fr); } .ve-stage, .ve-stage canvas { max-height: 60vh; } }
