/* CSS Variables - Design system colors and values */
:root {
  --bg: #fafafa;
  --text: #000000;
  --muted: #000000;
  --accent: #e43b44;
  --accent-blue: #3b82f6;
  --card: #ffffff;
  --border: #e0e0e0;
  --video-border-radius: 8px;
  --color-white: white;
  --color-hero-title: #8B0000;
  --color-twelve-title: #00279c;
  --color-tge-title: #fe3c9d;
  --color-inh-title: #a27200;
  --color-upcoming-title: #006400;
  --color-button-hover: #c7323a;
  --color-dropdown-hover: #f5f5f5;
  --border-radius-dropdown: 12px;
  --border-radius-poster: 8px;
  --border-radius-button: 4px;
  }

/* First use: box-sizing — include padding and border in the element's total size */
/* First use: margin — set outer space around an element */
/* First use: padding — set inner space between content and border */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* First use: height — set the element's height */
html, body { height: 100%; }

html {
  font-size: 4vw;
}

/* Main body styling with system fonts */
  body {
  /* First use: font-family — specify the typeface(s) for text */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  /* First use: background — paint the background of an element */
  background: var(--bg);
  /* First use: color — set the text color */
  color: var(--text);
  /* First use: line-height — control vertical spacing between lines of text */
  line-height: 1.5;
  height: 100vh;
  }

/* Brand container for logo and navigation */
  .brand {
  /* First use: display — choose the element’s layout behavior */
  display: flex;
  /* First use: align-items — align items on the cross axis in flex/grid */
  align-items: center;
  height: 100%;
  /* First use: width — set the element’s width */
  width: 100%;
  /* First use: position — choose how the element is positioned */
  position: relative;
  }

/* Brand logo positioning and sizing */
  .brand-logo {
  height: 100%;
  width: 100%;
  /* First use: object-fit — define how replaced content fits its box */
  object-fit: cover;
  /* First use: object-position — position replaced content within its box */
  object-position: left top;
  /* First use: overflow — control what happens to overflowed content */
  overflow: hidden;
  position: absolute;
  /* First use: z-index — control stacking order of positioned elements */
  z-index: 1;
}

/* Brand container relative positioning */
.brand-relative {
  position: relative;
}

/* Brand link overlay for clickable logo */
.brand-link-overlay {
  position: absolute;
  width: 40%;
  height: 100%;
  z-index: 4;
  /* First use: opacity — control element transparency */
  opacity: 0;
  }

/* Site navigation bar layout */
  .site-nav { 
  display: flex;
  /* First use: font-size — set the size of text */
  font-size: 100%;
  height: 15vh;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
  /* First use: justify-content — align items along the main axis in flex/grid */
  justify-content: flex-end;
  gap: 3%;
}

/* Navigation link styling */
.nav-link {
  font-size: 50%;
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--color-white);
  /* First use: cursor — control the mouse cursor on hover */
  cursor: pointer;
  font-family: inherit;
  /* First use: font-weight — control the boldness of text */
  font-weight: 500;
  /* First use: transition — animate property changes smoothly */
  transition: all 0.3s ease;
  text-decoration: none;
}

.dropdown > .nav-link:not([href]) {
  cursor: default;
}

.site-nav > .nav-link:last-child {
  padding-right: 3%;
}

/* Navigation link hover effects */
  .nav-link:hover { 
  color: var(--color-white);
  }
  
/* Dropdown container positioning */
  .dropdown {
  position: relative;
  display: inline-block;
  }

/* Dropdown menu content styling */
  .dropdown-content {
  position: absolute;
  /* First use: top — offset the element from the top of its containing block */
  top: calc(100% + 20%);
  /* First use: left — offset the element from the left of its containing block */
  left: 50%;
  /* First use: transform — apply transformations like translate, rotate, scale */
  transform: translateX(-50%);
  background: var(--card);
  /* First use: border-radius — round the element's corners */
  border-radius: var(--border-radius-dropdown);
  width: 12vw;
  z-index: 3;
  opacity: 0;
  /* First use: visibility — toggle element visibility without affecting layout */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border);
  overflow: hidden;
  }
  
/* Dropdown menu links */
  .dropdown-content a {
  color: var(--text);
  /* First use: text-decoration — control text decorations like underline */
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border);
  padding: 1vw 0.3vw 1vw 1vw;
  font-size: 30%;
  }
  
  .dropdown-content a:last-child {
  border-bottom: none;
  }
  
/* Dropdown link hover effects */
  .dropdown-content a:hover {
  background: var(--color-dropdown-hover);
  }
  
/* Show dropdown on hover */
  .dropdown:hover .dropdown-content,
  .dropdown-content:hover,
  .dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  }
  
/* Dropdown transition delay for smooth hiding */
  .dropdown:not(:hover) .dropdown-content:not(:hover) {
  /* First use: transition-delay — wait before starting a transition */
  transition-delay: .05s;
  }

/* Site footer styling */
  .site-footer {
  color: var(--muted);
  /* First use: text-align — align inline content horizontally */
  text-align: center;
  border-top: 1px solid var(--text);
  margin-top: 4%;
  }

body:not(.mobile-device) .site-footer {
  font-size: 40%;
  padding-top: 2%;
  padding-bottom: 2%;
}
  
.container { width: 80%; margin: 0 auto; text-align: center; }

/* Main film layout grid */
.film-main { 
  display: flex;
  flex-direction: column;
  gap: 3%;
}

/* Film secondary section spacing */
.film-secondary {
  padding-top: 3%;
}

/* Film information section layout */
.film-info { 
  display: grid;
  padding-top: 4%;
}

/* Information section title styling */
.info-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 100%;
  font-weight: 600;
  /* First use: text-transform — change text case */
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

body:not(.mobile-device) .info-title {
  padding-bottom: 4%;
}

/* Film description text layout */
.film-copy { 
  display: grid;
  text-align: left;
}

/* Movie title styling with serif font */
.movie-title { 
  font-size: 100%;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 1000;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  display: inline-block;
  z-index: 2;
  margin-bottom: 4%;
  }
  
/* Underline decoration for movie titles */
  .movie-title::after {
  /* First use: content — generate content for pseudo-elements */
  content: '';
  position: absolute;
  /* First use: bottom — offset the element from the bottom */
  bottom: 0.104%;
  left: 0;
  /* First use: right — offset the element from the right */
  right: 0;
  height: 0.156%;
  /* First use: background-color — set the background color specifically */
  background-color: var(--text);
  }

/* Special styling for The Greatest Ever title */
  .movie-title.tge-title {
  font-weight: 600;
  }

/* Small text within TGE title */
  .tge-title .title-small {
  font-size: 100%;
  font-weight: 600;
}

/* Hero title styling */
.hero-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 100%;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-hero-title);
}

/* Movie section container styling */
.movie-section {
  position: relative;
  text-align: center;
}

