@media (hover: hover) and (pointer: fine) {
    html, body, a, button, input, select, textarea, img, .item, [role="button"] {
        cursor: none !important;
    }

    html,
    body,
    a,
    button,
    input,
    select,
    textarea,
    img,
    .item {
        cursor: none;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10000;
        width: 9px;
        height: 9px;
        margin: -4.5px 0 0 -4.5px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 0 12px rgba(255,255,255,.9);
        pointer-events: none;
        will-change: transform;
        animation: cursorPulse 1.4s ease-in-out infinite;
    }

    .custom-cursor.is-hidden {
        opacity: 0;
    }

    .custom-cursor.is-hover {
        width: 13px;
        height: 13px;
        margin: -6.5px 0 0 -6.5px;
        background: #060816;
        border: 1px solid #fff;
        box-shadow: 0 0 14px rgba(255,255,255,1);
    }

    @keyframes cursorPulse {
        0%, 100% { opacity: .82; box-shadow: 0 0 8px rgba(255,255,255,.7); }
        50% { opacity: 1; box-shadow: 0 0 16px rgba(255,255,255,1); }
    }
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: "Poppins", sans-serif;
}

html, body {
    min-height: 100%;
}

body {
    background-color: #060816;
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #fff;
}

.app {
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    z-index: 1;
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(90, 118, 255, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(48, 210, 180, 0.16), transparent 32%);
}

#particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    animation: drift var(--duration) ease-in-out infinite;
    opacity: 0.55;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.2;
    }
    50% {
        transform: translate3d(var(--drift-x), var(--drift-y), 0);
        opacity: 1;
    }
    100% {
        transform: translate3d(calc(var(--drift-x) * -1), calc(var(--drift-y) * -1), 0);
        opacity: 0.4;
    }
}

#heroSection {
    position: relative;
    width: 100%;
    min-height: auto;
    margin-top: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    display: block;
}

.vertical-div {
    width: 100px;
    height: 10vh;
    background-color: transparent;
}

.item {
    cursor: pointer;
    width: 150px;
    height: 250px;
    list-style-type: none;
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    background-position: center;
    background-size: cover;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 22px rgba(255,255,255,0.26), 0 0 18px rgba(255,255,255,0.24);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                left 0.75s cubic-bezier(0.4, 0, 0.2, 1), 
                top 0.75s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.75s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.75s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseGlow 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .item {
        transition: none !important;
        animation: none !important;
    }
}

.item:hover {
    box-shadow: 0 25px 42px rgba(255,255,255,0.55), 0 0 30px rgba(255,255,255,0.35);
    transform: translateY(-50%) scale(1.02);
}

.item:nth-child(1), .item:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    opacity: 1;
    animation: none;
}

.item:nth-child(3) { left: 37%; }
.item:nth-child(4) { left: calc(37% + 220px); }
.item:nth-child(5) { left: calc(37% + 440px); opacity: 1;}
.item:nth-child(6) { left: calc(37% + 660px); opacity: 0; }

.content {
    width: min(25vw, 350px);
    position: relative;
    top: 75%;
    left: clamp(200px, 50%, 52.5rem);
    transform: translateY(-50%);
    font: 400 0.85rem helvetica,sans-serif;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.7);
    opacity: 0;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(17, 16, 29, 0.7);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 16px rgba(255,255,255,0.2);
    animation: pulseGlow 2s ease-in-out infinite;
}

