*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins',sans-serif;
}

.navbar{
    background-color: #171d21;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
}
.navbar ul{
    display: flex;
    align-items: center;
    gap: 3rem;
}
.navbar ul li{
    list-style: none;
}
.navbar ul li a{
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s ease-in-out;
}
.navbar ul li a:hover{
    color: #e2d703;
}
.navbar ul .btn{
    border: 2px solid #e2d703;
    color: #e2d703;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    background-color: #1d1a28;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}
.navbar ul .btn:is(:hover, :focus) {
    background: #e2d703;
    color: #1d1a28;
}
.nav-list .logo{
    display: none;
    align-items: center;
    justify-content: space-around;
    padding-top: 20px;
}
.nav-list .logo .close{
    background-color: transparent;
    color: #fff;
    font-size: 20px;
    border: none;
}
.hamburger{
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}
.hamburger .line{
    width: 25px;
    height: 3px;
    border-radius: 5px;
    background-color: #fff;
}
.hero{
    background: url(../images/hero-bg.jpg) no-repeat;
    background-size: cover;
    background-position: right;
    height: 90vh;   
    max-height: 1000px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0px 30px;
}
.hero .main .content{
    max-width: 60%;
}
.hero .main .content p{
    font-size: 26px;
    font-weight: 700;
    color: #e2d703;
    margin-bottom: 0.5rem;
}
.hero .content h1{
    font-size: 50px;
    color: #fff;
    line-height: 62px;
}
.hero .content strong{
    color: #e2d703;
}
.hero .meta-wrapper{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}
.hero .meta-wrapper .badge span:nth-child(1){
    background-color: #fff;
    color: #171d21;
    font-weight: 700;
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 0.5rem;
}
.hero .meta-wrapper .badge span:nth-child(2){
    background-color: #171d21;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
    padding: 3px 10px;
    font-size: 12px;
}
.hero .meta-wrapper .genre a{
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s ease-in-out;
}
.hero .meta-wrapper .genre a:hover{
    color: #e2d703;
}
.hero .meta-wrapper .date-time span{
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.hero .meta-wrapper .date-time span:nth-child(1){
    margin-right: 0.5rem;
}
.hero .date-time i{
    color: #e2d703;
}

.hero .content .watch-btn button{
    border: 2px solid #e2d703;
    color: #fff;
    padding: 13px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    background-color: #1d1a28;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.hero .content .watch-btn button:is(:hover, :focus) {
    background: #e2d703;
    color: #1d1a28;
}
.upcoming-movie{
    background: url(../images/upcoming-bg.png) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 100px 30px;
}
.upcoming-movie .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.upcoming-movie .header .subtitle small{
    font-size: 12px;
    color: #e2d703;
    text-transform: uppercase;
    font-weight: 500;
}
.upcoming-movie .header .subtitle h4{
    font-size: 40px;
    color: #fff;
}
.upcoming-movie .header .buttons{
    display: flex;
    gap: 1rem;
}
.upcoming-movie .header .buttons button{
    color: #fff;
    background-color: #21232b;
    font-weight: 500;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid #2e303e;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.upcoming-movie .header .buttons button:focus{
    border: 2px solid #e2d703;
}

.upcoming-movie .movie-card{
    display: flex;
    align-items: center;
    justify-content: center;
}
.wrapper {
    width: 100%;
    position: relative;
  }

    /*.wrapper .movie-carousel {
        display: grid;
        grid-template-columns: repeat(7, 1fr);*/ /* 👈 7 card */
        /*gap: 20px;
        overflow: visible;*/ /* ❌ bỏ scroll */
    /*}*/
.movie-carousel {
    display: flex !important; 
    flex-direction: row;
    gap: 16px;
    overflow-x: auto; 
    padding: 10px 20px;
    list-style: none;
    padding-left: 30px;
    align-items: flex-start;
    justify-content: space-around;
}



  .movie-carousel::-webkit-scrollbar {
    display: none;
  }
  .movie-carousel.no-transition {
    scroll-behavior: auto;
  }
  .movie-carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .movie-carousel.dragging .card {
    cursor: grab;
    user-select: none;
  }
    .movie-carousel .card {
        min-width: 180px;
        max-width: 180px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
        .movie-carousel .card .img {
            width: 100%;
            aspect-ratio: 2/3;
        }

            .movie-carousel .card .img img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 10px;
                transition: 0.3s;
            }
        .movie-carousel .card:hover {
            transform: translateY(-5px);
            transition: 0.3s;
        }
        .movie-carousel .card:hover .img img {
            transform: scale(1.05);
        }

        /* play overlay on carousel poster */
        .movie-carousel .card .img .play-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(transparent, rgba(0,0,0,0.35));
            opacity: 0;
            transition: opacity 180ms ease;
            border-radius: 10px;
            cursor: pointer;
            text-decoration: none;
        }

        .movie-carousel .card:hover .img .play-overlay {
            opacity: 1;
        }

        .movie-carousel .card .img .play-overlay .icon {
            background: rgba(226,215,3,0.95);
            color: #111;
            padding: 10px 12px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 18px rgba(0,0,0,0.4);
            font-size: 22px;
        }
        .movie-carousel .card .title {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 3px;
            min-height: 40px;
        }

            .movie-carousel .card .title a {
                position: relative;
                color: #fff;
                font-size: 14px;
                font-weight: 600;
                line-height: 1.3;
                display: block;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
.movie-carousel .card .title a:hover{
    color: #e2d703;
}
.movie-carousel .card .title span{
    color: #e2d703;
    font-weight: 600;
    font-size: 14px;
}
        .movie-carousel .card .footer {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
.movie-carousel .card .footer span{
    color: #e2d703;
    padding: 3px 10px;
    border: 2px solid #fff;
    font-size: 12px;
    font-weight: 600;

}
.movie-carousel .card .footer .time-rating span{
    color: #fff;
    padding: 0px;
    border: none;
}
.movie-carousel .card .footer .time-rating i{
    color: #e2d703;
    margin-right: 0.3rem;
}

.service{
    background: url(../images/service-bg.jpg) no-repeat;
    background-position: center;
    background-size: cover;
    padding: 100px 30px;
}
.service .main{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.service .main .img img{
    width: 90%;
}
.service .content {
    width: 50%;
}
.service .content small{
    font-size: 13px;
    color: #bdbdbd;
    text-transform: uppercase;
    font-weight: 600;
}
.service .content h4{
    font-size: 40px;
    color: #fff;
    line-height: 52px;
    margin: 0.5rem 0rem;
}
.service .content p{
    color: #bdbdbd;
    font-size: 15px;
    font-weight: 500;
}
.service .content ul{
    margin-top: 2rem;
}
.service .content ul li{
    list-style: none;
    margin-top: 1rem;
}
.service .content li .service-card{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.service li .service-card .img{
    border: 1px dashed #e2d703;
    padding: 5px;
    border-radius: 50%;
}
.service hr{
    border: none;
    border-bottom: 1px dashed hsla(0, 0%, 100%, 0.1);
    height: 2px;
    outline: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.service li .service-card .icon{
    background-color: transparent;
    padding: 20px;
    border-radius: 50%;
    transition: 0.3s ease-in-out;
}
.service li .service-card i{
    color: #fff;
    font-size: 30px;
}
.service li .service-card:hover .icon{
    background-color: #e2d703;
}
.service li .service-card h5{
    font-size: 20px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.top-movie{
    background: url(../images/top-rated-bg.jpg) no-repeat;
    background-size: cover;
    padding: 100px 30px;
}
.top-movie .header,.tv-series .header{
    text-align: center;
}
.top-movie .header small,.tv-series .header small{
    color: #e2d703;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
}
.top-movie .header h4,.tv-series .header h4{
    color: #fff;
    font-size: 40px;
}
.top-movie .top-movie-main .buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}
.top-movie .top-movie-main .buttons button{
    background-color: #0a0f0f;
    color: #cecaca;
    border-radius: 5px;
    font-size: 13px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    border: 2px solid #000000cc;
    transition: 0.3s ease-in-out;
}
.top-movie .top-movie-main .buttons button:is(:hover,:focus) {
    color: #e2d703;
    text-shadow: 0 3px 25px hsl(57deg 97% 45% / 50%);
}
.same .wrapper {
    display: block;
    overflow: visible;
    width: 100%;
    justify-content: center;
    row-gap: 50px;
    column-gap: 30px;
    margin-top: 3rem;
}
.same .wrapper .card{
    width: 100%;
}

/*movie card*/

.movie-card {
    display: block;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    overflow: visible;
    width: 100%;
    margin-top: 30px;
}

.movie-card-filter {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    overflow: visible;
    width: 100%;
    margin-top: 30px;
}

.movie-card .card .img {
    aspect-ratio: 2/3;
    height: auto;
    overflow: hidden;
    position: relative;
}

    .movie-card .card .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    /* play overlay on poster */
    .movie-card .card .img .play-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(transparent, rgba(0,0,0,0.35));
        opacity: 0;
        transition: opacity 180ms ease;
        border-radius: 6px;
        cursor: pointer;
        text-decoration: none;
    }

    .movie-card .card:hover .img .play-overlay {
        opacity: 1;
    }

    .movie-card .card .img .play-overlay .icon {
        background: rgba(226,215,3,0.95);
        color: #111;
        padding: 10px 12px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.4);
        font-size: 22px;
    }
.movie-card .card .title {
    width: 100%;
    overflow: hidden; /* 🔥 bắt buộc */
}

    .movie-card .card .title a {
        display: block;
        width: 100%; /* 🔥 bắt buộc */
        max-width: 100%; /* 🔥 fix tràn */

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #fff;
        text-decoration: none;
    }

.movie-card .card .title a:hover{
    color: #e2d703;
}

.movie-card .card .title span {
    color: #e2d703;
    font-weight: 600;
    font-size: 13px;
}
.movie-carousel .card .title span {
    color: #e2d703;
    font-weight: 600;
    font-size: 13px;
}
.movie-card .card .footer{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}
.movie-card .card .footer span{
    color: #e2d703;
    padding: 3px 10px;
    border: 2px solid #fff;
    font-size: 12px;
    font-weight: 600;

}
.movie-card .card .footer .time-rating span{
    color: #fff;
    padding: 0px;
    border: none;
}
.movie-card .card .footer .time-rating i{
    color: #e2d703;
    margin-right: 0.3rem;
}

.tv-series{
    background: url(../images/tv-series-bg.jpg) no-repeat;
    background-size: cover;
    padding: 100px 30px;
}

.trial{
    background: url(../images/cta-bg.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 50px 30px;
}
.trial .main{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.trial .content h4{
    font-size: 30px;
    text-transform: uppercase;
}
.trial .content p{
    font-size: 15px;
    font-weight: 500;
}
.trial .form .input{
    background-color: #fff;
    width: 400px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    border-radius: 5px;
}
.trial .form .input input{
    width: calc(100%/2);
    height: 40px;
    padding: 0px 10px;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
}
.trial .form button{
    text-transform: uppercase;
    font-size: 15px;
    padding: 10px 18px;
    background-color: #0a0f0f;
    color: #e2d703;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.trial .form button:hover{
    color: #0a0f0f;
    border: 2px solid #0a0f0f;
    background-color: #e2d703;
}

footer .footer-top{
    background: url(../images/footer-bg.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 100px 30px;
}

.footer-top nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-top nav ul{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}
.footer-top nav ul li{
    list-style: none;
}
.footer-top ul li a{
    text-decoration: none;
    color: #cecaca;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}
.footer-top ul li a:hover{
    color: #e2d703;
}
.footer-top hr{
    height: 4px;
    margin-block: 40px;
    border: none;
    border-top: 1px solid #11141d;
    border-bottom: 1px solid #ffffff1a;
}
.footer-top .links{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-top .links .text-links{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-top .text-links a{
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    color: #cecaca;
    transition: 0.3s ease-in-out;
}
.footer-top .text-links a:hover{
    color: #e2d703;
}
.footer-top .social-links{
    display: flex;
    gap: 1rem;
}
.footer-top .social-links a{
    color: #cecaca;
    background-color: #11141d;
    padding: 10px 13px;
    font-size: 12px;
    border-radius: 50%;
    transition: 0.3s ease-in-out;
}
.footer-top .social-links a:hover{
    color: #e2d703;
}
.footer-bottom{
    background-color: #171d21;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
}
.footer-bottom .copyright p{
    color: #cecaca;
    font-size: 13px;
    font-weight: 500;
}
.footer-bottom .copyright a{
    color: #e2d703;
    text-decoration: none;
}
.back-to-top {
    position: fixed;
    opacity: 0;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    background-color: #e2d703;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
}
.back-to-top.show {      
    opacity: 0.8;  
    transition: opacity 1s, transform 1s;     
}

@media only screen and (max-width: 909px){
    .hamburger{
        display: flex;
    }
    .navbar .nav-list{
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        background-color: #171d21;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        transition: 0.3s;
        z-index: 4;
        padding-top: 1rem;
    }
    .nav-list li{
        width: 100%;
        border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
        padding: 0px 25px 20px 20px;
    }
    .nav-list .home{
        margin-top: 1rem;
        border-top: 1px solid hsla(0, 0%, 100%, 0.1);
        padding-top: 15px;
    }
    .nav-list .btn{
        margin: 20px 20px;
    }
    .nav-list.active{
        right: 0;
    }
    .nav-list.active .logo{
        display: flex;
        width: inherit;
    }
    .hero{
        background-position: center;
    }
    .hero .content{
        max-width: max-content!important;
    }
    .hero .content p{
        font-size: 24px;
    }
    .hero .content h1{
        font-size: 42px;
    }
    .hero .content .badge span{
        font-size: 11px;
    }
    .hero .content .genre a{
        font-size: 14px;
    }
    .upcoming-movie .header{
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }
    .service .main{
        flex-direction: column;
        gap: 2rem;
    }
    .service img{
        max-width: max-content;
    }
    .service .content{
        width: 80%;
    }
    .trial .main{
        justify-content: center;
        gap: 2rem;
    }
    .trial .content{
        text-align: center;
    }
    .movie-detail .main{
        flex-direction: column;
    }
}
@media only screen and (max-width: 767px){
    .upcoming-movie .wrapper .movie-carousel{
        grid-auto-columns: calc((100% / 2) - 15px);
    }
    .same .wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top nav,.footer-top .links,.footer-bottom{
        flex-direction: column;
        gap: 2rem;
    }
    .footer-top nav ul,.footer-top .links .text-links{
        justify-content: center;
    }
}
@media only screen and (max-width: 549px){
    .hero .content h1{
        font-size: 36px;
    }
    .upcoming-movie .header .subtitle h4,.service .content h4,.top-movie .header h4,.tv-series .header h4{
        font-size: 32px;
    }
    .upcoming-movie .wrapper .movie-carousel{
        grid-auto-columns: calc((100%) - 15px);
    }
    .same .wrapper{
        grid-template-columns: repeat(1, 1fr);
    }
    .service .content{
        width: 90%;
    }
    .service .service-card{
        flex-direction: column;
        align-items: flex-start!important;
    }
}
@media only screen and (max-width: 450px){
    .trial .form .input{
        width: 350px;
    }
}
@media (min-width: 1200px){
    .upcoming-movie .wrapper .movie-carousel{
        grid-auto-columns: calc((100%/4) - 15px);
    }
    .same .wrapper{
        grid-template-columns: repeat(4, 1fr);
    }
    
}

@media (max-width: 1200px) {
    .movie-card {
        grid-template-columns: repeat(4,1fr);
    }
}

@media (max-width: 768px) {
    .movie-card {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 480px) {
    .movie-card {
        grid-template-columns: repeat(1,1fr);
    }
}


/*movie*/

.movie-detail {
    background: url(../images/movie-detail-bg.png) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 100px 5%;
}

    .movie-detail .main {
        display: flex;
        align-items: flex-start; /* Đổi từ center thành flex-start */
        gap: 4rem;
        flex-wrap: wrap;
        max-width: 1400px;
        margin: 0 auto;
    }

        /* Poster phim */
        .movie-detail .main .img {
            width: 280px; /* Tăng kích thước poster */
            aspect-ratio: 2/3;
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
        }

            .movie-detail .main .img img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 8px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            }

    .movie-detail .img i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        font-size: 60px;
        color: #fff;
        opacity: 0.8;
        transition: 0.3s;
        cursor: pointer;
    }

        .movie-detail .img i:hover {
            opacity: 1;
            transform: translate(-50%,-50%) scale(1.1);
        }

    /* Nội dung phim - Mở rộng */
    .movie-detail .content {
        flex: 1; /* Chiếm không gian còn lại */
        min-width: 300px;
    }

        .movie-detail .content strong {
            font-size: 22px;
            font-weight: 800;
            color: #e2d703;
            display: block;
            margin-bottom: 0.5rem;
        }

        .movie-detail .content h4 {
            font-size: 42px;
            font-weight: 700;
            color: #fff;
            margin: 0.5rem 0;
            line-height: 1.2;
        }

            .movie-detail .content h4 span {
                color: #e2d703;
                font-size: 24px;
                margin-left: 10px;
            }

        /* Badge + Genre */
        .movie-detail .content .badge-genre {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            color: #fff;
            margin: 1rem 0;
        }

    .movie-detail .badge-genre .badge {
        display: flex;
        gap: 0.5rem;
    }

        .movie-detail .badge-genre .badge span:nth-child(1) {
            background: #fff;
            color: black;
            font-size: 13px;
            font-weight: 800;
            padding: 4px 12px;
            border-radius: 3px;
        }

        .movie-detail .badge-genre .badge span:nth-child(2) {
            border: 2px solid #fff;
            font-size: 13px;
            font-weight: 700;
            padding: 2px 12px;
            border-radius: 3px;
        }

    .movie-detail .badge-genre .genre {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

        .movie-detail .badge-genre .genre a {
            text-decoration: none;
            color: #cecaca;
            font-size: 13px;
            font-weight: 600;
            transition: 0.3s;
            padding: 4px 10px;
            background: rgba(255,255,255,0.1);
            border-radius: 20px;
        }

            .movie-detail .badge-genre .genre a:hover {
                color: #e2d703;
                background: rgba(226, 215, 3, 0.1);
            }

    /* Date time */
    .movie-detail .date-time {
        display: flex;
        gap: 2rem;
        margin: 1.5rem 0;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

        .movie-detail .date-time span {
            color: #cecaca;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .movie-detail .date-time i {
            color: #e2d703;
            width: 20px;
        }

    /* Description */
    .movie-detail .content p {
        color: #cecaca;
        margin: 1.5rem 0;
        font-size: 15px;
        line-height: 1.6;
        max-width: 800px;
    }

    /* THÊM PHẦN DIỄN VIÊN */
    .movie-detail .cast-section {
        margin: 2rem 0;
    }

        .movie-detail .cast-section h3 {
            color: #fff;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 1rem;
            position: relative;
            padding-left: 15px;
        }

            .movie-detail .cast-section h3::before {
                content: '';
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 4px;
                height: 20px;
                background: #e2d703;
                border-radius: 2px;
            }

    .movie-detail .cast-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .movie-detail .cast-item {
        text-align: center;
        width: 100px;
    }

        .movie-detail .cast-item img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #e2d703;
            margin-bottom: 0.5rem;
            transition: 0.3s;
        }

        .movie-detail .cast-item:hover img {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(226, 215, 3, 0.3);
        }

        .movie-detail .cast-item .cast-name {
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .movie-detail .cast-item .cast-role {
            color: #cecaca;
            font-size: 11px;
        }

    /* THÊM PHẦN ĐIỂM ĐÁNH GIÁ */
    .movie-detail .rating-section {
        display: flex;
        align-items: center;
        gap: 2rem;
        margin: 1.5rem 0;
        padding: 1rem;
        background: rgba(36, 44, 56, 0.5);
        border-radius: 8px;
        border: 1px solid #333;
    }

    .movie-detail .rating-box {
        text-align: center;
        min-width: 80px;
    }

        .movie-detail .rating-box .score {
            font-size: 32px;
            font-weight: 700;
            color: #e2d703;
            line-height: 1;
        }

        .movie-detail .rating-box .label {
            color: #cecaca;
            font-size: 12px;
            text-transform: uppercase;
        }

    .movie-detail .rating-source {
        color: #fff;
        font-size: 14px;
        font-weight: 500;
    }

        .movie-detail .rating-source small {
            color: #cecaca;
            font-size: 12px;
            display: block;
        }

    /* Actions */
    .movie-detail .content .detail-actions {
        display: flex;
        padding: 20px;
        margin-top: 2rem;
        flex-wrap: wrap;
        align-items: center;
        border-radius: 8px;
        justify-content: space-evenly; /* Đổi từ center thành space-between */
        gap: 2rem;
        width: max-content;
        background: #242c38;
        border: 1px solid #333;
    }

    .movie-detail .detail-actions button {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: transparent;
        cursor: pointer;
        border: none;
        min-width: 60px;
    }

        .movie-detail .detail-actions button i {
            color: #fff;
            font-size: 20px;
            margin-bottom: 5px;
        }

        .movie-detail .detail-actions button span {
            color: #cecaca;
            font-size: 12px;
            transition: 0.3s;
        }

        .movie-detail .detail-actions button:hover span {
            color: #e2d703;
        }

    /* Watch button */
    .movie-detail .btn {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 1.2rem 0;
    }

        .movie-detail .btn a {
            display: flex;
            align-items: center;
            gap: 10px;
            border: 2px solid #e2d703;
            border-radius: 30px;
            padding: 14px 32px;
            color: #fff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            transition: 0.3s;
        }

            .movie-detail .btn a:hover {
                background: #e2d703;
                color: #242c38;
            }

            .movie-detail .btn a i {
                font-size: 14px;
            }

    /* trailer button */
    .movie-detail .trailer-btn {
        display: flex;
        align-items: center;
        gap: 8px;
    }

/* Responsive */
@media(max-width: 1024px) {
    .movie-detail .main {
        gap: 3rem;
    }

        .movie-detail .main .img {
            width: 240px;
        }
}

@media(max-width: 768px) {
    .movie-detail .main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

        .movie-detail .main .img {
            width: 200px;
        }

    .movie-detail .content h4 {
        font-size: 32px;
    }

    .movie-detail .badge-genre {
        justify-content: center;
    }

    .movie-detail .date-time {
        justify-content: center;
    }

    .movie-detail .cast-list {
        justify-content: center;
    }

    .movie-detail .rating-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .movie-detail .detail-actions {
        justify-content: center !important;
    }
}

/* Cast section */
.movie-detail .cast-section {
    margin: 2rem 0;
}

    .movie-detail .cast-section h3 {
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 1rem;
        position: relative;
        padding-left: 15px;
    }

        .movie-detail .cast-section h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 20px;
            background: #e2d703;
            border-radius: 2px;
        }

.movie-detail .cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.movie-detail .cast-item {
    text-align: center;
    width: 100px;
}

    .movie-detail .cast-item img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #e2d703;
        margin-bottom: 0.5rem;
        transition: 0.3s;
    }

    .movie-detail .cast-item:hover img {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(226, 215, 3, 0.3);
    }

    .movie-detail .cast-item .cast-name {
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 2px;
        line-height: 1.3;
    }

    .movie-detail .cast-item .cast-role {
        color: #cecaca;
        font-size: 11px;
    }

.movie-detail .no-data {
    color: #cecaca;
    font-size: 14px;
    font-style: italic;
    padding: 10px 0;
}

.movie-detail .loading {
    color: #cecaca;
    font-size: 14px;
}

/*trailer-popup*/

.trailer-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.trailer-content {
    position: relative;
    width: 70%;
    max-width: 900px;
    margin: 8% auto;
}

    .trailer-content iframe {
        width: 100%;
        height: 500px;
        border-radius: 10px;
    }

#close-trailer {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/*Filter*/

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .section-header h4 {
        font-size: 32px;
        color: white;
        font-weight: 700;
    }

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e2430;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

    .arrow-btn:hover {
        background: #e2d703;
        color: black;
    }

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 25px;
}

    .movie-grid .card {
        list-style: none;
    }

    .movie-grid .img {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        aspect-ratio: 2/3;
    }

    .movie-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .movie-grid .title {
        margin-top: 10px;
    }

        .movie-grid .title a {
            color: white;
            font-size: 16px;
            font-weight: 600;
            display: block;
        }

        .movie-grid .title span {
            color: #aaa;
            font-size: 13px;
        }

/*tooltip*/

.title a::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    border-radius: 5px;
    z-index: 10;
}

.title a:hover::after {
    opacity: 1;
}

/*dropdown-menu (layout)*/

.dropdown-menu {
    display: none; 

    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    padding: 20px;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    z-index: 999999;
}

    /* chỉ khi show mới grid */
    .dropdown-menu.show {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 30px;
    }

/* item */
.dropdown-item {
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* hover */
    .dropdown-item:hover {
        color: #ffffff;
        transform: translateX(3px);
    }

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

/*search-box*/

.search-box {
    display: flex;
    align-items: center;
    background: #1f2937;
    padding: 15px 20px;
    border-radius: 5px;
    width: 250px;
    position: relative;
    width: 300px;
}

    .search-box i {
        color: #9ca3af;
        margin-right: 8px;
    }

    .search-box input {
        border: none;
        outline: none;
        background: transparent;
        color: white;
        width: 100%;
    }

        .search-box input::placeholder {
            color: #9ca3af;
        }


.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111827;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

    .search-dropdown.show {
        display: block;
    }

.search-item {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid #1f2937;
}

    .search-item:hover {
        background: #1f2937;
    }

    .search-item img {
        width: 40px;
        height: 60px;
        object-fit: cover;
        margin-right: 10px;
    }

    .search-item span {
        color: white;
        font-size: 14px;
    }

    .search-item img {
        width: 40px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }
