/* Global Variables */
:root {
    --headings-color: #66341F;
    --red-text-color: #D40000;
    --text-color: #000000;
    --gold-color: #DFB270;
    --headings-font-family: adrianna-extended, sans-serif;
    --names-font-family: anton, sans-serif;
    --body-font-family: adrianna, sans-serif;
    --cond-body-font-family: adrianna-condensed, sans-serif;
    --extended-font-family: adrianna-extended, sans-serif;
}

/* Body Styles */
body {
    font-family: var(--body-font-family);
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #F4D081;
    background-image: url('images/Background_Tile_05.webp');
    background-repeat: repeat;
    background-size: 1280px 1173px;
    background-position: top center;
}

/* Text */
h1 {
    color: var(--headings-color);
    font-family: var(--headings-font-family);
    font-size: 24px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0;
}

h2 {
    font-family: var(--names-font-family);
    font-size: 40px;
    text-transform: uppercase;
    color: var(--red-text-color);
    margin-top: 0;
    margin-bottom: 0;
    font-variant: normal;
    font-weight: 400;
    mix-blend-mode: multiply;
}

p {
    font-family: var(--body-font-family);
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 998px;
    margin-left: auto;
    margin-right: auto;
}

.text-small {
    font-size: 14px;
}

.text-centered {
    text-align: center;
}

/* Block Elements */
.hide {
    display: none;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Images */
.keyart {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
}

.trailer-watch {
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin-top: -80px;
}

.trailer-thumb {
    width: 34.91%;
    height: auto;
    display: block;
    cursor: pointer;
    position: relative;
}

.play-button-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("images/Play-Circle-gold.svg");
    background-repeat: no-repeat;
    background-position: center;;
    background-size: 25% auto;
}

.trailer-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border: var(--red-text-color) 4px solid;
}

.watch-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    gap: 2rem;
    padding-top: 16px;
}

.watch-button {
    width: 256px;
    height: 88px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 0;
    background-image: url("images/red-button-rectangle.webp");
    background-repeat: no-repeat;
    background-size:contain;
    cursor: pointer;
    text-decoration: none;
}

.watch-text {
    font-family: var(--extended-font-family);
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0;
    margin: 0;
    text-decoration: none;
}



.prime-video-logo {
    width: 59px;
    height: 57px;
    display: block;
    margin: 0;
    background-image: url("images/PrimeVideo.png");
    background-size: contain;
    background-repeat: no-repeat;
    text-indent: -9999px;   /* pushes text off-screen */
    overflow: hidden;       /* hides overflowed text */
    white-space: nowrap;    /* keeps text in one line */
}

.tubi-video-logo {
    width: 74px;
    height: 33px;
    display: block;
    margin: 0;
    background-image: url("images/Tubi_logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    text-indent: -9999px;   /* pushes text off-screen */
    overflow: hidden;       /* hides overflowed text */
    white-space: nowrap;    /* keeps text in one line */
}

.watch-buttons-meta {
    padding-top: 5rem;
}

.meta-note {
    font-size: 14px;
    text-align: center;
    padding-top: 2rem;
    pointer-events: none;
    text-decoration: none;
}

/* Scrollable Character Panel */
section.character-bios-section {
  position: relative;
  overflow: hidden;
}

.shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #dfb37067;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.scrollable-character-panel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  list-style: none;
  padding: 0;
  margin: 0 100px;
  scrollbar-width: none; /* hide scrollbar (Firefox) */
}

.character-bios-content {
    position: relative;
    z-index: 2;
}

.scrollable-character-panel::-webkit-scrollbar {
  display: none; /* hide scrollbar (WebKit) */
}

.scrollable-character-panel li {
  flex: 0 0 280px;
  color: #2e1c0e;
  text-align: center;
  position: relative;
}

.scrollable-character-panel img {
  width: 100%;
  height: auto;
  user-select: none;          /* Prevents text/image selection */
  -webkit-user-drag: none;    /* Prevents dragging in Safari/Chrome */
  -webkit-user-select: none;  /* For Safari */
  -moz-user-select: none;     /* For Firefox */
  -ms-user-select: none;      /* For old Edge */
  pointer-events: none;       /* Optional: disables right-click, hover, etc. */
}