/* Movie row container layout */
.movie-row {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.index-page .movie-row {
  gap: 3%;
}

/* Watch options container layout */
.watch-options {
  display: flex;
  /* First use: flex-direction — set the direction of flex items */
  flex-direction: row;
  /* First use: flex — set flex grow, shrink, and basis */
  flex: 0 0 auto;
  z-index: 2;
  width: 100%;
  position: relative;
}

/* Centered watch options layout */
.watch-options-centered {
  display: flex;
  justify-content: center;
  flex-direction: row;
  padding-top: 2%;
}

.platform-logo-inline,
.platform-logo-prime-inline {
  cursor: pointer;
  height: 2%;
  object-fit: contain;
}

.poster-section .watch-options img,
.trailer-section .watch-options img,
.watch-options-centered img {
  width: 48%;
  height: auto;
  object-fit: contain;
}

.poster-section .watch-options img[alt="Watch on Prime Video"],
.trailer-section .watch-options img[alt="Watch on Prime Video"],
.watch-options-centered img[alt="Watch on Prime Video"] {
  width: 51%;
}

.twelve-page .watch-options-centered .platform-logo-inline,
.twelve-page .watch-options-centered .platform-logo-prime-inline {
  height: 12%;
}

.twelve-page .watch-options-centered {
  gap: 3%;
  margin: 2% 0;
  transform: translateY(10%);
}

.twelve-page .watch-options-centered img[alt="Watch on Prime Video"] {
  transform: translateY(-3%);
}

/* Trailer section layout for film detail pages */
  .film-detail .trailer-section { 
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Trailer section within movie sections */
.movie-section .trailer-section {
  flex: 3.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Trailer label base styles */
.trailer-label-left,
.trailer-label-right {
  font-size: 100%;
  font-weight: 400;
  color: var(--text);
  width: 100%;
}

.index-page .trailer-label-left,
.index-page .trailer-label-right {
  font-size: 30%;
}

/* Left-aligned trailer label */
.trailer-label-left {
  text-align: left;
}

/* Right-aligned trailer label */
.trailer-label-right {
  text-align: right;
}

/* Video container layout */
  .video-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 20%;
  }

  .video-container:last-child {
  padding-bottom: 0;
  }

  .trailer-section .video-container + .video-container {
  margin-top: 6%;
  }

/* Center video container when watch options are centered */
  .video-container:has(.watch-options-centered) {
  align-items: center;
  }

/* Video title styling */
  .video-title {
  font-size: 100%;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  }

/* Desktop: Reduce text sizes on film detail pages */
body:not(.mobile-device) .film-detail .movie-title {
  font-size: 85%;
}

body:not(.mobile-device) .film-detail .info-title {
  font-size: 45%;
}

body:not(.mobile-device) .film-detail .film-copy {
  font-size: 30%;
}

body:not(.mobile-device) .film-detail .trailer-label-left,
body:not(.mobile-device) .film-detail .trailer-label-right {
  font-size: 85%;
}

body:not(.mobile-device) .film-detail .video-title.trailer-label-left,
body:not(.mobile-device) .film-detail .video-title.trailer-label-right {
  font-size: 30%;
}

body:not(.mobile-device) .film-detail .social-btn {
  font-size: 85%;
}

/* Desktop: Two independent columns using CSS Grid */
body:not(.mobile-device) .film-detail .container {
  display: grid;
  grid-template-columns: calc(75% - 2%) calc(25% - 2%);
  gap: 0 4%;
  align-items: start;
}

/* Desktop: Movie title spans full width */
body:not(.mobile-device) .film-detail .movie-title {
  grid-column: 1 / -1;
  width: 100%;
}

/* Desktop: Left column - use display: contents to unwrap, then place in grid */
body:not(.mobile-device) .film-detail .film-main {
  display: contents;
}

body:not(.mobile-device) .film-detail .film-main .trailer-section {
  display: contents;
}

body:not(.mobile-device) .film-detail .film-main .trailer-section .video-container:first-child {
  grid-column: 1;
  grid-row: 2;
  display: block;
  width: 100%;
  padding-bottom: 0;
}

body:not(.mobile-device) .film-detail .watch-options-centered {
  grid-column: 1;
  grid-row: 3;
  width: 100%;
}

body:not(.mobile-device) .film-detail .watch-options-centered img {
  width: 30%;
}

body:not(.mobile-device) .film-detail .watch-options-centered img[alt="Watch on Prime Video"] {
  width: 32%;
}

body:not(.mobile-device) .film-detail .film-main .trailer-section .video-container:last-child {
  grid-column: 1;
  grid-row: 4;
  display: block;
  width: 100%;
  margin-top: -30%;
}

body:not(.mobile-device) .film-detail .film-secondary {
  grid-column: 1;
  grid-row: 5;
  width: 100%;
  margin-top: 2%;
}

/* Desktop: Right column */
body:not(.mobile-device) .film-detail .film-info {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  align-self: start;
}

body:not(.mobile-device) .film-detail .social-buttons {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 2%;
  align-self: start;
}

body:not(.mobile-device) .film-detail .social-buttons .social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.mobile-device) .film-detail .social-buttons .social-logo {
  width: 60%;
  height: auto;
  object-fit: contain;
}

body:not(.mobile-device) .film-detail .social-buttons .social-btn:has(img[alt="TikTok"]) .social-logo {
  width: 100%;
}

body:not(.mobile-device) .film-detail .social-buttons .social-btn:has(img[alt="IMDb"]) .social-logo {
  width: 75%;
}

/* Desktop: Clear floats */
body:not(.mobile-device) .film-detail .container::after {
  content: '';
  display: table;
  clear: both;
}

/* Desktop: Reduce video container padding */
body:not(.mobile-device) .film-detail .video-container {
  padding-bottom: 3%;
}

body:not(.mobile-device) .film-detail .trailer-section .video-container + .video-container {
  margin-top: 3%;
}

body:not(.mobile-device) .film-detail .watch-options-centered {
  margin-top: 0;
  margin-bottom: 2%;
  margin-top: -45%;
}

body.inh-page:not(.mobile-device) .film-detail .watch-options-centered {
  transform: translateY(60%);
}

body.tge-page:not(.mobile-device) .film-detail .watch-options-centered {
  transform: translateY(110%);
}

body.tge-page:not(.mobile-device) .film-detail .film-main .trailer-section .video-container:last-child {
  transform: translateY(20%);
}

body.tge-page:not(.mobile-device) .film-detail .film-secondary {
  transform: translateY(5%);
}

/* Base video container class - shared constants for all video containers */
.main-trailer,
.main-commercial,
.teaser-video,
.trailer-placeholder,
.video-tile {
  border-radius: var(--video-border-radius);
  overflow: hidden;
  position: relative;
  width: 100%;
}

  .main-trailer,
  .main-commercial {
  height: auto;
  }
  
  .main-trailer video,
  .main-commercial video,
  .teaser-video video,
  .trailer-placeholder video {
  width: 100%;
  height: 100%;
  border-radius: var(--video-border-radius);
  object-fit: cover;
  }

  .main-commercial iframe,
  .main-trailer iframe,
  .teaser-video iframe,
  .trailer-placeholder iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--video-border-radius);
  }