.content .title {
    font-family: 'poppins';
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content .description {
    line-height: 1.6;
    margin: 0.75rem 0 1.25rem;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
}

.watch-now-button {
    width: fit-content;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.watch-now-button:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

.nav {
    position: relative;
    top: -25rem;
    left: 1%;
    width: 200px;
    transform: translateX(-50%);
    z-index: 5;
    user-select: none;
}

.nav .btn {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 0px solid rgba(255,255,255,0.1);
    margin: 0 0.25rem;
    padding: .75rem;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav .btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.item:nth-child(3):hover {
    left: 40%;
    visibility: visible;
}

/* Left and right navigation buttons for DESKTOP - keeping original */
.btf {
    z-index: 99;
    position: absolute;
    top: 50%;
    left: 0%;
    width: 60px;
    height: 100%;
    border: none;
    border-radius: 0 15px 15px 0;
    background: rgba(17, 16, 29, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.btf:hover {
    background: rgba(17, 16, 29, 0.9);
    width: 65px;
}

.btw {
    border: none;
    z-index: 99;
    position: absolute;
    top: 50%;
    right: 0%;
    width: 60px;
    height: 100%;
    border-radius: 15px 0 0 15px;
    background: rgba(17, 16, 29, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.btw:hover {
    background: rgba(17, 16, 29, 0.9);
    width: 65px;
}

.bx.bxs-chevron-right {
    font-size: 40px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.btw:hover .bx.bxs-chevron-right {
    transform: translateX(3px);
    color: #fff;
}

.bx.bxs-chevron-left {
    font-size: 40px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.btf:hover .bx.bxs-chevron-left {
    transform: translateX(-3px);
    color: #fff;
}

/* Mobile Navigation Header - for mobile only */
.mobile-nav-header {
    display: none;
}

/* =========================== */
/* MOBILE RESPONSIVE DESIGN ONLY - BUTTONS IN HEADER */
/* =========================== */

/* Tablet Responsiveness */
@media (max-width: 1110px) {
    #hnav_Content {
        display: none !important;
    }

    #heroSection {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    #heroSection {
        padding: clamp(80px, 12vw, 150px);
        padding-left: clamp(80px, 15vw, 200px);
    }
    
    .content {
        left: clamp(200px, 45%, 40rem);
        width: 300px;
    }
    
    .item:nth-child(3) { left: 35%; }
    .item:nth-child(4) { left: calc(35% + 180px); }
    .item:nth-child(5) { left: calc(35% + 360px); }
    .item:nth-child(6) { left: calc(35% + 540px); opacity: 0; }

    .section-title-main {
        font-size: 2.5rem;
        top: 22%;
    }

    #hnav_Content nav {
        gap: 1.5rem;
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    #hnav_Content nav a {
        font-size: 1rem;
    }

    #heroSection .item {
        width: 240px !important;
        height: 350px !important;
    }
}

/* Mobile (768px and below) - BUTTONS MOVED TO HEADER */
@media (max-width: 768px) {
    /* Hide desktop navigation buttons on mobile */
    .btf, .btw {
        display: none !important;
    }

    .section-title-main {
        font-size: 2rem;
        top: 5%;
    }

    #hnav_Content {
        margin: 0 auto 0.5rem;
        padding: 0 10px;
    }

    #hnav_Content nav {
        gap: 1rem;
        padding: 0.9rem 1rem;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    #hnav_Content nav a {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }

    #heroSection {
        display: none !important;
    }

    #heroSection .slider {
        padding: 1rem 0.5rem 1.5rem !important;
        gap: 1rem !important;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    #heroSection .item {
        width: calc(100vw - 120px) !important;
        height: 300px !important;
        position: relative !important;
        left: auto !important;
        transform: none !important;
        top: auto !important;
        opacity: 1 !important;
        display: block !important;
        margin: 0 !important;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    #heroSection .item:nth-child(1),
    #heroSection .item:nth-child(2),
    #heroSection .item:nth-child(3),
    #heroSection .item:nth-child(4),
    #heroSection .item:nth-child(5),
    #heroSection .item:nth-child(6) {
        display: block !important;
    }

/* Carousel scrollbar styling */
#heroSection .slider::-webkit-scrollbar {
    height: 6px;
}

#heroSection .slider::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

#heroSection .slider::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

#heroSection .slider::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

    .nav {
        top: auto !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 100;
    }
    
    .nav .btn {
        padding: 0.5rem;
        margin: 0;
        font-size: 0.9rem;
        width: 40px;
        height: 40px;
    }
    
    /* Mobile content display */
    .content {
        position: relative !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 400px;
        margin: 20px auto !important;
        text-align: center;
        padding: 20px;
        opacity: 1 !important;
        display: block !important;
        animation: none;
        background: rgba(17, 16, 29, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.1);
        z-index: 1000;
    }
    
    .content .title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .content .description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0.5rem 0 1rem;
    }
    
    .watch-now-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin: 0 auto;
        display: inline-block;
    }
    
    /* Sidebar adjustments */
    .sidebar {
        width: 80px;
    }
    
    .sidebar.open {
        width: 250px;
    }
    
    #hnav_Content {
        margin-left: 80px;
        width: calc(100% - 80px);
        display: flex;
        flex-direction: column;
    }
    
    .sidebar.open ~ #hnav_Content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .section-title-main {
        font-size: 1.6rem;
        top: 4%;
    }

    #hnav_Content {
        margin: 0 auto 0.3rem;
        padding: 0 5px;
    }

    #hnav_Content nav {
        gap: 0.8rem;
        padding: 0.7rem 0.8rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }

    #hnav_Content nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    #heroSection {
        padding: 40px 10px !important;
        padding-left: 70px !important;
        padding-top: 60px !important;
        padding-bottom: 80px !important;
        min-height: auto;
        height: auto;
    }

    #heroSection .slider {
        display: none !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    #heroSection .item {
        width: calc(100vw - 100px) !important;
        height: 260px !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        opacity: 1 !important;
        display: block !important;
        transform: none !important;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    #heroSection .item:nth-child(1),
    #heroSection .item:nth-child(2),
    #heroSection .item:nth-child(3),
    #heroSection .item:nth-child(4),
    #heroSection .item:nth-child(5),
    #heroSection .item:nth-child(6) {
        display: block !important;
    }
    
    .content {
        width: 90% !important;
        max-width: 350px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 15px !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        margin: 20px auto 0 !important;
    }
    
    main {
        overflow-x: hidden !important;
    }
    
    .scroll-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #heroSection .item:hover {
        transform: scale(1.02) !important;
    }
    
    .mobile-nav-header {
        top: 10px !important;
        width: 95% !important;
        max-width: 280px !important;
        padding: 10px 15px !important;
    }
    
    .mobile-header-buttons {
        gap: 15px !important;
    }
    
    .mobile-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    /* Navigation adjustment */
    .nav {
        position: relative !important;
        margin: 15px auto 20px !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 100;
    }
    
    .nav .btn {
        width: 35px;
        height: 35px;
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    /* Content adjustment */
    .content {
        width: 95% !important;
        padding: 15px;
        margin: 15px auto !important;
    }
    
    .content .title {
        font-size: 1.1rem;
    }
    
    .content .description {
        font-size: 0.75rem;
    }
    
    .watch-now-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    #hnav_Content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    .sidebar {
        width: 70px;
    }
    
    .sidebar.open ~ #hnav_Content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* Extra Small Screens (320px and below) */
