/* =========================================
   1. SWIPER INTEGRATION WRAPPER
   ========================================= */

/* Force Swiper to behave correctly inside your section */
.actionSwiper .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important; /* Slider should NOT wrap */
    align-items: stretch;
}

.actionSwiper .swiper-slide {
    height: auto; /* Allows cards to fill height */
}


/* =========================================
   2. YOUR PROVIDED STYLES (Unchanged)
   ========================================= */

.genre-section {
    background: transparent;
    color: #fff;
    position: relative;
    overflow: hidden
}

.genre-section .section-header {
    text-align: center;
    margin-bottom: 50px
}

.genre-section .genre-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff
}

.genre-section .title-underline {
    width: 100px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #e50914, #ff0a16)
}

.genre-section .cards-container {
    position: relative;
    z-index: 1
}

/* Note: We target .genre-card directly so it works inside Swiper slides */
.genre-section .genre-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%
}

.genre-section .genre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4)
}

.card-image-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    aspect-ratio: 2/3
}

.card-img-top {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform .5s ease;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    aspect-ratio: 2/3
}

.genre-section .genre-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0, rgba(0, 0, 0, 0.6) 50, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity .35s ease, transform .35s ease;
    z-index: 5
}

.genre-section .genre-card:hover .genre-card-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.genre-section .overlay-content-inner {
    text-align: center;
    width: 100%;
    z-index: 6
}

.genre-section .overlay-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8)
}

.genre-section .overlay-buttons {
    display: flex;
    justify-content: center;
    gap: 12px
}

.genre-section .overlay-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all .25s ease
}

.genre-section .overlay-btn.trailer {
    background: rgba(0, 123, 255, 0.85)
}

.genre-section .overlay-btn.watch {
    background: rgba(40, 167, 69, 0.85)
}

.genre-section .overlay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4)
}

.section-divider {
    height: 1px;
    width: 80%;
    margin: 40px auto;
    background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
    position: relative;
    overflow: visible
}

.section-divider::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0, rgba(229, 9, 20, 0.2) 20%, rgba(229, 9, 20, 0.5) 50%, rgba(229, 9, 20, 0.2) 80%, transparent 100%);
    filter: blur(3px);
    opacity: .7;
    transition: opacity .3s ease
}

.section-divider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e50914, #ff0a16);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    transition: width .3s ease, box-shadow .3s ease
}

.section-divider:hover::before {
    opacity: 1
}

.section-divider:hover::after {
    width: 60px;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.7)
}