/* General Body and HTML Styles */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  overflow-x: hidden; /* Prevent horizontal scroll */
  color: #fff;
  scroll-behavior: smooth;
  width: 100%;
}

/* --- */
/* MAIN NAVIGATION */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
  z-index: 1000;
}

.main-nav.sticky {
  position: fixed;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
}

.logo img {
  height: 35px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.nav-menu a:hover,
.nav-menu i:hover {
  color: #ffbb00;
}

.nav-menu i {
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s ease;
}

/* Hamburger button (hidden by default) */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* --- */
/* HERO SECTION */
.hero {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: 2rem;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 4rem;
  width: 100%;
  max-width: 1300px;
  box-sizing: border-box;
  margin-top: 3rem;
}

.poster {
  flex: 1 1 200px;
  max-width: 100%;
}

.poster img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.poster img:hover {
  transform: scale(1.03);
}

.hero-content {
  flex: 1 1 400px;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffbb00;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero h1 span {
  font-size: 1.5rem;
  display: block;
  color: #ffffff;
}

.meta {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff9900, #e24b00);
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* Ensure buttons don't have underline */
  display: inline-block; /* Allow padding and margin to apply */
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 136, 0, 0.6);
}

.btn.secondary {
  background-color: transparent;
  color: white;
}

/* --- */
/* UPCOMING FILMS SECTION */
.films-section {
  padding: 4rem 2rem;
  background-color: #111;
  text-align: center;
}

.films-section h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #ffbb00;
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1220px;
  margin: 0 auto;
}

.film-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer; /* Indicate it's clickable */
}

.film-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 187, 0, 0.3);
}

.film-card img {
  width: 100%;
  height: auto;
  display: block;
}

