:root {
  --background: #0d0c11;
  --foreground: #ffffff;
  --foreground-muted: #a0a0a0;
  --primary: #f7c948;
  --secondary: #1a1a1a;
  --radius: 0.75rem;
  --shadow-card: 0 10px 25px rgba(0,0,0,0.6);
  --shadow-cinematic: 0 25px 50px rgba(0,0,0,0.8);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #0d0c11 0%, #121016 50%, #0d0c11 100%);
  color: var(--foreground);
  margin: 0;
  padding-top: 70px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove underline globally */
a {
  text-decoration: none;
  color: var(--foreground);
}

a:hover {
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

/* Logo and title container */
.logo-title-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo image */
.nav-logo-img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--foreground);
  font-weight: 500;
}

.nav-links li a:hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.menu-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--foreground);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn:hover .menu-line {
  background-color: var(--primary);
}

/* Hamburger to X Animation */
.mobile-menu-btn.active .menu-line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .menu-line-2 {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .menu-line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  text-align: center;
  margin: 0;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-links li a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  display: block;
}

.mobile-nav-links li a:hover {
  color: var(--primary);
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
  z-index: 1001;
}

.close-menu:hover {
  color: var(--primary);
}

/* Mobile Auth Section in Hamburger Menu */
.mobile-auth-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 280px;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-auth-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.mobile-auth-btn--primary {
  background: var(--primary);
  color: #1a1a1a;
  border-color: transparent;
}

.mobile-auth-btn--primary:hover {
  background: #e6b800;
  color: #1a1a1a;
}

.mobile-auth-btn--danger {
  background: rgba(231,76,60,0.15);
  border-color: rgba(231,76,60,0.3);
  color: #e74c3c;
}

.mobile-auth-btn--danger:hover {
  background: rgba(231,76,60,0.25);
}

/* Hide desktop auth bar on mobile */
@media (max-width: 768px) {
  .fd-authbar,
  #fdAuthBar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Hide mobile auth on desktop */
@media (min-width: 769px) {
  .mobile-auth-section {
    display: none;
  }
}

/* General container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Adjust logo and title for mobile */
  .logo-title-container {
    gap: 0.5rem;
  }
  
  .nav-logo-img {
    height: 35px;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  body {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .mobile-nav-links li a {
    font-size: 1.25rem;
  }
  
  .close-menu {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }
  
  .nav-logo-img {
    height: 30px;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
  
  /* Mobile optimizations */
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .page-header p {
    font-size: 0.9rem;
  }
  
  .section-header h2 {
    font-size: 1.3rem;
  }
  
  /* Mobile auth buttons in hamburger - smaller on very small screens */
  .mobile-auth-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Movies Slideshow - FIXED ROW GAPS */
.movies-slideshow {
  position: relative;
  width: 100%;
  height: 1000px; /* Fixed height for desktop */
  overflow: hidden;
  background: rgba(13, 12, 17, 0.9);
  margin-bottom: 1px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove gap between rows */
}

.poster-row {
  position: relative;
  height: 33.33%; /* Each row takes exactly 1/3 of the height */
  overflow: hidden;
  display: flex;
  margin: 0; /* Remove any margin */
  padding: 0; /* Remove any padding */
}

/* Continuous scrolling animation */
@keyframes continuousScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.poster-track {
  display: flex;
  gap: 8px; /* Tighter space between posters */
  width: max-content;
  animation: continuousScroll 120s linear infinite;
  height: 100%; /* Ensure track fills row height */
}

/* New Static Poster Grid with Fade Effects */
.poster-grid-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0d0c11;
}

.poster-grid-row {
  display: flex;
  width: 100%;
  height: 33.33%;
  gap: 0; /* Gaps handled by padding in cell */
}

/* Offset the middle row */
.offset-row {
  transform: translateX(-3.57%); /* Shift left by half a cell width (100% / 14 / 2) */
  width: 107.14%; /* Increase width to cover the gap on right */
}

.poster-cell {
  flex: 0 0 7.1428%; /* 100% / 14 columns */
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 4px; /* Gap between posters */
  box-sizing: border-box;
}

/* Inner poster styling */
.poster-inner-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.poster-inner-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 50%,
    rgba(0,0,0,0.25) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.poster-inner {
  width: 100%;
  height: 100%;
  transition: opacity 1.2s ease-in-out;
}

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

.poster-inner.fading-out {
  opacity: 0;
}

.poster-inner.fading-in {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .movies-slideshow {
    height: 600px;
  }
}

@media (max-width: 600px) {
  .movies-slideshow {
    height: 450px;
  }
  
  /* On mobile, keep 14 items but make them wider so they overflow/cut off */
  .poster-grid-row {
    width: 280%; /* Show approx 5 items on screen (14/5 = 2.8) */
  }
  
  .offset-row {
    width: 290%; /* Adjust for offset width */
    transform: translateX(-10%); /* Larger shift on mobile */
  }
}

.fd-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--secondary);
  color: var(--foreground);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all .2s ease;
}
.fd-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.25); }
.fd-btn:active { transform: translateY(0); }
.fd-btn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-btn--secondary { background: rgba(255,255,255,0.06); }
.fd-btn--xs { padding: 0.3rem 0.6rem; font-size: 0.85rem; border-radius: 8px; }

