@import url("/image-converter/styles.css?v=1");
/* video to gif */
.vg-drop { text-align: center; padding: 34px 20px; border: 2px dashed var(--border); border-radius: 14px; background: var(--panel-2); }
.vg-drop.over { border-color: #95d600; background: rgba(149,214,0,.06); }
.vg-drop .btn { font-size: 16px; padding: 14px 26px; }
.vg-drop p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
#status { min-height: 1.4em; margin: 12px 0 0; }
.vg-stage { background: #000; border-radius: 12px; overflow: hidden; text-align: center; }
#view { display: block; max-width: 100%; max-height: 56vh; margin: 0 auto; }
.vg-track { position: relative; height: 64px; margin-top: 14px; border-radius: 8px; overflow: hidden; background: #0b0b0f; touch-action: none; user-select: none; -webkit-user-select: none; }
#strip { display: block; width: 100%; height: 100%; opacity: .55; }
#selBox { position: absolute; top: 0; bottom: 0; border: 2px solid #95d600; border-radius: 8px; box-shadow: 0 0 0 100vw rgba(11,11,15,.55); }
#selMid { position: absolute; inset: 0 22px; cursor: grab; }
.vg-h { position: absolute; top: 0; bottom: 0; width: 24px; background: #95d600; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.vg-h::after { content: ""; width: 3px; height: 22px; border-radius: 2px; background: #10130a; }
#hA { left: -2px; border-radius: 6px 0 0 6px; } #hB { right: -2px; border-radius: 0 6px 6px 0; }
#head { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.vg-trim { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; font-size: 13px; }
.vg-trim input { width: 84px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 13px; }
.vg-trim label { display: flex; gap: 6px; align-items: center; color: var(--muted); }
#selInfo { margin-left: auto; color: var(--text); }
.vg-opts { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; }
.vg-opts label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.vg-opts select, .vg-opts input { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 14px; min-height: 40px; }
.vg-opts input { width: 90px; }
#est { margin: 14px 0 0; min-height: 1.4em; }
#est[data-over="1"] { color: var(--warn); }
.vg-make { margin-top: 14px; }
.vg-make .btn { font-size: 16px; padding: 14px 28px; }
#gif { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; background: repeating-conic-gradient(#1a1b22 0% 25%, #121319 0% 50%) 50% / 20px 20px; }
#facts { margin: 14px 0 0; font-weight: 600; }
#receipt { margin: 6px 0 0; color: var(--muted); }
.vg-save { margin-top: 14px; }
.vg-save .btn { text-decoration: none; display: inline-block; font-size: 16px; padding: 12px 24px; }
/* v2: crop, captions */
@font-face { font-family: "Anton"; src: url("/lib/gif/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/lib/gif/fonts/bebas-neue.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bangers"; src: url("/lib/gif/fonts/bangers.woff2") format("woff2"); font-display: swap; }
.vg-stage { line-height: 0; }
.vg-fit { position: relative; display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; }
#over { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vg-fit[data-mode="text"] #over { pointer-events: auto; cursor: move; touch-action: none; }
#cropBox { position: absolute; border: 2px solid #95d600; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); pointer-events: none; }
.vg-fit[data-mode="crop"] #cropBox { pointer-events: auto; cursor: move; touch-action: none; }
.vg-c { position: absolute; width: 26px; height: 26px; background: #95d600; border-radius: 4px; display: none; touch-action: none; }
.vg-fit[data-mode="crop"] .vg-c { display: block; }
#c-nw { left: -4px; top: -4px; cursor: nwse-resize; } #c-ne { right: -4px; top: -4px; cursor: nesw-resize; }
#c-sw { left: -4px; bottom: -4px; cursor: nesw-resize; } #c-se { right: -4px; bottom: -4px; cursor: nwse-resize; }
.vg-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.vg-tools .btn[aria-pressed="true"] { border-color: #95d600; color: #95d600; background: rgba(149,214,0,.08); }
.vg-sub { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; font-size: 13px; line-height: 1.5; }
.vg-sub select, .vg-cap select, .vg-cap input[type="number"] { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 13px; }
#textTools { display: block; } #textTools.hidden { display: none !important; }
.vg-cap { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.vg-cap textarea { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 15px; resize: vertical; }
.vg-capopts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 10px; }
.vg-capopts label { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.vg-capopts .vg-chk { color: var(--text); }
.vg-capopts input[type="range"] { width: 110px; } .vg-capopts input[type="number"] { width: 76px; }
.vg-capopts input[type="color"] { width: 38px; height: 30px; padding: 1px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
.vg-range { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
#presetNote { margin: 10px 0 0; }
.vg-save { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
