/* Professional Movie Site - Complete UI Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary-black: #000000;
  --secondary-black: #0d1117;
  --dark-gray: #161b22;
  --medium-gray: #21262d;
  --light-gray: #30363d;
  --border-gray: #30363d;
  --text-white: #f0f6fc;
  --text-gray: #8b949e;
  --text-muted: #656d76;
  --netflix-red: #e50914;
  --gold: #ffd700;
  --blue: #1f6feb;
  --green: #2ea043;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #e50914 0%, #b81d24 100%);
  --gradient-secondary: linear-gradient(135deg, #1f6feb 0%, #0969da 100%);
  --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
  --gradient-overlay: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.5);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--primary-black);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-black);
}

::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--netflix-red);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gray);
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 800;
  transition: var(--transition);
}

.nav-logo i {
  color: var(--netflix-red);
  font-size: 1.8rem;
}

.nav-logo:hover a {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
  background-color: var(--medium-gray);
}

.nav-search {
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--dark-gray);
  border: 1px solid var(--border-gray);
  border-radius: 50px;
  padding: 0.5rem;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--netflix-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.search-input {
  background: transparent;
  border: none;
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  width: 250px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  width: 300px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--text-white);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  margin-top: 80px;
  overflow: hidden;
  background: var(--secondary-black);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  padding: 0 5%;
  z-index: 2;
}

.slide-info {
  max-width: 600px;
  z-index: 3;
}

.slide-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.slide-year {
  color: var(--text-gray);
  font-weight: 500;
}

.slide-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.slide-rating i {
  color: var(--gold);
}

.slide-overview {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.slide-poster {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  z-index: 2;
}

.slide-poster img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 4;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-btn:hover {
  background: var(--netflix-red);
  transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 4;
}

.indicator {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--netflix-red);
  transform: scale(1.3);
}

/* Hero Stats Overlay */
.hero-stats-overlay {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 2rem;
  z-index: 3;
}

.stat {
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--netflix-red);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* OTT Platforms Section */
.ott-platforms {
  padding: 3rem 0;
  background: var(--secondary-black);
}

.ott-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ott-platform {
  background: var(--dark-gray);
  border: 2px solid var(--border-gray);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ott-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ott-platform:hover::before {
  opacity: 1;
}

.ott-platform:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ott-platform.netflix:hover {
  border-color: #e50914;
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
}

.ott-platform.disney:hover {
  border-color: #113ccf;
  box-shadow: 0 20px 40px rgba(17, 60, 207, 0.4);
}

.ott-platform.amazon:hover {
  border-color: #00a8e1;
  box-shadow: 0 20px 40px rgba(0, 168, 225, 0.4);
}

.ott-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
}

.ott-icon.netflix {
  color: #e50914;
}

.ott-icon.disney {
  color: #113ccf;
}

.ott-icon.amazon {
  color: #00a8e1;
}

.ott-platform:hover .ott-icon {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.ott-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  transition: all 0.4s ease;
  text-align: center;
}