@media (max-width: 320px) {
    .section-title-main {
        font-size: 1.3rem;
        top: 3%;
        letter-spacing: 0px;
    }

    #hnav_Content {
        margin: 0;
        padding: 0 2px;
    }

    #hnav_Content nav {
        gap: 0.5rem;
        padding: 0.6rem 0.5rem;
        flex-wrap: wrap;
        font-size: 0.8rem;
    }

    #hnav_Content nav a {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
        white-space: nowrap;
    }

    #heroSection {
        padding: 50px 10px !important;
        padding-left: 70px !important;
        padding-top: 90px !important;
        padding-bottom: 80px !important;
    }

    #heroSection .slider {
        padding: 0.8rem 0.5rem 1.2rem !important;
        gap: 0.5rem !important;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #heroSection .item {
        width: clamp(110px, 20vw, 140px) !important;
        height: clamp(165px, 30vw, 210px) !important;
        margin: 0 5px !important;
        flex-shrink: 0;
    }

    #heroSection .item:hover {
        transform: translateY(-2px) scale(1.01) !important;
    }
    
    .mobile-nav-header {
        top: 8px !important;
        padding: 8px 12px !important;
        max-width: 260px !important;
    }
    
    .mobile-header-buttons {
        gap: 12px !important;
    }
    
    .mobile-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .item {
        width: 170px !important;
        height: 240px !important;
        margin: 85px auto 10px !important;
    }
    
    .nav {
        margin: 5px auto 25px !important;
    }
    
    .nav .btn {
        width: 30px;
        height: 30px;
        padding: 0.3rem;
        font-size: 0.7rem;
    }
    
    .content {
        width: 90% !important;
        padding: 12px;
        margin: 0 auto 80px !important;
    }
    
    .content .title {
        font-size: 1rem;
    }
    
    .content .description {
        font-size: 0.7rem;
    }
    
    .watch-now-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .sidebar {
        width: 70px;
    }
    
    .sidebar.open ~ #hnav_Content {
        margin-left: 200px;
    }
}

