    *: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;
        }
    }

    .container {
        max-width: 1400px;
        margin: 20px auto;
        padding: 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .container.content-body {
        margin-top: 0;
        padding-top: 0;
    }
    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: calc(env(safe-area-inset-top) + 130px);
    }

    #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;
    }
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        background: rgb(0 0 0 / 80%);
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px;
        -webkit-backdrop-filter: saturate(1) blur(20px) !important;
        -o-backdrop-filter: saturate(1) blur(20px) !important;
        -ms-backdrop-filter: saturate(1) blur(20px) !important;
        backdrop-filter: saturate(1) blur(20px) !important;
    }

    .nav-item {
        display: flex;
        flex-direction: column; /* Icon on top, label below */
        align-items: center;
        color: #555; /* Default icon color */
        cursor: pointer;
        text-decoration: none;
    }

    .nav-item.active {
        color: #fff; /* Highlight active icon */
    }

    .nav-icon {
        font-size: 24px; /* Adjust icon size */
        margin-bottom: -2px; /* Space between icon and label */
    }

    .nav-label {
        font-size: 12px;
        font-weight: 500;
    }

    .nav-item.active .nav-label {
        font-weight: 700;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        /* Adjust breakpoint as needed */
        .movie-grid {
            grid-template-columns: repeat(
                2,
                1fr
            ); /* 3 columns on smaller screens */
        }
    }
    #search-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none; /* Hidden by default */
        z-index: 9999; /* Ensure it's on top */
        overflow-y: auto; /* Enable scrolling if content overflows */
        background: rgb(0 0 0 / 90%);
        -webkit-backdrop-filter: saturate(1) blur(20px) !important;
        -o-backdrop-filter: saturate(1) blur(20px) !important;
        -ms-backdrop-filter: saturate(1) blur(20px) !important;
        backdrop-filter: saturate(1) blur(20px) !important;
    }

    #search-modal.active {
        display: block;
    }

    #search-modal-content {
        margin: 20px; /* Initial margin */
        border-radius: 8px;
        transform: scale(0.9); /* Initial scale for smooth transition */
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease; /* Smooth transitions */
    }

    #search-modal.active #search-modal-content {
        transform: scale(1);
        opacity: 1;
        margin: 0; /* Expand to fill screen */
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    #search-modal-input {
        width: calc(100% - 60px); /* Adjust for close button */
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
        margin-left: 10px;
        margin-top: 12px;
    }

    #search-modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 20px;
        cursor: pointer;
    }

    /* Search Results Styles (inside the modal) */
    #search-results-modal {
        margin-top: 20px;
    }
/*
    .category-header {
        text-align: left;
        position: sticky;
        top: 160px;
        background: transparent;
        z-index: 99;
        align-content: center;
        padding: 2px 0px;
        mix-blend-mode: difference;
    }
*/
    /* Misc Styles */
    header {
        padding-top: env(safe-area-inset-top);
    }
    #search-modal {
        padding-top: env(safe-area-inset-top);
    }
    /* Prevent overscroll on iOS (scrolling fast makes bottom navbar jump but also prevents quickly scrolling thru infinite loading) */
    /*
    body, html {
        overscroll-behavior-y: none;
    }
    */

    /* PWA-Only Styles */
    /* Filters - 50/50 split in header on mobile PWA only */
    @media (max-width: 768px) {
        .filter-sort {
            gap: 20px;
        }
        .dropdown {
            width: 50%;
        }
        .dropdown select {
            width: 100%;
        }
    }