/* Video tile container styling */
  .video-tile {
  height: 14.8%;
  }

  .video-tile.teaser-video {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Movie poster section layout */
.poster-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Movie poster image styling */
.movie-poster {
  width: min(85%, 20%);
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-poster);
}

.index-page .movie-poster {
  width: 100%;
}

/* Social media buttons container */
.social-buttons { 
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  padding-top: 2%;
  position: relative;
}

body:not(.mobile-device) .film-detail .social-buttons::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  border-top: 2px solid #363636;
  margin-bottom: 10%;
}

body:not(.mobile-device) .film-detail .social-buttons {
  padding-top: 6%;
}

/* Individual social media button styling */
  .social-btn {
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  }

/* Social media logo sizing */
  .social-logo {
  width: 60%;
  height: auto;
  object-fit: contain;
  }

/* TikTok logo specific sizing */
  .social-btn:has(img[alt="TikTok"]) .social-logo {
  width: 100%;
  height: auto;
  }

/* IMDb logo specific sizing */
  .social-btn:has(img[alt="IMDb"]) .social-logo {
  width: 80%;
  height: auto;
}

/* Learn more button styling */
.learn-more-btn {
  background: var(--accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius-button);
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  width: fit-content;
  padding: 0.8% 2%;
  margin-top: 1%;
  margin-bottom: 4%;
  font-size: 30%;
}

/* Learn more button hover effects */
.learn-more-btn:hover {
  background: var(--color-button-hover);
  transform: translateY(0);
}

/* Upcoming movie image container */
.upcoming-image-container {
  text-align: center;
  padding-top: 4%;
}

body:not(.mobile-device) .upcoming-section .upcoming-image-container {
  padding-top: 2%;
}

body:not(.mobile-device) .upcoming-section .movie-title {
  margin-bottom: 0;
}

/* Upcoming movie image styling */
.upcoming-image {
  width: 100%;
  height: auto;
}

/* Upcoming movie description text */
.upcoming-description {
  font-size: 100%;
  font-weight: 600;
  color: var(--text);
  /* First use: font-style — set italic or normal style for text */
  font-style: italic;
}

body:not(.mobile-device) .upcoming-section .upcoming-description {
  font-size: 45%;
}

/* Upcoming content container */
.upcoming-content {
  width: 100%;
}

body:not(.mobile-device) .upcoming-section .upcoming-content {
  font-size: 30%;
}

/* Thick horizontal rule */
.hr-thick {
  border: none;
}

/* Thin horizontal rule */
.hr-thin {
  border-top: 2px solid #363636;
  border-bottom: none;
  border-left: none;
  border-right: none;
  width: 90%;
  margin: 2% auto;
  display: block;
  height: 0;
}

body:not(.mobile-device) .film-info .hr-thin {
  margin: 8% auto;
}
  
/* Twelve movie section layout */
  .twelve-section {
  text-align: left;
  }
  
/* Twelve section movie row alignment */
  .twelve-section .movie-row {
  justify-content: flex-start;
  }
  
/* Twelve movie title blue color */
  .twelve-section .movie-title {
  color: var(--color-twelve-title);
  }
  
/* Twelve title underline color */
  .twelve-section .movie-title::after {
  background-color: var(--color-twelve-title);
}