/* Mobile (768px and below) - BUTTONS MOVED TO HEADER */
@media (max-width: 768px) {
    /* Hide desktop navigation buttons on mobile */
    .btf, .btw {
        display: none !important;
    }
    
    /* Show mobile navigation header */
    .mobile-nav-header {
        display: flex !important;
        position: fixed !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1000 !important;
        width: 90% !important;
        max-width: 300px !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: rgba(29, 27, 49, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    }
    
    /* Mobile Header Navigation Buttons */
    .mobile-header-buttons {
        display: flex !important;
        gap: 20px !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .mobile-nav-btn {
        background: rgba(255,255,255,0.1) !important;
        color: rgba(255,255,255,0.9) !important;
        border: none !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        font-size: 24px !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-nav-btn:hover {
        background: rgba(255,255,255,0.2) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    }
    
    /* Hide mobile footer on mobile since buttons are in header */
    .mobile-nav-footer {
        display: none !important;
    }
    
    /* MOBILE CAROUSEL - centered with navigation */
    .item {
        position: relative !important;
        width: 250px !important;
        height: 350px !important;
        margin: 100px auto 20px !important; /* More space from top for header */
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        opacity: 0.3 !important;
        display: block !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Make the second item (active one) more prominent */
    .item:nth-child(2) {
        opacity: 1 !important;
        transform: translateX(-50%) scale(1.05) !important;
        box-shadow: 0 25px 50px rgba(0,0,0,0.7) !important;
        z-index: 10 !important;
    }
    
    /* Reset all item positions for mobile stack */
    .item:nth-child(1),
    .item:nth-child(2),
    .item:nth-child(3),
    .item:nth-child(4),
    .item:nth-child(5),
    .item:nth-child(6) {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        position: relative !important;
        display: block !important;
    }
    
    /* Hide items that would overlap */
    .item:nth-child(1),
    .item:nth-child(3),
    .item:nth-child(4),
    .item:nth-child(5),
    .item:nth-child(6) {
        display: none !important;
    }
    
    /* Mobile navigation dots - BELOW CAROUSEL */
    .nav {
        position: relative !important;
        top: 80 !important;
        left: 19% !important;
        transform: translateX(-50%) !important;
        width: auto;
        margin: 10px auto 40px !important; /* Space from carousel, more space before content */
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 100;
    }
    
    .nav .btn {
        padding: 0.5rem;
        margin: 0;
        font-size: 0.9rem;
        width: 40px;
        height: 40px;
    }
    
    /* CONTENT - MOVED TO VERY BOTTOM OF HERO SECTION */
    .content {
        /* Reset positioning for mobile */
        position: relative !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 400px;
        
        /* MOVED TO VERY BOTTOM - after everything else */
        margin: 0 auto 30px !important; /* At the bottom */
        margin-top: auto !important; /* Push to bottom */
        
        text-align: center;
        padding: 20px;
        opacity: 1 !important;
        display: block !important;
        animation: none;
        background: rgba(17, 16, 29, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.1);
        z-index: 1000;
    }
    
    .content .title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .content .description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0.5rem 0 1rem;
    }
    
    .watch-now-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin: 0 auto;
        display: inline-block;
    }
    
    /* Adjust hero section to use flex to push content to bottom */
    #heroSection {
        padding: 80px 20px !important;
        padding-left: 90px !important;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: visible;
        padding-top: 120px !important; /* More top padding for header */
        padding-bottom: 100px !important;
    }
    
    /* Adjust sidebar for mobile */
    .sidebar {
        width: 80px;
    }
    
    .sidebar.open {
        width: 250px;
    }
    
    /* Adjust content margins for mobile */
    #hnav_Content {
        margin-left: 80px;
        width: calc(100% - 80px);
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    .sidebar.open ~ #hnav_Content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    #heroSection {
        padding: 60px 15px !important;
        padding-left: 80px !important;
        padding-top: 100px !important; /* Adjusted for smaller header */
        padding-bottom: 90px !important;
    }
    
    .mobile-nav-header {
        top: 10px !important;
        width: 95% !important;
        max-width: 280px !important;
        padding: 10px 15px !important;
    }
    
    .mobile-header-buttons {
        gap: 15px !important;
    }
    
    .mobile-nav-btn {
        width: 10px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
    
    .item {
        width: 200px !important;
        height: 280px !important;
        margin: 90px auto 15px !important; /* Adjusted margin for smaller header */
    }
    
    /* Navigation adjustment */
    .nav {
        margin: 5px auto 30px !important;
    }
    
    .nav .btn {
        width: 35px;
        height: 35px;
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    /* Content adjustment - still at bottom */
    .content {
        width: 95% !important;
        padding: 15px;
        margin: 0 auto 90px !important;
    }
    
    .content .title {
        font-size: 1.1rem;
    }
    
    .content .description {
        font-size: 0.75rem;
    }
    
    .watch-now-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    #hnav_Content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    .sidebar {
        width: 70px;
    }
    
    .sidebar.open ~ #hnav_Content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* Extra Small Screens (320px and below) */
@media (max-width: 320px) {
    #heroSection {
        padding: 50px 10px !important;
        padding-left: 70px !important;
        padding-top: 90px !important;
        padding-bottom: 80px !important;
    }
    
    .mobile-nav-header {
        top: 8px !important;
        padding: 8px 12px !important;
        max-width: 260px !important;
    }
    
    .mobile-header-buttons {
        gap: 12px !important;
    }
    
    .mobile-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .item {
        width: 170px !important;
        height: 240px !important;
        margin: 85px auto 10px !important;
    }
    
    /* Navigation adjustment */
    .nav {
        margin: 5px auto 25px !important;
    }
    
    .nav .btn {
        width: 30px;
        height: 30px;
        padding: 0.3rem;
        font-size: 0.7rem;
    }
    
    /* Content adjustment - still at bottom */
    .content {
        width: 90% !important;
        padding: 12px;
        margin: 0 auto 80px !important;
    }
    
    .content .title {
        font-size: 1rem;
    }
    
    .content .description {
        font-size: 0.7rem;
    }
    
    .watch-now-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* =========================== */
/* REST OF YOUR EXISTING CODE - UNTOUCHED */
/* =========================== */

#hnav_Content {
    position: relative;
    width: 100%;
    margin-left: 0px;
    transition: margin-left 0.5s ease, width 0.5s ease;
    display: flex;
    justify-content: center;
}

/* `#hnav_Content` is inside main for home; adjust accordingly */
.app .sidebar.open + main #hnav_Content,
.app .sidebar.open ~ main #hnav_Content {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* also shift scroll containers inside main for home */
.app .sidebar.open + main .scroll-container,
.app .sidebar.open ~ main .scroll-container {
    margin-left: 250px;
}

/* fallback for legacy selector (if #hnav_Content is direct sibling for other pages) */
.sidebar.open ~ #hnav_Content {
    margin-left: 250px;
}