.fd-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  outline: none;
}
.fd-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(247,201,72,0.25); }
.fd-input--xs { padding: 0.3rem 0.5rem; width: 70px; text-align: center; }
.fd-label { margin-right: .35rem; color: var(--foreground-muted); font-size: .9rem; }

/* Auth box & tabs */
.fd-authbox {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  width: 100%;
}
.fd-tabs { display: flex; gap: .5rem; margin-bottom: .75rem; }
.fd-tab {
  background: rgba(255,255,255,0.06);
  color: var(--foreground);
  border: 1px solid rgba(255,255,255,0.12);
  padding: .45rem .8rem;
  border-radius: 999px;
  cursor: pointer;
}
.fd-tab--active { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authstate, .fd-substate { color: var(--foreground-muted); font-size: .9rem; margin: .25rem 0 .75rem; }
.fd-form.fd-form--auth { display: grid; gap: .6rem; margin-bottom: .85rem; }
.fd-form.fd-form--auth input,
.fd-form.fd-form--auth button { width: 100%; }

/* Modal */
.account-modal { background: rgba(0,0,0,0.85); }
.fd-modal {
  background: var(--secondary);
  color: var(--foreground);
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius);
  padding: 1.1rem;
  position: relative;
  box-shadow: var(--shadow-cinematic);
}
.fd-modal__close {
  position: absolute;
  top: .5rem; right: .5rem;
  font-size: 1.2rem;
  background: none; border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground); border-radius: 8px; cursor: pointer; padding: .25rem .5rem;
}
.fd-modal__grid { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: start; }
.fd-modal__grid.single { grid-template-columns: 1fr; }
.fd-modal__avatar { width: 140px; height: 140px; border-radius: 8px; object-fit: cover; background: #333; cursor: pointer; border: 1px solid rgba(255,255,255,0.12); }
.fd-modal__avatar-actions { margin-top: .5rem; display: flex; gap: .5rem; align-items: center; }
.fd-modal__subtitle { color: var(--foreground-muted); margin-bottom: .5rem; font-weight: 600; }
.fd-modal__listforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.fd-modal__listform-row { display: flex; gap: .5rem; }
@media (max-width: 640px){ .fd-modal__grid { grid-template-columns: 1fr; } }

/* Navbar separate auth buttons */
.fd-authbar { display: flex; gap: .5rem; align-items: center; margin-left: 1rem; }
.fd-authbtn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: var(--foreground); font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.35); transition: all .18s ease; }
.fd-authbtn:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); color: var(--primary); }
.fd-authbtn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authbtn--primary:hover { filter: brightness(.96); transform: translateY(-1px); }
.fd-authbtn i { opacity: .9; }
.fd-authbtn img#navAvatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.18); background: #222; }

.poster-track-1 {
  animation-duration: 120s;
}

.poster-track-2 {
  animation-duration: 100s;
}

.poster-track-3 {
  animation-duration: 140s;
}

/* Movie poster styles */
.movie-poster {
  flex-shrink: 0;
  width: 180px;
  height: 100%; /* Fill the row height */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.movie-poster:hover {
  transform: scale(1.05);
  z-index: 10;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pause animation on hover */
.poster-row:hover .poster-track {
  animation-play-state: paused;
}

/* Slideshow Overlay with Two Buttons */
.slideshow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  background: radial-gradient(circle, rgba(13,12,17,0.3) 0%, rgba(13,12,17,0.7) 100%);
}

.overlay-content {
  text-align: center;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 2rem; /* Space between the two button groups */
}

.overlay-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  white-space: nowrap; /* Prevent text from breaking */
}

