#background-img {
    position: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    -webkit-filter: brightness(0.6) blur(10px);
    -o-filter: brightness(0.6) blur(10px);
    -ms-filter: brightness(0.6) blur(10px);
    filter: brightness(0.6) blur(40px);
    transition: opacity 0.3s;
}
#background-img.fade-in-bg {
    opacity: 1;
}
.container {
    padding-right: 0;
    padding-left: 0;
}
.header-bar {
    z-index: 98;
    left: 0;
    right: 0;
    top: 0;
    min-height: 50px;
    padding: 0 0;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, .08);
    padding-top: env(safe-area-inset-top) !important;
    display: flex;
    align-items: stretch;
    -webkit-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
    backdrop-filter:blur(10px);
    transition: all 250ms ease;
}
.header-fixed {
    position: fixed;
}
.header-bar-detached {
    border-radius: 20px;
    left: 10px !important;
    right: 10px !important;
    top: 8px !important;
    padding-top: 0 !important;
    margin-top: calc(env(safe-area-inset-top)* .8) !important;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, .1) !important;
}
.header-bar.header-fixed {
    background-color: rgba(0, 0, 0, .8);
}
.header-bar.header-bar-detached {
    background-color: rgba(0, 0, 0, .4);
    -webkit-backdrop-filter: blur(3px);
    -o-backdrop-filter: blur(3px);
    -ms-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.header-bar {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}

/* Nav Links */
.nav-links {
    margin-left: 25px;
    margin-right: 30px;
}
.nav-links ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.nav-links ul li a {
    font-family: "Poppins", serif;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-links ul li a:hover {
    box-shadow: 0px 1px #fff;
}
.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;
}

.header-logo {
    width: 70px;
}

/* Header alignment for mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .header-bar.header-fixed {
        width: 100%;
        padding-bottom: 10px;
    }
    .header-bar.header-bar-detached {
        width: 120px;
        padding-bottom: 0;
    }
    .header-bar .header-logo {
        margin: 0 auto;
        opacity: 1;
        transition: all .5s;
    }
    .header-bar.header-bar-detached .header-logo {
        transition: all .5s;
    }
}

.header-bar * {
    align-self: center;
    line-height: 42px;
}
.header-bar a {
    position: relative;
}
.header-bar * {
    color: #fff;
}
.header-bar a:not(.header-title) {
    text-align: center;
    font-size: 16px;
}
/* Fade hero card in */
.hero-card {
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.hero-card.loaded {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0px 2px 5px rgb(0 0 0 / 28%);
}

/* Slide up details drawer on load */
@keyframes slideUp {
    0% {
        transform: translateY(100%);
    }
    60% {
        transform: translateY(-3%);
    }
    80% {
        transform: translateY(1%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Details drawer skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.skeleton-text {
    width: 100%;
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}
.skeleton-text.short {
    width: 50%;
}

.info-card::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: rgb(255 255 255);
    border-radius: 2px;
    margin: 0px auto 5px auto;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.info-card.active::before {
    opacity: 1.0;
    transform: scale(1.5);
}



/* BEGIN Slick Slider */
/* Slider */
.slick-loading .slick-list {
  background: #fff url("./ajax-loader.gif") center center no-repeat;
}

/* Arrows */
.slick-prev,
.slick-next {
  font-size: 0;
  line-height: 0;
  position: absolute;
  top: 50%;
  display: block;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  padding: 0;
  cursor: pointer;
  color: transparent;
  border: none;
  outline: none;
  background: transparent;
}

.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  color: transparent;
  outline: none;
  background: transparent;
}

.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before {
  opacity: 1;
}

.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
  opacity: 0.25;
}

.slick-prev:before,
.slick-next:before {
  font-family: "slick";
  font-size: 20px;
  line-height: 1;
  opacity: 0.75;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slick-prev {
  left: -25px;
}

[dir=rtl] .slick-prev {
  right: -25px;
  left: auto;
}

.slick-prev:before {
  content: "←";
}

[dir=rtl] .slick-prev:before {
  content: "→";
}

.slick-next {
  right: -25px;
}

[dir=rtl] .slick-next {
  right: auto;
  left: -25px;
}

.slick-next:before {
  content: "→";
}

[dir=rtl] .slick-next:before {
  content: "←";
}

/* Dots */
.slick-slider {
  margin-bottom: 0;
}

.slick-dots {
  position: absolute;
  bottom: -45px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

.slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 20px;
  height: 20px;
  padding: 5px;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: transparent;
}

.slick-dots li button:hover,
.slick-dots li button:focus {
  outline: none;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
  opacity: 1;
}

.slick-dots li button:before {
  font-family: "slick";
  font-size: 6px;
  line-height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  content: "•";
  text-align: center;
  opacity: 0.25;
  color: black;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slick-dots li.slick-active button:before {
  opacity: 0.75;
  color: black;
}

.slick-slide {
  outline: none;
  word-wrap: break-word;
}

.circle {
  position: relative;
  width: 10vh;
  height: 10vh;
  margin: 10px;
  border-radius: 50%;
}

.slider-nav {
  height: 60px;
}
.slider-nav .slick-slide {
  cursor: pointer;
  opacity: 0.7;
}
.slider-nav .slick-slide.slick-current {
  opacity: 1;
}
.slider-nav div {
  text-align: center;
  margin: 0;
}

#home {
  color: white;
}
#home .circle {
  background: rgba(154, 24, 84, 0.5);
}
#home .circle-one {
  top: 65px;
  left: 10px;
  width: 160px;
  height: 160px;
}
#home .circle-two {
  top: -5px;
  left: 165px;
  width: 106px;
  height: 106px;
}
#home .circle-three {
  position: relative;
  top: -40px;
  left: 45px;
  width: 150px;
  height: 150px;
}