nav {
    display: flex;
    justify-content: space-around;
    padding: 15px;

}

/* Top action nav above cards */
#hnav_Content {
    width: 100%;
    margin: 0 auto 1rem;
}

#hnav_Content nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.4rem;
    max-width: 1280px;
    margin: 0.35rem auto 0;
    text-align: center;
}

#hnav_Content nav a {
    color: #f4f6ff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.25s ease;
    white-space: nowrap;
}

#hnav_Content nav a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.2);
}

.section-title-main {
    font-family: "Poppins", sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #e9ebff;
    text-align: center;
    width: 100%;
    letter-spacing: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 17%;
    margin: 0;
    padding: 0.2rem 0;
    z-index: 15;
    background: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
    animation: subtleTitleGlow 6s ease-in-out infinite;
}

@keyframes subtleTitleGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
        opacity: 0.98;
    }
    50% {
        text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
        opacity: 1;
    }
}

#heroSection {
    position: relative;
    width: 100%;
    height: 100vh;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    margin-top: 0px;
    padding: 220px;
    overflow: hidden;
    padding-left: 300px;
    background: linear-gradient(to bottom right, rgba(17, 16, 29, 0.9), rgba(26, 26, 46, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    margin: 5px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Navigation for nav links */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        margin: 15px auto;
        width: calc(100% - 90px);
        margin-left: 90px;
        overflow-x: auto;
        white-space: nowrap;
        max-width: none;
    }
    
    nav a {
        font-size: 0.8em;
        padding: 6px 12px;
        margin: 3px;
        flex: 0 0 auto;
        min-width: 80px;
        text-align: center;
    }
    
    .sidebar.open ~ #hnav_Content nav {
        width: calc(100% - 260px);
        margin-left: 260px;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        align-items: center;
        padding: 8px;
        width: calc(100% - 85px);
        margin-left: 85px;
    }
    
    nav a {
        width: auto;
        margin: 0 4px;
        font-size: 0.75em;
        padding: 8px 12px;
        flex: 0 0 auto;
    }
    
    .sidebar.open ~ #hnav_Content nav {
        width: calc(100% - 255px);
        margin-left: 255px;
    }
}

p {
    font-size: 25px;
    font-family: poppins;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
}

.imgbtn {
    position: relative;
}

.scroll-container {
    background: transparent;
    min-height: 35vh;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0.85rem 0.95rem;
    padding: 0.75rem;
    box-sizing: border-box;
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: none;
    backdrop-filter: none;
    border: none;
    justify-content: flex-start;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.scroll-container:hover {
    box-shadow: none;
}

.sidebar.open ~ .scroll-container {
    margin-left: 250px;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .scroll-container {
        min-height: 25vh;
        margin: 0 0.7rem 0.8rem;
        padding: 0.65rem;
        gap: 0.55rem;
        justify-content: flex-start;
    }
    
    .sidebar.open ~ .scroll-container {
        margin-left: 250px;
        margin-right: 0.7rem;
    }
}

@media (max-width: 480px) {
    .scroll-container {
        min-height: 20vh;
        margin: 0 0.55rem 0.7rem;
        padding: 0.55rem;
        gap: 0.45rem;
        justify-content: flex-start;
    }
    
    .sidebar.open ~ .scroll-container {
        margin-left: 250px;
        margin-right: 0.55rem;
    }
}

.scroll-container img {
    max-width: 100%;
    height: auto;
    max-height: 30vh;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
    display: inline-block;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    z-index: 1;
    scroll-snap-align: start;
    will-change: transform;
}

@media (max-width: 768px) {
    .scroll-container img {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
}

.scroll-container img:hover {
    transform: translateY(-4px) scale(1.04);
    z-index: 10;
    box-shadow: none;
    border: 2px solid #fff;
    filter: brightness(1.05);
}

/* Keep home-page rails inside the viewport on touch screens. */
@media (max-width: 768px) {
    .app main {
        margin-left: 0;
        padding: 0 12px;
        width: 100%;
    }

    .scroll-container,
    .app .sidebar.open + main .scroll-container,
    .app .sidebar.open ~ main .scroll-container,
    .sidebar.open ~ .scroll-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 8px 2px 12px;
        gap: 10px;
    }

    .scroll-container img {
        width: clamp(118px, 32vw, 160px);
        height: clamp(177px, 48vw, 240px);
        max-width: none;
        max-height: none;
        object-fit: cover;
        flex: 0 0 auto;
        border-radius: 12px;
    }

    #hnav_Content,
    #hnav_Content nav,
    nav {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }

    #hnav_Content nav {
        gap: 6px;
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    #hnav_Content nav::-webkit-scrollbar,
    nav::-webkit-scrollbar {
        display: none;
    }

    #hnav_Content nav a {
        flex: 0 0 auto;
        font-size: 0.78rem;
        padding: 8px 11px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 176px !important;
    }

    .app main {
        padding: 0 10px;
    }

    .scroll-container img {
        width: calc((100% - 10px) / 2);
        height: auto;
        aspect-ratio: 2 / 3;
        min-width: 0;
        max-width: none;
        flex: 0 0 calc((100% - 10px) / 2);
    }

    .scroll-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: hidden;
        overflow-y: visible;
        gap: 10px;
        touch-action: auto;
    }

    .section-title-main {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 1.35rem;
        margin: 16px 0 8px;
    }
}