.ott-platform:hover .ott-name {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Sections - Unified Dark Background */
.section {
  padding: 4rem 0;
  background: var(--primary-black);
}

/* Remove alternating background - all sections are now dark */
.section:nth-child(even) {
  background: var(--primary-black);
}

/* OTT Platforms Section - Also Dark */
.ott-platforms {
  padding: 5rem 0;
  background: var(--primary-black);
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.section-title i {
  color: var(--netflix-red);
  margin-right: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* Movies Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Movie Cards */
.movie-card {
  background: var(--dark-gray);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  transform-origin: center bottom;
}

.movie-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--netflix-red);
  z-index: 10;
}

.movie-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.movie-card:hover .movie-poster img {
  transform: scale(1.05);
}

.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.movie-rating {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.movie-rating i {
  color: var(--gold);
}

.movie-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-play,
.btn-info {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-black);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.btn-play:hover,
.btn-info:hover {
  transform: scale(1.1);
  background: white;
  box-shadow: var(--shadow-lg);
}

.movie-info {
  padding: 1rem;
}

.movie-title {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-white);
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Ensure h3 elements with movie-title class use our styling */
h3.movie-title {
  font-size: 0.75rem !important;
  font-weight: 600;
  margin: 0;
}

/* Section Footer */
.section-footer {
  text-align: center;
  margin-top: 2rem;
}

.view-more-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.view-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.view-more-btn i {
  transition: var(--transition);
}

.view-more-btn:hover i {
  transform: translateX(3px);
}

/* Footer */
.footer {
  background: var(--secondary-black);
  border-top: 1px solid var(--border-gray);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer-section h3 i {
  color: var(--netflix-red);
  margin-right: 0.5rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer-section p {
  color: var(--text-gray);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--text-white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--dark-gray);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-links a:hover {
  background: var(--netflix-red);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-gray);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .slide-poster {
    width: 250px;
  }
  
  .movies-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .movies-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
  
  .nav-logo a {
    font-size: 1.25rem;
  }
  
  .nav-logo i {
    font-size: 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-top: 1px solid var(--border-gray);
  }
}

@media (max-width: 480px) {
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
  }
  
  .nav-search {
    order: 2;
    margin-right: 1rem;
  }
  
  .search-form {
    padding: 0.25rem;
  }
  
  .search-input {
    width: 120px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .search-input:focus {
    width: 160px;
  }
  
  .search-btn {
    width: 35px;
    height: 35px;
  }
  
  .hero {
    height: 60vh;
  }
  
  .slide-content {
    padding: 0 2rem;
  }
  
  .slide-title {
    font-size: 1.8rem;
  }
  
  .slide-poster {
    display: none;
  }
  
  .ott-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
  
  .hero-stats-overlay {
    position: static;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-logo a span {
    display: none;
  }
  
  .nav-logo i {
    font-size: 1.75rem;
  }
  
  .search-input {
    width: 100px;
  }
  
  .search-input:focus {
    width: 140px;
  }
  
  .slide-title {
    font-size: 1.8rem;
  }
  
  .slide-overview {
    font-size: 0.95rem;
  }
  
  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stat {
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
}

/* Loading States */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--netflix-red);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-gray: #e0e0e0;
    --text-muted: #cccccc;
  }
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin: 3rem 0;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-load-more:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #b81d24 0%, #e50914 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.5);
  color: white;
  text-decoration: none;
}

.btn-load-more:hover:before {
  left: 100%;
}

.btn-load-more:active {
  transform: translateY(-1px) scale(1.02);
}

.btn-load-more i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-load-more:hover i {
  transform: translateX(3px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--secondary-black);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-btn:hover {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--secondary-black);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-number:hover,
.pagination-number.active {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.pagination-dots {
  color: var(--text-secondary);
  font-weight: bold;
}

/* Movie Details Page - IMDB Style */
.details-hero {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  z-index: 2;
}

.movie-poster-section {
  position: relative;
  max-width: 220px;
}

.poster-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.poster-container:hover {
  transform: translateY(-5px);
}

.movie-poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.8));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poster-container:hover .poster-overlay {
  opacity: 1;
}

.btn-trailer {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-trailer:hover {
  background: var(--secondary-accent);
  transform: translateY(-2px);
}

.movie-info-section {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.title-section {
  margin-bottom: 1.5rem;
}

.movie-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.title-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.year {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rating-badge {
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.movie-meta-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-item i {
  color: var(--accent-color);
}

.genres-section {
  margin-bottom: 2rem;
}

.genre-pill {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 500;
  font-size: 0.9rem;
}

.plot-section {
  margin-bottom: 2rem;
}

.section-title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.plot-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 800px;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary-large, .btn-secondary-large, .btn-wishlist, .btn-share {
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary-large {
  background: var(--accent-color);
  color: white;
}

.btn-primary-large:hover {
  background: var(--secondary-accent);
  transform: translateY(-2px);
}

.btn-secondary-large {
  background: var(--secondary-black);
  color: white;
  border: 2px solid var(--border-color);
}

.btn-secondary-large:hover {
  background: var(--border-color);
}

.btn-wishlist, .btn-share {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-wishlist:hover, .btn-share:hover {
  background: rgba(255,255,255,0.2);
}

/* Trailer Modal */
.trailer-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  max-width: 900px;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

.trailer-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.trailer-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Details Content */
.details-content {
  background: var(--primary-black);
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.content-section {
  background: var(--secondary-black);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.content-title {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-title i {
  color: var(--accent-color);
}

/* Cast Grid */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cast-card {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.cast-card:hover {
  transform: translateY(-5px);
}

.cast-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent-color);
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-name {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.cast-character {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
}

/* Crew Section */
.crew-section {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.crew-title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.crew-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.crew-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.crew-name {
  color: white;
  font-weight: 600;
}

.crew-job {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Similar Movies */
.similar-movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.similar-movie-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.similar-movie-card:hover {
  transform: translateY(-5px);
}

.similar-poster {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.similar-poster img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.similar-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.similar-rating {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.similar-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0 0.3rem 0;
}

.similar-year {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: var(--secondary-black);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.sidebar-title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.info-label {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 100px;
}

.info-value {
  color: white;
  text-align: right;
  flex: 1;
}

/* Production */
.production-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.production-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.production-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 5px;
  background: white;
  padding: 0.2rem;
}

.production-name {
  color: white;
  font-weight: 500;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  background: rgba(229, 9, 20, 0.2);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }
  
  .movie-title {
    font-size: 2rem;
  }
}

/* Medium screens (tablets) */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }
  
  .movie-poster-section {
    max-width: 200px;
  }
  
  .movie-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: flex-start;
  }
  
  .movie-poster-section {
    max-width: 200px;
    margin: 0 auto 2rem auto;
  }
  
  .movie-info-section {
    justify-content: flex-start;
  }
  
  .movie-title {
    font-size: 1.6rem;
  }
  
  .action-buttons {
    justify-content: center;
  }
  
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .similar-movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .slide {
    transition: none;
  }
}

/* Platform Hero Sections */
.platform-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.platform-hero-content {
  max-width: 600px;
  color: white;
  z-index: 2;
  padding: 2rem;
}

.platform-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.platform-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.platform-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.netflix-hero {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.9) 0%, rgba(139, 69, 19, 0.9) 100%);
}

.disney-hero {
  background: linear-gradient(135deg, rgba(6, 82, 221, 0.9) 0%, rgba(0, 105, 209, 0.9) 100%);
}

.amazon-hero {
  background: linear-gradient(135deg, rgba(35, 47, 62, 0.9) 0%, rgba(0, 136, 204, 0.9) 100%);
}

/* Coming Soon Card for Platform Pages */
.coming-soon-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.coming-soon-content i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.coming-soon-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.coming-soon-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .platform-title {
    font-size: 2rem;
  }
  
  .platform-subtitle {
    font-size: 1rem;
  }
  
  .platform-icon-large {
    font-size: 3rem;
  }
  
  .coming-soon-content h3 {
    font-size: 1.5rem;
  }
  
  .coming-soon-content p {
    font-size: 1rem;
  }
}

/* Language Filter Tabs */
.filter-tabs {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.filter-tab-container {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.filter-tab i {
  font-size: 0.8rem;
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transform: translateY(-1px);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--accent-color) 0%, #e50914 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.filter-tab.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

@media (max-width: 768px) {
  .filter-tab-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .filter-tab {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .filter-tabs {
    margin-bottom: 1.5rem;
  }
}

/* Loading and Error Messages */
.loading-message,
.error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.loading-message i {
  margin-right: 10px;
  color: var(--accent-color);
}

.error-message {
  color: #ff6b6b;
}

/* Search Prompt Styles */
.search-prompt {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.search-prompt-content {
  background: var(--dark-gray);
  border-radius: 20px;
  padding: 3rem 2rem;
  border: 1px solid var(--border-gray);
}

.search-prompt-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-prompt-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

.main-search-container {
  margin-bottom: 2rem;
}

.main-search-form {
  display: flex;
  justify-content: center;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  background: var(--medium-gray);
  border: 2px solid var(--border-gray);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--netflix-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.search-icon {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-right: 1rem;
}

.main-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.25rem 0;
}

.main-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.main-search-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem;
}

.main-search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.suggestions-label {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.suggestion-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--medium-gray);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border-gray);
  transition: var(--transition);
}

.suggestion-tag:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

/* Responsive Design for Search Prompt */
@media (max-width: 768px) {
  .search-prompt {
    padding: 2rem 1rem;
  }
  
  .search-prompt-content {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }
  
  .search-prompt-title {
    font-size: 2rem;
  }
  
  .search-prompt-subtitle {
    font-size: 1rem;
  }
  
  .search-input-wrapper {
    padding: 0.6rem 1.2rem;
  }
  
  .main-search-input {
    font-size: 1rem;
  }
  
  .main-search-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .suggestion-tags {
    gap: 0.5rem;
  }
  
  .suggestion-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .search-prompt-title {
    font-size: 1.75rem;
  }
  
  .search-input-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 15px;
  }
  
  .search-icon {
    display: none;
  }
  
  .main-search-btn {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    border-radius: 10px;
    height: 50px;
  }
}

/* Loading Indicator and End Message Styles */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 2rem 0;
  color: var(--text-gray);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-gray);
  border-top: 3px solid var(--netflix-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-indicator p {
  font-size: 1rem;
  font-weight: 500;
}

.end-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
  border-radius: 15px;
  border: 1px solid var(--border-gray);
  text-align: center;
}

.end-message p {
  color: var(--text-gray);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* Smooth animations for new movie cards */
.movie-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive adjustments for loading states */
@media (max-width: 768px) {
  .loading-indicator {
    padding: 1.5rem;
  }
  
  .spinner {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }
  
  .loading-indicator p {
    font-size: 0.9rem;
  }
  
  .end-message {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .end-message p {
    font-size: 1rem;
  }
}

/* Movie Detail Page Styles */
.movie-detail-page {
  padding-top: 0;
  background: var(--primary-black);
  min-height: 100vh;
  position: relative;
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(229, 9, 20, 0.05) 15%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.85) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem 2rem;
  min-height: 100vh;
}

/* Movie Header Row - Poster and Title */
.movie-header-row {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 25px;
  border: 1px solid rgba(229, 9, 20, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.movie-poster-section,
.movie-poster-column {
  flex: 0 0 300px;
}

.movie-poster-section img,
.movie-poster-column img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
  transition: var(--transition);
  border: 2px solid rgba(229, 9, 20, 0.5);
}

.movie-poster-section img:hover,
.movie-poster-column img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(229, 9, 20, 0.6);
  border-color: var(--netflix-red);
}

.movie-title-section,
.movie-title-column {
  flex: 1;
  padding-left: 2rem;
}

.movie-title-section h1,
.movie-title-column h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(229, 9, 20, 0.8);
}

.movie-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.movie-meta span {
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Story Row */
.story-row {
  margin-bottom: 4rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.story-row h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  border-bottom: 3px solid var(--netflix-red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.story-row p,
.story-content .story-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-gray);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* Story Section Internal Headings */
.story-content .story-text h3,
.story-content .story-text strong,
.story-content .story-text b {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2rem 0 1rem 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  border-left: 4px solid var(--netflix-red);
  padding-left: 1rem;
  display: block;
}

/* Specific styling for section headings in story */
.story-content .story-text p strong:first-child,
.story-content .story-text p b:first-child {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2rem 0 1rem 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  border-left: 4px solid var(--netflix-red);
  padding-left: 1rem;
  display: block;
}

/* Pattern matching for common headings */
.story-content .story-text p:has(strong:only-child),
.story-content .story-text p:has(b:only-child) {
  margin-bottom: 0.5rem;
}

/* If headings contain specific text patterns */
.story-content .story-text p strong[class*="synopsis"],
.story-content .story-text p strong[class*="cast"],
.story-content .story-text p strong[class*="imdb"],
.story-content .story-text p strong[class*="audience"],
.story-content .story-text p strong[class*="performance"] {
  font-size: 2rem;
  color: var(--netflix-red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Story Section Headings Created by JavaScript */
.story-content .story-text h3.story-section-heading {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 2.5rem 0 1.5rem 0;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
  border-left: 5px solid var(--netflix-red);
  padding: 0.8rem 0 0.8rem 1.5rem;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.15) 0%, transparent 100%);
  border-radius: 0 10px 10px 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.story-content .story-text h3.story-section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--netflix-red) 0%, #b81d24 100%);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

/* Screenshots Row */
.screenshots-row {
  margin-bottom: 4rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.screenshots-row h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 800;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  border-bottom: 3px solid var(--netflix-red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.screenshot-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.screenshot-item:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
  border-color: var(--netflix-red);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.screenshot-item:hover img {
  transform: scale(1.1);
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(229, 9, 20, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.screenshot-item:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-overlay i {
  font-size: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Download Row */
.download-row {
  text-align: center;
  margin-bottom: 4rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(25px);
  padding: 3rem;
  border-radius: 25px;
  border: 2px solid rgba(229, 9, 20, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.big-download-btn {
  background: linear-gradient(135deg, #e50914 0%, #b81d24 50%, #e50914 100%);
  color: white;
  padding: 2rem 5rem;
  font-size: 1.8rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(229, 9, 20, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.big-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.big-download-btn:hover::before {
  left: 100%;
}

.big-download-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 25px 50px rgba(229, 9, 20, 0.7);
  background: linear-gradient(135deg, #f40612 0%, #d01d28 50%, #f40612 100%);
  border-color: rgba(255, 255, 255, 0.4);
}

.big-download-btn i {
  font-size: 2rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* No Screenshots Styling */
.no-screenshots {
  text-align: center;
  padding: 3rem;
  color: var(--text-gray);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  border: 2px dashed rgba(229, 9, 20, 0.3);
}

.no-screenshots i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--netflix-red);
}

.no-screenshots p {
  font-size: 1.2rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .movie-header-row {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .movie-poster-section,
  .movie-poster-column {
    flex: none;
    align-self: center;
    max-width: 300px;
  }
  
  .movie-title-section,
  .movie-title-column {
    padding-left: 0;
    padding-top: 1rem;
  }
  
  .movie-title-section h1,
  .movie-title-column h1 {
    font-size: 2.8rem;
  }
  
  .story-row,
  .screenshots-row,
  .download-row {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 100px 1rem 2rem;
  }
  
  .movie-header-row {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.2rem;
  }
  
  .movie-poster-section,
  .movie-poster-column {
    flex: 0 0 250px;
    max-width: 250px;
  }
  
  .movie-title-section h1,
  .movie-title-column h1 {
    font-size: 2.2rem;
  }
  
  .story-row h2,
  .screenshots-row h2 {
    font-size: 2rem;
  }
  
  .story-row,
  .screenshots-row,
  .download-row {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .big-download-btn {
    padding: 1.5rem 3rem;
    font-size: 1.4rem;
    gap: 1rem;
  }
  
  .screenshots-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .movie-detail-page {
    background-attachment: scroll;
  }
  
  .container {
    padding: 90px 0.8rem 1rem;
  }
  
  .movie-poster-section,
  .movie-poster-column {
    flex: 0 0 200px;
    max-width: 200px;
  }
  
  .movie-title-section h1,
  .movie-title-column h1 {
    font-size: 1.8rem;
  }
  
  .story-row h2,
  .screenshots-row h2 {
    font-size: 1.6rem;
  }
  
  .story-row,
  .screenshots-row,
  .download-row {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .big-download-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 35px;
  }
  
  .big-download-btn i {
    font-size: 1.5rem;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}