body:not(.mobile-device).twelve-page .movie-title::after,
body:not(.mobile-device) .twelve-page .twelve-section .movie-title::after {
  left: 40%;
  right: 40%;
}

body:not(.mobile-device).tge-page .movie-title::after,
body:not(.mobile-device) .tge-page .tge-section .movie-title::after {
  left: 25%;
  right: 25%;
}

body:not(.mobile-device).inh-page .movie-title::after,
body:not(.mobile-device) .inh-page .inh-section .movie-title::after {
  left: 35%;
  right: 35%;
}

/* Twelve section watch options layout */
.twelve-section .watch-options {
  flex-direction: row;
}

/* TGE movie title pink color */
  .tge-section .movie-title {
  color: var(--color-tge-title);
  }

/* TGE title underline color */
  .tge-section .movie-title::after {
  background-color: var(--color-tge-title);
  }
  
/* TGE section layout and positioning */
  .tge-section {
  text-align: right;
  }
  
/* TGE section movie row alignment */
  .tge-section .movie-row {
  justify-content: flex-end;
}

.tge-section .watch-options,
.inh-section .watch-options {
  flex-direction: row;
  }

/* INH movie title gold color */
  .inh-section .movie-title {
  color: var(--color-inh-title);
  }

/* INH title underline color */
  .inh-section .movie-title::after {
  background-color: var(--color-inh-title);
  }
  
/* INH section layout */
  .inh-section {
  text-align: left;
  }
  
  .inh-section .movie-row {
  justify-content: flex-start;
  }

  .upcoming-section .movie-title {
  color: var(--color-upcoming-title);
  }

  .upcoming-section .movie-title::after {
  background-color: var(--color-upcoming-title);
}