.film-card-title {
  padding: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

/* --- */
/* FOOTER */
footer {
  background-color: #000;
  padding: 1.5rem 1rem;
  color: #e0d4ba;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  flex: 1 1 auto;
  margin-bottom: 0.5rem;
}

.footer-logos {
  display: flex;
  gap: 1rem;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.footer-logos img {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
}

/* --- */
/* TRAILER PANEL (for hero section trailer button) */
.trailer-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.6s ease;
  z-index: 1000;
}

.trailer-overlay.active {
  right: 0;
}

.trailer-video {
  position: relative;
  width: 100%;
  max-width: 1500px;
  height: 100vh;
  box-shadow: 0 0 20px #000;
  animation: slideIn 0.7s ease forwards;
}

.trailer-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Slide animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

/* Slide poster/details left when trailer opens */
body.trailer-open .hero-inner {
  transform: translateX(-50px);
  opacity: 0.4;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* --- */
/* MODAL OVERLAY (general for both synopsis and trailer modals triggered from film cards) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.4s ease;
  /* overflow-y: auto; Allow scrolling for content that overflows */
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Close Button (for all modals) */
.close-btn {
  position: absolute;
  top: 1.7rem; /* Adjusted for better placement */
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* --- */
/* SYNOPSIS MODAL (for film cards that only show synopsis) */
.synopsis-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  margin: 4% auto; /* Centered with some vertical margin */
  padding: 2.5rem;
  max-width: 1200px;
  color: #fff;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.synopsis-poster {
  flex: 1 1 320px;
  max-width: 40%; /* Adjust to be smaller on larger screens */
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.synopsis-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

/* Typography for synopsis modals */
.synopsis-title {
  font: 700 1.25rem/1.2 "Raleway", sans-serif;
  letter-spacing: 0.05em;
  color: #fff;
}
.synopsis-main {
  font: 800 3rem/1.1 "Raleway", sans-serif;
  color: #ffbe16;
}
.synopsis-meta {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
  color: #ccc;
}
.synopsis-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

/* --- */
/* TRAILER MODAL (for film cards that show trailers) */
.trailer-wrapper {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  max-width: 1500px; /* Wider for trailer content */
  margin: auto;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.trailer-synopsis {
  flex: 1 1 400px;
  color: #fff;
}

.trailer-video {
  flex: 1 1 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trailer-video video {
  width: 100%;
  max-height: 80vh; /* Constrain height */
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* --- */
/* ABOUT US PAGE */
.about-us-hero {
  position: relative;
  height: 50vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("img/about_us_cover.png") no-repeat center center/cover;
  color: #fff;
  padding-top: 5rem;
}

.about-us-hero .overlay {
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
}

.about-us-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.about-us-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffbb00;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.about-us-hero h1 span {
  font-size: 1.8rem;
  display: block;
  color: #ffffff;
}

.about-section {
  padding: 4rem 2rem;
  background-color: #111;
  color: #fff;
  text-align: left;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  color: #ffbb00;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid rgba(255, 187, 0, 0.3);
  padding-bottom: 0.5rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: #ddd;
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.about-content ul li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #ddd;
}

.about-content ul li::before {
  content: "\2022"; /* Bullet point */
  color: #ffbb00;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1.5em;
  position: absolute;
  left: 0;
}

.about-content a {
  color: #ffbb00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-content a:hover {
  color: #fff;
}

/* --- */
/* DEDICATED FILM PAGE (e.g., nuclear-winter.html) */
.film-details-page {
  padding-top: 5rem; /* Space for fixed header */
  background-color: #0d0d0d; /* Dark background */
  color: #fff;
}

.film-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 3rem;
}

.film-hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  justify-content: center; /* Center items on smaller screens */
}

.film-hero-poster {
  max-width: 350px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.film-info {
  flex: 1;
  min-width: 300px;
}

.film-info h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffbb00;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.film-info h1 span {
  font-size: 1.6rem;
  display: block;
  color: #ffffff;
}

.film-meta {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 1.5rem;
}

.film-synopsis {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #ddd;
}

.film-details p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.film-details p strong {
  color: #fff;
}

.film-trailer-section {
  width: 100%;
  margin-top: 3rem;
  text-align: center;
}

.film-trailer-section h2 {
  font-size: 2.2rem;
  color: #ffbb00;
  margin-bottom: 1.5rem;
}

.responsive-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.responsive-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.director-statement,
.media-press,
.film-gallery {
  padding: 3rem 2rem;
  background-color: #1a1a1a;
  margin-top: 2rem;
  text-align: center;
}

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

.director-statement h2,
.media-press h2,
.film-gallery h2 {
  font-size: 2.2rem;
  color: #ffbb00;
  margin-bottom: 1.5rem;
}

.director-statement p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 1rem;
  text-align: justify;
}

.director-statement .director-name {
  font-style: italic;
  text-align: right;
  margin-top: 1.5rem;
  font-weight: 600;
  color: #ffbb00;
}

.media-press h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.press-logos img {
  height: 60px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.press-logos img:hover {
  filter: grayscale(0%);
}

.media-press ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.media-press ul li {
  margin-bottom: 0.8rem;
}

.media-press ul li a {
  color: #ffbb00;
  text-decoration: none;
  font-size: 1.1rem;
}

.media-press ul li a:hover {
  text-decoration: underline;
}

.btn.primary-download-btn {
  margin-top: 1.5rem;
  background: linear-gradient(
    135deg,
    #007bff,
    #0056b3
  ); /* Blue gradient for download button */
}

.btn.primary-download-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.6);
}

.film-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.film-gallery .gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-gallery .gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(255, 187, 0, 0.4);
}

/* --- */
/* PRESS & MEDIA PAGE (press.html) */
.press-hero {
  position: relative;
  height: 50vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("img/press_media_cover.png") no-repeat center center/cover;
  color: #fff;
  padding-top: 5rem;
}

.press-hero .overlay {
  background: rgba(0, 0, 0, 0.75);
}

.press-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.press-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffbb00;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.press-hero h1 span {
  font-size: 1.8rem;
  display: block;
  color: #ffffff;
}

.press-section {
  padding: 4rem 2rem;
  background-color: #111;
  color: #fff;
  text-align: left;
}

.press-container {
  max-width: 1000px;
  margin: 0 auto;
}

.press-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: #ddd;
}

/* Featured Articles List */
.featured-articles-list {
  list-style: none;
  padding: 0;
  margin-bottom: 3rem;
}

.featured-articles-list li {
  background-color: #1a1a1a;
  border-left: 5px solid #ffbb00;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.featured-articles-list li:hover {
  background-color: #222;
  transform: translateY(-3px);
}

.featured-articles-list li a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}

.featured-articles-list li a:hover {
  color: #ffbb00;
}

.featured-articles-list li .source-date {
  font-size: 0.9rem;
  color: #ccc;
  font-style: italic;
  margin-bottom: 0;
}

