﻿/* ── Featured Videos Carousel ─────────────────────── */
.featured-swiper-outer {
    position: relative;
    padding: 0 1rem;
}

.featured-video-card {
    cursor: pointer;
}

.featured-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.22s ease, transform 0.22s ease;
}

.featured-video-card:hover .featured-play-btn {
    background: rgba(185,32,49,0.88);
    transform: scale(1.1);
}

.featured-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .featured-nav-btn:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

    .featured-nav-btn.swiper-button-disabled {
        opacity: 0.3;
        pointer-events: none;
    }

/* ── Tablet breakpoint (480px) ────────────────────── */
.featured-nav-item {
    display: none;
    flex: 1 1 0;
}

@media (min-width: 480px) {
    .featured-nav-item {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .featured-h2 {
        text-align: center !important;
    }
}

.featured-pagination {
    text-align: center;
    margin-top: 20px;
}

    .featured-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: var(--gray-light);
        opacity: 1;
        margin: 0 4px;
        display: inline-block;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
    }

    .featured-pagination .swiper-pagination-bullet-active {
        background: var(--accent);
        width: 24px;
        border-radius: 4px;
    }

#videoModal .modal-dialog {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#videoModal .modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    background: #171717;
}

#videoModal .modal-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #2f2f2f;
}

#videoModal .modal-title {
    display: -webkit-box;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}

#videoModal .modal-body {
    overflow-y: auto;
    background: #0d0d0d;
}

.video-modal-copy {
    padding: 1rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, #202020 0%, #171717 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.video-modal-copy [hidden] {
    display: none !important;
}

.video-modal-description {
    display: -webkit-box;
    max-width: 92ch;
    margin: 0;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
}

.video-description-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.2em;
}

.video-description-toggle:hover,
.video-description-toggle:focus {
    color: var(--accent);
}

.video-modal-full-description {
    max-height: 9rem;
    max-width: 100ch;
    margin-top: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.06);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}