.shimmer-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.shimmer-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Fixed: Search icon container - UPDATED TO FIX WHITE LINE */
.sidebar .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 20px;
    background: #1d1b31;
    color: #FFF;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 10px;
    z-index: 100;
    border: none;
    outline: none;
    box-shadow: none;
}

.sidebar.open .search-container i.bx-search {
    height: 40px;
    width: 40px;
    line-height: 40px;
    border-radius: 10px 0 0 10px;
}


.sidebar.open .bx-search {
    left: 0;
    background: #1d1b31;
    border-radius: 12px 0 0 12px;
}

.sidebar .bx-search:hover {
    background: #FFF;
    color: #11101d;
}

.sidebar.open .bx-search:hover {
    background: #1d1b31;
    color: #FFF;
}

/* ensure .app container works in home so sidebar and main move together */
.app {
    display: flex;
    width: 100%;
}

.app main {
    flex: 1;
    min-width: 0;
    transition: margin-left 0.5s ease, width 0.5s ease;
    margin-left: 80px;
}

.app .sidebar.open + main,
.app .sidebar.open ~ main {
    margin-left: 250px;
}

main.sidebar-open {
    margin-left: 250px !important;
}

/* Fixed input field to remove border issue */
.sidebar input {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    outline: none;
    height: 40px;
    width: 100%;
    min-width: 40px;
    max-width: 220px;
    border: none;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(29, 27, 49, 0.8);
    backdrop-filter: blur(10px);
    padding-left: 40px;
    box-shadow: none;
}

/* Keep search input visible and proportionate when sidebar is open */
.sidebar.open input,
.search-container input {
    width: calc(100% - 60px) !important;
    min-width: 120px;
    max-width: 100%;
    height: 40px;
    border-radius: 12px;
    padding-left: 58px;
}

.sidebar.open input {
    border-radius: 12px;
}

/* Keep a clean icon-left margin so text doesn’t overlap */
.sidebar.open .search-container {
    position: relative;
}

.sidebar.open .search-container i.bx-search {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    z-index: 120;
}


/* Collapsed sidebar search style */
.sidebar:not(.open) .search-container {
    width: 52px;
    min-width: 52px;
    border-radius: 12px;
    justify-content: center;
    overflow: hidden;
}

.sidebar:not(.open) .search-container input {
    width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    margin-left: 0;
    padding: 0;
}

/* No hover expansion in collapsed mode; only open has full search */

/* Add a wrapper to contain both elements without border */
.search-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(29, 27, 49, 0.8);
    border-radius: 12px;
    overflow: visible; /* allow suggestion dropdown to overflow */
    border: 1px solid rgba(255,255,255,0.1);
}

/* ensure suggestions appear above the sidebar overlay in all states */
.search-suggestions {
    z-index: 2000;
}

.search-container input {
    width: calc(100% - 44px);
    min-width: 150px;
    margin-left: 6px;
}

.sidebar.open .search-container {
    border-radius: 8px;
}

