/* Video editor, trimmer and converter (Bloom look). */
.vx-baract { margin-left: auto; }
.vx-name { width: 190px; font-weight: 600; }
.vx-saved { color: var(--muted); font-size: 12.5px; min-width: 44px; }
.btn.sq { padding: 6px 8px; display: inline-grid; place-items: center; }
.btn.sm { padding: 5px 9px; font-size: 12.5px; }
.btn.block { display: block; text-align: center; width: 100%; }
.btn.big { padding: 11px 18px; font-size: 15px; }
.btn.danger { color: #b42318; }
.btn.danger:hover { background: #fff1f0; border-color: #ffc9c4; }
.ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--fg); cursor: pointer; font: 600 16px/1 system-ui, sans-serif; }
.ic:hover { background: var(--hover); }
.ic:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
.ic.sm { width: 26px; height: 26px; border-radius: 8px; }
.ic.play { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(91, 76, 240, .3); }
.ic:disabled, .btn:disabled { opacity: .4; cursor: default; }

.vx { display: grid; grid-template-columns: 272px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "side stage inspect" "tl tl tl";
  height: calc(100vh - 57px); height: calc(100dvh - 57px); min-height: 520px; }
.vx.dropping::after { content: "Drop to add"; position: fixed; inset: 12px; border: 3px dashed var(--accent); border-radius: 20px; background: rgba(91, 76, 240, .08); display: grid; place-items: center; font: 700 22px/1 system-ui, sans-serif; color: var(--accent); z-index: 50; pointer-events: none; }
.vx-side { grid-area: side; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.vx-tabs { margin: 10px 10px 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.vx-tabs button { padding: 7px 9px; flex: 1; }
.vx-panel { padding: 12px; overflow: auto; flex: 1; min-height: 0; }
.vx-panel h4, .vx-inspect h4 { margin: 14px 0 6px; font-size: 13px; }
.vx-panel h4:first-child { margin-top: 0; }
.vx-sheet-head { display: none; }
.vx-lib { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.vx-libitem { position: relative; }
.vx-libadd { width: 100%; display: grid; gap: 2px; text-align: left; padding: 0 0 6px; border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; font: inherit; }
.vx-libadd:hover { border-color: #cfc9ff; box-shadow: var(--shadow); }
.vx-libadd img, .vx-libadd .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1b2133; display: grid; place-items: center; color: #fff; }
.vx-libadd .nm { padding: 0 8px; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-libadd small { padding: 0 8px; color: var(--muted); font-size: 11.5px; }
.vx-libdel { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(27, 33, 51, .7); color: #fff; cursor: pointer; }
.vx-styles { display: grid; gap: 8px; }
.vx-style { border: 1px solid var(--line); border-radius: 12px; background: #1b2133; color: #fff; padding: 14px; cursor: pointer; text-align: center; }
.vx-style:hover { box-shadow: var(--shadow); border-color: #cfc9ff; }
.vx-style-title span { font: 800 22px/1 system-ui, sans-serif; }
.vx-style-subtitle span { font: 400 16px/1.2 system-ui, sans-serif; }
.vx-style-caption span { background: rgba(0, 0, 0, .65); padding: 4px 8px; border-radius: 6px; font: 700 14px/1 system-ui, sans-serif; }
.vx-style-lower { text-align: left; }
.vx-style-lower span { background: #fff; color: #1b2133; padding: 5px 9px; border-radius: 6px; font: 700 14px/1 system-ui, sans-serif; }
.vx-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vx-preset { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: 600 12px/1.2 system-ui, sans-serif; color: var(--fg); }
.vx-preset i { display: block; height: 34px; background: linear-gradient(135deg, #c9d8ff, #e2d4ff); border-radius: 4px; border: 1px solid #b9b2f5; }
.vx-preset small { color: var(--muted); font-weight: 500; }
.vx-preset.on { border-color: var(--sel); background: #f3f1ff; box-shadow: 0 0 0 2px rgba(91, 76, 240, .2); }
.vx-inline { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.vx-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.vx-swatches .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.vx-check { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.vx-chapters { display: grid; gap: 6px; margin-bottom: 8px; }
.vx-chap { display: grid; grid-template-columns: 70px 1fr 26px; gap: 6px; align-items: center; }
.vx-chap .ad-input { padding: 6px 8px; width: 100%; }
.vx-chaptext { margin-top: 8px; font: 12.5px/1.5 ui-monospace, monospace; }
.vx-probs { margin: 8px 0; padding-left: 18px; color: #9b1c1c; font-size: 12.5px; }

.vx-stage { grid-area: stage; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #e9ebf5; }
.vx-preview { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; }
.vx-preview canvas { display: block; background: #000; border-radius: 6px; box-shadow: 0 10px 30px rgba(27, 33, 51, .25); touch-action: none; cursor: pointer; }
.vx-empty { position: absolute; inset: 8px; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, #fff, #f6f5ff); border: 2px dashed #d3d0f5; border-radius: 16px; padding: 18px; overflow: auto; }
.vx-empty-in { max-width: 440px; display: grid; gap: 8px; justify-items: center; }
.vx-empty h2 { margin: 0; font-size: 24px; }
.vx-empty p { margin: 0; color: var(--muted); }
.vx-empty-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 13px; margin-top: 6px; }
.vx-empty-links a, .vx-recent a { color: var(--accent); }
.vx-recent { display: grid; gap: 6px; width: 100%; margin-top: 8px; }
.vx-recent-item { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.vx-recent-item img, .vx-recent-item .ph { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #1b2133; }
.vx-busy { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(27, 33, 51, .88); color: #fff; padding: 8px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center; font-size: 13px; z-index: 3; }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: vx-spin .8s linear infinite; }
@keyframes vx-spin { to { transform: rotate(360deg); } }
.vx-transport { display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: #fff; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vx-time { margin: 0 8px; font-size: 13px; }
.vx-tbtn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; }
.vx-tbtn svg { width: 16px; height: 16px; }

.vx-inspect { grid-area: inspect; background: #fff; border-left: 1px solid var(--line); padding: 12px; overflow: auto; min-height: 0; }
.vx-insp-empty p { color: var(--muted); }
.vx-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.vx-facts dt { color: var(--muted); } .vx-facts dd { margin: 0; font-weight: 600; }
.vx-clipname { margin: 0 0 2px; font-weight: 650; overflow-wrap: anywhere; }
.vx-when { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vx-inspect .mx-row { gap: 8px; align-items: end; }
.vx-inspect .mx-row > .mx-field { flex: 1 1 100px; }
.vx-inspect select.ad-input, .vx-inspect input.ad-input { width: 100%; }
.vx-inspect input[type=color] { width: 100%; height: 34px; border: 1px solid #d9dcea; border-radius: 10px; background: #fff; padding: 2px; }
.vx-vol .btn { margin-bottom: 12px; }
.vx-actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.vx-tl { grid-area: tl; background: #fff; border-top: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.vx-tl-bar { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-bottom: 1px solid var(--line); }
.vx-tl-title { font-weight: 700; font-size: 13px; }
.vx-tl-bar input[type=range] { width: 120px; accent-color: var(--accent); }
.vx-tl-body { display: grid; grid-template-columns: 70px minmax(0, 1fr); max-height: var(--vx-tl-h, 260px); overflow-y: auto; }
.vx-tl-labels { border-right: 1px solid var(--line); background: #fafbff; }
.vx-tl-labels .lb { display: flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); border-bottom: 1px solid #eef0f7; }
.vx-tl-labels .lb svg { width: 15px; height: 15px; flex: none; }
.vx-tl-labels .lb.ruler { height: 24px; }
.vx-tl-scroll { overflow-x: auto; overflow-y: hidden; position: relative; touch-action: pan-x; }
.vx-tl-inner { position: relative; min-height: 100%; user-select: none; }
.vx-tl .ruler { position: relative; height: 24px; border-bottom: 1px solid var(--line); background: #fafbff; cursor: ew-resize; }
.vx-tl .tick { position: absolute; top: 0; height: 100%; border-left: 1px solid #d5d9e8; padding: 4px 0 0 4px; font: 11px/1 system-ui, sans-serif; color: var(--muted); pointer-events: none; }
.vx-tl .chap { position: absolute; top: 2px; width: 10px; height: 12px; margin-left: -1px; background: #ff7a59; clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }
.vx-tl .row { position: relative; border-bottom: 1px solid #eef0f7; }
.vx-tl .row-empty { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #b3b8ca; font-size: 12px; pointer-events: none; }
.clip { position: absolute; border-radius: 8px; overflow: hidden; cursor: grab; display: flex; align-items: center; gap: 4px; padding: 0 10px; color: #fff; font-size: 11.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); touch-action: none; }
.clip:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.clip.v { background: #3a4bd6; }
.clip.k-image { background: #0e9f8a; }
.clip.k-endscreen { background: linear-gradient(135deg, #2f80ff, #a64bf4); }
.clip.t { background: #ff7a59; }
.clip.a { background: #7c3aed; }
.clip.o { background: #0ea5e9; }
.clip.o .th { opacity: .55; }
.vx-tl .row.overlay { background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(14, 165, 233, .04) 22px 44px); }
.vx-libov { position: absolute; left: 4px; bottom: 4px; border: 0; border-radius: 999px; padding: 2px 8px; font: 700 11px/1.4 system-ui, sans-serif; background: #0ea5e9; color: #fff; cursor: pointer; }
.vx-corners { flex-wrap: wrap; margin: 6px 0; }
.clip .th { position: absolute; inset: 0; background-size: auto 100%; background-repeat: repeat-x; opacity: .55; }
.clip .nm { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.clip .bd { position: relative; background: rgba(0, 0, 0, .45); border-radius: 5px; padding: 1px 4px; font-size: 10px; }
.clip .wave { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 26px; opacity: .8; }
.clip.sel { box-shadow: 0 0 0 2px #ffc83d, inset 0 0 0 1px rgba(0, 0, 0, .2); z-index: 2; }
.clip.dragging { opacity: .8; z-index: 5; cursor: grabbing; }
.clip .h { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; background: rgba(255, 255, 255, .0); z-index: 1; }
.clip .h.l { left: 0; } .clip .h.r { right: 0; }
.clip.sel .h { background: #ffc83d; }
.clip.sel .h::after { content: ""; position: absolute; left: 4px; top: 30%; bottom: 30%; width: 2px; border-radius: 1px; background: rgba(27, 33, 51, .6); }
/* Transition button: on the top edge of the clips, so the middle of the trim handles stays free to grab. */
.vx-tl .tr { position: absolute; transform: translate(-50%, -50%); z-index: 3; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: #c4c9da; color: #fff; font-size: 9px; line-height: 1; cursor: pointer; padding: 0; top: 5px; }
.vx-tl .tr.on { background: var(--accent); }
.vx-tl .ph { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #ef4444; pointer-events: none; z-index: 6; }
.vx-tl .ph i { position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid #ef4444; }
.vx-tl .drop { position: absolute; top: 24px; height: 58px; width: 3px; margin-left: -1px; background: #ffc83d; z-index: 7; border-radius: 2px; }

.vx-phonebar { display: none; }
.vx-dialog { width: min(520px, calc(100vw - 32px)); }
.vx-dialog-in { padding: 20px; display: grid; gap: 12px; }
.vx-dialog h3 { margin: 0; font-size: 18px; }
.vx-dialog fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.vx-dialog legend { font-weight: 650; font-size: 13px; margin-bottom: 4px; }
.vx-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.vx-opt:has(input:checked) { border-color: var(--sel); background: #f6f5ff; }
.vx-opt.inline { display: inline-flex; margin-right: 6px; }
.vx-dialog fieldset:has(.inline) { display: flex; flex-wrap: wrap; }
.vx-opt span { font-size: 13.5px; }
.vx-dialog-btns { justify-content: flex-end; }
.vx-result video { width: 100%; max-height: 50vh; background: #000; border-radius: 12px; }
.vx-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.vx-plist li { display: flex; gap: 8px; align-items: center; }
.vx-plist a { flex: 1; display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--fg); padding: 6px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.vx-plist a:hover { border-color: #cfc9ff; }
.vx-plist img, .vx-plist .ph { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #1b2133; flex: none; }
.vx-plist b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-plist small { color: var(--muted); }
.vx-new { display: flex; flex-wrap: wrap; gap: 6px; }

/* Trimmer and converter pages */
.tm-player { position: relative; background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.tm-player video { width: 100%; max-height: 56vh; display: block; }
.tm-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tm-frames figure { margin: 0; text-align: center; }
.tm-frames canvas { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 10px; }
.tm-frames figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tm-times { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 10px; }
.tm-times .mx-field { flex: 1 1 120px; margin: 0; }
.tm-times input { width: 100%; }
.tm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tm-side { display: grid; gap: 12px; }
.cv-fast { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.cv-fast input { margin-top: 3px; }
.cv-fast span { display: grid; gap: 2px; }
.cv-fast small { color: var(--muted); font-size: 12px; }
.tm-exact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tm-exact .ad-input { width: 108px; font-variant-numeric: tabular-nums; }
.tm-exact .btn { padding: 4px 8px; }

@media (max-width: 1100px) { .vx { grid-template-columns: 240px minmax(0, 1fr) 260px; } .vx-name { width: 130px; } }
@media (max-width: 760px) {
  .vx-baract { gap: 4px; }
  .vx-name { width: 100px; padding: 6px 8px; }
  .vx-saved, #bProjects { display: none; }
  .vx { display: flex; flex-direction: column; height: auto; min-height: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .vx-stage { order: 1; }
  .vx-preview { flex: none; aspect-ratio: var(--ar, 16 / 9); max-height: 46vh; width: 100%; padding: 6px; }
  .vx-empty { position: static; inset: auto; margin: 6px; }
  .vx-preview:has(.vx-empty:not([hidden])) { aspect-ratio: auto; max-height: none; display: block; }
  .vx-preview:has(.vx-empty:not([hidden])) canvas { display: none; }
  .vx-transport { justify-content: center; padding: 4px 6px; }
  .vx-time { order: 9; width: 100%; text-align: center; margin: 2px 0 0; }
  .mx-grow { display: none; }
  .vx-tbtn span { display: none; }
  .vx-tl { order: 2; }
  .vx-tl-bar .mx-hint, .vx-tl-bar input[type=range] { display: none; }
  .vx-tl-body { grid-template-columns: 44px minmax(0, 1fr); max-height: none; }
  .vx-tl-labels .lb span { display: none; }
  .vx-sheet { display: none; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); max-height: 58vh; z-index: 40; border: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px rgba(27, 33, 51, .18); overflow: auto; background: #fff; animation: vx-rise .2s var(--ease); }
  .vx[data-sheet=side] .vx-side, .vx[data-sheet=inspect] .vx-inspect { display: flex; flex-direction: column; }
  .vx[data-sheet=inspect] .vx-inspect { display: block; }
  .vx-sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: 10px 12px 6px; z-index: 1; }
  .vx-inspect .vx-sheet-head { margin: -12px -12px 6px; }
  .vx-tabs { display: none; }
  .vx-panel { overflow: visible; }
  .vx-phonebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px max(6px, env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; gap: 2px; box-shadow: 0 -6px 20px rgba(27, 33, 51, .08); }
  .vx-phonebar::-webkit-scrollbar { display: none; }
  .vx-phonebar button { flex: 1 0 58px; display: grid; justify-items: center; gap: 2px; padding: 4px 2px; border: 0; background: none; border-radius: 10px; font: 600 11px/1 system-ui, sans-serif; color: var(--muted); cursor: pointer; }
  .vx-phonebar button.on { color: var(--accent); background: #f1efff; }
  .vx-phonebar button:disabled { opacity: .35; }
  .ad-toast { bottom: 140px; }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
}
@keyframes vx-rise { from { transform: translateY(20px); opacity: 0; } }

/* ---------- inside the shared editor frame (editor-shell.js): old header hidden, side panel lives in the frame's panels */
html.ad-shell-on .ad-bar { display: none; }
.vx-pill { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.ad-bar .vx-pill { overflow-x: auto; max-width: 70vw; }
.vx-psep { flex: none; width: 1px; height: 24px; background: #e4e6ef; margin: 0 4px; }
.vx-pf { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.vx-pf select { height: 32px; border-radius: 8px; border: 1px solid #d9dcea; background: #fff; padding: 0 6px; font: 500 13px/1 system-ui, sans-serif; color: var(--fg); }
.vx-pf input[type=range] { width: 84px; }
.vx-pcolor { flex: none; width: 32px; height: 32px; border: 1px solid #d9dcea; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.vx-pill .btn.sm { min-height: 34px; white-space: nowrap; }
.vx-pill .btn svg { width: 16px; height: 16px; }
.vx-pill :disabled { opacity: .42; cursor: default; }
.vx-pedit { display: none; }
html.vx-framed .vx { height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "stage inspect" "tl tl"; overflow: hidden; }
html.vx-framed .vx-phonebar { display: none !important; }
html.vx-framed .vx > .vx-side { display: none !important; } /* until a frame panel takes it (it has no grid area here) */
html.vx-framed .vx-tl-body { max-height: 210px; }
html.vx-toolframed #app { overflow: auto; }
html.vx-toolframed .mx-main { padding-top: 12px; }
.ads-pbody .vx-side { display: flex !important; position: static !important; flex-direction: column; border: 0 !important; background: none; max-height: none !important; box-shadow: none !important; animation: none !important; border-radius: 0 !important; overflow: visible !important; }
.ads-pbody .vx-sheet-head, .ads-pbody .vx-tabs { display: none !important; }
.ads-pbody .vx-panel { padding: 0; overflow: visible; }
.vxp-h { font-size: 13px; margin: 16px 0 8px; }
.vxp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vxp-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vxp-el { aspect-ratio: 1; border: 1px solid #e4e6ef; border-radius: 10px; background: #2b2d42; font-size: 30px; line-height: 1; cursor: pointer; }
.vxp-el:hover, .vxp-st:hover, .vxp-combo:hover, .vxp-scene:hover .sw { outline: 2px solid var(--accent); outline-offset: 1px; }
.vxp-st { border: 1px solid #e4e6ef; border-radius: 10px; background: #f4f5fa; padding: 12px 6px; cursor: pointer; }
.vxp-st span { display: inline-block; padding: 5px 9px; border-radius: 6px; font: 800 13px/1.1 system-ui, sans-serif; }
.vxp-scene { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; display: grid; gap: 4px; }
.vxp-scene .sw { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.vxp-scene .sw svg { width: 100%; height: 100%; display: block; }
.vxp-scene small { font-size: 12px; color: var(--muted); }
.vxp-combos { display: grid; gap: 8px; }
.vxp-combo { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: linear-gradient(135deg, #1b2133, #3b3f73); color: #fff; cursor: pointer; }
.vxp-combo b { font-size: 17px; } .vxp-combo small { opacity: .85; } .vxp-combo em { font-style: normal; font-size: 11px; color: #c9cee6; }
.vxp-sounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vxp-sounds li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #e4e6ef; border-radius: 10px; }
.vxp-sounds li > span { flex: 1; display: grid; min-width: 0; font-size: 13px; }
.vxp-sounds small { color: var(--muted); font-size: 11.5px; }
/* round 2: Captions, Animate, AI tools panels */
.vxp-script { width: 100%; resize: vertical; min-height: 96px; margin-bottom: 8px; font: 14px/1.45 system-ui, sans-serif; }
.vxp-capstyles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vxp-capstyle { display: grid; gap: 4px; justify-items: center; padding: 8px 4px; border: 1px solid #e4e6ef; border-radius: 10px; background: #f4f5fa; cursor: pointer; }
.vxp-capstyle span { padding: 3px 8px; border-radius: 5px; font-size: 15px; }
.vxp-capstyle small { font-size: 11px; color: var(--muted); text-align: center; }
.vxp-capstyle.on { outline: 2px solid var(--accent); }
.vxp-caplist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.vxp-caplist button { width: 100%; text-align: left; border: 1px solid #e4e6ef; background: #fff; border-radius: 8px; padding: 6px 8px; font-size: 12.5px; cursor: pointer; }
.vxp-caplist b { color: var(--accent); margin-right: 6px; font-variant-numeric: tabular-nums; }
.vxp-anims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vxp-anim { display: grid; gap: 4px; justify-items: center; padding: 10px 4px; border: 1px solid #e4e6ef; border-radius: 10px; background: #fff; cursor: pointer; font-size: 12px; }
.vxp-anim i { font: 700 20px/1 system-ui, sans-serif; font-style: normal; color: var(--accent); }
.vxp-anim:hover i.a-pop { animation: vxp-pop .5s ease; } .vxp-anim:hover i.a-fade { animation: vxp-fade .6s ease; }
.vxp-anim:hover i.a-slide-up { animation: vxp-up .5s ease; } .vxp-anim:hover i.a-slide-left { animation: vxp-left .5s ease; }
@keyframes vxp-pop { from { transform: scale(.4); } } @keyframes vxp-fade { from { opacity: 0; } }
@keyframes vxp-up { from { transform: translateY(10px); opacity: 0; } } @keyframes vxp-left { from { transform: translateX(-14px); opacity: 0; } }
.vxp-trans { display: flex; flex-wrap: wrap; gap: 6px; }
.vxp-ailist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vxp-ai { display: grid; gap: 4px; padding: 10px; border: 1px solid #e4e6ef; border-radius: 12px; background: #fff; font-size: 13px; }
.vxp-ai span { color: var(--muted); }
.vxp-ai em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #9a5b00; background: #fff4dc; border-radius: 999px; padding: 2px 8px; justify-self: start; }
.vxp-ai .btn { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .vxp-anim i { animation: none !important; } }
@media (max-width: 760px) {
  html.vx-framed .vx { display: flex; flex-direction: column; height: 100%; padding-bottom: 0; overflow-y: auto; overflow-x: hidden; }
  html.vx-framed .vx-preview { max-height: 34vh; }
  html.vx-framed .vx-sheet { bottom: calc(106px + env(safe-area-inset-bottom)); max-height: 52vh; }
  html.vx-framed .vx-pedit { display: inline-flex; }
  .ads-pbody .vx-side .vx-panel { overflow: visible; }
  .vx-pf > span { display: none; }
  .vx-pill .vx-pb span { display: none; }
  .vx-pill #pTrimS span, .vx-pill #pTrimE span { display: inline; }
}

/* round 3: speed slider + value, slip, several clips, replace, beat markers, captions row, voiceover */
.vx-speed { display: flex; gap: 8px; align-items: center; }
.vx-speed input[type="range"] { flex: 1; min-width: 0; }
.vx-num { width: 74px; flex: none; }
.vx-vol .vx-num { margin-bottom: 12px; }
.clip.slip { cursor: ew-resize; outline: 2px dashed #ffc83d; outline-offset: -4px; }
.clip.slip .th { opacity: .65; }
.vx-multi p { margin: 0 0 10px; }
.vx-replace .vx-lib { max-height: 50vh; overflow: auto; }
.vx-pill #pSlip[aria-pressed="true"] { background: #ffc83d; color: #1b2133; }
.vx-pill #pSlip span { display: inline; }
.vx-recbar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 999px; background: rgba(15, 18, 30, .88); color: #fff; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.vx-recbar .vx-check { color: #fff; font-size: 13px; }
.vx-recdot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: vxblink 1s steps(2) infinite; }
@keyframes vxblink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .vx-recdot { animation: none; } }
.clip .beat { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .85); pointer-events: none; z-index: 1; }
.row.captions { background: rgba(255, 200, 61, .06); }
.clip.t.cap { background: #8a6d1f; }
.vxp-caplist li { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.vxp-caplist .vxp-capedit { flex: 1; min-width: 0; padding: 4px 8px; font-size: 13px; }
.vxp-captime { flex: none; border: 0; background: none; color: inherit; font: 600 12px/1 system-ui, sans-serif; cursor: pointer; padding: 4px; }
.vxp-audiotools .btn.block { width: 100%; }
.vx-tl { position: relative; }
.vx-tl-grip { position: absolute; left: 0; right: 0; top: -4px; height: 8px; cursor: ns-resize; z-index: 4; touch-action: none; }
.vx-tl-grip::after { content: ""; position: absolute; left: 50%; top: 2px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
.vx-tl-grip:hover::after, .vx-tl-grip:focus-visible::after { background: var(--accent); }
.vx[style*="--vx-tl-h"] .vx-tl-body { height: var(--vx-tl-h); max-height: none; }
.row.video .vx-plus { position: absolute; top: 12px; width: 32px; height: 32px; border-radius: 8px; border: 1.5px dashed var(--accent); background: #fff; color: var(--accent); font: 700 20px/1 system-ui, sans-serif; cursor: pointer; z-index: 2; }
.row.video .vx-plus:hover, .row.video .vx-plus:focus-visible { background: var(--accent); color: #fff; }
.vx-plusmenu { position: fixed; z-index: 60; display: grid; min-width: 240px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(15, 18, 30, .18); }
.vx-plusmenu button { text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: inherit; cursor: pointer; color: inherit; }
.vx-plusmenu button:hover, .vx-plusmenu button:focus-visible { background: #f1f0ff; }