/* BEGIN Grid List Button CSS */
.grid-list {
  --color: #F6F8FF;
  --background: #2B3044;
  --background-hover: #1E2235;
  --icon-color: #BBC1E1;
  padding: 6px 12px 6px 8px;
  margin: 0;
  display: flex;
  outline: none;
  position: relative;
  border: none;
  border-radius: 9px;
  background: var(--b, var(--background));
  cursor: pointer;
  -webkit-appearence: none;
  -webkit-tap-highlight-color: transparent;
  transform: scale(var(--scale, 1)) translateZ(0);
  transition: transform 0.15s, background 0.4s;
}
.grid-list:active {
  --scale: .95;
}
.grid-list:hover {
  --b: var(--background-hover);
}
.grid-list.without-text {
  --background: #275EFE;
  --background-hover: #1548DB;
  --icon-color: #FFFFFF;
  padding: 6px;
}
.grid-list .icon {
  width: 24px;
  height: 24px;
  position: relative;
}
.grid-list .icon i {
  position: absolute;
  left: var(--left, 4px);
  top: var(--top, 4px);
  display: block;
  border-radius: 2px;
  width: var(--width, 7px);
  height: var(--height, 7px);
  background: var(--icon-color);
  -webkit-animation: var(--name, var(--dots-name, none)) var(--duration, var(--dots-duration, 0.5s)) var(--easing, var(--dots-easing, linear)) forwards var(--delay, var(--dots-delay, 0s));
          animation: var(--name, var(--dots-name, none)) var(--duration, var(--dots-duration, 0.5s)) var(--easing, var(--dots-easing, linear)) forwards var(--delay, var(--dots-delay, 0s));
}
.grid-list .icon .dots i:nth-child(1) {
  --x-middle: -8px;
  --y-middle: 10px;
  --x-end: -2px;
  --y-end: 12px;
  --x-back: 10px;
  --y-back: 7px;
  --x-back-end: 9px;
  --y-back-end: 0;
}
.grid-list .icon .dots i:nth-child(2) {
  --left: 13px;
  --x-middle: -12px;
  --y-middle: 5px;
  --x-end: -11px;
  --y-end: 7px;
  --x-back: -3px;
  --y-back: 1px;
  --x-back-end: -9px;
  --y-back-end: 0;
}
.grid-list .icon .dots i:nth-child(3) {
  --top: 13px;
  --x-middle: 4px;
  --y-middle: -5px;
  --x-end: -2px;
  --y-end: -7px;
  --x-back: -5px;
  --y-back: 0px;
  --x-back-end: 9px;
  --y-back-end: 0;
}
.grid-list .icon .dots i:nth-child(4) {
  --left: 13px;
  --top: 13px;
  --x-middle: 0;
  --y-middle: -10px;
  --x-end: -11px;
  --y-end: -12px;
  --x-back: -14px;
  --y-back: -8px;
  --x-back-end: -9px;
  --y-back-end: 0;
}
.grid-list .icon .lines {
  --name: var(--lines-name, none);
  --duration: var(--lines-duration, .15s);
  --easing: var(--lines-easing, linear);
  --delay: var(--lines-delay, 0s);
}
.grid-list .icon .lines i {
  --left: 9px;
  --top: 3px;
  --height: 2px;
  --width: 11px;
  transform: translateY(20%) translateZ(0) scaleX(0);
}
.grid-list .icon .lines i:nth-child(2) {
  --top: 8px;
}
.grid-list .icon .lines i:nth-child(3) {
  --top: 13px;
}
.grid-list .icon .lines i:nth-child(4) {
  --top: 18px;
}
.grid-list .text {
  margin-left: 4px;
  position: relative;
  line-height: 24px;
  font-weight: 600;
  font-size: 14px;
  min-width: 28px;
  color: var(--color);
}
.grid-list .text span {
  --y-default: 0;
  --o-default: 1;
  --y-active: -12px;
  --o-active: 0;
  display: block;
  opacity: var(--o-default);
  transform: translateY(var(--y-default)) translateZ(0);
  -webkit-animation: var(--span-name, none) 0.4s ease forwards;
          animation: var(--span-name, none) 0.4s ease forwards;
}
.grid-list .text span:last-child {
  --y-default: 12px;
  --o-default: 0;
  --y-active: 0;
  --o-active: 1;
  position: absolute;
  left: 0;
  top: 0;
}
.grid-list.animation {
  --span-name: text;
  --dots-name: back;
  --lines-name: scale-down;
}
.grid-list.animation .lines i {
  transform-origin: 0 50%;
}
.grid-list.animation .lines i:nth-child(3), .grid-list.animation .lines i:nth-child(4) {
  transform-origin: 100% 50%;
}
.grid-list.animation.active {
  --span-name: text-active;
  --dots-name: move;
  --lines-name: scale;
  --lines-duration: .15s;
  --lines-delay: .3s;
}
.grid-list.animation.active .lines i {
  transform-origin: 100% 50%;
}
.grid-list.animation.active .lines i:nth-child(3), .grid-list.animation.active .lines i:nth-child(4) {
  transform-origin: 0 50%;
}