/* General Press Releases List */
.press-release-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.press-release-list li {
  background-color: #1a1a1a;
  border-left: 5px solid #ffbb00;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.press-release-list li:hover {
  background-color: #222;
  transform: translateY(-3px);
}

.press-release-list li a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffbb00;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.press-release-list li a:hover {
  text-decoration: underline;
}

.press-release-list li p {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 0;
}

/* Film Press Kits Grid */
.film-press-kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.film-press-kit-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-press-kit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 187, 0, 0.3);
}

.film-press-kit-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.film-press-kit-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.film-press-kit-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.btn.small-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn.small-btn:hover {
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.6);
}

.btn.small-btn.disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn.small-btn.disabled:hover {
  box-shadow: none;
  transform: none;
}

/* Featured Film Card (optional badge) */
.film-press-kit-card.featured-film-card {
  border: 3px solid #ffbb00;
  position: relative;
  overflow: hidden;
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: #ffbb00;
  color: #111;
  padding: 5px 30px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
/* Actors/Cast Section */
.cast-section {
}

.cast-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0; /* Remove padding here, move it to the scroller for better button placement */
  display: flex;
  flex-direction: column; /* Stack cast and director sections */
}

.director-container {
  padding: 0 1rem;
  margin: 0 auto;
}

.cast-scroller-controls {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 1rem; /* Apply horizontal padding here */
}

.cast-list-wrapper {
  display: flex;
  flex-wrap: nowrap; /* CRUCIAL: Prevent wrapping */
  gap: 20px;
  overflow-x: scroll; /* CRUCIAL: Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  flex-grow: 1; /* Allow it to take available space */
  padding: 10px 0; /* Add vertical padding for visual spacing */
}

.cast-list-wrapper::-webkit-scrollbar {
  display: none;
}

.cast-grid-scroller {
  display: flex;
  flex-wrap: wrap; /* Ensure no wrapping inside the scroller */
  gap: 1.5rem;
  align-items: flex-start; /* Align items to the top/start */
}

.cast-title {
  font-size: 1.5rem;
  font-weight: normal;
  color: #ffd700; /* Yellow-400 */
  margin-bottom: 0.5rem; /* Added margin */
  text-align: left;
  padding: 0 1rem; /* Added padding to align with scroller */
}
.cast-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* Increased gap */
  align-items: center;
}

.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease-in-out;
  width: 100px; /* Adjusted card width */
  flex-shrink: 0; /* Important: Prevents cards from shrinking */
}

.cast-card:hover {
  background-color: #1f2937; /* Gray-700 */
}

.cast-img {
  width: 80px; /* Increased from 48px to 80px */
  height: 80px; /* Increased from 48px to 80px */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd700; /* Yellow-400 */
  margin-bottom: 0.5rem; /* Increased margin */
}

.cast-name {
  color: #ffffff;
  font-size: 1rem; /* Increased from 0.75rem to 1rem */
  font-weight: 600; /* font-semibold */
  text-align: center;
  line-height: 1.2;
}

.cast-nav-btn {
  background-color: #ffd700; /* Yellow */
  color: #111827; /* Dark text */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s;
  flex-shrink: 0; /* Prevents buttons from shrinking */
}

.cast-nav-btn:hover {
  background-color: #fcd34d; /* Lighter yellow on hover */
}

.prev-cast-btn {
  margin-right: 10px;
  display: block;
}

.next-cast-btn {
  margin-left: 10px;
  display: block;
}

.view-all-cast-btn {
  background-color: #4b5563; /* Gray-600 */
  color: #ffffff;
  font-size: 0.875rem; /* text-sm */
  padding: 0.5rem 1rem; /* Increased padding */
  border-radius: 9999px; /* rounded-full */
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
  text-align: center;
  display: inline-block;
  margin-left: 1rem; /* Adjust margin as needed */
}

.view-all-cast-btn:hover {
  background-color: #6b7280; /* Gray-500 */
}

/* Main content wrapper for actor details */
#app {
  flex-grow: 1; /* Allows it to take up available space */
  display: flex; /* To center its content */
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  padding: 1.5rem; /* p-6, keep original padding */
  background-color: black;
}

