/* Template Editor — video background (skia-video-backgrounds MP-01; frozen screen 12). Theme tokens only (Rule 10). */

/* G1: on a global template the Video choice is off */
#bgVideoBtn:disabled {
    opacity: var(--opacity-heavy);
    cursor: not-allowed;
}

/* Background › Video: the video in use, "Replace the video", three ways, the note */
.bg-video-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.bg-video-card {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-xs) / 2); /* frozen 12: 2px between where it came from and its length and size */
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--color-glass-subtle);
    border: 1px solid var(--color-border-medium);
}

.bg-video-from {
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.bg-video-summary,
.bg-video-label,
.bg-video-note {
    font-size: var(--font-xs);
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.bg-video-way {
    height: 30px;
    padding: 0 var(--space-sm);
    border-radius: calc(var(--radius-sm) * 1.5); /* frozen 12: 6px corners */
    background: var(--color-glass-subtle);
    border: 1px solid var(--color-border-medium);
    color: var(--color-text-primary);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
}

.bg-video-way:hover {
    border-color: var(--color-primary);
}

/* The video under every layer, and its play mark with the length (bottom left, over the picture; frozen 12: 12px in,
   28px high, 0 10px padding, 6px gap) */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

.bg-video-badge {
    position: absolute;
    left: calc(var(--space-sm) + var(--space-xs));
    bottom: calc(var(--space-sm) + var(--space-xs));
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: calc(var(--space-xs) * 1.5);
    height: 28px;
    padding: 0 calc(var(--space-sm) + var(--space-xs) / 2);
    border-radius: var(--radius-3xl); /* a pill at this height (frozen 12: 999px), as SKIA's other pills */
    background: var(--color-overlay-strong);
    color: var(--color-white);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    pointer-events: none;
}
