/*
 * ioann-karpovka: videos_list block (task 31; year groups instead of pagination since task 75). Mirrors albums-list.css
 * (the «Фотоальбомы» page, design Site.dc.html?page=albums) under the .ik-videos__* names - keep the two in sync.
 * Markup: blocks/videos_list.blade.php; sticky year bar = .ik-page-tabs--anchors (page-tabs.css); cards: video-card.css.
 * The numeral sits beside the cards only when 4 tracks of 220px + 3 gaps of 64px fit (viewport >= 1136px); below that it
 * stacks above the cards. Breakpoints: min-width queries only, never max-width (task 36); the side layout has its own 1136px query.
 */
.ik-videos__years { padding-bottom: 120px; }

.ik-videos__year {
    display: grid;
    gap: 32px;
    min-width: 0;
    padding-block: 72px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: var(--ik-anchor-offset, 73px);
}

.ik-videos__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
    min-width: 0;
}

.ik-videos__numeral {
    margin: 0;
    font: 600 clamp(72px, 9vw, 120px)/.9 var(--font-title);
    letter-spacing: -.02em;
    color: var(--iskm-ochre);
}

.ik-videos__count {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font: 500 13px/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--iskm-mauve-700);
}
.ik-videos__count .ik-flower { flex: none; width: 14px; height: 14px; }

.ik-videos__grid {
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 48px 32px;
}
.ik-videos__item { min-width: 0; }
/* 16:9 covers are ~267px wide here: a smaller play disc than the card default (72px) */
.ik-videos__grid { --ik-video-play: 56px; }

.ik-videos__empty {
    margin: 0;
    padding-block: 40px 120px;
    font: italic 400 24px/1.3 var(--font-title);
    color: var(--iskm-mauve-700);
}

@media (min-width: 1136px) {
    .ik-videos__year {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 64px;
    }
    .ik-videos__head { position: sticky; top: 96px; }
    .ik-videos__grid { grid-column: span 3; }
}
