/* ==========================================================================
   VIDEO PAGE (video.html) — Featured Videos Swiper
   Зависит от: video-shared.css, swiper-bundle.min.css
   ========================================================================== */

/* Секция */
.video-section {
    padding: 4rem 0 5rem;
    background: var(--bg-main);
    transition: background-color 0.4s ease;
}

/* Заголовок секции */


/* Карточка видео */
.video-card {
    background: var(--bg-block);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

/* Кнопка воспроизведения — glassmorphism */
.play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.play-button svg {
    width: 32px; height: 32px;
    fill: white;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Заголовок видео */
.video-title {
    padding: 1.2rem 1rem;
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-block);
    z-index: 1;
}

/* Ссылка «Все видео» */
.all-videos-link {
    display: inline-block;
    margin: 3rem auto;
    padding: 0.8rem 2.5rem;
    background: var(--btn-cta-bg);
    color: var(--btn-cta-text);
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(11, 79, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.all-videos-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.all-videos-link:hover::before { left: 100%; }

.all-videos-link:hover {
    transform: translateY(-3px);
    background: var(--btn-cta-bg-hover);
    box-shadow: 0 12px 25px rgba(11, 79, 55, 0.35);
    color: var(--btn-cta-text);
}

/* ---------- Swiper custom ---------- */
.video-carousel {
    padding: 20px 10px 50px 10px !important;
}

.video-section .swiper-button-next,
.video-section .swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.5) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease !important;
}

.video-section .swiper-button-next:hover,
.video-section .swiper-button-prev:hover {
    background: var(--btn-cta-bg) !important;
    transform: scale(1.1);
}

.video-section .swiper-button-next:after,
.video-section .swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.video-section .swiper-pagination-bullet {
    background: #bdc3c7 !important;
    opacity: 0.6 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease !important;
}

.video-section .swiper-pagination-bullet-active {
    background: var(--accent-line) !important;
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 5px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }

    .video-title {
        font-size: 1.05rem;
        padding: 1rem 0.8rem;
    }

    .video-section .swiper-button-next,
    .video-section .swiper-button-prev {
        width: 32px !important;
        height: 32px !important;
    }

    .video-section .swiper-button-next:after,
    .video-section .swiper-button-prev:after {
        font-size: 1rem !important;
    }
}
