/* Video to GIF: only the parts the shared Media Engine skeleton doesn't already have. */
.vg .mx-board video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 6px; }
.vg .mx-board canvas { opacity: 0; }

/* Live summary in the top bar */
.vg-sum { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.vg-sum span { display: grid; gap: 1px; min-width: 76px; padding: 4px 12px; border-radius: 9px; text-align: center; }
.vg-sum span + span { box-shadow: -1px 0 0 var(--line); }
.vg-sum small { color: #71717a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vg-sum b { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Trim: one track with two handles */
.vg-range { --a: 0%; --b: 100%; position: relative; height: 30px; margin: 4px 0 12px; }
.vg-range::before, .vg-range::after { content: ""; position: absolute; top: 12px; height: 6px; border-radius: 99px; }
.vg-range::before { left: 0; right: 0; background: rgba(255,255,255,.08); }
.vg-range::after { left: var(--a); right: calc(100% - var(--b)); background: #22d3ee; }
.vg-range input { position: absolute; inset: 0; z-index: 1; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.vg-range input::-webkit-slider-thumb { width: 18px; height: 26px; border: 2px solid #fff; border-radius: 6px; background: #22d3ee; box-shadow: 0 4px 12px rgba(0,0,0,.5); pointer-events: auto; cursor: ew-resize; -webkit-appearance: none; }
.vg-range input::-moz-range-thumb { width: 14px; height: 22px; border: 2px solid #fff; border-radius: 6px; background: #22d3ee; pointer-events: auto; cursor: ew-resize; }
.vg-range input::-webkit-slider-runnable-track { background: none; }
.vg-range input::-moz-range-track { background: none; }
.vg-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vg-times label { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.02); }
.vg-times span { color: #8a8d9b; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vg-times input { width: 100%; min-width: 0; border: 0; background: none; color: #fff; font: 700 14px Inter, system-ui, sans-serif; text-align: right; outline: none; }
.vg-times em { color: #71717a; font-style: normal; font-size: 12px; }
.vg-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vg-est { margin: 0 0 6px; color: #e4e4e7; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Sliders and the Smaller file switch */
.vg-slider { width: 100%; accent-color: #22d3ee; }
.mx-presets.vg-three { grid-template-columns: repeat(3, 1fr); }
.mx-presets button[aria-pressed="true"] { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.07); }
.vg-switch { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.02); cursor: pointer; }
.vg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.vg-switch i { position: relative; flex: none; width: 38px; height: 22px; margin-top: 1px; border-radius: 99px; background: rgba(255,255,255,.14); transition: background .2s; }
.vg-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.vg-switch input:checked + i { background: #22d3ee; }
.vg-switch input:checked + i::after { transform: translateX(16px); }
.vg-switch input:focus-visible + i { box-shadow: 0 0 0 2px #0a0a0f, 0 0 0 4px #22d3ee; }
.vg-switch span { display: grid; gap: 2px; }
.vg-switch b { color: #fff; font-size: 13px; }
.vg-switch small { color: #8a8d9b; font-size: 12px; line-height: 1.45; }

@media (max-width: 1100px) { .vg-sum span { min-width: 0; padding: 4px 8px; } .vg-sum small { display: none; } }
@media (max-width: 760px) { .vg-sum { display: none; } }