@-webkit-keyframes text {
  0% {
    opacity: var(--o-active);
    transform: translateY(var(--y-active)) translateZ(0);
  }
  100% {
    opacity: var(--o-default);
    transform: translateY(var(--y-default)) translateZ(0);
  }
}

@keyframes text {
  0% {
    opacity: var(--o-active);
    transform: translateY(var(--y-active)) translateZ(0);
  }
  100% {
    opacity: var(--o-default);
    transform: translateY(var(--y-default)) translateZ(0);
  }
}
@-webkit-keyframes text-active {
  0% {
    opacity: var(--o-default);
    transform: translateY(var(--y-default)) translateZ(0);
  }
  100% {
    opacity: var(--o-active);
    transform: translateY(var(--y-active)) translateZ(0);
  }
}
@keyframes text-active {
  0% {
    opacity: var(--o-default);
    transform: translateY(var(--y-default)) translateZ(0);
  }
  100% {
    opacity: var(--o-active);
    transform: translateY(var(--y-active)) translateZ(0);
  }
}
@-webkit-keyframes move {
  50% {
    transform: translate(var(--x-middle, 0), var(--y-middle, 0)) scale(0.4);
  }
  100% {
    transform: translate(var(--x-end, 0), var(--y-end, 0)) scale(0.4);
  }
}
@keyframes move {
  50% {
    transform: translate(var(--x-middle, 0), var(--y-middle, 0)) scale(0.4);
  }
  100% {
    transform: translate(var(--x-end, 0), var(--y-end, 0)) scale(0.4);
  }
}
@-webkit-keyframes back {
  0%, 15% {
    transform: translate(var(--x-end, 0), var(--y-end, 0)) scale(0.4);
  }
  50% {
    transform: translate(var(--x-back, 0), var(--y-back, 0)) scale(0.5);
  }
  100% {
    transform: translate(var(--x-back-end, 0), var(--y-back-end, 0)) scale(1);
  }
}
@keyframes back {
  0%, 15% {
    transform: translate(var(--x-end, 0), var(--y-end, 0)) scale(0.4);
  }
  50% {
    transform: translate(var(--x-back, 0), var(--y-back, 0)) scale(0.5);
  }
  100% {
    transform: translate(var(--x-back-end, 0), var(--y-back-end, 0)) scale(1);
  }
}
@-webkit-keyframes scale {
  100% {
    transform: translateY(20%) translateZ(0) scaleX(1);
  }
}
@keyframes scale {
  100% {
    transform: translateY(20%) translateZ(0) scaleX(1);
  }
}
@-webkit-keyframes scale-down {
  0% {
    transform: translateY(20%) translateZ(0) scaleX(1);
  }
  100% {
    transform: translateY(20%) translateZ(0) scaleX(0);
  }
}
@keyframes scale-down {
  0% {
    transform: translateY(20%) translateZ(0) scaleX(1);
  }
  100% {
    transform: translateY(20%) translateZ(0) scaleX(0);
  }
}
/* END Grid List Button CSS */

/* BEGIN Grid List Button Movie View styles */
.movie-grid.list-view {
    display: block;
}
.movie-grid.list-view .movie-item {
    display: flex;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
    text-decoration: none;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
}
.movie-grid.list-view .movie-item:hover {
    transform: none;
}
.movie-grid.list-view .movie-item:active {
    transform: scale(0.98);
}
.movie-grid.list-view .movie-item img {
     width: 150px;
     height: auto;
    margin-right: 15px;
    border-radius: 5px;
}
.movie-grid.list-view .movie-item .movie-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.movie-grid:not(.list-view) .movie-item .movie-details {
    display: none;
}

