/* Free video tools (/video-tools/, lib/video_tools.php, js/video-tools.js). Builds on subtitle-tools.css. */

.vt-file b { display: block; }
.vt-meta { display: block; font-size: 13px; color: var(--sv-muted, #556179); margin-top: 2px; }
.vt-work { margin-top: 18px; }
.vt-work[hidden], .vt-result[hidden], .vt-progress[hidden], .vt-canvas[hidden], .vt-pos[hidden], .vt-kbps[hidden] { display: none !important; }

.vt-stage { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; background: #0f172a; border-radius: 14px; padding: 12px; overflow: hidden; }
.vt-video { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; background: #000; transition: transform .25s ease; }
.vt-canvas { display: block; max-width: 100%; height: auto; max-height: 360px; border-radius: 8px; box-shadow: 0 0 0 2px #38bdf8; }

.vt-choices { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.vt-options label.vt-choice { min-width: 0; flex: 1 1 140px; margin: 0; cursor: pointer; }
.vt-choice input { position: absolute; opacity: 0; pointer-events: none; }
.vt-choice span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border: 2px solid var(--sv-line, #e4e9f2); border-radius: 14px;
    background: #fff; text-align: center; font-weight: 600; transition: border-color .15s, background .15s; }
.vt-choice span .fa { font-size: 20px; color: var(--sv-primary, #4f46e5); }
.vt-choice small { font-weight: 400; font-size: 12px; color: var(--sv-muted, #556179); }
.vt-choice input:checked + span { border-color: var(--sv-primary, #4f46e5); background: #eef2ff; }
.vt-choice input:focus-visible + span { outline: 3px solid #a5b4fc; }
.vt-shape-ico { display: block; height: 30px; border: 2px solid var(--sv-primary, #4f46e5); border-radius: 4px; }

.vt-range { border: 1px solid var(--sv-line, #e4e9f2); border-radius: 12px; padding: 10px 14px; width: 100%; min-width: 0; }
.vt-range legend { font-size: 14px; font-weight: 700; width: auto; padding: 0 6px; margin: 0; }
.vt-range-row { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.vt-time { display: flex; gap: 8px; align-items: center; }
.vt-time input { width: 130px; font-variant-numeric: tabular-nums; }
.vt-range-info { margin-top: 8px; font-size: 14px; }

.vt-rot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.vt-rot-now { margin-left: 6px; font-weight: 600; }

.vt-bar { align-items: center; }
.vt-go { min-width: 220px; }

.vt-progress { margin-top: 16px; }
.vt-progress-bar { height: 12px; border-radius: 99px; background: #e8edf7; overflow: hidden; }
.vt-progress-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2f5bff, #7c3aed); transition: width .2s linear; }
.vt-progress-txt { margin-top: 6px; font-size: 14px; color: #26324a; font-variant-numeric: tabular-nums; }

.vt-result { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 18px; padding: 16px;
    border-radius: 14px; background: #f4fbf8; border: 1px solid #9fd8c2; }
.vt-result-media video { width: 100%; max-height: 340px; border-radius: 10px; background: #000; }
.vt-result-media audio { width: 100%; }
.vt-result-side p { margin: 0 0 10px; }
.vt-result-done { font-weight: 700; color: #11795a; }
.vt-result-size { font-size: 15px; }
.vt-win { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #11795a; color: #fff; font-size: 13px; font-weight: 700; }
.vt-download { width: 100%; }
.vt-result-name { margin: 6px 0 10px; font-size: 13px; word-break: break-all; }
.vt-next { display: inline-block; font-weight: 600; }

[dir="rtl"] .vt-win { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .vt-rot-now { margin-left: 0; margin-right: 6px; }

@media (max-width: 760px) {
    .vt-result { grid-template-columns: minmax(0, 1fr); }
    .vt-go { min-width: 0; flex: 1 1 100%; }
    .vt-video, .vt-canvas { max-height: 260px; }
    .vt-time input { width: 110px; }
}