/* Container for the actor details card */
.actor-card-container {
  background-color: #2d3748; /* bg-gray-800 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  padding: 1.5rem; /* p-6 */
  width: 100%;
  max-width: 48rem; /* max-w-4xl */
  display: flex;
  flex-direction: column; /* flex-col */
  gap: 2rem; /* gap-8 */
  align-items: center; /* items-center */
  justify-content: center;
  padding-top: 5rem;
}

/* Responsive adjustments for medium screens and up */
@media (min-width: 768px) {
  /* md: */
  #app {
    padding: 2.5rem; /* md:p-10 */
    padding-top: 6rem;
  }
  .actor-card-container {
    flex-direction: row; /* md:flex-row */
    padding: 2rem; /* md:p-8 */
    align-items: flex-start; /* md:items-start */
  }

  .prev-cast-btn {
    display: none;
  }

  .next-cast-btn {
    display: none;
  }
}
@media (max-width: 820px) {
  .prev-cast-btn {
    display: block;
  }

  .next-cast-btn {
    display: block;
  }
  .cast-grid-scroller {
    flex-wrap: nowrap; /* Prevent wrapping on smaller screens */
  }
}
/* Image styling */
.actor-image-wrapper {
  flex-shrink: 0;
  display: flex;
  justify-content: center; /* justify-center */
}

.actor-image {
  width: 12rem; /* w-48 */
  height: 12rem; /* h-48 */
  border-radius: 9999px; /* rounded-full */
  object-fit: cover;
  border: 4px solid #fbd38d; /* border-4 border-yellow-400 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}

@media (min-width: 768px) {
  /* md: */
  .actor-image-wrapper {
    justify-content: flex-start; /* md:justify-start */
  }
  .actor-image {
    width: 16rem; /* md:w-64 */
    height: 16rem; /* md:h-64 */
  }
}

/* Text content styling */
.actor-details-content {
  flex-grow: 1; /* flex-grow */
  text-align: center; /* text-center */
}

@media (min-width: 768px) {
  /* md: */
  .actor-details-content {
    text-align: left; /* md:text-left */
  }
}

.actor-name {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700; /* font-bold */
  color: #fbd38d; /* text-yellow-400 */
  margin-bottom: 0.5rem; /* mb-2 */
}

@media (min-width: 768px) {
  /* md: */
  .actor-name {
    font-size: 3rem; /* md:text-5xl */
  }
}

.actor-info {
  color: #cbd5e0; /* text-gray-300 */
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 1rem; /* mb-4 */
}

.actor-info strong {
  font-weight: 600; /* font-semibold */
}

.biography-heading {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600; /* font-semibold */
  color: #f6e05e; /* text-yellow-300 */
  margin-top: 1.5rem; /* mt-6 */
  margin-bottom: 0.75rem; /* mb-3 */
}

.biography-text {
  color: #e2e8f0; /* text-gray-200 */
  line-height: 1.625; /* leading-relaxed */
}
.biography-text ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  padding-left: 0;
}