.scrollable-character-panel h2 {
    margin-top: -74px;
}

.scrollable-character-panel p {
  font-family: var(--cond-body-font-family);
  text-align: left;
  padding: 0 1rem;
}

.scroll-button {
    position: absolute;
    top: 0;
    background-image: url('images/Back-Arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
    background-color: transparent;
    border: none;
    width: 100px;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    margin: 0;
    mix-blend-mode: multiply;
}

.scroll-button:hover {
  mix-blend-mode: screen;
}

.scroll-button.left {
  left: 0;
}

.scroll-button.right {
    background-image: url('images/Forward-Arrow.svg');
    right: 0;
}

/* Character Stills Grid */
.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Maintain 16:9 aspect ratio for each image */
.stills-grid li {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.stills-grid img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Overlay */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden; /* prevents background scroll */
}

/* Visible state with fade-in */
.lightbox.show {
  display: flex;
  opacity: 1;
}

/* Fixed 16:9 large image container */
.lightbox-main-wrapper {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  overflow: hidden;
  z-index: 1001;
}

.lightbox-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease;
  opacity: 1;
}

/* Thumbnail row */
.lightbox-thumbs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: scroll; /* force scroll bar */
  overflow-y: hidden;
  justify-content: flex-start;
  padding: 10px 0;
  z-index: 1001;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