/* BUTTON STYLES */
.search-movies-btn {
  background: var(--primary);
  color: var(--secondary);
  padding: 15px 30px; 
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.3rem; 
  transition: all 0.3s ease;
  box-shadow: var(--shadow-cinematic);
  display: inline-block;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.search-movies-btn:hover {
  background: #e6b83d;
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.search-series-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 15px 30px; 
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.3rem; 
  transition: all 0.3s ease;
  box-shadow: var(--shadow-cinematic);
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.search-series-btn:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

/* IMPROVED Mobile Responsive Adjustments for Slideshow */
@media (max-width: 1200px) {
  .movies-slideshow {
    height: 800px; /* Slightly smaller for large tablets */
  }
  
  .movie-poster {
    width: 160px; /* Slightly smaller posters */
  }
  
  .overlay-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .movies-slideshow {
    height: 650px; /* Medium tablets */
  }
  
  .movie-poster {
    width: 150px;
  }
  
  .overlay-content h2 {
    font-size: 2rem;
  }
  
  .search-movies-btn,
  .search-series-btn {
    padding: 14px 28px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .movies-slideshow {
    height: 500px; /* Small tablets and large phones */
  }
  
  .movie-poster {
    width: 130px;
  }
  
  .slideshow-overlay {
    flex-direction: row;
    gap: 1rem;
  }
  
  .overlay-content {
    margin: 0 1rem;
  }
  
  .overlay-content h2 {
    font-size: 1.8rem;
    white-space: normal;
    text-align: center;
  }
  
  .search-movies-btn,
  .search-series-btn {
    padding: 12px 24px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .movies-slideshow {
    height: 400px; /* Medium phones */
  }
  
  .movie-poster {
    width: 110px;
  }
  
  .overlay-content h2 {
    font-size: 1.6rem;
  }
  
  .slideshow-overlay {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .search-movies-btn,
  .search-series-btn {
    padding: 11px 22px;
    font-size: 1rem;
    width: 180px;
  }
}

@media (max-width: 480px) {
  .movies-slideshow {
    height: 350px; /* Small phones */
  }
  
  .movie-poster {
    width: 100px;
  }
  
  .overlay-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .search-movies-btn,
  .search-series-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 160px;
  }
}

@media (max-width: 360px) {
  .movies-slideshow {
    height: 300px; /* Very small phones */
  }
  
  .movie-poster {
    width: 90px;
  }
  
  .overlay-content h2 {
    font-size: 1.2rem;
  }
  
  .search-movies-btn,
  .search-series-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 140px;
  }
}

/* Latest Reviews Section */
.latest-reviews {
  padding: 4rem 2rem;
  background: rgba(13,12,17,0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
}

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

/* Fix anchor styles in cinematic cards */
.card-cinematic {
  display: block;
  background: #121016;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  color: var(--foreground);
  text-decoration: none;
}

.card-cinematic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-cinematic);
  text-decoration: none;
}

.card-cinematic img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.card-cinematic h3 {
  font-family: var(--font-heading);
  margin: 0.5rem 0;
  color: var(--foreground);
}

.card-cinematic p {
  color: var(--foreground-muted);
}

.card-cinematic .rating-display {
  color: var(--primary);
  font-weight: 700;
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  text-align: center;
}

.feature-card {
  padding: 1rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Editorial Spotlight */
.editorial-spotlight {
  padding: 4rem 2rem;
  background: rgba(13,12,17,0.3);
}

.spotlight-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.spotlight-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-cinematic);
}

/* Buttons */
.btn-outline {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--radius);
}

.btn-outline:hover {
  background: rgba(247,200,72,0.1);
}

.btn-ghost {
  color: var(--primary);
  text-decoration: none;
}

.btn-ghost:hover {
  color: rgba(247,200,72,0.8);
}

.btn-primary {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: var(--secondary);
  background: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: #e6b83d;
}