.biography-text a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}
.biography-text a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* --- */
/* RESPONSIVE DESIGN */

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem 0;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
  }

  .main-nav {
    position: absolute;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 1rem 2rem 0;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    /* Initially hide the menu */
    display: none;
    flex-direction: column; /* Stacks links vertically */

    /* Gap for vertical spacing in the menu */
    gap: 1rem;

    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
  }

  .nav-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu a {
    padding: 0.5rem 0.8rem;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-menu a i {
    margin: 0;
    font-size: 1.5rem;
  }
  .logo img {
    height: 25px;
  }

  .hero-inner {
    margin-top: 1rem;
  }

  /* Responsive: stack on small screens */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-text,
  .footer-logos {
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  /* Responsive Adjustments for Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0rem;
    margin-top: 100px;
  }
  .hero-content,
  .poster {
    max-width: 100%;
  }
  .buttons {
    justify-content: center;
  }
  .hero p {
    font-size: 0.7rem;
  }
  .meta {
    font-size: 0.8rem;
  }
  .poster img {
    width: 70%;
  }
  .hero {
    padding-top: 2rem;
    height: 100%;
  }
  .film-card {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.2);
  }

  .films-grid {
    gap: 4rem;
  }

  /* Trailer Modal Responsive */
  .trailer-video {
    padding: 0.8rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .close-btn {
    top: 1.5rem;
    right: 0.5rem;
    font-size: 2rem;
  }

  /* Modals for film cards Responsive */
  .modal-content {
    padding: 0.5rem;
  }

  .modal-video video {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  /* Responsive tweak: stack poster above text on small screens */
  .synopsis-layout {
    flex-direction: column;
    padding: 1.5rem;
  }
  .synopsis-poster {
    max-width: none;
    margin: 0 auto;
  }

  .trailer-wrapper > .trailer-video {
    position: absolute;
    height: unset;
  }

  /* Responsive adjustments for screens smaller than 768px */
  .trailer-wrapper,
  .synopsis-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trailer-synopsis,
  .trailer-video,
  .synopsis-details {
    flex: 1 1 100%;
    text-align: start;
  }

  .synopsis-poster {
    width: 70%;
    max-width: 300px;
    margin-top: 1rem;
  }

  .synopsis-title,
  .synopsis-main,
  .synopsis-main {
    font: 800 1.8rem / 1.1 "Raleway", sans-serif;
  }
  .synopsis-title {
    font: 600 1rem / 1.2 "Raleway", sans-serif;
  }
  .synopsis-text {
    font-size: 0.8rem;
  }

  #synopsisModal > .synopsis-layout,
  #synopsisModal > .flex-wrap {
    display: unset;
    flex-wrap: unset;
  }

  /* Responsive adjustments for About Us page */
  .about-us-hero {
    height: 40vh;
    padding-top: 7rem;
  }

  .about-us-hero h1 {
    font-size: 2.5rem;
  }

  .about-us-hero h1 span {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-top: 2rem;
  }

  .about-content p,
  .about-content ul li {
    font-size: 0.95rem;
  }

  /* Responsive adjustments for the dedicated film page */
  .film-hero {
    padding: 2rem 1rem;
  }

  .film-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .film-hero-poster {
    max-width: 250px;
  }

  .film-info h1 {
    font-size: 2.5rem;
  }

  .film-info h1 span {
    font-size: 1.2rem;
  }

  .film-meta {
    font-size: 0.95rem;
  }

  .film-synopsis {
    font-size: 0.9rem;
  }

  .director-statement h2,
  .media-press h2,
  .film-gallery h2 {
    font-size: 1.8rem;
  }

  .director-statement p {
    font-size: 0.95rem;
    text-align: center;
  }

  /* Responsive Adjustments for Press page */
  .press-hero {
    height: 35vh;
    padding-top: 7rem;
  }

  .press-hero h1 {
    font-size: 2.2rem;
  }

  .press-hero h1 span {
    font-size: 1rem;
  }

  .press-section {
    padding: 2.5rem 1rem;
  }

  .press-release-list li a {
    font-size: 1rem;
  }

  .press-release-list li p {
    font-size: 0.85rem;
  }

  .film-press-kits-grid {
    grid-template-columns: 1fr;
  }

  .film-press-kit-card img {
    height: 300px;
  }

  .featured-articles-list li a {
    font-size: 1rem;
  }
  .featured-articles-list li .source-date {
    font-size: 0.8rem;
  }
  .featured-badge {
    font-size: 0.75rem;
    padding: 3px 20px;
    top: 10px;
    right: -20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .films-section h2 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    margin-top: -1rem;
  }
  .about-us-hero h1 {
    font-size: 1.8rem;
  }
  .about-us-hero h1 span {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .about-section {
    padding: 2.5rem 1rem;
  }
  .press-hero h1 {
    font-size: 1.8rem;
  }
  .press-hero h1 span {
    font-size: 0.8rem;
  }
}
/* --- */
/* Video Loading Spinner */
.video-loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffbb00; /* Yellow top border for spinner effect */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute; /* Position relative to the parent .trailer-video */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* Ensure it's above the video element if video is hidden */
  display: none; /* Hidden by default, shown by JS */
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Adjustments for .trailer-video to accommodate the spinner */
.modal-content .trailer-video {
  position: relative; /* Needed for absolute positioning of spinner */
  background-color: #000; /* Dark background behind spinner if video is not showing */
  display: flex; /* Use flex to center spinner if video is hidden */
  align-items: center;
  justify-content: center;
}

/* Ensure video element is hidden when spinner is active */
.modal-content .trailer-video video {
  display: block; /* Default display */
}

/* You might want to initially hide the video element in CSS if you always want a spinner */
/* .modal-content .trailer-video video { display: none; } */ /* Not needed if JS manages display */
