/* ==========================================================================
   NETFLUX - Modern Dark Theme & Cinematic UI/UX
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  /* Color Palette */
  --bg-dark: #141414;
  --bg-dark-glass: rgba(20, 20, 20, 0.85);
  --text-main: #e5e5e5;
  --text-light: #ffffff;
  --text-muted: #737373;
  --brand-color: #E50914;
  --brand-hover: #f40612;
  
  /* Layout & Spacing */
  --spacing-unit: 4vw;
  --z-nav: 1000;
  --z-hero: 10;
  --z-content: 20;

  /* Animations & Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* --- Header & Navigation (Glassmorphism effect on scroll) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--spacing-unit);
  z-index: var(--z-nav);
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  transition: background var(--transition-smooth), padding var(--transition-smooth);
}

/* Dynamic class to be toggled by JS on scroll */
.navbar.scrolled {
  background: var(--bg-dark-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem var(--spacing-unit);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo {
  color: var(--brand-color);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(229, 9, 20, 0.3);
}

.main-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-menu a {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.75;
  position: relative;
}

.main-menu a.active,
.main-menu a:hover {
  opacity: 1;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.navbar-right {
  gap: 1.5rem;
}

.icon-btn {
  color: var(--text-light);
  font-size: 1.3rem;
  opacity: 0.8;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.profile-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.profile-menu:hover {
  transform: scale(1.05);
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid transparent;
}

/* --- Hero Banner (Main Highlight) --- */
#hero-banner {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  /* Placeholder cinematic background */
  background-image: url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?q=80&w=2070&auto=format&fit=crop'); 
  background-size: cover;
  background-position: center;
  animation: fadeIn 1.2s ease-out;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.4) 50%, rgba(20,20,20,0) 100%),
    linear-gradient(0deg, var(--bg-dark) 0%, rgba(20,20,20,0) 40%);
}

.hero-content {
  position: relative;
  z-index: var(--z-hero);
  padding-left: var(--spacing-unit);
  max-width: 50%;
  animation: slideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-play {
  background-color: var(--text-light);
  color: #000;
}

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

.btn-info {
  background-color: rgba(109, 109, 110, 0.7);
  color: var(--text-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

/* --- Main Content Container & Video Rows --- */
#main-content {
  position: relative;
  z-index: var(--z-content);
  margin-top: -12vh; /* Smooth overlap with the hero banner gradient */
  padding-bottom: 3rem;
}

.video-row {
  margin-bottom: 3vw;
}

.row-title {
  font-size: 1.4vw;
  font-size: clamp(1.2rem, 1.4vw, 1.8rem);
  font-weight: 600;
  color: var(--text-main);
  padding: 0 var(--spacing-unit);
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.row-arrow {
  color: #54b9c5;
  font-size: 1rem;
  margin-left: 0.8rem;
  opacity: 0;
  transform: translateX(-15px);
  transition: all var(--transition-smooth);
}

.row-title:hover {
  color: var(--text-light);
}

.row-title:hover .row-arrow {
  opacity: 1;
  transform: translateX(0);
}

.row-posters {
  display: flex;
  gap: 8px;
  padding: 2rem var(--spacing-unit);
  overflow-y: hidden;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for modern aesthetics on webkit */
.row-posters::-webkit-scrollbar {
  display: none; 
}

.poster-card {
  flex: 0 0 auto;
  width: clamp(160px, 15vw, 280px);
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-smooth), border-radius var(--transition-fast);
  background-color: #222; /* Placeholder fallback */
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* --- Interactions: Poster Hover Effects --- */
.poster-card:hover {
  transform: scale(1.08); /* Cinematic pop-out effect */
  z-index: 10;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
}

/* Neumorphic/Glassmorphic spotlight: Dim surrounding un-hovered posters */
.row-posters:hover .poster-card:not(:hover) {
  opacity: 0.4;
  filter: grayscale(30%);
}

/* --- Slider & Row Wrapper --- */
.slider-container {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  width: 4vw;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  transition: background var(--transition-fast), opacity var(--transition-fast);
  border: none;
  height: 100%;
}

.slider-btn i {
  transition: transform var(--transition-fast);
}

.slider-container:hover .slider-btn {
  opacity: 0.8;
}

.slider-btn:hover {
  background: rgba(20, 20, 20, 0.9);
  opacity: 1 !important;
}

.slider-btn:hover i {
  transform: scale(1.25);
}

.slider-btn.prev {
  left: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.slider-btn.next {
  right: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* --- Dynamic Card Info (WASM Score) --- */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.8rem 0.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
}

.poster-card:hover .card-info {
  opacity: 1;
}

.match-score {
  color: #46d369; /* Netflix-style green match score */
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* --- Footer --- */
#main-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem var(--spacing-unit) 2rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-light);
  opacity: 0.6;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--text-main);
}

.footer-copyright {
  font-size: 0.75rem;
  margin-top: 1rem;
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem var(--spacing-unit);
  }
  
  .main-menu {
    display: none; /* Hide for mobile layout simplicity */
  }

  .hero-content {
    max-width: 90%;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .row-title {
    font-size: 1.2rem;
  }
  
  .row-posters {
    padding: 1rem var(--spacing-unit);
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}
```