/* Shared cards adapted from the reference .card/.thumb/.card__body.
 * Keep .video-items / .poster[data-vk] / .video-preview for existing preview JS. */
.list-page-v2__body .video-items-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.list-page-v2__body .video-items-v2 > li { min-width: 0; }
.video-card-v2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: #17171e;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.video-card-v2__thumb.aspect-w-16 { flex: none; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #1e1e27; }
.video-card-v2__cover { object-fit: cover; transition: transform .35s; }
.video-card-v2__hd {
    position: absolute;
    left: 7px;
    top: 7px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,.92);
    color: #14141a;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    pointer-events: none;
}
.video-card-v2__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    padding: 2px 6px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
}
.video-card-v2__info { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 13px 14px; }
.video-card-v2__title { margin: 0; min-width: 0; }
.video-card-v2__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: 3em;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    text-align: left;
    color: #f4f4f6;
}
.video-card-v2__title a:hover { color: #ff6b95; }
.video-card-v2__tags { display: flex; gap: 6px; margin: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.video-card-v2__tags::-webkit-scrollbar { display: none; }
.video-card-v2__tags a {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 3px 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    background: #17171e;
    color: #8f8f9d;
    font-size: 11.5px;
    line-height: 1.5;
    white-space: nowrap;
    transition: color .18s, border-color .18s, background .18s;
}
.video-card-v2__tags a:hover,
.video-card-v2__tags a:focus-visible { color: #fff; background: rgba(255,47,109,.14); border-color: rgba(255,47,109,.45); }
.video-card-v2__meta { margin: auto 0 0; color: #a9a9b6; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.video-card-v2 .poster::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 3px; z-index: 2; background: var(--dx-primary-color); }
.video-card-v2 .poster.preloading::before { animation: video-card-v2-preview 2s forwards; }
@keyframes video-card-v2-preview { from { width: 0; } to { width: 100%; } }
@media (hover: hover) {
    .video-card-v2:hover { transform: translateY(-3px); border-color: rgba(255,47,109,.3); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
    .video-card-v2:hover .video-card-v2__cover { transform: scale(1.025); }
}
@media (max-width: 767px) {
    .list-page-v2__body .video-items-v2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 10px; }
    .video-card-v2 { border-radius: 10px; }
    .video-card-v2__info { gap: 6px; padding: 9px 9px 11px; }
    .video-card-v2__title a { font-size: 13px; line-height: 1.5; }
    .video-card-v2__meta { font-size: 11px; }
    .video-card-v2__duration { right: 6px; bottom: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .video-card-v2, .video-card-v2__cover { transition: none; }
    .video-card-v2:hover { transform: none; }
}
