    *:not(input):not(select):not(code):not(textarea):not([contenteditable]) {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    body {
        font-family: "Poppins", sans-serif;
        background-color: #000;
        color: #fff;
        font-size: 16px;
        margin: 0;
        padding: 0;
        overflow-y: scroll;
    }

    #background-img {
        position: fixed;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        width: 100%;
        height: 100%;
        z-index: -1;
        -webkit-filter: brightness(0.6) blur(20px);
        -o-filter: brightness(0.6) blur(20px);
        -ms-filter: brightness(0.6) blur(20px);
        filter: brightness(0.6) blur(20px);
        transition: filter 0.5s, -webkit-filter 0.5s, -o-filter 0.5s, -ms-filter 0.5s, opacity 0.5s ease-in-out; /* Use transition for smoother effect */
    }

    #background-img.darker {
        -webkit-filter: brightness(0.2) blur(20px);
        -o-filter: brightness(0.2) blur(20px);
        -ms-filter: brightness(0.2) blur(20px);
        filter: brightness(0.2) blur(20px);
    }

    .fade-in-bg {
        opacity: 1; /* Make the background visible */
    }

    .fade-out-bg {
        opacity: 0; /* Fade out the background */
    }

    /* Fade-in animation for background */
    @keyframes fadeInBg {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
    h1 {
        color: #fff;
        margin-bottom: 20px;
        text-align: left;
    }
    .movies-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        justify-items: center;
    }
    .movie-item {
        position: relative;
        border-radius: 8px;
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
        perspective: 1000px;
        transition: transform 0.2s;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .movie-item:hover {
        transform: scale(0.96);
    }
    a.movie-item:active {
        transform: scale(0.93);
        transition: 0.1s;
    }

    /* Different hover transition on mobile */
    @media screen and (max-width: 500px) {
        .movie-item {
            transition: transform 0.2s;
        }
        a.movie-item:active {
            transform: scale(0.96);
            transition: 0.15s;
        }
        .movie-item:hover {
            transform: scale(1);
        }
    }

    .movie-poster {
        width: 100%;
        height: 100%;
        display: block;
        cursor: pointer;
    }

    /* BEGIN Header */
    header {
        position: sticky;
        top: 0px;
        z-index: 1000;
        background: rgb(0 0 0 / 25%);
    }
    /* Apply backdrop filter to header.site-header::before */
    header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit;
        z-index: -1;
        -webkit-backdrop-filter: saturate(1) blur(10px);
        -o-backdrop-filter: saturate(1) blur(10px);
        -ms-backdrop-filter: saturate(1) blur(10px);
        backdrop-filter: saturate(1) blur(10px);
    }
    /* Remove backdrop filter when .unstuck class is present */
    header.unstuck::before {
        -webkit-backdrop-filter: none;
        -o-backdrop-filter: none;
        -ms-backdrop-filter: none;
        backdrop-filter: none;
    }
    .site-header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
        transition: all .3s ease;
        box-shadow: 0 1px 25px rgba(0,0,0, .1);
    }
    .site-header.hide {
        top: -60px;
    }
    .site-header .logo, .site-header .hamburger-menu {
        transition: all .2s;
    }
    .site-header.hide .logo, .site-header.hide .hamburger-menu {
        opacity: 0;
    }
    .site-header.hide  {
        background: rgb(0 0 0 / 70%);
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px;
    }
    header.site-header.unstuck {
        background: none !important;
        -webkit-backdrop-filter: none !important;
        -o-backdrop-filter: none !important;
        -ms-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    /* END Header */

    .nav-bar {
        padding: 9px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 1400px;
        margin: 0px auto;
        border-radius: 0;
    }
    .logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }
    .logo a {
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
        perspective: 1000px;
        transition: all 0.3s;
    }
    .logo a:hover {
        transform: scale(0.94);
    }
    .logo a:active img {
        transform: scale(1);
        transition: 0s;
    }
    .logo img {
        width: 80px;
        vertical-align: middle;
    }
    .account-button {
        background-color: #ff4500;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        font-weight: bold;
        cursor: pointer;
    }
    .account-button:hover {
        background-color: #e03e00;
    }
    .loading {
        text-align: center;
        margin: 20px 0;
    }

    /* Mobile styles */
    @media (max-width: 768px) {
        .nav-bar {
            flex-direction: row;
            gap: 12px;
            padding: 5px 18px;
            top: 0;
            border-radius: 0;
        }
        .logo {
            flex: 0 0 15%;
        }
        .search-bar-container {
            flex: 0 0 80%;
            max-width: none;
            margin: 0;
            display: flex;
            justify-content: flex-end;
        }
        .movies-grid {
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        }
    }

    .nav-links {
        margin-left: 30px;
        margin-right: 30px;
    }

    .nav-links ul {
        list-style-type: none;
        display: flex;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .nav-links ul li a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s;
    }

    .nav-links ul li a:hover {
        box-shadow: 0px 1px #fff;
    }

    .hamburger-menu {
        display: none;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
    }

    .hamburger-menu .line {
        width: 25px;
        height: 3px;
        background-color: #fff;
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
        }

        .hamburger-menu {
            display: flex;
        }
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: translate(0, -60%);
        }
        100% {
            opacity: 1;
            transform: translate(0, -50%);
        }
    }

    .nav-links ul li a {
        padding: 23px 15px;
    }

    .nav-links ul {
        gap: 0;
    }

    .nav-links ul li a:hover {
        box-shadow: none;
        background: #ffffff;
        color: #000;
    }

    .nav-links ul li a {
        padding: 10px 15px;
        border-radius: 5px;
    }

    .nav-links ul li {
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
        perspective: 1000px;
        transition: all 0.2s;
    }

    .nav-links ul li:active {
        transform: scale(0.94);
        transition: 0.1s;
    }
    .nav-links ul:hover li:not(:hover) {
        opacity: .5;
    }
    
    .filter-sort {
        display: flex;
        justify-content: space-between;
        padding: 10px 10px;
    }

    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #3d3d3d;
        color: #fff;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
    }

    .dropdown select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    }

    .movie-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 20px;
        padding-top: 20px;
    }

    #loading {
        display: none;
        text-align: center;
        margin-top: 20px;
    }

    #search-container {
        margin-bottom: 20px;
        position: relative;
    }

    #search-bar {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 16px;
    }

    #search-results {
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 10;
        display: none;
    }

    .search-result {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        color: #fff;
        cursor: pointer;
    }
    .search-result:hover {
        background-color: #444;
    }

    .search-result img {
        width: 75px;
        height: auto;
        margin-right: 10px;
        border-radius: 4px;
    }

    .search-result span {
        flex-grow: 1;
        font-size: 17px;
        font-weight: 500;
    }

    .search-header {
        background-color: #212121;
        padding: 8px 10px;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .search-header + .search-header {
        top: 25px;
    }