/* Always show horizontal scrollbar on desktop */
.lightbox-thumbs {
  scrollbar-color: rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.15); /* Firefox */
  scrollbar-width: auto;
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 12px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Thumbnail images */
.lightbox-thumbs img {
  width: 140px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: transparent 2px solid;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0; /* ensures thumbnails never shrink */
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Active (gold border) */
.lightbox-thumbs img.active {
  border: var(--gold-color) 2px solid;
}

/* Close button */
.lightbox-close {
  position: absolute;
  width: 48px;
  height: 51px;
  background-image: url('images/Close-X.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  top: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.social-links img {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.social-links img:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* --- LIGHTBOX OVERLAY --- */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* when visible */
.video-lightbox.show {
  display: flex;
  opacity: 1;
}

/* --- VIDEO WRAPPER --- */
.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* --- IFRAME --- */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- CLOSE BUTTON --- */
.video-close {
  position: absolute;
  top: -40px;
  right: -10px;
  width: 48px;
  height: 48px;
  background-image: url('/images/Close-X.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  cursor: pointer;
  z-index: 2100;
  transition: transform 0.2s ease;
}

.video-close:hover {
  transform: scale(1.1);
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .content {
        padding-left: 2.5vw;
        padding-right: 2.5vw;
    }
    .trailer-watch {
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        margin-top: -7vw;
    }

    .trailer-thumb {
        width: 36.75vw;
        height: auto;
        display: block;
        cursor: pointer;
        position: relative;
    }

    .play-button-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-image: url("images/Play-Circle-gold.svg");
        background-repeat: no-repeat;
        background-position: center;;
        background-size: 25% auto;
    }

    .trailer-thumb img {
        width: 100%;
        height: auto;
        display: block;
        border: var(--red-text-color) 4px solid;
    }

    .watch-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-content: center;
        gap: 2rem;
        padding-top: 1.4vw;
    }

    .watch-button {
        width: 22.45vw;
        height: 7.71vw;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        gap: 0;
        background-image: url("images/red-button-rectangle.webp");
        background-repeat: no-repeat;
        background-size:contain;
        cursor: pointer;
        text-decoration: none;
    }

    .watch-text {
        font-family: var(--extended-font-family);
        font-weight: 700;
        font-size: 1.18vw;
        color: #FFFFFF;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        padding: 0;
        margin: 0;
        text-decoration: none;
    }

    .prime-video-logo {
        width: 5.17vw;
        height: 5vw;
        display: block;
        margin: 0;
        background-image: url("images/PrimeVideo.png");
        background-size: contain;
        background-repeat: no-repeat;
        text-indent: -9999px;   /* pushes text off-screen */
        overflow: hidden;       /* hides overflowed text */
        white-space: nowrap;    /* keeps text in one line */
    }

    .tubi-video-logo {
        width: 6.49vw;
        height: 2.89vw;
        display: block;
        margin: 0;
        background-image: url("images/Tubi_logo.png");
        background-size: contain;
        background-repeat: no-repeat;
        text-indent: -9999px;   /* pushes text off-screen */
        overflow: hidden;       /* hides overflowed text */
        white-space: nowrap;    /* keeps text in one line */
    }

    .watch-buttons-meta {
        padding-top: 8vw;
    }

    .meta-note {
        font-size: 14px;
        text-align: center;
        padding-top: 4vw;
    }

    .scrollable-character-panel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    list-style: none;
    padding: 0;
    margin: 0 10%;
    scrollbar-width: none; /* hide scrollbar (Firefox) */
    }

    .character-bios-content {
        position: relative;
        z-index: 2;
    }

    .character-bios-section .content {
        padding: 0;
    }

    .scrollable-character-panel::-webkit-scrollbar {
    display: none; /* hide scrollbar (WebKit) */
    }

    .scrollable-character-panel li {
    flex: 0 0 280px;
    color: #2e1c0e;
    text-align: center;
    position: relative;
    }

    .scrollable-character-panel img {
    width: 100%;
    height: auto;
    user-select: none;          /* Prevents text/image selection */
    -webkit-user-drag: none;    /* Prevents dragging in Safari/Chrome */
    -webkit-user-select: none;  /* For Safari */
    -moz-user-select: none;     /* For Firefox */
    -ms-user-select: none;      /* For old Edge */
    pointer-events: none;       /* Optional: disables right-click, hover, etc. */
    }

    .scrollable-character-panel h2 {
        margin-top: -74px;
    }

    .scroll-button {
        position: absolute;
        top: 0;
        background-image: url('images/Back-Arrow.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 50% auto;
        background-color: transparent;
        border: none;
        width: 10%;
        height: 100%;
        cursor: pointer;
        z-index: 10;
        padding: 0;
        margin: 0;
        mix-blend-mode: multiply;
    }
}

@media (max-width: 600px) {
  .stills-grid {
    grid-template-columns: 1fr;
  }

  .stills-grid img {
    cursor: default;
    pointer-events: none; /* disables clicks entirely */
  }

  body.mt-3 {
    margin-top: 5vw;
  }

  .keyart {
    width: 90%;
    margin-bottom: 4vw;
  }
  .trailer-watch {
        padding: 0;
        display: block;
        margin-top: 0;
    }

    .trailer-thumb {
        width: 100%;
        height: auto;
        display: block;
        cursor: pointer;
        position: relative;
    }

    .play-button-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-image: url("images/Play-Circle-gold.svg");
        background-repeat: no-repeat;
        background-position: center;;
        background-size: 25% auto;
    }

    .trailer-thumb img {
        width: 100%;
        height: auto;
        display: block;
        border: var(--red-text-color) 4px solid;
    }

    .watch-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-content: center;
        gap: 2vw;
        padding-top: 1vw;
    }

    .watch-button {
        width: 42.2vw;
        height: 17.5vw;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        gap: 0;
        background-image: url("images/red-button-rectangle.webp");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        cursor: pointer;
        text-decoration: none;
    }

    .watch-text {
        font-family: var(--extended-font-family);
        font-weight: 700;
        font-size: 2.5vw;
        color: #FFFFFF;
        text-transform: uppercase;
        letter-spacing: 0.1vw;
        padding: 0;
        margin: 0;
        text-decoration: none;
    }



    .prime-video-logo {
        width: 12vw;
        height: 12vw;
        display: block;
        margin: 0;
        background-image: url("images/PrimeVideo.png");
        background-size: contain;
        background-repeat: no-repeat;
        text-indent: -9999px;   /* pushes text off-screen */
        overflow: hidden;       /* hides overflowed text */
        white-space: nowrap;    /* keeps text in one line */
    }

    .tubi-video-logo {
        width: 74px;
        height: 33px;
        display: block;
        margin: 0;
        background-image: url("images/Tubi_logo.png");
        background-size: contain;
        background-repeat: no-repeat;
        text-indent: -9999px;   /* pushes text off-screen */
        overflow: hidden;       /* hides overflowed text */
        white-space: nowrap;    /* keeps text in one line */
    }

    .watch-buttons-meta {
        padding-top: 16px;
    }

    .meta-note {
        font-size: 14px;
        text-align: center;
        padding-top: 1rem;
    }

    .scrollable-character-panel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    list-style: none;
    padding: 0;
    margin: 0;
    scrollbar-width: none; /* hide scrollbar (Firefox) */
    }

    .scroll-button {
        position: absolute;
        top: 0;
        background-image: url('images/Back-Arrow.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 50% auto;
        background-color: transparent;
        border: none;
        width: 0;
        height: 0;
        cursor: pointer;
        z-index: 10;
        padding: 0;
        margin: 0;
        mix-blend-mode: multiply;
    }
}