#cast .circle {
  background: linear-gradient(#296ed7, #2463ca);
}
#cast .circle-one {
  top: 40px;
  left: 125px;
  width: 160px;
  height: 160px;
}
#cast .circle-two {
  top: -25px;
  left: 10px;
  width: 136px;
  height: 136px;
}
#cast .circle-three {
  position: relative;
  top: -100px;
  left: 150px;
  width: 150px;
  height: 150px;
}
#cast .circle-four {
  position: relative;
  top: -185px;
  left: 60px;
  width: 80px;
  height: 80px;
}

#info-card {
  height: 100%;
  min-height: 100px;
  overflow: auto;
  position: relative;
  top: 50vh;
  width: 100%;
  margin-top: 15px;
  border-radius: 20px;
}
#app {
  color: white;
  transition: all .2s ease-out;
}
.slider-nav h3 {
    transition: all .3s;
}
.slider-nav .slick-current h3 {
    transform: scale(1.10);
}
/* Fixes for slider issues incl. wonky syncing issue with slider-nav (thx GPT!) */
.slider-nav {
    max-width: 100%;
    overflow: hidden;
}
.slider-nav .slick-track {
    display: flex !important;
    justify-content: center; /* Ensures items are properly centered */
    transform: none !important; /* Allow Slick to handle transforms */
}
.slider-nav .slick-list {
    overflow: hidden; /* Prevents accidental shifting */
}
.slider-nav .slick-slide {
    flex: 1 0 auto; /* Makes sure slides don't collapse */
}

/* END Slick Slider */

#description {
    margin-top: 15px;
}

#related-grid a:active, #related-grid a:focus {
  outline: 0;
  -moz-outline-style: none;
  outline-style: none;
}

h1#title {
    font-size: 24px;
    text-shadow: 0px 1px 4px rgb(0 0 0 / 60%);
    font-weight: 600;
    margin-top: 14px;
}

