*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}
body{
    background-color: #0a0f0f;
    color: #fff;
    overflow-x: hidden;
}
a{
    text-decoration: none;
    color: inherit;
}
ul{
    list-style: none;
}

/* ===== Navbar ===== */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: 0.3s ease;
}
.header.scrolled{
    background-color: rgba(10, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 215, 3, 0.15);
}
.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    gap: 1rem;
}
.navbar .logo img{
    height: 36px;
}
.nav-list{
    display: flex;
    align-items: center;
    gap: 1.8rem;
}
.nav-list li a{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #cecaca;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s ease;
}
.nav-list li a i{
    font-size: 12px;
}
.nav-list li a:hover,
.nav-list li.active a{
    color: #e2d703;
}
.nav-list li.active a{
    background: rgba(226, 215, 3, 0.12);
    padding: 8px 14px;
    border-radius: 20px;
}
.nav-actions{
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.icon-btn{
    background: transparent;
    border: none;
    color: #cecaca;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s ease;
}
.icon-btn:hover{
    color: #e2d703;
    background: rgba(226, 215, 3, 0.1);
}
.nav-list .logo,
.hamburger{
    display: none;
}
.hamburger{
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}
.hamburger .line{
    width: 25px;
    height: 3px;
    border-radius: 5px;
    background-color: #fff;
}

/* ===== Hero Carousel ===== */
.hero-carousel{
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}
.hero-slides{
    height: 100%;
}
.hero-slide{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slide.active{
    opacity: 1;
    visibility: visible;
}
.hero-content{
    max-width: 620px;
    padding-top: 80px;
}
.hero-tag{
    display: inline-block;
    background: #e2d703;
    color: #0a0f0f;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-tagline{
    color: #cecaca;
    font-size: 15px;
    font-style: italic;
    margin-bottom: 0.4rem;
}
.hero-title{
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-meta{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.hero-meta span{
    font-size: 14px;
    color: #cecaca;
    font-weight: 500;
}
.hero-meta .hero-rate{
    color: #e2d703;
    font-weight: 700;
}
.hero-meta .hero-rate i{
    margin-right: 2px;
}
.hero-desc{
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 540px;
}
.hero-btn{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e2d703, #c4b900);
    color: #0a0f0f;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 30px;
    border-radius: 8px;
    transition: 0.3s ease;
}
.hero-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 215, 3, 0.35);
}
.hero-dots{
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-dots .dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}
.hero-dots .dot.active{
    background: #e2d703;
    width: 28px;
    border-radius: 10px;
}

/* ===== Quick Explore Pills ===== */
.quick-pills{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.quick-pills .pill{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #171d21;
    border: 1px solid #2e303e;
    color: #cecaca;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s ease;
}
.quick-pills .pill:hover{
    border-color: #e2d703;
    color: #e2d703;
}

/* ===== Content Section ===== */
.content-section{
    padding: 30px;
}
.section-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.section-title-wrap{
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title{
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.section-dropdown{
    position: relative;
}
.dropdown-toggle{
    background: transparent;
    border: none;
    color: #cecaca;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.3s ease;
}
.dropdown-toggle:hover{
    color: #e2d703;
}
.dropdown-toggle.open i{
    transform: rotate(180deg);
}
.dropdown-toggle i{
    transition: 0.3s ease;
}
.dropdown-menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #171d21;
    border: 1px solid #2e303e;
    border-radius: 8px;
    padding: 6px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s ease;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown-menu.open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a{
    display: block;
    color: #cecaca;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.2s ease;
}
.dropdown-menu a:hover{
    background: rgba(226, 215, 3, 0.1);
    color: #e2d703;
}
.see-all{
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #cecaca;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s ease;
}
.see-all:hover{
    color: #e2d703;
}
.see-all i{
    font-size: 11px;
}

/* ===== Movie Grid & Cards ===== */
.movie-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.movie-card{
    display: block;
    transition: 0.3s ease;
}
.movie-card .poster{
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #171d21;
}
.movie-card .poster img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.movie-card:hover .poster img{
    transform: scale(1.08);
}
.badge-type{
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e2d703;
    color: #0a0f0f;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.badge-type.serial{
    background: #ff5c5c;
    color: #fff;
}
.badge-quality{
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1eae1e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.badge-season{
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.badge-rate{
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: #e2d703;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.badge-rate i{
    font-size: 9px;
    margin-right: 2px;
}
.badge-status{
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.badge-status.ongoing{
    background: #1eae1e;
    color: #fff;
}
.badge-status.end{
    background: #555;
    color: #fff;
}
.card-info{
    margin-top: 10px;
}
.card-info h5{
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.3s ease;
}
.movie-card:hover .card-info h5{
    color: #e2d703;
}
.card-info small{
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Footer ===== */
footer{
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 40px;
}
.footer-top{
    padding: 50px 30px 30px;
    text-align: center;
}
.footer-logo img{
    height: 40px;
    margin-bottom: 1.5rem;
}
.footer-links{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}
.footer-links a{
    color: #cecaca;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s ease;
}
.footer-links a:hover{
    color: #e2d703;
}
.footer-top hr{
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 1.5rem auto;
    max-width: 800px;
}
.footer-bottom-links{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.footer-bottom-links a{
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    transition: 0.3s ease;
}
.footer-bottom-links a:hover{
    color: #e2d703;
}
.footer-copyright{
    background: #0a0f0f;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copyright p{
    color: #8a8a8a;
    font-size: 13px;
}
.footer-copyright a{
    color: #e2d703;
}

/* ===== Back to top ===== */
.back-to-top{
    position: fixed;
    opacity: 0;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    background-color: #e2d703;
    color: #0a0f0f;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 14px;
    font-size: 14px;
    transition: opacity 0.5s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(226,215,3,0.3);
}
.back-to-top:hover{
    transform: translateY(-3px);
}
.back-to-top.show{
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1100px){
    .movie-grid{
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 909px){
    .hamburger{
        display: flex;
    }
    .navbar .nav-list{
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        background-color: #171d21;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        transition: 0.3s;
        z-index: 200;
        padding-top: 1rem;
        overflow-y: auto;
    }
    .nav-list li{
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-list li a{
        padding: 15px 20px;
        border-radius: 0;
    }
    .nav-list li.active a{
        border-radius: 0;
    }
    .nav-list.active{
        right: 0;
    }
    .nav-list.active .logo{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-list .close{
        background: transparent;
        color: #fff;
        font-size: 20px;
        border: none;
        cursor: pointer;
    }
    .movie-grid{
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-title{
        font-size: 40px;
    }
    .hero-slide{
        padding: 0 30px;
    }
}
@media (max-width: 680px){
    .movie-grid{
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .hero-title{
        font-size: 32px;
    }
    .hero-slide{
        padding: 0 20px;
    }
    .navbar{
        padding: 14px 16px;
    }
    .content-section,
    .quick-pills{
        padding: 20px 16px;
    }
}
@media (max-width: 420px){
    .movie-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}
