:root {
  /* Primary and Secondary Colors */
  --primary-red: #AA0000;
  --secondary-orange: #FF6A00;
  --secondary-yellow: #FFC300;
  
  /* Background Colors */
  --bg-dark: #000000;
  --bg-light: #FFFFFF;
  
  /* Surfae Colors */
  --surface-dark: #0A0A0A;
  --surface-card: #111111;
  
  /* Text Colors - Dark Mode (Default) */
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  
  /* Text Colors - Light Mode (Optional) */
  --text-light-primary: #000000;
  --text-light-secondary: #444444;
  
  /* Accents / Highlights */
  --accent-fire-1: #FF3D00;
  --accent-fire-2: #FF8C42;
  
  /* Borders */
  --border-color: #1F1F1F;

  /* Typography */
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-hero: 'Bebas Neue', sans-serif;
}

/* Global Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global page background (Portfolio-style, applied to all pages) */
.main-content {
  position: relative;
  overflow: hidden;
  background: radial-gradient(clamp(650px, 70vw, 900px) clamp(260px, 32vw, 420px) at 15% 0%, rgba(170, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 60%),
              radial-gradient(clamp(650px, 70vw, 900px) clamp(260px, 32vw, 420px) at 85% 0%, rgba(255, 106, 0, 0.10) 0%, rgba(0, 0, 0, 0) 60%),
              linear-gradient(to bottom, #000 0%, #000 100%);
}

.main-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(clamp(360px, 55vw, 520px) clamp(180px, 26vw, 240px) at 28% 48%, rgba(255, 106, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(clamp(360px, 55vw, 520px) clamp(180px, 26vw, 240px) at 72% 56%, rgba(170, 0, 0, 0.09) 0%, rgba(0, 0, 0, 0) 72%),
    radial-gradient(clamp(300px, 45vw, 420px) clamp(160px, 24vw, 220px) at 55% 30%, rgba(255, 195, 0, 0.06) 0%, rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.main-content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: radial-gradient(clamp(650px, 70vw, 900px) clamp(220px, 28vw, 320px) at 50% 100%, rgba(170, 0, 0, 0.22) 0%, rgba(255, 106, 0, 0.10) 35%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.main-content > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style-type: none;
}

/* Header & Navbar Premium UI */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  overflow: hidden; /* Caches the reflection effect inside */
}

/* Home (desktop) a little stronger glass */
.home-page .navbar {
  background-color: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.home-page .navbar::before {
  opacity: 0.42; /* slightly more visible reflection on home */
}

/* Simulated Image Reflection */
.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--current-hero-img, url('assets/banners/hero_banner.png'));
  background-size: cover;
  background-position: center top;
  transform: scaleY(-1) scale(1.1); /* Flips upside down for a reflection effect */
  filter: blur(18px);
  opacity: 0.70;
  z-index: -1;
  pointer-events: none;
}

/* Light mode specific header styles */
body.light-mode .navbar {
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-brand a {
  font-family: 'Rubik', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary); /* Adapts to light/dark */
  letter-spacing: -0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Accent '.in' for the logo */
.navbar-brand a::after {
  content: '.in';
  color: var(--secondary-yellow); /* Yellow in Dark Mode */
  font-size: 0.55em;
  font-weight: 800; /* Made it bolder */
  margin-left: 2px;
  transition: color 0.3s ease;
}

/* Red color for the .in accent in Light Mode */
body.light-mode .navbar-brand a::after {
  color: var(--primary-red);
}

.navbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* --- Search Mechanics (Desktop) --- */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.search-container.active .search-input {
  width: 280px;
  padding: 0.6rem 1.25rem;
  padding-right: 48px; /* Leave space for search icon pinning */
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.15);
  pointer-events: all;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 0 15px rgba(170, 0, 0, 0.1); 
}

.search-container.active .search-input:focus {
  border-color: var(--primary-red);
}

.search-btn {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.search-container.active .search-btn {
  position: absolute;
  right: 2px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.search-container.active .search-btn:hover {
  color: var(--primary-red);
  transform: none;
}

.search-container.active .search-btn::before {
  display: none; /* Strip gradient background hover when inside input */
}

.icon-btn {
  background-color: rgba(255, 255, 255, 0.03); /* Slight glass tint */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

/* Light mode buttons */
body.light-mode .icon-btn {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

/* The hover border gradient effect */
.icon-btn::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  padding: 1.5px; /* Gradient border thickness */
  background: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.icon-btn:hover {
  border-color: transparent;
  color: var(--primary-red); /* Make the icon match the border */
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(170, 0, 0, 0.3);
}

body.light-mode .icon-btn:hover {
  color: var(--primary-red);
}

.icon-btn:hover::before {
  opacity: 1;
}

.icon-btn:hover svg {
  transform: scale(1.15);
}

/* --- Side Menu Drawer UI --- */
.menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 999; /* Under header, covers everything else */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.55); /* More transparent for better glass */
  backdrop-filter: blur(35px); /* Stronger blur for richer glassmorphism */
  -webkit-backdrop-filter: blur(35px);
  border-left: 1px solid rgba(255, 255, 255, 0.08); /* Matches header border */
  z-index: 999; /* Just under header */
  padding: 100px 2rem 3rem; /* padding top clears the header height smoothly */
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); /* Ultra smooth ease-out */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.light-mode .side-menu {
  background: rgba(255, 255, 255, 0.65);
  border-left-color: rgba(0, 0, 0, 0.08);
}

body.menu-open .side-menu {
  transform: translateX(0);
}

/* --- Mobile Search Overlay UI --- */
.mobile-search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2000; /* Needs to be above header */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}

body.mobile-search-open .mobile-search-overlay {
  opacity: 1;
  pointer-events: all;
}

.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

body.mobile-search-open .mobile-search-header {
  transform: translateY(0);
  opacity: 1;
}

.mobile-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--text-secondary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.mobile-search-input:focus {
  border-color: var(--primary-red);
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-hint {
  color: var(--text-secondary);
  font-family: var(--font-body);
  text-align: center;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.2s;
}

body.mobile-search-open .search-hint {
  opacity: 1;
  transform: translateY(0);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-result-item:hover {
  border-color: rgba(255, 106, 0, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.search-result-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.search-result-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Desktop Search Dropdown (Popup) --- */
.desktop-search-dropdown {
  position: fixed;
  z-index: 5000;
  max-height: 380px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.65);
}

.desktop-search-list {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.5rem;
}

.desktop-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.desktop-search-item:hover {
  border-color: rgba(255, 106, 0, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.desktop-search-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-primary);
}

.desktop-search-meta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.desktop-search-empty {
  padding: 0.95rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Accordion Top Level Styles */
.side-menu ul {
  list-style: none; /* Already zeroed globally but good to be explicit */
}

.main-menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .main-menu > li {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.main-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.main-menu a:hover {
  color: var(--primary-red);
}

/* Chevron indicator for dropdowns */
.has-dropdown > a::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.has-dropdown.active > a::after {
  transform: rotate(180deg);
  color: var(--primary-red);
}

/* Nested Sub-menus */
.sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.sub-menu > li {
  border-bottom: none;
}

.sub-menu a {
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.sub-menu a:hover {
  color: var(--primary-red);
  transform: translateX(6px); /* Very premium slide effect on hover */
}

/* --- Menu Footer / Contact Block --- */
.main-menu {
  flex-grow: 1; /* Pushes the footer down naturally */
  margin-bottom: 2rem;
}

.menu-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15); /* Distinctive dashed separator */
}

body.light-mode .menu-footer {
  border-top-color: rgba(0, 0, 0, 0.15);
}

.menu-footer-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body.light-mode .contact-pill {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

.contact-pill svg {
  width: 18px;
  height: 18px;
  color: var(--primary-red);
}

.contact-pill:hover {
  background: var(--surface-card);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px -3px rgba(170, 0, 0, 0.2);
}

/* --- Hero Showcase / Banner UI --- */
.hero-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Perfect cinematic scale globally */
  max-height: 95vh;
  min-height: 600px;
  margin-top: 0; /* Fully separate from the header */
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  display: flex;
  align-items: center;
  padding: 0 3.5rem;
  z-index: 1;
}

.hero-slide.active {
  position: relative; /* Forces the DOM to expand vertically on mobile */
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  z-index: 1;
}

.hero-fade {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-fade-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, #000000 0%, transparent 100%);
}

.hero-fade-right {
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  background: linear-gradient(to right, #000000 0%, #000000 15%, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 700px;
  padding-top: 0; /* No offset required anymore */
}

.hero-badge-container {
  margin-bottom: 0.25rem; /* Compressed spacing */
}

.hero-badge {
  display: inline-block;
  background: var(--primary-red);
  color: white !important; /* Forces contrast */
  font-family: var(--font-heading);
  font-size: 0.7rem; /* Thinned badge text */
  font-weight: 700;
  padding: 0.2rem 0.5rem; /* Tighter badge padding */
  border-radius: 4px;
  letter-spacing: 2px;
}

/* Screen reader only for SEO headings */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero-title-img {
  width: 100%;
  max-width: 400px; /* Reduced for a sleeker footprint */
  max-height: 110px; /* Tightly constrained height */
  object-fit: contain;
  object-position: left bottom;
  margin-bottom: 0.5rem; /* Tighter gap to metadata */
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6)); /* Natural shadow to pop off background */
}

/* Intentionally keeping title-img shadow locked across modes */

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem; /* Stepped down meta text */
  color: #e5e5e5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Intentionally keeping meta text white across modes */

.match-score {
  color: #46d369; /* Classic OTT green highlight */
}

/* Intentionally keeping classic OTT green score across modes */

.age-rating, .hd-badge {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0 0.4rem; /* Snugger badge fit */
  border-radius: 3px;
  font-size: 0.75rem; /* Shrunk age/HD marker */
}

/* Intentionally keeping white borders across modes */

.hero-description {
  font-family: var(--font-body);
  font-size: 0.95rem; /* Pulled back description body size */
  font-weight: 400;
  line-height: 1.5;
  color: #d2d2d2;
  margin-bottom: 2rem; /* Reduced bottom gap to buttons */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  max-width: 600px;
  
  /* Sizing Lock base sizing is done by clamp class */
}

.hero-description.clamp-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more-btn {
  display: none !important; /* Force disabled on desktop regardless of JS engine state */
}

/* Intentionally keeping description text white across modes */

/* CTAs */
.hero-btn-group {
  display: flex;
  gap: 1.25rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem; /* Trimmed button bulk */
  font-family: var(--font-heading);
  font-size: 1.05rem; /* Modernized button text size */
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn svg {
  width: 20px; /* Reduced SVG proportion */
  height: 20px;
}

.btn-primary.play-btn {
  background-color: white;
  color: black;
}

.btn-primary.play-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.btn-secondary.info-btn {
  background-color: rgba(109, 109, 110, 0.7);
  color: white;
  backdrop-filter: blur(5px);
}

.btn-secondary.info-btn:hover {
  background-color: rgba(109, 109, 110, 0.4);
  transform: scale(1.05);
}

/* --- Hero UI Controls --- */
.hero-controls {
  position: absolute;
  bottom: 3.5rem;
  right: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}

.carousel-arrow {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: white;
  color: black;
  transform: scale(1.15);
}

.carousel-arrow svg {
  width: 20px; height: 20px;
}

.hero-indicators {
  display: flex;
  gap: 0.5rem;
}

.hero-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s ease;
}

.hero-indicator.active {
  background: var(--primary-red);
  width: 24px;
  border-radius: 4px;
}

/* --- Featured Projects Slider Module --- */
.slider-section {
  padding: 3rem 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--bg-dark);
}

.slider-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-container-wrapper {
  position: relative;
  width: 100%;
}

.slider-nav {
  position: absolute;
  top: calc(50% - 20px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  z-index: 10;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.slider-nav:hover {
  background: white;
  color: black;
  transform: scale(1.15);
}

.slider-nav svg {
  width: 22px; height: 22px;
}

.slider-nav.prev {
  left: -20px;
}

.slider-nav.next {
  right: -20px;
}

.slider-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; /* Firefox */
}
.slider-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.slider-track {
  display: inline-flex; 
  gap: 1.5rem;
  padding-bottom: 1rem; 
}

.poster-card {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.poster-card:hover {
  transform: translateY(-8px);
}

.poster-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  border: 2px solid var(--primary-red);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.poster-img-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

body.light-mode .poster-img-wrapper::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 100%);
}

.poster-card:hover .poster-img-wrapper {
  border-color: var(--secondary-orange);
  box-shadow: 0 8px 25px rgba(170, 0, 0, 0.4);
}

.poster-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-rating {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

body.light-mode .poster-rating {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.poster-rating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--secondary-yellow);
}

.poster-rating-icon svg {
  width: 14px;
  height: 14px;
}

.poster-rating-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

body.light-mode .poster-rating-text {
  color: var(--text-light-primary);
}

.poster-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Academy Page --- */
.academy-hero-strip {
  position: relative;
  width: 100%;
  /* 5 x 1 strip ratio (width x height) */
  aspect-ratio: 5 / 1;
  /* Desktop: let navbar sit on top of the strip */
  margin-top: calc(-1 * var(--academy-navbar-overlap, 78px));
  overflow: hidden;
  background: #000;
}

.academy-hero-strip::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 55%;
  background-image: var(--strip-img, none);
  background-size: cover;
  background-position: center;
  transform: scaleY(-1);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
}

.academy-hero-strip-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.02);
}

.academy-hero-strip-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 35%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 3;
}

.academy-recruit {
  background: radial-gradient(1200px 500px at 50% 0%, rgba(170, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 60%),
              linear-gradient(to bottom, #000 0%, #000 100%);
  padding: 4.5rem 1.5rem 4.5rem 1.5rem;
}

.academy-recruit-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.academy-recruit-kicker {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.academy-recruit-accent {
  color: var(--primary-red);
}

.academy-recruit-title {
  font-family: var(--font-hero);
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  text-transform: lowercase;
}

.academy-recruit-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  max-width: 820px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.8;
}

.academy-recruit-highlight {
  color: var(--secondary-yellow);
  font-weight: 800;
}

.academy-recruit-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

body.light-mode .academy-recruit {
  background: radial-gradient(1200px 500px at 50% 0%, rgba(170, 0, 0, 0.08) 0%, rgba(255, 255, 255, 0) 60%),
              linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
}

body.light-mode .academy-hero-strip {
  /* keep seamless transition (no divider line) */
}

body.light-mode .academy-hero-strip-fade {
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.78) 35%, rgba(255,255,255,0) 100%);
}

body.light-mode .academy-recruit-kicker,
body.light-mode .academy-recruit-title {
  color: var(--text-light-primary);
}

body.light-mode .academy-recruit-desc {
  color: rgba(0, 0, 0, 0.72);
}

body.light-mode .academy-recruit-highlight {
  color: var(--primary-red);
}

/* --- Portfolio Page --- */
.portfolio-page {
  --portfolio-bg: var(--bg-dark);
}

.portfolio-page .academy-hero-strip {
  background: var(--portfolio-bg);
}

.portfolio-page .academy-hero-strip-fade {
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.78) 35%, rgba(0, 0, 0, 0) 100%);
}

.portfolio-showcase {
  position: relative;
  overflow: hidden;
  background: transparent;
  /* Match home page section spacing */
  padding: 3rem 3.5rem 3.5rem 3.5rem;
  color: var(--text-primary);
}

.portfolio-showcase::before,
.portfolio-showcase::after {
  content: none;
}

.portfolio-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-header {
  margin-bottom: 1.25rem;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.portfolio-title-muted {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.portfolio-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 760px;
}

.portfolio-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.05rem 0 1.85rem 0;
}

.portfolio-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portfolio-chip:hover {
  border-color: rgba(255, 106, 0, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-chip.active {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)) padding-box,
    linear-gradient(90deg, var(--primary-red), var(--secondary-orange)) border-box;
  color: var(--text-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  /* Glass card */
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.7);
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card.is-focused {
  outline: 2px solid rgba(255, 106, 0, 0.65);
  outline-offset: 3px;
}

.portfolio-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0b0c;
}

.portfolio-card-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.05rem 1.05rem 1.05rem;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.portfolio-card-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.portfolio-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

a.portfolio-action-btn {
  text-decoration: none;
}

button.portfolio-action-btn {
  appearance: none;
  cursor: pointer;
}

.portfolio-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.portfolio-btn-icon svg {
  width: 16px;
  height: 16px;
}