hr {
    margin: 30px 0;
    height: 1px;
    border: none;
    background: -webkit-linear-gradient(left, transparent, transparent, #ffffff 100%);
    background: -moz-linear-gradient(left, transparent, transparent, #ffffff 100%);
    background: -o-linear-gradient(left, transparent, transparent, #ffffff 100%);
    background: -ms-linear-gradient(left, transparent, transparent, #ffffff 100%);
    background: linear-gradient(to right, transparent, #fff, transparent 100%);
}

/* Fonts */
.slider-nav h3 {
    font-family: "Poppins", serif;
    font-weight: 400;
}
#info-card p, #info-card h3  {
    font-family: "Poppins", serif;
    font-weight: 400;
    font-size: 16px;
}

#info-card .slider-nav h3 {
    font-size: 24px;
}

#info-card #tagline {
    font-size: 14px;
    text-shadow: 0px 1px 4px rgb(0 0 0 / 60%);
}

#info-card .cast-role {
    font-style: italic;
    font-size: 13px;
    color: #d3d3d3;
}

a.related-item {
    color: #fff;
}

.related-item {
    font-size: 22px;
}

#poster-art {
    width: 180px;
}

    .related-item, .cast-item {
        position: relative;
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
        perspective: 1000px;
        transition: transform 0.3s;
        cursor: pointer;
    }
    .related-item:hover, .cast-item:hover {
        transform: scale(0.96);
    }
    .related-item:active, .cast-item:active {
        transform: scale(0.93);
        transition: 0.1s;
    }

    .poster, .backdrop {
        position: relative;
        backface-visibility: hidden;
        transform: translateZ(0);
        will-change: transform;
        perspective: 1000px;
        transition: transform 0.3s;
        cursor: pointer;
    }
    .poster:hover, .backdrop:hover {
        transition: 0s;
    }
    .poster:active, .backdrop:active {
        transform: scale(0.93);
        transition: 0.1s;
    }
    /* Disable hover transition on mobile */
    @media screen and (min-width: 501px) {
        .poster:hover, .backdrop:hover {
            transition: transform 0.3s;
            transform: scale(0.96);
        }
    }

    /* Bottom Navigation */
    .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: 3px; /* Space between icon and label */
    }
    .nav-label {
        font-family: "Poppins", serif;
        font-size: 12px;
        font-weight: 500;
    }
    .nav-item.active .nav-label {
        font-weight: 700;
    }
    /* Bottom bar - adjust info card padding to accomodate bottom bar */
    #info-card {
        padding-bottom: 80px;
    }

    /* Minimum height for info crd */
    #info-card #content .slick-list.draggable {
        min-height: 300px;
    }

    /* Images gallery */
    #gallery-posters, #gallery-backdrops {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    @media (min-width: 670px) {
        #gallery-posters, #gallery-backdrops {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }
    }
    @media (min-width: 1000px) {
        #gallery-posters, #gallery-backdrops {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }
    }
    #gallery-posters a img, #gallery-backdrops a img {
        width: 100%;
    }
    @media (max-width: 769px) {
        .fancybox__footer, .fancybox__carousel {
            padding-bottom: calc(env(safe-area-inset-bottom) + 60px);
        }
        .fancybox__toolbar, .fancybox__carousel {
            padding-top: env(safe-area-inset-top);
        }
    }
    html.with-fancybox body.hide-scrollbar {
        margin-right: 0 !important;
        overflow: initial !important;
    }

/* Desktop Styles */
@media (min-width: 769px) {
    .header-bar, .container, .hero-card {
        max-width: 1500px;
    }

    /* Hide header bar background on desktop when detached */
    .header-bar.header-bar-detached {
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    .header-bar.header-fixed {
        background-color: rgb(0 0 0 / 20%);
    }

    /* Convert header from grid to flex for desktop */
    .header-bar {
        display: flex !important;
    }
    .header-logo {
        width: 80px;
        margin-top: -3px;
        margin-left: 14px !important;
        margin-right: 5px !important;
    }

    #hero-card {
        margin-top: 75px;
    }
    #info-card {
        margin-top: 100px;
    }
    .header-bar {
        margin: 0 auto;
    }
    .bottom-nav {
        display: none;
    }
    /* Disable info card slide up on desktop */
    #info-card.animate-slide-up {
        animation: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cast-grid,
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    /* Fancybox - pure black bg on mobile */
    .fancybox__container {
        --fancybox-bg: rgb(0 0 0);
    }
    /* Fancybox - remove toolbar button background */
    .fancybox__toolbar__column.is-right .f-button {
        background: transparent;
    }
}

.dropdown-container select {
    color: #000;
}

.title-grid-container {
    display: grid;
    grid-template-columns: 85% 15%;
    grid-template-rows: auto auto auto;
}
.left-column {
    grid-row: span 3;
    padding-right: 10px;
}
.right-column {
    display: grid;
    grid-template-rows: 50% 50%;
    justify-items: end;
}
.right-top {
    grid-row: 1 / 2;
}

#share-button, #comments-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 50px;
    padding: 3px;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    perspective: 1000px;
    transition: all 0.2s;
}
#share-button:hover, #comments-button:hover {
    transform: scale(0.94);
}
#share-button:active, #comments-button:active {
    transform: scale(0.80);
    transition: 0.1s;
    background: #4d4d4d;
    border-radius: 14px;
}

/* Fade info-card in to avoid flicker on page load */
#info-card {
    opacity: 0;
    transition: opacity 0s;
}
#info-card.loaded {
    opacity: 1;
}