.movie-grid.list-view .movie-item .movie-details h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.movie-grid.list-view .movie-item .movie-details h3:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
.movie-grid.list-view .movie-item .movie-details .movie-info {
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 10px;
}
.movie-grid.list-view .movie-item .movie-details .movie-info .rating {
    font-weight: 500;
    color: #ffc107;
}
.movie-grid.list-view .movie-item .movie-details .description {
    margin-top: 5px;
    font-size: 14px;
    margin-right: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* END Grid List Button Movie View styles */

.release-date {
    font-size: 15px;
}

.re-release-tag {
    display: block; /* Ensure it takes up its own line */
    margin-top: 5px; /* Add some spacing above the tag */
    font-size: 14px;
    font-weight: bold;
    color: #ff4500; /* Highlight the tag with a distinct color */
}

/* BEGIN Hamburger menu pure CSS - https://codepen.io/erikterwan/pen/grOZxx */
#menuToggle {
  display: block;
  position: absolute;
  top: calc(env(safe-area-inset-top) + 20px);
  right: 20px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a
{
  text-decoration: none;
  color: #ffffff;
  transition: 0s;
}

#menu li a:hover
{
    color: orange;
    font-weight: 700;
    transition: all 0s;
}

#menu:hover li:not(:hover) a {
    color: #ffffff;
    font-weight: normal;
}

#menuToggle li.active a {
    color: orange;
    font-weight: 700;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #cdcdcd;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #fff;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2) {
  opacity: 1;
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu {
   position: absolute;
  max-width: 100vw;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: -110px 0 0 0;
  padding: 50px;
  padding-top: 125px;
  right: -20px;
  box-sizing: border-box;
  overflow-y: auto;
  background: rgb(0 0 0 / 80%);
  -webkit-backdrop-filter: blur(20px);
  -o-backdrop-filter: blur(20px);
  -ms-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0% 0%;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 10px 0;
  font-size: 22px;
}

#menu li label
{
  cursor: pointer;
}

/*
 * And let's fade it in from the right
 */
#menuToggle input:checked ~ ul {
  transform: none;
  opacity: 1;
}
/* END Hamburger menu pure CSS */

/* Toast popups */
.notyf {
    z-index: 9998;
    padding-bottom: calc(env(safe-area-inset-bottom) + 64px);
}
.notyf__toast.notyf__toast--lower {
    -webkit-backdrop-filter: saturate(1) blur(15px);
    -o-backdrop-filter: saturate(1) blur(15px);
    -ms-backdrop-filter: saturate(1) blur(15px);
    backdrop-filter: saturate(1) blur(15px);
}
/* Wider max width for Notyf toasts, especially for desktop */
.notyf__toast {
    max-width: 500px !important;
    width: 100% !important;
}
.notyf__ripple {
    height: 60em;
    width: 60em;
}

/* BEGIN Long press context menu modal styles */
#context-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 10px;
    box-sizing: border-box;
    padding-bottom: calc(env(safe-area-inset-bottom) + 50px);
}
#context-menu-modal.active {
    opacity: 1;
    transform: translateY(0);
}
#context-menu-modal-content {
    color: #fff;
    background-color: #212121;
    border-radius: 5px;
    position: relative;
    max-width: 90vw;
    width: 94%;
    max-height: 70vh;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr; /* Single column */
    grid-template-rows: auto auto auto 1fr auto auto; /* Title, poster, release date, description, button1, button2 */
    gap: 10px;
    padding: 10px;
    max-width: 600px; /* Limit the width to 600px */
    transform: scale(0.95); /* Start slightly smaller */
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease; /* Custom cubic-bezier for the pop effect */
}
#context-menu-modal-content.pop {
    transform: scale(1);
    opacity: 1;
}
#context-menu-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    opacity: .8;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s ease;
    z-index: 2;
    background: #848484;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 6px;
    align-content: center;
}
#context-menu-close:hover {
    opacity: 1;
}
#context-menu-modal h3 {
    margin: 0;
    padding: 0;
    text-align: left;
    grid-column: 1; /* Title in the first column */
}
#context-menu-modal .popup-movie-title {
    color: #fff;
    text-decoration: none;
}
#context-menu-modal .popup-movie-title:hover {
    text-decoration: underline;
}
#context-menu-modal img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    grid-row: 1; /* Poster in the second row */
    object-fit: cover;
    object-position: center;
    max-height: 200px; /* Smaller poster on small screens */
    transition: all .3s;
}
#context-menu-modal img:hover {
    transform: scale(0.96);
}
#context-menu-modal p {
    margin: 0;
    padding: 0;
    text-align: left;
    overflow-y: auto;
    max-height: 100%;
}
#context-menu-modal .release-date {
    grid-column: 1; /* Release date in the first column */
    grid-row: 2; /* Release date in the third row */
}
#context-menu-modal .description {
    grid-column: 1; /* Description in the first column */
    grid-row: 3; /* Description in the fourth row */
    max-height: 200px;
}
#context-menu-modal .buttons-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    grid-column: 1; /* Buttons in the first column */
    grid-row: 5 / span 2; /* Buttons in the fifth and sixth rows */
}
#context-menu-modal button {
    background: #ffffff;
    border: none;
    color: #1e1e1e;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
}
#context-menu-modal button:hover:not(.watchlistButton) {
    background: #c9c9c9;
}
#context-menu-modal button.watchlistButton {
    background: #06ad00;
    color: #fff;
}
#context-menu-modal button.watchlistButton.active {
    background: red;
}
/* Media query for smaller screens */
@media (max-width: 500px) {
    #context-menu-modal-content {
        padding: 15px;
    }
}
/* END Long press context menu modal styles */

