/* =========================================================================
   SNAP SLIDER CORE LAYOUT, RESPONSIVE BREAKPOINTS & CONTROLS
   ========================================================================= */

:root {
    --brand-purple: #9352b3; /* Official Series Reminder Purple */
    --brand-purple-hover: #9352b3; /* Kept same as primary per your preference */
    --brand-purple-opaque: rgba(147, 82, 179, 0.85); /* Semi-transparent purple overlay */
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem; /* Matches Bootstrap standard gutter spacing */
    padding: 10px 0 20px 0;

    /* Hide scrollbars across browsers */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

/* Responsive Widths with strict minimum boundaries to prevent squishing [3] */
.slider-item {
    flex: 0 0 165px; /* Force standard, readable width on mobile [3] */
    min-width: 165px; /* Safeguard: cards can never squeeze below 165px [3] */
    scroll-snap-align: start;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .slider-item {
        flex: 0 0 calc(50% - 12px); /* 2 items visible on large mobile/small tablet [3] */
    }
}

@media (min-width: 768px) {
    .slider-item {
        flex: 0 0 calc(33.333% - 16px); /* 3 items on tablet [3] */
    }
}

@media (min-width: 992px) {
    .slider-item {
        flex: 0 0 calc(20% - 20px); /* 5 items on desktop [3] */
    }
}

/* Navigation Buttons */
.slider-arrow-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #212529;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, color 0.2s, transform 0.1s, opacity 0.2s ease;
    opacity: 1;
    pointer-events: auto;
}

.slider-arrow-btn:hover {
    background-color: var(--brand-purple);
    border-color: var(--brand-purple);
    color: #ffffff;
}

.slider-arrow-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.slider-arrow-btn.prev {
    left: -22px;
}

.slider-arrow-btn.next {
    right: -22px;
}

@media (hover: none) {
    .slider-arrow-btn {
        display: none !important;
    }
}

/* =========================================================================
   SERIES CARD UI VISUAL STYLING
   ========================================================================= */

.trending-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.trending-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

.poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premiere-text {
    color: var(--brand-purple) !important;
}