/* Видеоинструменты: обрезать (/tools/obrezat-video), сжать (szhat-video), конвертер (konverter-video). Общие .ac-* стили — assets/audio/cutter.css, логика — video-cutter.js. */

.vc-stage {
    background: #141414; border-radius: 10px; overflow: hidden; display: flex; justify-content: center; align-items: center;
    max-height: 60vh;
}
.vc-stage video { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; }

.vc-track {
    position: relative; height: 64px; margin-top: 10px; background: #e9e4da; border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden; touch-action: none; cursor: pointer; user-select: none;
}
.vc-track canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vc-track .ac-shade { background: rgba(20, 20, 20, .55); }
.vc-track .ac-sel { background: transparent; border-top-width: 4px; border-bottom-width: 4px; }
.vc-track .ac-handle span { height: 30px; margin-top: -15px; }
.vc-track .ac-play { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }

.vc-now { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 4px; }
.ac-work .ac-save { margin-top: 16px; }

.vc-server { background: #fdf6e7; border: 1px solid #ecdcb4; border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.vc-server .ac-row { margin: 8px 0 0; }

.vc .ac-result { align-items: flex-start; }
.vc .ac-result video { width: 100%; max-width: 420px; max-height: 300px; background: #141414; border-radius: 8px; }
.vc-res-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vc.is-busy .vc-track, .vc.is-busy .ac-times, .vc.is-busy .ac-save input { pointer-events: none; opacity: .7; }

/* сжатие и конвертер */
.vc-levels { margin: 0 0 6px; }
.vc-levels .ac-radio:last-child > input { margin-top: 9px; }
.vc-mb { width: 72px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right; }
.vc-formats { grid-template-columns: repeat(2, minmax(0, 220px)); margin-bottom: 10px; }
.vc-estimate { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.vc-estimate.is-err { color: #b3261e; }
.vc-res-gain { font-size: 14px; font-weight: 600; }

@media (max-width: 760px) {
    .vc-track { height: 52px; }
    .vc .ac-transport .ac-big { flex: 1 1 100%; }
}