/* Ripple effect */
.movie-item {
    position: relative;
    overflow: hidden; /* Ensure the ripple effect is contained within the element */
}
.movie-item .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none; /* Prevent the ripple from interfering with click events */
}
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

    /* Desktop Styles */
    @media (min-width: 769px) {
        .bottom-nav {
            display: none;
        }
        /* BEGIN  Desktop header alignment */
        .filter-sort {
            justify-content: left;
            max-width: 1400px;
            margin: 0px auto;
            gap: 15px;
        }
        .nav-bar {
            justify-content: left;
        }

        /* Reveal header on hover */
        .site-header.hide:hover {
            top: 0 !important;
            background: rgb(0 0 0 / 25%) !important;
        }
        .site-header.hide:hover::before {
            -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);
        }
        .site-header.hide .logo {
            opacity: 1 !important;
        }

        /* Background & hover efffect on list view movies for desktop only */
        .movie-grid.list-view .movie-item {
            background: rgb(12 12 12 / 68%);
            margin-bottom: 12px;
            border-radius: 10px;
            transition: background .2s, transform .2s;
        }
        .movie-grid.list-view .movie-item:hover {
            background: rgb(103 103 103 / 59%);
            transform: scale(1.01);
        }
        .movie-grid.list-view .movie-item:active {
            transform: scale(0.99);
            transition: 0.1s;
        }
        #background-img.darker {
            -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);
        }
        /* 2 column movie list view on desktop */
        .movie-grid.list-view {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
        .movie-grid.list-view .movie-item img {
            transition: transform .3s;
        }
        .movie-grid.list-view .movie-item img:hover {
            transform: scale(0.96);
        }
    }
    @media (max-width: 1400px) {
        /* 4 columns on smaller screens*/
        .movie-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    @media (max-width: 1000px) {
        .movie-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    @media (max-width: 768px) {
        .movie-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

.smart-app-banner {
    display: flex;
    align-items: center;
    background-color: rgb(255 255 255 / 45%);
    padding: 10px;
    box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
    position: relative;
    top: calc(env(safe-area-inset-top) + 115px);
    border-radius: 8px;
    transition: height 0.3s ease, opacity 0.3s ease; /* Transition for sliding effect */
    justify-content: space-between;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    margin-right: 10px;
}

.app-icon {
    width: 40px; /* Adjust icon size */
    height: 40px; /* Adjust icon size */
    margin-right: 10px;
}

.app-info {
    color: #000;
    flex-grow: 1; /* Take remaining space */
}

.app-name {
    font-size: 16px; /* App name size */
    font-weight: 600;
    margin: 0;
}

.app-description {
    font-size: 12px; /* Description size */
    color: #666; /* Description color */
}

.install-btn {
    background-color: #007aff; /* iOS blue color */
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.install-btn:hover {
    background-color: #005bb5; /* Darker blue on hover */
}