/* ------------------------------------------------------------
   BANNER SECTION (HERO) - CINEMATIC VIEW SWITCHER
   Style: RoPhim / Netflix Platform (No Carousel Slide)
   ------------------------------------------------------------ */

/* 1. CONTAINER & GLOBAL BLEND
   ------------------------------------------------------------ */
#banner-section {
    position: relative;
    width: 100%;
    /* Cinematic height rules */
    height: calc(100vh + 60px);
    height: calc(100vh + 60px);
    max-height: none;

    background-color: var(--bgPage);
    overflow: hidden;

    /* Pull up behind header for full immersion */
    margin-top: calc(var(--header-height) * -1);
}

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



/* 2. TRACK (STACKING CONTEXT)
   ------------------------------------------------------------ */
.banner-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* QUAN TRỌNG: Không dùng Flex row nữa. Chuyển sang stack absolute */
.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
    /* Remove transform transition */
    transform: none !important;
}

/* 3. SLIDE (LAYERS)
   ------------------------------------------------------------ */
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Default State: Hidden layer */
    opacity: 0;
    visibility: hidden;
    z-index: 1;

    /* Subtle Fade Transition (No Slide) */
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    /* Prevent flash */
}

/* ACTIVE STATE: The chosen one */
/* JS logic: Add class .is-active to the current slide */
.banner-slide.is-active,
.banner-slide:first-child:not(.is-active-initialized) {
    /* Fallback: show first child if JS hasn't initialized classes yet */
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.banner-cta,
.banner-thumbnails,
.banner-thumbnail {
    pointer-events: auto;
}

/* 5. OVERLAY & TYPOGRAPHY (CINEMATIC)
   ------------------------------------------------------------ */
.banner-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* CHỈ PHỦ PHẦN DƯỚI */
    height: 30%;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 5% 60px 5%;
    /* OVERLAY NHẸ – LÀM NỀN CHO TEXT */
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.7) 0%,
            rgba(15, 23, 42, 0.3) 45%,
            rgba(15, 23, 42, 0.0) 100%);
}

.banner-title {
    /* UI CASE: Page Title (Token Usage) */
    font-family: var(--fontFamily);
    font-size: var(--pageTitle-size);
    font-weight: var(--pageTitle-weight);
    line-height: var(--pageTitle-lineHeight);
    letter-spacing: var(--pageTitle-tracking);

    /* Color: White (textInverse) on Dark Gradient */
    color: var(--textInverse);

    /* Layout */
    max-width: 700px;
    margin: 0;

    /* Static, clean feel. No fly-in animation. */
    opacity: 0.95;
}

.banner-thumbnails {
    position: absolute;
    right: 4%;
    bottom: 32px;
    z-index: 30;

    display: flex;
    gap: 10px;
}

.banner-thumbnail {
    width: 96px;
    height: 60px;

    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;

    opacity: 0.45;
    transition: opacity 0.2s ease;

    /* background-color: var(--bgSurface); */
    border: 1px solid var(--borderLight);
}

.banner-thumbnail.is-active {
    opacity: 1;
    border-color: var(--borderStrong);
}

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

.banner-cta {
    position: relative;

    /* KÍCH THƯỚC CỐ ĐỊNH */
    width: 140px;
    height: 44px;

    background-color: var(--bgSurface);
    border: none;
    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 600;

    color: var(--textPrimary);

    cursor: pointer;
    overflow: hidden;

    /* skew container */
    transform: skew(-18deg);
}

.banner-cta span {
    display: inline-block;
    transform: skew(18deg);
    pointer-events: none;

    position: relative;
    z-index: 1;
}

/* lớp hover sweep */
.banner-cta::before {
    content: '';
    position: absolute;
    inset: 0;

    background-color: var(--brandPrimary);
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.45s ease, opacity 0.45s ease;

    z-index: 0;
}

.banner-cta:hover {
    color: var(--textInverse);
}

.banner-cta:hover::before {
    transform: translateX(0);
    opacity: 1;
}


/* 6. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    #banner-section {
        height: 55vh;
        /* Taller on tablet relative to width */
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #banner-section {
        height: 60vh;
        /* Focus on vertical poster feel on mobile */
        min-height: 380px;
    }



    /* Optional: Slightly constrain title width on mobile */
    .banner-title {
        width: 100%;
    }
}