/* ================================================
   ISOLATED CUSTOMER EXPERIENCES (CX) SLIDER STYLES
   ================================================ */
/* Wrapper - Overflow protected */
.cx-reels-slider-wrapper {
    overflow: hidden;
    padding: 20px 0;
    cursor: grab;
    width: 100%;
}

.cx-reels-slider-wrapper:active {
    cursor: grabbing;
}

.cx-reels-slider {
    overflow: visible;
}

.cx-reels-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Item Styles (Desktop) */
.cx-reel-item {
    /* 5 items by default */
    flex: 0 0 calc(20% - 16px);
    max-width: calc(20% - 16px);
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    user-select: none;
}

.cx-reel-item:hover {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* Images & Thumbnails */
.cx-reel-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #111;
}

.cx-reel-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
    /* Default B&W */
}

.cx-reel-item:hover .cx-reel-poster-img {
    transform: scale(1.05);
    filter: grayscale(0%);
    /* Color on Hover */
}

/* Play Button */
.cx-reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Transparent Background */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.cx-reel-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.cx-reel-item:hover .cx-reel-play-btn {
    transform: scale(1);
    background: #ffd700;
}

/* ================================================
   RESPONSIVE DESIGN (MOBILE FIXES)
   ================================================ */

/* Tablet */
@media (max-width: 991px) {
    .cx-reel-item {
        /* 3 items */
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

/* Mobile */
@media (max-width: 767px) {

    /* Main Section Overflow Protection */
    .reels-section {
        overflow-x: hidden !important;
    }

    .cx-reels-slider-wrapper {
        padding: 0 15px;
        overflow: visible;
        /* Allows bounce/peek */
    }

    .cx-reels-track {
        gap: 12px;
    }

    .cx-reel-item {
        /* Show 1.4 Items for better focus and taller look */
        flex: 0 0 70%;
        max-width: 70%;
        /* STRICT 9:16 Ratio */
        aspect-ratio: 9/16 !important;
        height: auto !important;
        transform: none !important;
        /* Disable scale effect on mobile */
    }

    .cx-reel-poster-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* Note: If user complains about cropping, change to contain */
    }

    .cx-reel-play-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}