/* Footer Styles */
.footer {
  background: var(--secondary);
  color: var(--foreground);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-social h4 {
  margin-bottom: 0.8rem;
  color: var(--foreground);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--foreground);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-legal {
  margin: 0.8rem 0;
}

.footer-legal a {
  color: var(--foreground-muted);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-legal span {
  color: var(--foreground-muted);
  margin: 0 0.5rem;
}

.footer-attribution p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .social-icons {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .footer {
    padding: 1.5rem 0 0.8rem;
    margin-top: 2rem;
  }
}



/* ===== Auth & Account UI (ported from moviesreviews.css) ===== */
/* Auth bar (separate buttons) */
.fd-authbar { display: flex; gap: .5rem; align-items: center; margin-left: 1rem; }
.fd-authbtn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--foreground);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all .18s ease;
}
.fd-authbtn:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); color: var(--primary); }
.fd-authbtn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authbtn--primary:hover { filter: brightness(.96); transform: translateY(-1px); }
.fd-authbtn i { opacity: .9; }
.fd-authbtn img#navAvatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.18); background: #222; }

/* Navbar Account button */
.navbar .account-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: 1rem;
  padding: .4rem .9rem;
  height: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--foreground);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.navbar .account-btn:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  color: var(--primary);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 2px rgba(247,201,72,0.15) inset;
}
.navbar .account-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -150%; right: -150%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.navbar .account-btn:hover::after { transform: translateX(100%); }
.navbar .account-btn:active { transform: translateY(0); }
.navbar .fd-acc { position: relative; }
.navbar .account-btn #navAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.navbar .account-btn #navAvatar[src=""],
.navbar .account-btn #navAvatar:not([src]) { display: none; }
.navbar .account-btn .fa-user-circle { font-size: 1.2rem; opacity: .9; }
.navbar .account-btn .caret { font-size: .8rem; opacity: .7; }
.navbar .account-btn span { line-height: 1; }

/* Dropdown */
.fd-acc__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18,16,22,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.55);
  padding: .4rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all .18s ease;
  z-index: 1002;
}
.fd-acc.open .fd-acc__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fd-acc__menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border-radius: 8px;
  color: var(--foreground);
  font-weight: 600;
}
.fd-acc__menu a:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
.fd-acc__menu i { width: 1.1rem; text-align: center; opacity: .9; }

/* Modal styles (auth/profile) and controls */
.fd-modal {
  background: var(--secondary);
  color: var(--foreground);
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  box-shadow: var(--shadow-cinematic);
}
.fd-modal__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: 1.25rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  border-radius: 8px;
  cursor: pointer;
  padding: .25rem .5rem;
}
.fd-modal__grid { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: start; }
.fd-modal__avatar { width: 140px; height: 140px; border-radius: 8px; object-fit: cover; background: #333; cursor: pointer; border: 1px solid rgba(255,255,255,0.12); }
.fd-modal__avatar-actions { margin-top: .5rem; display: flex; gap: .5rem; align-items: center; }
.fd-modal__listforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.fd-modal__listform-row { display: flex; gap: .5rem; }

/* General UI elements used by modal */
.fd-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--secondary);
  color: var(--foreground);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all .2s ease;
}
.fd-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.25); }
.fd-btn--primary { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-btn--secondary { background: rgba(255,255,255,0.06); }
.fd-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--foreground);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  outline: none;
}
.fd-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(247,201,72,0.25); }
.fd-authbox { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-card); }
.fd-tabs { display: flex; gap: .5rem; margin-bottom: .75rem; }
.fd-tab { background: rgba(255,255,255,0.06); color: var(--foreground); border: 1px solid rgba(255,255,255,0.12); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; }
.fd-tab--active { background: var(--primary); color: #1a1a1a; border-color: transparent; }
.fd-authstate, .fd-substate { color: var(--foreground-muted); font-size: .9rem; margin: .25rem 0 .75rem; }
.fd-form.fd-form--auth { display: grid; gap: .5rem; margin-bottom: .75rem; }

/* Gate/Notice overlays used by openGatePopup and openStyledPopup */
.account-modal { background: rgba(0,0,0,0.85) !important; }
.fd-gate-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 1100; }
.fd-gate-dialog { background: var(--secondary); color: var(--foreground); width: min(520px, 92vw); border-radius: var(--radius); box-shadow: var(--shadow-cinematic); padding: 1rem 1rem 1.25rem; border: 1px solid rgba(255,255,255,0.1); }
.fd-gate-header { display:flex; align-items:center; justify-content: space-between; }
.fd-gate-title { font-weight: 800; font-size: 1.15rem; }
.fd-gate-close { background:none; border:1px solid rgba(255,255,255,0.12); color:var(--foreground); border-radius:8px; cursor:pointer; padding:.25rem .5rem; }
.fd-gate-body { margin:.5rem 0 .75rem; color: var(--foreground-muted); }
.fd-gate-actions { display:flex; gap:.5rem; justify-content:flex-end; }