/* First use: background-attachment — control background scroll behavior */
body.index-page {
  background: 
    radial-gradient(72.917% 41.667% at 80% 0%, rgba(0, 64, 255, 0.15), transparent 70%),
    radial-gradient(52.083% 31.25% at 20% 15%, rgba(255, 0, 0, 0.15), transparent 65%),
    radial-gradient(62.5% 36.458% at 60% 85%, rgba(0, 64, 255, 0.15), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

body.twelve-page {
  background: 
    radial-gradient(72.917% 41.667% at 80% 0%, rgba(0, 64, 255, 0.3), transparent 70%),
    radial-gradient(52.083% 31.25% at 20% 15%, rgba(255, 164, 37, 0.3), transparent 65%),
    radial-gradient(62.5% 36.458% at 60% 85%, rgba(65,105,225,0.3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

body.inh-page {
  background: 
    radial-gradient(72.917% 41.667% at 80% 0%, rgba(186, 135, 63, 0.3), transparent 70%),
    radial-gradient(52.083% 31.25% at 20% 15%, rgba(129, 109, 189, 0.3), transparent 65%),
    radial-gradient(62.5% 36.458% at 60% 85%, rgba(255, 179, 71, 0.3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

body.tge-page {
  background: 
    radial-gradient(72.917% 41.667% at 80% 0%, rgba(255, 20, 147, 0.15), transparent 70%),
    radial-gradient(52.083% 31.25% at 20% 15%, rgba(132, 0, 255, 0.15), transparent 65%),
    radial-gradient(62.5% 36.458% at 60% 85%, rgba(255, 0, 136, 0.15), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

body.upcoming-page {
  background: 
    radial-gradient(72.917% 41.667% at 80% 0%, rgba(92, 92, 92, 0.3), transparent 70%),
    radial-gradient(52.083% 31.25% at 20% 15%, rgba(71, 255, 111, 0.3), transparent 65%),
    radial-gradient(62.5% 36.458% at 60% 85%, rgba(92, 92, 92, 0.3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.twelve-page .main-trailer iframe,
.tge-page .main-trailer iframe,
.tge-page .main-commercial iframe,
.inh-page .main-trailer iframe,
.inh-page .main-commercial iframe {
  border-radius: var(--video-border-radius);
}

/* First use: aspect-ratio — define preferred width-to-height proportions */
.twelve-page .video-tile.main-trailer { 
  aspect-ratio: 1920 / 860;
}

.tge-page .video-tile.main-trailer { 
  aspect-ratio: 1920 / 815;
}

.inh-page .video-tile.main-trailer { 
  aspect-ratio: 1920 / 975;
}

.twelve-page .video-tile.main-commercial {
  aspect-ratio: 16 / 9;
}

.tge-page .video-tile.main-commercial {
  aspect-ratio: 1920 / 856;
}

.inh-page .video-tile.main-commercial {
  aspect-ratio: 1920 / 972;
}

.index-page .twelve-section .trailer-placeholder {
  height: auto;
  aspect-ratio: 1920 / 858;
}

.index-page .tge-section .trailer-placeholder {
  height: auto;
  aspect-ratio: 1920 / 832;
}

.index-page .inh-section .trailer-placeholder {
  height: auto;
  aspect-ratio: 1920 / 972;
}

.index-page .twelve-section .trailer-placeholder iframe,
.index-page .tge-section .trailer-placeholder iframe,
.index-page .inh-section .trailer-placeholder iframe {
  border-radius: var(--video-border-radius);
}

/* First use: overflow-x — control horizontal overflow */
.mobile-device {
  overflow-x: hidden;
}

.mobile-device * {
  box-sizing: border-box;
}

.mobile-device .container {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.mobile-device #nav-placeholder {
  height: 13%;
}

.mobile-device .site-header {
  width: 100%;
  height: 100%;
}

.mobile-device .brand {
  width: 100%;
  height: 100%;
  /* First use: background-image — set an image as the background */
  background-image: url('../media/logos/nav_bar_full.png');
  /* First use: background-size — control background image sizing */
  background-size: auto 50vw;
  /* First use: background-position — position the background image */
  background-position: 1.25%;
  /* First use: background-repeat — control if/how background repeats */
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.mobile-device .brand::before {
  content: '';
  position: absolute;
  background-image: url('../media/logos/nav_bar_full.png');
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
}

.mobile-device .brand-relative {
  width: 100%;
  height: 100%;
  display: relative;
}

.mobile-device .brand-logo {
  width: 100%;
  height: 100%;
  display: none;
}

.mobile-device .site-nav {
  width: 100%;
  height: 100%;
  font-size: 250%;
  cursor: default;
}

.mobile-device .site-nav::after {
  position: absolute;
  top: 50%;
  right: 8vw;
  transform: translateY(-60%);
  content: '☰';
  font-weight: 1;
  color: var(--color-white);
  cursor: pointer;
  padding: 2vw;
  font-size: 8vw;
  line-height: 1;
  filter: contrast(0.7) brightness(1);
}

.mobile-device .nav-link {
  display: none;
}

.mobile-device .brand-link-overlay {
  display: none;
}

.mobile-dropdown {
  /* First use: position: fixed — position element relative to viewport */
  position: fixed;
  top: 13%;
  left: 0;
  right: 0;
  background: #ffeeee;
  border: 0.267% solid var(--border);
  z-index: 3;
  display: none;
  flex-direction: column;
}

.mobile-dropdown.show {
  display: flex;
}

.mobile-dropdown a {
  color: #000;
  text-decoration: none;
  font-size: 120%;
  font-weight: 500;
  padding: 4% 0 4% 6%;
}

.mobile-dropdown a:last-child {
  font-weight: 700;
  padding: 4% 0 4% 3%;
}

.mobile-dropdown .films-header {
  color: #000;
  font-size: 120%;
  font-weight: 700;
  cursor: default;
  padding: 4% 0 4% 3%;
}

.mobile-dropdown a:hover {
  background: var(--color-dropdown-hover);
}

.mobile-device .film-main,
.mobile-device .twelve-page .film-main,
.mobile-device .tge-page .film-main,
.mobile-device .inh-page .film-main {
  display: flex;
  flex-direction: column;
}

.mobile-device .twelve-page .film-main {
  align-items: center;
}

.mobile-device .movie-row {
  flex-direction: column;
  align-items: center;
}

.mobile-device .twelve-section .movie-row,
.mobile-device .tge-section .movie-row,
.mobile-device .inh-section .movie-row {
  justify-content: center;
}

.mobile-device .tge-section {
  text-align: center;
}

.mobile-device .twelve-section,
.mobile-device .inh-section {
  text-align: center;
}

/* Mobile: hero heading size */
.mobile-device .hero-title {
  font-size: 6vw;
  line-height: 1.1;
  letter-spacing: 0.08%;
  margin: 2% 0;
}

/* Center and constrain Twelve movie section on mobile */
.mobile-device .movie-section.twelve-section {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mobile-device .poster-section {
  /* First use: order — change the order of flex items */
  order: 1;
  width: 80%;
  align-items: center;
}

.mobile-device .trailer-section {
  order: 2;
  width: 100%;
}

.mobile-device .poster-section .watch-options,
.mobile-device .trailer-section .watch-options {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 4%;
  width: 100%;
}

.mobile-device .poster-section .watch-options img,
.mobile-device .trailer-section .watch-options img {
  width: 48%;
  height: auto;
  object-fit: contain;
}

/* Mobile: make only the Prime Video button slightly larger than YouTube */
.mobile-device .poster-section .watch-options img[alt="Watch on Prime Video"],
.mobile-device .trailer-section .watch-options img[alt="Watch on Prime Video"] {
  width: 51%;
  transform: translateY(-1%);
}

.mobile-device .film-detail .poster-section .watch-options img[alt="Watch on Prime Video"],
.mobile-device .film-detail .trailer-section .watch-options img[alt="Watch on Prime Video"],
.mobile-device .film-detail .watch-options-centered img[alt="Watch on Prime Video"] {
  transform: translateY(-4%);
}


.mobile-device .twelve-page .trailer-section,
.mobile-device .tge-page .trailer-section,
.mobile-device .inh-page .trailer-section {
  display: contents;
}

.mobile-device .trailer-section .video-container:first-child .video-title {
  order: 4;
  width: 100%;
}

.mobile-device .trailer-section .video-container:first-child .video-tile {
  order: 5;
}

.mobile-device .trailer-section .video-container:first-child .watch-options {
  order: 3;
  width: 100%;
}

.mobile-device .trailer-section .video-container:last-child {
  order: 6;
  display: flex;
  flex-direction: column;
}

.mobile-device .watch-options {
  transform: none;
}

.mobile-device .watch-options-centered {
  padding-top: 4%;
  padding-bottom: 4%;
}

.mobile-device .trailer-label-left,
.mobile-device .trailer-label-right {
  text-align: center;
  font-size: 100%;
}

.mobile-device .learn-more-btn {
  font-size: 100%;
}


.mobile-device .movie-poster {
  width: 100%;
  height: auto;
}

.mobile-device .movie-title {
  font-size: 8vw;
}

.mobile-device .platform-logo-inline,
.mobile-device .platform-logo-prime-inline {
  height: 1%;
}

.mobile-device .film-info .info-title,
.mobile-device .twelve-page .film-info .info-title {
  font-size: 5vw;
  text-align: center;
}

.mobile-device .film-info .film-copy {
  text-align: center;
  width: 100%;
  font-size: 4vw;
  line-height: 1.4;
}

.mobile-device .twelve-page .film-info .film-copy {
  text-align: center;
  width: 100%;
}

.mobile-device .twelve-page .film-info,
.mobile-device .tge-page .film-info,
.mobile-device .inh-page .film-info {
  order: 1;
  text-align: center;
  display: contents;
  width: 100%;
}

.mobile-device .film-info .info-title {
  order: 1;
  width: 100%;
  text-align: center;
}

.mobile-device .film-info .film-copy {
  order: 2;
  width: 100%;
}

.mobile-device .trailer-section .video-container:first-child {
  display: contents;
}

.mobile-device .film-info .hr-thick {
  display: none;
}

.mobile-device .twelve-page .film-secondary,
.mobile-device .tge-page .film-secondary,
.mobile-device .inh-page .film-secondary {
  order: 7;
}


.mobile-device .film-info .social-buttons,
.mobile-device .twelve-page .film-info .social-buttons,
.mobile-device .tge-page .film-info .social-buttons,
.mobile-device .inh-page .film-info .social-buttons {
  justify-content: space-between;
  text-align: center;
  order: 8;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 4%;
}

.mobile-device .film-info .social-btn {
  flex: 1;
}

.mobile-device .film-info .social-logo {
  width: 8%;
  height: 8%;
  object-fit: contain;
}

.mobile-device .film-info .social-btn:has(img[alt="TikTok"]) .social-logo,
.mobile-device .film-info .social-btn:has(img[alt="IMDb"]) .social-logo {
  width: 8%;
  height: 8%;
}

.mobile-device .site-footer {
  border-top: 1px solid #000000;
  width: 100%;
  margin-top: 5%;
  padding-top: 3%;
  padding-bottom: 4%;
}

