/* =========================
   КОНТЕЙНЕР
========================= */
.shorts-section {
    width: 100%;
    position: relative;
    z-index: 1;
}

.youtube-section {
    position: relative;
    z-index: 0;
}

.shorts-container,
.youtube-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   SWIPER BASE FIX
========================= */
.shorts-swiper .swiper-slide,
.youtube-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 🔥 важно чтобы не растягивались */
}

/* =========================
   ОБЩАЯ КАРТОЧКА
========================= */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    position: relative; /* 🔥 важно для absolute элементов */
}

/* =========================
   SHORTS (НЕ ТРОГАЕМ ЛОГИКУ)
========================= */
.short-card {
    aspect-ratio: 9 / 16;
    width: 220px;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Shorts изображения и видео */
.short-card img,
.short-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   SHORTS HOVER VIDEO
========================= */
.short-card video {
    opacity: 0;
    transition: .25s ease;
    z-index: 2;
}

.short-card:hover video {
    opacity: 1;
}

/* =========================
   YOUTUBE CARD
========================= */
.yt-card {
    width: 100%;
    max-width: 320px;
    background: #000;
}

/* картинка */
.yt-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* =========================
   SWIPER HEIGHT FIX
========================= */
.youtube-swiper {
    padding-bottom: 60px;
}

.shorts-swiper {
    padding-bottom: 40px;
}

/* =========================
   TITLE (ПОД КАРТИНКОЙ)
========================= */
.yt-title,
.vk-title {
    position: relative;
    width: 95%;

    background: #111;
    color: #fff;

    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 70px;
}
/* =========================
   VK CLIP HOVER FIX
========================= */
.vk-card {
    position: relative;
    overflow: hidden;
}

.vk-hover-embed {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.vk-hover-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* =========================
   SWIPER NAV
========================= */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #ccc !important;
}

.swiper-button-prev.swiper-button-disabled {
    color: #000 !important;
}