.sidebar input:focus {
    box-shadow: none;
    outline: none;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
  font-family: "Poppins", sans-serif;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 80px;
  background: linear-gradient(180deg, #11101D 0%, #1a1a2e 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  z-index: 999;
  transition: width 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sidebar.open {
  width: 250px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* ===== CENTERED LOGO STYLES WITH SPACING ===== */
.sidebar .logo-details {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 10px;
}

.sidebar .logo-details .icon {
  opacity: 0;
  transition: all 0.5s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.sidebar .logo-details .logo_name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.5s ease;
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  text-align: center;
  width: 100%;
  padding: 0 55px;
  box-sizing: border-box;
  margin-left: 0;
}

.sidebar.open .logo-details .logo_name {
  opacity: 1;
  padding: 0 60px; /* Even more space for open state */
  margin-left: 15px; /* Add space between icon and text */
}

/* ===== MENU BUTTON (3 LINES) - ALIGNED WITH SIDEBAR BUTTONS ===== */
.sidebar .logo-details #btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 22px;
  z-index: 2;
  transition: all 0.4s ease;
  text-align: center;
  cursor: pointer;
  color: #fff;
  height: 50px;
  line-height: 50px;
  min-width: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.sidebar.open .logo-details #btn {
  right: 10px;
}

.sidebar .logo-details #btn:hover {
  background: #FFF;
  color: #11101D;
}

.sidebar .logo-details .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  z-index: 2;
  pointer-events: none; /* don't block clicks on the open/close menu button */
  height: 50px;
  line-height: 50px;
  min-width: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar.open .logo-details .icon {
  opacity: 1;
  left: 15px;
}

.sidebar i {
  color: #fff;
  height: 60px;
  min-width: 50px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
}

.sidebar .nav-list {
  margin-top: 20px;
  height: 100%;
}

.sidebar li {
  position: relative;
  margin: 8px 0;
  list-style: none;
}

.sidebar li .tooltip {
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: #fff;
  color: #000;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0s;
}

.sidebar li:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar.open li .tooltip {
  display: none;
}

.sidebar li a {
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: #11101D;
}

.sidebar li a:hover {
  background: #FFF;
}

.sidebar li a .links_name {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}

.sidebar.open li a .links_name {
  opacity: 1;
  pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
  color: #11101D;
}

.sidebar li i {
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  border-radius: 12px;
  min-width: 50px;
  text-align: center;
}

.sidebar li.profile {
  position: fixed;
  height: 60px;
  width: 78px;
  left: 0;
  bottom: -8px;
  padding: 10px 14px;
  background: #1d1b31;
  transition: all 0.5s ease;
  overflow: hidden;
}

.sidebar.open li.profile {
  width: 250px;
}

.sidebar li .profile-details {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.sidebar li img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
  border: 2px solid rgba(255,255,255,0.1);
}

.sidebar li.profile .name,
.sidebar li.profile .job {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.sidebar li.profile .job {
  font-size: 12px;
}

.sidebar .profile #log_out {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #1d1b31;
  width: 100%;
  height: 60px;
  line-height: 60px;
  border-radius: 0px;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar.open .profile #log_out {
  width: 50px;
  background: none;
}

.home-section {
  position: relative;
  background: #E4E9F7;
  min-height: 100vh;
  top: 0;
  left: 78px;
  width: calc(100% - 78px);
  transition: all 0.5s ease;
}

.sidebar.open ~ .home-section {
  left: 250px;
  width: calc(100% - 250px);
}

.sidebar .profile #log_out:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar.open .profile #log_out {
    width: 50px;
    background: none;
}

.home-section {
    position: relative;
    background: #E4E9F7;
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
}

.sidebar.open ~ .home-section {
    left: 250px;
    width: calc(100% - 250px);
}

.home-section .text {
    display: inline-block;
    color: #11101d;
    font-size: 25px;
    font-weight: 500;
    margin: 18px;
}

@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
}

.card-image,
.card,
.item,
.scroll-container img,
#poster,
#castList img {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.card-image {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image:hover,
.card:hover,
.item:hover,
.scroll-container img:hover,
#poster:hover,
#castList img:hover {
    transform: scale(1.03);
    border-color: rgba(255,255,255,0.75);
}

.card-image:hover {
    transform: scale(1.05);
}

.scroll-container img {
    border: 1px solid rgba(255,255,255,0.18);
}

.scroll-container img:hover {
    border: 1px solid #fff;
}

#heroSection .item:hover {
    border: 1px solid #fff;
}

/* Search Suggestions Dropdown */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 220px;
    max-width: 360px;
    width: min(360px, calc(100vw - 32px));
    background: rgba(29, 27, 49, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-suggestions.show {
    display: block;
    animation: fadeIn 0.22s ease-in-out;
}

.search-suggestions-empty {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 13px;
}
.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.search-suggestion-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.search-suggestion-rating {
    font-size: 12px;
    color: #ffd700;
    margin-left: auto;
    flex-shrink: 0;
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading overlay */
#siteLoadingOverlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, rgba(8,8,13,0.98) 70%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    user-select: none;
    pointer-events: none;
}

#siteLoadingOverlay .loading-logo {
    width: 110px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 32px rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.35);
}

