.vl-page {
    --video-surface: oklch(99% 0.004 225);
    --video-surface-muted: oklch(96% 0.009 225);
    --video-border: oklch(88% 0.012 225);
    --video-border-strong: oklch(75% 0.02 225);
    --video-text: oklch(23% 0.018 225);
    --video-muted: oklch(49% 0.018 225);
    --video-faint: oklch(66% 0.015 225);
    --video-accent: oklch(43% 0.105 235);
    --video-accent-soft: oklch(94% 0.028 235);
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    display: grid;
    gap: clamp(var(--space-2xl), 5vw, var(--space-3xl));
    padding: clamp(var(--space-xl), 5vw, var(--space-3xl)) clamp(var(--space-md), 4vw, var(--space-xl));
    color: var(--video-text);
}

.vl-section {
    display: grid;
    gap: var(--space-md);
    content-visibility: auto;
    contain-intrinsic-size: 32rem;
}

.vl-title {
    margin: 0;
    color: var(--video-text);
    font-size: 1.75rem;
    font-weight: 650;
    line-height: 1.15;
    text-wrap: balance;
}

.vl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
}

.video-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: var(--video-surface);
    border: 1px solid var(--video-border);
    border-radius: 8px;
    transition:
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
    contain: layout paint;
}


.video-card:focus-within {
    border-color: var(--video-accent);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--video-accent) 18%, transparent);
}

.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, transparent 0 48%, color-mix(in oklch, var(--video-accent) 9%, transparent) 48% 52%, transparent 52%),
        var(--video-surface-muted);
}

.video-card__thumb--vimeo {
    aspect-ratio: 16 / 8.75;
}

.video-card__thumb> :not(.video-card__unavailable) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-card__thumb iframe,
.video-card__thumb video,
.video-card__thumb embed,
.video-card__thumb object {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.video-card__unavailable {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--space-md);
    color: var(--video-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
}

.video-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
}

.video-card__title {
    margin: 0;
    color: var(--video-text);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    text-wrap: pretty;
}

.video-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: auto;
    color: var(--video-muted);
    font-size: 0.875rem;
    line-height: 1.35;
}

.video-card__date {
    color: var(--video-text);
    font-weight: 600;
}

.video-card__meta-sep {
    width: 0.25rem;
    height: 0.25rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--video-faint);
}

.vl-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: var(--space-2xl);
    border: 1px dashed var(--video-border);
    border-radius: 8px;
    background: var(--video-surface-muted);
    color: var(--video-muted);
    font-size: 1rem;
    line-height: 1.45;
    text-align: center;
}

.vl-empty p {
    margin: 0;
}

.text-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-width: 230px; */
}

.vl-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vl-info a {
    color: black;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .video-card {
        transition: none;
    }

    .video-card:hover {
        transform: none;
    }
}

@media (max-width: 900px) {
    .vl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vl-page {
        padding-inline: var(--space-md);
    }

    .vl-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .vl-title {
        font-size: 1.5rem;
    }
}