/* Container for the content cards section */
.content-preview-container {
    padding: 0 15px;
    max-width: 100%;
    margin-bottom: 40px;
}

.content-preview-container h1 {
    font-size: 30px;
    margin: 20px 0;
    color: #fff;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
}

/* Flex container for the 3 main cards */
.content-cards-wrapper {
    display: flex;
    justify-content: center;
    /* Center on desktop */
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    flex-wrap: wrap;
    /* Wrap on smaller screens if needed, or scroll */
}

/* Individual Card Style */
.content-video-card {
    background-color: #141414;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    /* Fixed width for consistency */
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.content-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(229, 9, 20, 0.7);
}

/* Info Header above video */
.card-info-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141414;
    gap: 10px;
    background: #141414;
    border-top: 1px solid #333;
}

.card-info-header h2 {
    margin: 0;
    color: #E50914;
    font-size: 24px;
    font-family: 'Bebas Neue', sans-serif;
}

.card-info-header span {
    color: #FFF;
    font-size: 16px;
    font-family: 'Bebas Neue', sans-serif;
}

/* Video Swiper Container (Horizontal Scroll) */
/* Video Swiper Container Wrapper (Holds scroller + buttons) */
.card-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
}

/* Video Swiper Scroller (Horizontal Scroll) */
.card-video-scroller {
    display: flex;
    overflow-x: hidden;
    /* Disable manual scroll */
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    /* Fill container */
    scroll-behavior: smooth;
}

/* Navigation Buttons */
.card-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}

.card-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-nav-btn.prev {
    left: 10px;
}

.card-nav-btn.next {
    right: 10px;
}

.video-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
}

/* When video has poster loaded */
.video-slide-item.has-poster {
    background: #000;
}

.video-slide-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    background-color: transparent;
}


/* Play Icon Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Let clicks pass through to video/container */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.play-overlay i {
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hidden state for overlay */
.play-overlay.hidden {
    opacity: 0;
}

/* Swipe Indicator (optional hint) */
.swipe-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-cards-wrapper {
        justify-content: flex-start;
        /* Left align on mobile for scrolling */
        flex-wrap: nowrap;
        padding-left: 15px;
        /* Offset for scroll start */
    }

    /* Center single card layouts (like Trust Me) on mobile */
    .content-cards-wrapper:has(.content-video-card:only-child) {
        justify-content: center;
        padding-left: 0;
    }

    .content-video-card {
        width: 75vw;
        /* Slightly smaller on mobile */
        max-width: 300px;
    }
}

/* Focus Mode - Blur Inactive Cards */
.content-cards-wrapper.has-active-card .content-video-card {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.content-cards-wrapper.has-active-card .content-video-card:not(.active-card) {
    filter: blur(2px);
    opacity: 0.6;
    pointer-events: none;
    /* Prevent interaction with blurred cards */
}

.content-video-card.active-card {
    filter: blur(0);
    opacity: 1;
    z-index: 10;
    transform: scale(1.02);
    /* Slight scale up for focus */
}

/* Mute Toggle Button */
.mute-control {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.mute-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mute-control i {
    font-size: 16px;
}