/* Margin and Padding */
.m-0 {
    margin: 0;
}
.m-1 {
    margin: 1rem;
}
.m-2 {
    margin: 2rem;
}
.m-3 {
    margin: 3rem;
}
.m-4 {
    margin: 4rem;
}
.m-5 {
    margin: 5rem;
}
.mt-0 {
    margin-top: 0;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}
.mt-4 {
    margin-top: 4rem;
}
.mt-5 {
    margin-top: 5rem;
}
.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}
.mb-4 {
    margin-bottom: 4rem;
}
.mb-5 {
    margin-bottom: 5rem;
}
.ml-0 {
    margin-left: 0;
}
.ml-1 {
    margin-left: 1rem;
}
.ml-2 {
    margin-left: 2rem;
}
.ml-3 {
    margin-left: 3rem;
}
.ml-4 {
    margin-left: 4rem;
}
.ml-5 {
    margin-left: 5rem;
}
.mr-0 {
    margin-right: 0;
}
.mr-1 {
    margin-right: 1rem;
}
.mr-2 {
    margin-right: 2rem;
}
.mr-3 {
    margin-right: 3rem;
}
.mr-4 {
    margin-right: 4rem;
}
.mr-5 {
    margin-right: 5rem;
}
.p-0 {
    padding: 0;
}
.p-1 {
    padding: 1rem;
}
.p-2 {
    padding: 2rem;
}
.p-3 {
    padding: 3rem;
}
.p-4 {
    padding: 4rem;
}
.p-5 {
    padding: 5rem;
}
.pt-0 {
    padding-top: 0;
}
.pt-1 {
    padding-top: 1rem;
}
.pt-2 {
    padding-top: 2rem;
}
.pt-3 {
    padding-top: 3rem;
}
.pt-4 {
    padding-top: 4rem;
}
.pt-5 {
    padding-top: 5rem;
}
.pb-0 {
    padding-bottom: 0;
}
.pb-1 {
    padding-bottom: 1rem;
}
.pb-2 {
    padding-bottom: 2rem;
}
.pb-3 {
    padding-bottom: 3rem;
}
.pb-4 {
    padding-bottom: 4rem;
}
.pb-5 {
    padding-bottom: 5rem;
}
.pl-0 {
    padding-left: 0;
}
.pl-1 {
    padding-left: 1rem;
}
.pl-2 {
    padding-left: 2rem;
}
.pl-3 {
    padding-left: 3rem;
}
.pl-4 {
    padding-left: 4rem;
}
.pl-5 {
    padding-left: 5rem;
}
.pr-0 {
    padding-right: 0;
}
.pr-1 {
    padding-right: 1rem;
}
.pr-2 {
    padding-right: 2rem;
}
.pr-3 {
    padding-right: 3rem;
}
.pr-4 {
    padding-right: 4rem;
}
.pr-5 {
    padding-right: 5rem;
}