.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);
}

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

#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;
    }

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