#siteLoadingOverlay .loader {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #fff;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 24px rgba(255,255,255,0.45), 0 0 70px rgba(255,255,255,0.2);
}

#siteLoadingOverlay .loading-text {
    font-family: 'Press Start 2P', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-shadow: 0 0 16px rgba(255,255,255,0.9), 0 0 24px rgba(255,255,255,0.6);
    opacity: 0.95;
}

#siteLoadingOverlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 0.5s, opacity 0.5s ease;
}

#siteLoadingOverlay.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 22px 6px rgba(255, 255, 255, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
}

/* Improved focus states for accessibility */
*:focus {
    outline: 2px solid rgba(165, 180, 252, 0.5);
    outline-offset: 2px;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 22px 6px rgba(255, 255, 255, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
}

/* Apply fade-in animation to the main hero/navigation areas only */
#heroSection,
nav {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Enhanced gradient borders */
.gradient-border {
    position: relative;
    border: double 2px transparent;
    background-image: 
        linear-gradient(rgba(29, 27, 49, 0.8), rgba(29, 27, 49, 0.8)),
        linear-gradient(135deg, rgba(165, 180, 252, 0.3), rgba(255, 255, 255, 0.1));
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* Mobile responsiveness for search suggestions */
@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        max-height: 250px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .search-suggestion-item {
        padding: 15px;
    }

    .search-suggestion-poster {
        width: 50px;
        height: 75px;
    }

    .search-suggestion-title {
        font-size: 16px;
    }

    .search-suggestion-year {
        font-size: 14px;
    }

    .search-suggestion-rating {
        font-size: 14px;
    }
}

/* Hide hero slider navigation arrows and nav container */
#heroSection nav .btn.prev,
#heroSection nav .btn.next,
#heroSection nav {
    display: none !important;
}

/* Hero slider horizontal-scroll layout for visible cards */
#heroSection .slider {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2rem 2.5rem 3rem !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

#heroSection .slider::-webkit-scrollbar {
    height: 8px;
}

#heroSection .slider::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

#heroSection .slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

#heroSection .item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 340px !important;
    height: 500px !important;
    opacity: 1 !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55) !important;
}

#heroSection .item:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 34px 65px rgba(0, 0, 0, 0.7) !important;
    border: 1px solid #fff !important;
}

#heroSection .item .content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 0.4rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    inset: auto 0 0 0 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%) !important;
    padding: 1rem 1rem 1.1rem !important;
    border-radius: 0 0 24px 24px !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 36% !important;
    backdrop-filter: blur(6px) !important;
}

#heroSection .content h2,
#heroSection .content p {
    color: #fff !important;
    margin: 0;
}

#heroSection .content h2 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

#heroSection .content p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#heroSection .content .watch-now-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.45rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

#heroSection .content .watch-now-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Professional homepage refresh */
#heroSection {
    height: auto;
    min-height: auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
    display: block;
    background: transparent;
    border-bottom: none;
}

#heroSection .section-title-main {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 1.25rem;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    letter-spacing: 0.04em;
    text-align: left;
    padding: 0 0.25rem;
}

#heroSection .slider {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0 0.75rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    position: relative;
    z-index: 2;
}

#heroSection .slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#heroSection .slider::-webkit-scrollbar {
    display: none;
}

#heroSection .slider .item {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(320px, 82vw);
    min-width: min(320px, 82vw);
    height: 430px;
    flex: 0 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    opacity: 1;
    animation: none;
    scroll-snap-align: start;
}

#heroSection .slider .item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.46);
}

#heroSection .slider .item .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1rem 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0) 0%, rgba(5, 8, 18, 0.95) 100%);
    border-radius: 0 0 24px 24px;
    border: 0;
    box-shadow: none;
    min-height: 38%;
    backdrop-filter: blur(4px);
}

#heroSection .slider .item:nth-of-type(2) .content {
    animation: none !important;
    transform: none !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
}

#heroSection .slider .item .content h2 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

#heroSection .slider .item .content p {
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#heroSection .slider .item .content .watch-now-button {
    width: fit-content;
    margin-top: 0.2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

#heroSection .nav {
    display: none !important;
}

.section-title {
    padding: 0 0.85rem;
    margin: 1.2rem 0 0.45rem;
}

.section-title span {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9d0ff;
}

.scroll-container {
    margin: 0 0.85rem 0.95rem;
    padding: 0.75rem;
    gap: 0.7rem;
    border-radius: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container .card-image {
    width: 168px;
    height: 240px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 0.85rem;
}

@media (max-width: 480px) {
    .app main {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .scroll-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: hidden !important;
        gap: 10px;
    }

    .scroll-container img,
    .scroll-container .card-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2 / 3;
        min-width: 0 !important;
        margin-right: 0;
        flex: 0 0 auto;
    }
}