.portfolio-action-btn.info {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.portfolio-action-btn.view {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--primary-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(170, 0, 0, 0.22);
}

.portfolio-action-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-action-btn.view:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(170, 0, 0, 0.9);
}

.portfolio-action-btn.info:hover {
  border-color: rgba(255, 106, 0, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.portfolio-empty {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
}

.portfolio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
}

.portfolio-modal-overlay.active {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.portfolio-modal {
  width: min(920px, 96vw);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 90px rgba(0,0,0,0.75);
}

.portfolio-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
}

.portfolio-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
}

.portfolio-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.portfolio-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 106, 0, 0.55);
}

.portfolio-modal-close svg {
  width: 18px;
  height: 18px;
}

.portfolio-modal-body {
  padding: 0.25rem 1.25rem 1.35rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-modal-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
  margin: 0.9rem 0 1.1rem 0;
}

.portfolio-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.portfolio-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 0, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  html {
    font-size: 15px; /* global mobile typography scale (keeps all pages consistent) */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    line-height: 1.55;
  }

  .navbar {
    padding: 1rem 1rem; /* Pushes elements closer to screen edges */
    background-color: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(24px) saturate(1.25);
    -webkit-backdrop-filter: blur(24px) saturate(1.25);
  }

  .navbar-actions {
    gap: 0.4rem; /* Tighter gap between buttons */
  }

  /* Destroy desktop expansion layout on mobile */
  .search-input {
    display: none !important;
  }
  
  .search-container.active .search-btn {
    position: relative; /* Keep it as a normal button */
    right: auto;
    background: rgba(255, 255, 255, 0.03); /* Maintain default look */
    border-color: rgba(255, 255, 255, 0.08);
  }

  .navbar-brand a {
    font-size: 1.5rem; /* Slightly smaller logo to fit perfectly */
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Full-width menu on mobile */
  .side-menu {
    width: 100vw;
    max-width: 100vw;
    padding-top: 5.5rem; /* Adjusted for mobile header size */
    border-left: none; /* No border needed if full width */
  }

  body.menu-open .menu-overlay {
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }
  
  /* Slider Component Mobile Scale */
  .slider-section {
    padding: 2.5rem 1.5rem;
  }
  
  .slider-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .slider-track {
    gap: 1rem;
  }

  .slider-nav {
    display: none !important; /* Mobile uses natural touch-swiping */
  }

  .poster-card {
    width: 140px; /* Compressed 3:4 width for mobile scanning */
  }

  /* Mobile Hero Adjustments: Image Top, Text Bottom */
  .hero-showcase {
    padding: 0;
    height: auto;
    aspect-ratio: auto;
    min-height: auto;
    margin-top: 0;
    display: block; 
    background-color: #000000; 
  }

  .hero-slider, .hero-slide {
    display: block;
    height: auto; /* Ensure active content properly expands DOM wrapper */
    padding: 0;
  }
  
  .hero-controls {
    bottom: auto;
    top: calc(100vw * 9 / 16 - 2.5rem); /* Pin dots to bottom of the movie image accurately */
    right: 50%;
    transform: translateX(50%);
    gap: 0.75rem;
  }

  .carousel-arrow {
    display: flex; /* Reactivate arrows for manual sliding on mobile */
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4); /* Stronger contrast against backgrounds */
  }

  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Image layer strictly locked to 16:9 natively */
  }

  .hero-fade-right {
    display: none; /* Disable side fade on mobile */
  }

  .hero-fade-bottom {
    bottom: auto;
    top: calc(100vw * 9 / 16 - 15vh);
    height: 15vh;
    width: 100%;
    background: linear-gradient(to top, #000000 0%, transparent 100%);
  }

  .hero-content {
    /* Using padding instead of margin prevents horrific CSS Margin-Collapse bugs that push the whole active slide down */
    padding: calc(100vw * 9 / 16 + 1.5rem) 1.5rem 0.5rem 1.5rem; 
    margin-top: 0; 
    text-align: left; /* Left align everything */
    max-width: 100%;
  }

  .hero-title-img {
    max-width: 230px; /* Scaled down significantly for mobile */
    max-height: 75px;
    object-position: left center;
    margin-bottom: 0.5rem; /* Compressed spacing on mobile */
  }

  .hero-description {
    font-size: 0.85rem; /* Super tight mobile body copy */
    line-height: 1.4;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }
  
  .hero-desc-wrapper {
    position: relative;
    max-width: 100%;
  }

  .hero-description.clamp-text {
    /* Strict Mobile Sizing Lock */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .read-more-btn {
    display: none; /* Inherits JS dynamic display rules on mobile */
    position: absolute;
    bottom: 1.25rem; /* Aligns precisely with paragraph margin-bottom */
    right: 0;
    background: linear-gradient(to right, transparent 0%, #000000 25%);
    padding-left: 2rem; /* Large transparent buffer for natural text fade effect */
    padding-right: 0.2rem;
    color: var(--secondary-yellow); /* High contrast action marker */
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 0.6rem; /* Tighter meta clustering */
    font-size: 0.75rem; /* Mobile meta text shrink */
    margin-bottom: 1.25rem;
  }

  .hero-btn-group {
    flex-direction: row; /* Both buttons in one line */
    flex-wrap: wrap; /* Safety wrap if screen is very thin */
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    width: auto; /* Do not stretch */
    padding: 0.6rem 1rem; /* Sleeker mobile buttons */
    font-size: 0.9rem;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }

  .academy-recruit {
    padding: 3rem 1.25rem 3.5rem 1.25rem;
  }

  /* Mobile: keep image strictly below navbar */
  .academy-hero-strip {
    margin-top: 0;
  }

  .academy-recruit-kicker {
    font-size: 1.4rem;
  }

  .academy-recruit-desc {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .portfolio-showcase {
    padding: 2.5rem 1.5rem 3rem 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .portfolio-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 0.25rem;
    margin-bottom: 1.5rem;
    scroll-snap-type: x proximity;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .portfolio-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
  }

  .portfolio-card-media {
    aspect-ratio: 1 / 1;
  }

  .portfolio-card-body {
    padding: 0.85rem 0.85rem 0.9rem 0.85rem;
  }

  .portfolio-card-title {
    font-size: 0.95rem;
  }

  .portfolio-card-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .portfolio-card-actions {
    gap: 0.5rem;
  }

  .portfolio-action-btn {
    flex: 1;
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* ---------------------------------------------
   PROJECTS (Streaming Platform UI)
---------------------------------------------- */

.projects-showcase {
  padding: 2.25rem 0 3.25rem 0;
}

.projects-container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

.projects-header {
  margin-bottom: 1.25rem;
}

.projects-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.projects-subtitle {
  color: var(--text-secondary);
  max-width: 70ch;
}

.projects-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem 0;
  flex-wrap: wrap;
}

.projects-filters {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.projects-inline-search {
  flex: 1 1 260px;
  display: flex;
  justify-content: flex-end;
}

.projects-inline-search-input {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.projects-inline-search-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(170, 0, 0, 0.15);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.poster-card.poster-card--grid {
  width: 100%;
  flex-shrink: unset;
}

.poster-card.poster-card--grid .poster-img-wrapper {
  border-radius: 14px;
}

.poster-card.poster-card--grid img {
  border-radius: 14px;
}

.projects-empty {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  padding: 1rem 0;
}

/* Project detail page */
.project-detail-page {
  padding-bottom: 3.25rem;
}

.project-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--project-backdrop, url('assets/banners/hero_banner.png'));
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.03);
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.05) 100%),
              linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.88) 95%);
}