/* ========================================
   Auth Modal - Redesigned Sign In/Sign Up
   ======================================== */
.fd-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  overflow-y: auto;
}

.fd-auth-modal {
  background: linear-gradient(165deg, rgba(30, 28, 35, 0.98) 0%, rgba(18, 16, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  position: relative;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: authModalIn 0.3s ease-out;
}

@keyframes authModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.fd-auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--foreground-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}
.fd-auth-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--foreground);
  transform: scale(1.05);
}

.fd-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.fd-auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.fd-auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  letter-spacing: -0.02em;
}

.fd-auth-container {
  width: 100%;
}

.fd-auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
}

.fd-auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--foreground-muted);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fd-auth-tab:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}
.fd-auth-tab--active {
  background: var(--primary) !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 8px rgba(247, 201, 72, 0.3);
}

.fd-auth-status {
  text-align: center;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
}
.fd-auth-status.fd-auth-status--error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}
.fd-auth-status.fd-auth-status--success {
  display: block;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.fd-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fd-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fd-auth-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground-muted);
  margin-left: 2px;
}

.fd-auth-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.fd-auth-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.fd-auth-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.15);
}
.fd-auth-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.2);
}

.fd-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fd-auth-hint {
  font-size: 0.8rem;
  color: var(--foreground-muted);
  min-height: 1.2em;
}
.fd-auth-hint.fd-auth-hint--error { color: #e74c3c; }
.fd-auth-hint.fd-auth-hint--success { color: #2ecc71; }

.fd-auth-avatar-upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fd-auth-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--foreground-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fd-auth-avatar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--foreground);
}

.fd-auth-avatar-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fd-auth-avatar-preview img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.fd-auth-avatar-preview span {
  font-size: 0.85rem;
  color: var(--foreground-muted);
}

.fd-auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--foreground-muted);
  line-height: 1.4;
}
.fd-auth-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.fd-auth-checkbox a {
  color: var(--primary);
  text-decoration: none;
}
.fd-auth-checkbox a:hover {
  text-decoration: underline;
}

.fd-auth-submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #e6b800 100%);
  border: none;
  border-radius: 12px;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.fd-auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 201, 72, 0.35);
}
.fd-auth-submit:active:not(:disabled) {
  transform: translateY(0);
}
.fd-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.fd-auth-submit--secondary {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.fd-auth-submit--secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.1) 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.fd-auth-submit-loading { display: none; }
.fd-auth-submit.is-loading .fd-auth-submit-text { display: none; }
.fd-auth-submit.is-loading .fd-auth-submit-loading { display: inline-block; }

.fd-auth-signout {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 12px;
  color: #e74c3c;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.fd-auth-signout:hover {
  background: rgba(231, 76, 60, 0.2);
}

.fd-auth-subscription {
  text-align: center;
  font-size: 0.85rem;
  color: var(--foreground-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(247,201,72,0.02) 50%, transparent 100%);
}

.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
  .pricing-section {
    padding: 3rem 0;
  }
  
  .pricing-section .pricing-grid {
    padding: 0 1rem;
  }
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .fd-auth-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .fd-auth-modal {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem;
    max-height: 95vh;
    overflow-y: auto;
    animation: authModalSlideUp 0.3s ease-out;
  }
  
  @keyframes authModalSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .fd-auth-logo {
    width: 56px;
    height: 56px;
  }
  
  .fd-auth-title {
    font-size: 1.3rem;
  }
  
  .fd-auth-brand {
    margin-bottom: 1.25rem;
  }
  
  .fd-auth-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .fd-auth-input {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .fd-auth-submit {
    padding: 1rem;
  }
  
  .fd-auth-close {
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .fd-auth-avatar-upload {
    flex-direction: column;
    align-items: flex-start;
  }
}
