/* Video thumbnail generator. Bouwt voort op tools.css. */

.vt-step + .vt-step {
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-top: clamp(1.25rem, 3vw, 2rem);
    border-top: 1px solid var(--line);
}

.vt-step[hidden] {
    display: none;
}

.vt-num {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    margin-right: 0.4rem;
    vertical-align: 0.15em;
}

.vt-drop.is-over {
    outline: 2px dashed var(--accent);
    outline-offset: 4px;
}

.vt-info,
.vt-out {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.vt-info dt,
.vt-out dt {
    font-size: 0.8125rem;
    color: var(--muted);
}

.vt-info dd,
.vt-out dd {
    font-variant-numeric: tabular-nums;
}

.vt-player {
    background: #111111;
    display: grid;
    place-items: center;
    max-height: 60vh;
    margin-bottom: 0.75rem;
}

.vt-player video {
    display: block;
    max-width: 100%;
    max-height: 60vh;
}

.vt-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vt-timeline {
    flex: 1 1 auto;
}

.vt-time {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    min-width: 6.5rem;
    text-align: right;
}

.vt-steprow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0;
}

.vt-exact .field {
    min-width: 12rem;
}

.vt-preview {
    background: var(--tint);
    border: 1px solid var(--line);
    padding: 0.75rem;
    display: grid;
    place-items: center;
}

.vt-preview canvas {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    display: block;
}

.vt-series {
    margin-top: 2rem;
}

.vt-series-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.vt-series-list li {
    border: 1px solid var(--line);
    padding: 0.5rem;
    display: grid;
    gap: 0.35rem;
    font-size: 0.8125rem;
}

.vt-series-list img {
    width: 100%;
    height: 7rem;
    object-fit: contain;
    background: var(--tint);
}

@media (max-width: 760px) {
    .vt-controls {
        flex-wrap: wrap;
    }

    .vt-timeline {
        flex-basis: 100%;
        order: 3;
    }
}

/* De vier stapknoppen hebben een pijl naast het woord; met iets minder ruimte opzij passen ze ook op
   een smal scherm naast elkaar */
.btn[data-step] {
    padding-inline: 0.55rem;
}