.project-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.75rem 0 2.25rem 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-auto-rows: min-content;
  gap: 1.75rem;
}

.project-poster-col {
  width: 220px;
}

.project-poster {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 70px rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.03);
  position: relative;
}

.project-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.project-poster-under {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.project-poster-type {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.82rem;
  width: fit-content;
  align-self: flex-start;
}

.project-poster-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0, 0, 0, 0.35);
  width: fit-content;
}

.project-poster-rating-icon svg {
  width: 16px;
  height: 16px;
  color: var(--secondary-yellow);
}

.project-poster-rating-text {
  font-weight: 900;
  color: var(--text-primary);
}

.project-title {
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  margin-bottom: 0.35rem;
}

.project-info {
  min-width: 0;
}

.project-desc-row,
.project-actions-row {
  grid-column: 1 / -1;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.project-rating-inline {
  display: none; /* mobile-only */
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.project-rating-inline-icon svg {
  width: 16px;
  height: 16px;
  color: var(--secondary-yellow);
}

.project-rating-inline-text {
  font-weight: 900;
}

.project-tagline {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.project-meta strong {
  color: var(--text-primary);
}

.project-meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-weight: 900;
}

.project-meta-rating-icon svg {
  width: 14px;
  height: 14px;
  color: var(--secondary-yellow);
}

.project-meta-rating-text {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.15rem 0;
}

.project-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
}

.project-desc {
  max-width: 80ch;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
}

.project-desc.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-desc-toggle {
  margin-top: 0.55rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  font-family: var(--font-heading);
  cursor: pointer;
  padding: 0;
  width: fit-content;
}

.project-desc-toggle:hover {
  color: var(--secondary-yellow);
}

.project-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.project-desc-wrap {
  margin-top: 0.85rem;
}

.project-actions-divider {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Project detail: rating lives in meta row now */

.project-body {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 1.75rem;
}

.project-section-title {
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
}

.project-season-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-season-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-season-label {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.82rem;
}

.project-season-select {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
  outline: none;
}

.project-season-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(170, 0, 0, 0.15);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.project-item.project-item--single {
  grid-template-columns: 1fr;
}

.project-item-no {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(170,0,0,0.18);
  border: 1px solid rgba(170,0,0,0.35);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.project-item-title {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.project-item-meta {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.project-item-desc {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-item-cta {
  display: flex;
  align-items: center;
}

.project-item-cta a {
  white-space: nowrap;
}

.project-more {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 1.6rem;
}

.project-more-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem 0;
  scroll-snap-type: x mandatory;
}

.project-more-row .poster-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
}

/* Crew */
.project-crew {
  padding-top: 1.6rem;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
}

.crew-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.crew-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,106,0,0.22), rgba(170,0,0,0.16), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.6rem;
  position: relative;
}

.crew-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.crew-initials {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 1;
}

.crew-name {
  font-weight: 900;
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crew-role {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trailer / player modal */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.player-modal.active {
  display: flex;
}

.player-modal-card {
  width: min(980px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,10,0.95);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}

.player-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.player-modal-title {
  font-weight: 800;
}

.player-modal-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
}

.player-modal-body {
  aspect-ratio: 16 / 9;
  background: black;
}

.player-modal-body iframe,
.player-modal-body video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 840px) {
  .project-hero {
    align-items: flex-start;
    min-height: 420px;
  }

  .project-body {
    padding-top: 0.7rem; /* reduce gap between divider and episodes */
  }

  .project-hero-inner {
    grid-template-columns: 140px 1fr;
    align-items: start;
    padding: 1.25rem 0 1.1rem 0;
    gap: 1.2rem;
  }

  .project-section-title {
    margin-bottom: 0.55rem;
  }

  .project-poster-col {
    width: 140px;
  }

  .project-title {
    font-size: 1.65rem;
    margin-bottom: 0.25rem;
  }

  .project-title-row {
    align-items: flex-start;
  }

  .project-rating-inline {
    display: inline-flex;
  }

  .project-tagline {
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
  }

  .project-meta {
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
  }

  .project-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: none;
  }

  .project-desc-wrap {
    margin-top: 1.15rem; /* more space between poster and description */
  }

  .project-desc.is-clamped {
    -webkit-line-clamp: 2;
  }

  .project-actions .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
  }

  .project-poster-under {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  /* Move rating to the right column in mobile */
  .project-poster-under .project-poster-rating {
    display: none;
  }

  .project-poster-type {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .project-poster-rating {
    padding: 0.4rem 0.55rem;
    border-radius: 12px;
  }

  .project-poster-rating-text {
    font-size: 0.92rem;
  }

  .project-item {
    grid-template-columns: 54px 1fr;
    gap: 0.85rem;
    padding: 0.85rem 0.85rem;
  }

  .project-item-no {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .project-item-title {
    font-size: 0.98rem;
  }

  .project-item-meta {
    font-size: 0.85rem;
  }

  .project-item-desc {
    font-size: 0.9rem;
  }

  .project-item-cta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .project-item-cta .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }

  .project-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .project-actions .btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .crew-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
  }

  .crew-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .crew-card {
    flex: 0 0 138px;
    scroll-snap-align: start;
    padding: 0.7rem;
    min-height: 215px;
  }

  .crew-initials {
    font-size: 1.25rem;
  }

  .crew-name {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .crew-role {
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}

@media (max-width: 520px) {
  .project-hero {
    min-height: 380px;
  }

  .project-hero-inner {
    grid-template-columns: 120px 1fr;
    padding: 0.85rem 0 0.85rem 0;
  }

  .project-desc-wrap {
    margin-top: 1.05rem;
  }

  .project-poster-col {
    width: 120px;
  }

  .project-title {
    font-size: 1.45rem;
  }

  .project-meta {
    gap: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }

  .project-actions {
    gap: 0.65rem;
  }

  .project-actions .btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
  }

  .project-season-control {
    width: 100%;
    justify-content: space-between;
  }

  .project-season-select {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 410px) {
  .project-hero-inner {
    grid-template-columns: 1fr;
  }

  .project-poster-col {
    width: 170px;
    margin-bottom: 0.85rem;
  }

  .project-actions {
    flex-wrap: wrap;
  }
}

/* Crew: ensure no bullet prefix on mobile */
@media (max-width: 768px) {
  .crew-role::before {
    content: "" !important;
    display: none !important;
  }
}
