:root{
  --bg:#061018; --panel:#0f1720; --muted:#9fb0bd; --accent:#e50914;
  --glass: rgba(255,255,255,0.03);
  --card-shadow: 0 14px 40px rgba(2,6,23,0.6);
}
*{box-sizing:border-box}

/* Smooth 3D-like scrolling */
html{
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body{
  height:100%;
  margin:0; font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial;
  background: linear-gradient(180deg,#02040a 0%,var(--bg) 50%);
  color:#eaf3f8; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Enhanced smooth scrolling for all scrollable elements */
*, *::before, *::after {
  scroll-behavior: smooth;
}

/* 3D-like scroll effects for containers */
.grid, .carousel, .content-wrapper {
  scroll-behavior: smooth;
}

/* Smooth scroll for programmatic scrolling */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  
  /* Add momentum scrolling on webkit */
  body, .grid, .carousel {
    -webkit-overflow-scrolling: touch;
  }
  
  /* 3D-like scroll animations for cards */
  .card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  
  .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(2,6,23,0.8);
  }
  
  /* Smooth carousel scrolling */
  .carousel {
    scroll-behavior: smooth;
  }
  
  /* Parallax-like effect for hero section */
  .hero-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Smooth transitions for interactive elements */
  .btn, .pill, .genre-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}
/* Global link reset: remove default underlines */
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }
/* OLD HEADER REMOVED - REPLACED WITH NEW DESIGN */

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: #b3b3b3;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  font-family: inherit;
}

.nav-dropdown-btn:hover {
  color: #fff;
}

.nav-dropdown-btn i:last-child {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-btn i:last-child {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
}

.nav-dropdown.active .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  color: #b3b3b3;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dropdown-content a:last-child {
  border-bottom: none;
}

.nav-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(4px);
}

.nav-dropdown-content a i {
  width: 16px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-dropdown-content {
    left: auto;
    right: 0;
    min-width: 200px;
  }
}
.logo{
  display: flex; 
  align-items: center; 
  height: 30px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img{
  height: 100%; 
  width: auto; 
  object-fit: contain; 
  max-width: 120px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
.nav{display:flex; gap:16px; margin-left:8px; align-items:center}
.nav a{
  color:var(--muted); 
  text-decoration:none; 
  font-weight:600; 
  font-size:14px; 
  padding:10px 16px; 
  border-radius:12px; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.nav a:hover::before {
  left: 100%;
}

.nav a:not(.bmc-button):hover{
  color:#fff; 
  background:rgba(255,255,255,0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Support button in nav */
.nav .nav-support{
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.nav .nav-support::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.6s ease;
}

.nav .nav-support:hover::before {
  left: 100%;
}

.nav .nav-support:hover{
  background: linear-gradient(135deg, #f40612, #ff4757); 
  color:#fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5);
  border-color: rgba(229, 9, 20, 0.4);
}

.nav .nav-support:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.35), 0 8px 24px rgba(229, 9, 20, 0.45);
}

.nav .nav-support .fa-wrench{ 
  font-size: 14px; 
  line-height: 1; 
}

/* Enhanced Buy Me a Coffee Button */
.bmc-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #FFDD00, #FFEA61);
  color: #000 !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 221, 0, 0.3);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 221, 0, 0.3);
  margin-left: 8px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.bmc-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.bmc-button:hover::before {
  left: 100%;
}

.bmc-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 221, 0, 0.4);
  background: linear-gradient(135deg, #FFEA61, #FFF2A0);
  border-color: rgba(255, 221, 0, 0.5);
}

.bmc-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
}

.bmc-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Notification Button */
.notification-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.notification-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.notification-btn:hover::before {
  left: 100%;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification-btn i {
  font-size: 16px;
  z-index: 1;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Beta Modal Styles */
.beta-modal {
  max-width: 500px;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.beta-badge i {
  font-size: 14px;
}

.beta-features {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.feature-item i {
  color: var(--accent);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.feature-item span {
  color: #e6f0f7;
  font-weight: 500;
  font-size: 14px;
}
/* Enhanced Genre Selector */
.genre-selector-container {
  margin: 24px 0;
  width: 100%;
  overflow-x: auto;
  padding: 16px 0;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.genre-selector-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.genre-selector-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.genre-selector {
  display: flex;
  gap: 12px;
  padding: 0 28px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  align-items: center;
}

.genre-btn {
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 32, 0.6);
  color: var(--muted);
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.genre-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.genre-btn:hover::before {
  left: 100%;
}

.genre-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.genre-btn.active {
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  color: white;
  border-color: rgba(229, 9, 20, 0.3);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
  transform: translateY(-2px);
}

/* Enhanced Hero Slideshow */
#heroCard {
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  transform: translateX(0);
  width: 100%;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Floating particles effect */
.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.1), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.1), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.1), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sparkle {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

.hero-card {
  position: relative;
  border-radius: 0;
  height: calc(100vh - 72px);
  width: 100%;
  overflow: hidden;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: background-image;
}

.hero-card:hover {
  transform: none;
  box-shadow: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    315deg,
    rgba(2, 6, 12, 0.1) 0%,
    rgba(2, 6, 12, 0.3) 30%,
    rgba(2, 6, 12, 0.8) 70%,
    rgba(2, 6, 12, 0.95) 100%
  );
  z-index: 1;
  backdrop-filter: blur(0.5px);
}



/* Progress bar for slideshow */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  transition: width 0.1s linear;
  z-index: 3;
}

/* Navigation arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  z-index: 3;
  opacity: 0;
}

.hero-card:hover .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: rgba(229, 9, 20, 0.8);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.hero-nav.prev {
  left: 24px;
}

.hero-nav.next {
  right: 24px;
}

.hero-nav i {
  font-size: 18px;
  font-weight: bold;
}

/* Enhanced hero info */
.hero-info {
  position: relative;
  z-index: 2;
  max-width: 55%;
  animation: slideInRight 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  order: 2;
}

.hero-info:hover {
  transform: translateY(-6px);
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
  position: relative;
}

.badge {
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  padding: 12px 20px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-height: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.badge:hover::before {
  left: 100%;
}

.badge:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.type-badge {
  background: linear-gradient(135deg, #0066ff, #4d94ff);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
  border: 2px solid rgba(0, 102, 255, 0.25);
}

.type-badge:hover {
  box-shadow: 0 12px 35px rgba(0, 102, 255, 0.6);
  border-color: rgba(0, 102, 255, 0.4);
}

.rating-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  min-width: 90px;
  justify-content: center;
  border: 2px solid rgba(255, 215, 0, 0.4);
  backdrop-filter: blur(20px);
  padding: 14px 24px;
  font-size: 12px;
  text-shadow: none;
}

/* Remove hover effect for details page rating badge */
.detail-rating .rating-badge:hover {
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.4);
  transform: none;
}

/* Keep hover effect for other rating badges (home page, etc.) */
.hero-info .rating-badge:hover,
.card .rating-badge:hover {
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-4px) scale(1.08);
}

.rating-badge i {
  font-size: 14px;
  color: #ffffff;
  text-shadow: none;
}

.rating-badge span {
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  text-shadow: none;
}

.year-badge {
  background: linear-gradient(135deg, #28a745, #5cb85c);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
  border: 2px solid rgba(40, 167, 69, 0.25);
}

.year-badge:hover {
  box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6);
  border-color: rgba(40, 167, 69, 0.4);
}

.hero-title-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 62px;
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #ffffff, #e6f0f7, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 8px;
  letter-spacing: -0.5px;
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  border-radius: 2px;
  animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
  0% { width: 60px; opacity: 0.8; }
  100% { width: 80px; opacity: 1; }
}

.hero-meta {
  color: #d1dce6;
  max-width: 95%;
  line-height: 1.7;
  font-size: 19px;
  margin-bottom: 24px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.hero-details {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-genres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #e6f0f7;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.genre-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-runtime {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1dce6;
  font-size: 15px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-runtime:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-runtime i {
  color: var(--accent);
  font-size: 14px;
}

/* Bottom left controls */
.hero-controls-left {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-group {
  display: flex;
  gap: 14px;
}

.control-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.control-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: left 0.6s ease;
}

.control-btn:hover::before {
  left: 100%;
}

.control-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.control-btn#heroPlayBtn {
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
  border: 2px solid rgba(229, 9, 20, 0.3);
}

.control-btn#heroPlayBtn:hover {
  background: linear-gradient(135deg, #f40612, #ff5252);
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.6);
  border-color: rgba(229, 9, 20, 0.5);
}

.control-btn#heroTrailerBtn:hover {
  background: rgba(0, 102, 255, 0.8);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 12px 35px rgba(0, 102, 255, 0.4);
}

.control-btn#heroFavoriteBtn:hover {
  background: rgba(220, 53, 69, 0.8);
  border-color: rgba(220, 53, 69, 0.4);
  box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
}

.control-btn#heroFavoriteBtn.favorited {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-color: rgba(220, 53, 69, 0.6);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
  animation: favoritePulse 2s ease-in-out infinite;
}

@keyframes favoritePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.control-btn i {
  font-size: 18px;
  font-weight: bold;
  z-index: 1;
  position: relative;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1dce6;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 16px;
  border-radius: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2px;
}

.stat-item:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-item i {
  color: var(--accent);
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* Upcoming cards navigation */
.upcoming-cards {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.upcoming-cards:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.upcoming-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.upcoming-carousel::-webkit-scrollbar {
  display: none;
}

.upcoming-card {
  flex-shrink: 0;
  width: 130px;
  height: 85px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.upcoming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
  z-index: 1;
  transition: opacity 0.3s ease;
}

.upcoming-card:hover {
  transform: translateY(-8px) scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.5);
}

.upcoming-card:hover::before {
  opacity: 0.3;
}

.upcoming-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.3), 0 15px 40px rgba(229, 9, 20, 0.6);
  transform: scale(1.15);
  animation: upcomingPulse 2s infinite;
}

@keyframes upcomingPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.3), 0 12px 35px rgba(229, 9, 20, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(229, 9, 20, 0.4), 0 15px 40px rgba(229, 9, 20, 0.7);
  }
}

.upcoming-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.upcoming-card:hover img {
  transform: scale(1.1);
}

.upcoming-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 8px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upcoming-card:hover .card-overlay {
  opacity: 1;
}

.upcoming-card .card-title {
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  margin: 0;
}

/* Hero poster enhancement */
.hero-poster {
  position: relative;
  z-index: 2;
  animation: slideInLeft 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  order: 1;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero-poster img {
  width: 320px;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border: 3px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-poster img:hover {
  transform: scale(1.08);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-poster::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b, var(--accent));
  border-radius: 25px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(20px);
}

.hero-poster:hover::before {
  opacity: 0.3;
}

/* Responsive design for hero */
@media (max-width: 1024px) {
  .hero-card {
    height: calc(100vh - 72px);
    min-height: 380px;
    padding: 24px;
    gap: 20px;
  }
  
  .hero-info {
    max-width: 60%;
    padding: 16px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-meta {
    font-size: 16px;
  }
  
  .hero-poster img {
    width: 240px;
  }
  
  .hero-nav {
    width: 44px;
    height: 44px;
  }
  
  .hero-nav.prev {
    left: 16px;
  }
  
  .hero-nav.next {
    right: 16px;
  }
  
  .upcoming-cards {
    max-width: 380px;
    bottom: 30px;
    right: 30px;
  }
  
  .upcoming-card {
    width: 110px;
    height: 75px;
  }
}

@media (max-width: 768px) {
  .hero-card {
    height: calc(100vh - 72px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 500px;
    padding: 20px;
  }
  
  .hero-info {
    max-width: 100%;
    order: 2;
    padding: 16px;
    margin-top: 16px;
  }
  
  .hero-poster {
    order: 1;
    margin-bottom: 20px;
  }
  
  .hero-poster img {
    width: 200px;
  }
  
  .hero-title-container {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-meta {
    font-size: 15px;
    text-align: center;
  }
  
  .hero-badges {
    justify-content: center;
    gap: 10px;
  }
  
  .badge {
    padding: 10px 16px;
    font-size: 10px;
    min-height: 36px;
  }
  
  .rating-badge {
    min-width: 80px;
    padding: 12px 20px;
    font-size: 11px;
  }
  
  .hero-details {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }
  
  .hero-genres {
    justify-content: center;
  }
  
  .genre-pill {
    padding: 6px 14px;
    font-size: 12px;
  }
  
  .hero-controls-left {
    bottom: 20px;
    left: 20px;
    gap: 16px;
  }
  
  .control-group {
    gap: 10px;
  }
  
  .control-btn {
    width: 44px;
    height: 44px;
  }
  
  .control-btn i {
    font-size: 16px;
  }
  
  .stat-item {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .hero-nav {
    display: none;
  }
  
  .upcoming-cards {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
    width: calc(100% - 40px);
  }
  
  .upcoming-carousel {
    justify-content: center;
  }
  
  .upcoming-card {
    width: 90px;
    height: 65px;
  }
}

@media (max-width: 480px) {
  .hero-card {
    padding: 16px;
    min-height: 450px;
  }
  
  .hero-info {
    padding: 12px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-meta {
    font-size: 14px;
  }
  
  .hero-poster img {
    width: 160px;
  }
  
  .badge {
    padding: 8px 14px;
    font-size: 9px;
    min-height: 32px;
  }
  
  .rating-badge {
    min-width: 70px;
    padding: 10px 16px;
    font-size: 10px;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
  }
  
  .control-btn i {
    font-size: 14px;
  }
  
  .upcoming-card {
    width: 80px;
    height: 55px;
  }
  
  .hero-controls-left {
    bottom: 16px;
    left: 16px;
    gap: 12px;
  }
  
  .upcoming-cards {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: calc(100% - 32px);
  }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.genre-selector-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.genre-selector-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* OLD SEARCH REMOVED - REPLACED WITH NEW DESIGN */

/* Login button — subtle glass outline */
#loginBtn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #eaf3f8; border: 1px solid rgba(255,255,255,0.16);
  font-weight: 700; font-size: 13px; letter-spacing: .1px;
  transition: background-color .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
  backdrop-filter: blur(6px);
}
#loginBtn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateY(-1px);
}
#loginBtn:active{ transform: translateY(0); }
#loginBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}
#loginBtn:disabled, #loginBtn[disabled]{ opacity: .6; cursor: not-allowed; transform: none; }

/* Main content */
main {
  padding-top: 72px; /* Height of the fixed header */
  min-height: 100vh;
  box-sizing: border-box;
}

/* hero */
.hero{
  padding: 0;
  height: calc(100vh - 72px);
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* sections & carousels */
.section{padding:18px 28px}
.section .row-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px}
.section h2{margin:0; font-size:18px}
.carousel{display:flex; gap:12px; overflow-x:auto; padding-bottom:12px; -webkit-overflow-scrolling:touch; position: relative; scroll-behavior: smooth}
.carousel::-webkit-scrollbar{height:4px; width: 4px}
.carousel::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.25); border-radius:999px; border: none; transition: all 0.2s ease}
.carousel::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.4)}
.carousel::-webkit-scrollbar-track{background:rgba(255,255,255,0.06); border-radius:999px; margin: 0 30px; transition: background 0.3s ease}
.carousel::-webkit-scrollbar-corner{background:transparent}

/* Firefox scrollbar support */
.carousel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) rgba(255,255,255,0.06);
}

/* Enhanced carousel scrollbar styling */
.carousel:hover::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
}

/* Responsive scrollbar adjustments */
@media (max-width: 768px) {
  .carousel::-webkit-scrollbar {
    height: 3px;
    width: 3px;
  }
}

/* Enhanced scrollbar for larger screens */
@media (min-width: 1200px) {
  .carousel::-webkit-scrollbar {
    height: 5px;
    width: 5px;
  }
}

/* Enhanced card hover effects */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Enhanced poster container */
.poster-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.poster-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .poster-container::after {
  opacity: 1;
}

/* Enhanced overlay content */
.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.card:hover .overlay-content {
  opacity: 1;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.rating svg {
  width: 16px;
  height: 16px;
  fill: #ffd700;
}

.overview {
  color: #e6f0f7;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Enhanced section headers */
.section h2 {
  background: linear-gradient(135deg, #fff, #e6f0f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  border-radius: 2px;
}

/* Enhanced pill buttons */
.pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6f0f7;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced loading animation */
.app-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Enhanced search input */
.search input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2), 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* Enhanced header with glassmorphism */
.header {
  background: linear-gradient(180deg, rgba(2,6,12,0.8), rgba(2,6,12,0.4));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced navigation links */
.nav a {
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  transition: width 0.3s ease;
}

.nav a:hover::before {
  width: 100%;
}

/* Enhanced carousel with better scrollbar */
.carousel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  padding: 8px 0;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.carousel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #f40612, #ff5252);
}

/* Enhanced genre tags */
.genre-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #e6f0f7;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

.genre-tag:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Enhanced card content */
.card-content {
  padding: 16px;
  background: rgba(15, 23, 32, 0.8);
  border-radius: 0 0 16px 16px;
}

.meta {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

/* Support Page */
.support-page { padding-top: 72px; }

.support-hero {
  padding: 60px 28px 30px;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(229, 9, 20, 0.25), transparent 50%),
              radial-gradient(900px 400px at 80% 0%, rgba(0, 108, 255, 0.18), transparent 50%);
}

.support-hero-content { max-width: 900px; margin: 0 auto; }
.support-hero h1 { font-size: 42px; margin: 0 0 10px; }
.support-hero p { color: var(--muted); margin: 0 0 16px; line-height: 1.7; }
.support-hero-badges { display:flex; gap:8px; flex-wrap:wrap; }

.support-options { padding: 10px 28px 40px; }
.support-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.support-card {
  background: rgba(15, 23, 32, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.support-card-head h2 { margin: 0 0 6px; font-size: 22px; }
.support-card-head .muted { color: var(--muted); margin: 0 0 8px; }

.support-card .body { color: #c9d6e0; line-height: 1.75; margin: 6px 0 10px; }
.support-card .body p { margin: 0 0 10px; }
.support-card .body .inline-note { color: var(--muted); font-size: 13px; margin-top: 4px; }

.benefits {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: #c9d6e0;
  line-height: 1.7;
}

.cta-row { display:flex; align-items:center; gap:12px; }

.custom-pay { display:flex; flex-direction:column; gap:12px; margin-top: 8px; }
.custom-row { display:flex; align-items:center; gap:12px; }
.custom-row label { color: #c9d6e0; font-weight:600; }
.amount-wrap { display:flex; align-items:center; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); padding:6px 10px; border-radius:8px; }
.amount-wrap .currency { color:#c9d6e0; margin-right:6px; font-weight:700; }
.amount-wrap input { width:100px; background:transparent; border:0; color:#fff; font-size:16px; outline:none; }

.providers { display:flex; gap:10px; flex-wrap:wrap; margin-top: 4px; }

.tiny-note { color: var(--muted); font-size: 12px; margin: 6px 0 0; }

.support-thanks { padding: 30px 0 60px; }
.support-thanks .content-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.thanks-grid { display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px; }
.thanks-pill { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); color:#c9d6e0; padding:6px 10px; border-radius:999px; font-size:12px; }

/* Custom support refinements */
.amount-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.amount-pill {
  padding: 6px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #c9d6e0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.amount-pill:hover { background: rgba(255,255,255,0.1); }
.amount-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.providers .btn { white-space: nowrap; }
.btn[disabled], .btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 560px) {
  .providers { justify-content: center; }
  .providers .bmc-button { width: 100%; justify-content: center; }
}

/* Detail Page Styles */
.detail-page {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
}

.detail-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70vh;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.3;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 60px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.detail-poster {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.detail-poster:hover {
  transform: translateY(-10px);
}

.detail-poster img {
  width: 100%;
  display: block;
  border-radius: 12px;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #0a121b;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn i {
  font-size: 16px;
}

.btn.play {
  background: var(--accent);
  color: white;
}

.btn.play:hover {
  background: #f40612;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.detail-content {
  color: #e6f0f7;
}

.detail-header h1 {
  font-size: 42px;
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.detail-meta {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.detail-tagline {
  font-style: italic;
  color: #b8c5d0;
  margin: 12px 0 24px;
  font-size: 16px;
}

.detail-overview {
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 800px;
}

.detail-overview h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: white;
}

.detail-overview p {
  margin: 0;
  color: #c9d6e0;
}

.detail-info {
  background: rgba(15, 23, 32, 0.6);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row {
  display: flex;
  margin-bottom: 12px;
  line-height: 1.5;
  align-items: flex-start;
}

.info-label {
  color: #a3b8c7;
  min-width: 140px;
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
}

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.genre-tag {
  background: rgba(229, 9, 20, 0.1);
  color: #ff6b6b;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(229, 9, 20, 0.2);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 8px;
}

.rating-badge i {
  color: #ffd700;
}

.vote-count {
  font-size: 13px;
  opacity: 0.8;
  font-weight: normal;
}

/* Full-width sections */
.full-width-section {
  width: 100%;
  background: rgba(9, 14, 20, 0.7);
  padding: 40px 0;
  margin: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.full-width-section .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Seasons & Episodes */
.seasons-container {
  margin: 0;
  padding: 20px 0;
}

.seasons-container,
.cast-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.seasons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.seasons-header h3 {
  margin: 0;
  font-size: 20px;
}

.season-selector {
  position: relative;
  display: inline-block;
  min-width: 180px;
}

.season-selector select {
  background: rgba(20, 30, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23e6f0f7' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.season-selector select:hover {
  background-color: rgba(30, 40, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

.season-selector select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.season-selector::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(90deg, transparent, rgba(20, 30, 40, 0.5));
  border-radius: 0 6px 6px 0;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 30px;
  transform: none;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.episode-card {
  background: rgba(15, 23, 32, 0.6);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.episode-poster {
  position: relative;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a121b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 40px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: background-image;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.episode-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.episode-card:hover .episode-play {
  opacity: 1;
}

.episode-info {
  padding: 16px;
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.episode-header h4 {
  margin: 0;
  font-size: 16px;
  color: white;
  flex: 1;
}

.episode-rating {
  color: #ffd700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.episode-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.episode-overview {
  color: #b8c5d0;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cast */
.cast-container {
  margin: 40px 0;
  width: 100%;
  overflow: hidden;
}

.cast-container h3 {
  margin: 0 0 20px;
  font-size: 20px;
  padding: 0 4px;
}

.cast-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 4px 20px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.cast-scroll::-webkit-scrollbar {
  display: none;
  height: 6px;
}

.cast-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.cast-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.cast-card {
  flex: 0 0 120px;
  background: rgba(15, 23, 32, 0.6);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cast-card:hover {
  transform: translateY(-5px);
}

.cast-photo {
  width: 120px;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #0a121b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: 30px;
}

.cast-info {
  padding: 12px;
}

.cast-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-character {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loading State */
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* Error State */
.error-container {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
  background: rgba(229, 9, 20, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(229, 9, 20, 0.1);
}

.error-container h2 {
  color: #ff4d4d;
  margin-top: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .detail-poster {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .detail-header h1 {
    font-size: 32px;
  }
  
  .episodes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .detail-container {
    padding: 0 20px 40px;
  }
  
  .detail-header h1 {
    font-size: 28px;
  }
  
  .info-row {
    flex-direction: column;
    gap: 4px;
  }
  
  .info-label {
    margin-bottom: 0;
  }
  
  .detail-actions {
    justify-content: center;
  }
}
.card {
  flex: 0 0 180px;
  width: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.poster-container {
  position: relative;
  width: 100%;
  padding-top: 150%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a121b;
  transition: transform 0.3s ease;
}

.card:hover .poster {
  transform: scale(1.05);
}

.card-content {
  padding: 12px;
  background: var(--panel);
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card .meta {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em;
}

.card .sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rating svg {
  width: 10px;
  height: 10px;
  fill: #ffd700;
  flex-shrink: 0;
}

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: -2px 0 2px 0;
  padding-top: 0;
}

.genre-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.3;
}

.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.card:hover .overlay-content {
  opacity: 1;
}

.overview {
  font-size: 11px;
  line-height: 1.4;
  color: #e0e0e0;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-height: 4.2em; /* 3 lines * 1.4 line-height */
}

/* Ensure the card has a fixed height to prevent layout shifts */
.grid .card {
  height: 350px; /* Adjust based on your content */
}

/* Make sure the poster container takes full height of the card */
.poster-container {
  flex-shrink: 0;
}

/* Fix for webkit line-clamp */
.overview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.2em;
  line-height: 1.4;
}

/* grid (used on movies/tv/search) */
.grid{padding:18px; display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.big-title{padding:18px 28px; font-size:22px; font-weight:800}

/* detail */
.detail-wrap{display:flex; gap:22px; padding:22px}
.detail-left{flex:1}
.poster-large{width:100%; border-radius:8px; box-shadow:0 10px 40px rgba(0,0,0,0.6)}
.detail-right{width:360px; color:var(--muted)}
.detail-right h3{margin:0 0 6px; font-size:20px}
.genre{display:inline-block; padding:6px 8px; margin:6px 6px 6px 0; border-radius:8px; background:var(--glass); color:var(--muted)}
.select{width:100%; padding:10px; border-radius:8px; border:1px solid rgba(255,255,255,0.05); background:transparent; color:inherit}

/* watch */
.watch-wrapper{height:100vh; display:flex; align-items:center; justify-content:center; background:black}
.watch-iframe{width:100%; height:100%; border:0}

/* misc */
.pill{padding:8px 10px; border-radius:999px; background:var(--glass); color:var(--muted)}
.loading{color:var(--muted); padding:12px; text-align:center}
.small-meta{color:var(--muted); font-size:13px}
.hidden{display:none}

/* hover overlay for poster (on large screens) */
.card .overlay{position:absolute; inset:0; display:flex; align-items:flex-end; padding:12px; opacity:0; transition:opacity .16s; background:linear-gradient(180deg,transparent 30%, rgba(0,0,0,0.6)); color:#fff}
.card:hover .overlay{opacity:1}

/* responsiveness */
@media (max-width:900px){
  .hero-title{font-size:22px}
  .card{flex:0 0 130px; width:130px}
  .poster{height:200px}
  .detail-wrap{flex-direction:column}
  .detail-right{width:100%}
}

/* Adblock Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: rgba(15, 23, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  padding: 22px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #cfd8e3;
  font-size: 26px;
  cursor: pointer;
  border-radius: 8px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.modal-header h3 {
  margin: 0 28px 8px 0;
  font-size: 22px;
}

.modal-body p {
  margin: 0 0 14px 0;
  color: var(--muted);
}

.modal-recommend {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

/* Device Block Overlay (mobile phones) */
.device-block-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.device-block-overlay.open { display: flex; }

.device-block-card {
  max-width: 560px;
  width: 100%;
  background: rgba(15, 23, 32, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.device-block-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.device-block-card p {
  margin: 0;
  color: var(--muted);
}

/* App Loading Overlay */
.app-loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  backdrop-filter: blur(2px);
}

.app-loading-overlay.show {
  display: flex;
}

.app-loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.app-loading-logo img {
  width: 120px;
  max-width: 50vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

.app-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: appSpin 0.8s linear infinite;
  margin-top: 12px;
}

.app-loading-text {
  margin-top: 8px;
  color: #cfd8e3;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

@keyframes appSpin { 
  to { transform: rotate(360deg); } 
}

/* Developer Tools Protection Warning */
#devtools-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

#devtools-warning h2 {
  color: #ff6b6b;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
}

#devtools-warning p {
  margin: 10px 0;
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.5;
}

/* Additional protection styles */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection only in specific areas if needed */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Dev Tools Protection Styles */
#devToolsWarning {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
  max-width: 300px;
  word-wrap: break-word;
  animation: slideInRight 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Full protection overlay */
.dev-tools-protection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.dev-tools-protection-overlay h1 {
  color: #ff4444;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dev-tools-protection-overlay p {
  margin: 10px 0;
  color: #e0e0e0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 500px;
}

.dev-tools-protection-overlay .warning-icon {
  font-size: 48px;
  color: #ff4444;
  margin-bottom: 20px;
}

/* Disable text selection globally when protection is active */
body.protection-active {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  cursor: default !important;
}

/* Prevent drag and drop */
body.protection-active * {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* ===== COMPLETELY REDESIGNED NAVIGATION UI ===== */

/* Header Container */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.95), rgba(2, 6, 12, 0.85));
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header:hover {
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.98), rgba(2, 6, 12, 0.9));
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4);
}

/* Header Left Section */
.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  height: 40px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  max-width: 140px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: filter 0.3s ease;
}

.logo:hover .logo-img {
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b3b3b3;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(255, 107, 107, 0.1));
  border-color: rgba(229, 9, 20, 0.3);
  color: #fff;
  box-shadow: 0 6px 25px rgba(229, 9, 20, 0.2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  border-radius: 1px;
}

.nav-link i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

/* Header Center Section */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 40px;
}

/* Search Container */
.search-container {
  width: 100%;
  max-width: 500px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: #b3b3b3;
  font-size: 16px;
  z-index: 2;
  transition: color 0.3s ease;
}

.search-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0 48px 0 48px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  letter-spacing: 0.2px;
  padding-right: 60px; /* Make room for the submit button */
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.2), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.search-input:focus + .search-icon {
  color: var(--accent);
}

.search-clear {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.search-input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
  transform: scale(1);
}

.search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
  z-index: 3;
}

.search-submit:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
  background: linear-gradient(135deg, #f40612, #ff5252);
}

.search-submit:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

.search-submit:disabled:hover {
  transform: translateY(-50%);
  box-shadow: none;
}

.search-submit i {
  font-size: 14px;
  font-weight: bold;
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #b3b3b3;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-btn i {
  font-size: 18px;
  z-index: 1;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  animation: notificationPulse 2s ease-in-out infinite;
  letter-spacing: 0.5px;
}

@keyframes notificationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Support Button */
.support-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
  backdrop-filter: blur(15px);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.support-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: left 0.6s ease;
}

.support-btn:hover::before {
  left: 100%;
}

.support-btn:hover {
  background: linear-gradient(135deg, #f40612, #ff4757);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5);
  border-color: rgba(229, 9, 20, 0.5);
}

.support-btn i {
  font-size: 14px;
  animation: wrenchSpin 3s ease-in-out infinite;
}

@keyframes wrenchSpin {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

/* Auth Section */
.auth-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  cursor: pointer;
  backdrop-filter: blur(15px);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  min-height: 44px;
}

/* Ensure entire button area is clickable */
.auth-btn * {
  pointer-events: none;
}

.login-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.logout-btn {
  background: rgba(220, 53, 69, 0.1);
  color: #ff6b6b;
  border-color: rgba(220, 53, 69, 0.3);
}

.logout-btn:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.user-profile-btn:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
  background: var(--accent);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(2, 6, 12, 0.95), rgba(2, 6, 12, 0.9));
  backdrop-filter: blur(30px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
  width: 100%;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.mobile-nav {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #b3b3b3;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 24px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
}

.mobile-nav-link i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* ===== RESPONSIVE DESIGN FOR NEW NAVIGATION ===== */

/* Tablet and smaller desktop */
@media (max-width: 1200px) {
  .header {
    padding: 0 24px;
  }
  
  .header-left {
    gap: 24px;
  }
  
  .header-center {
    margin: 0 24px;
  }
  
  .nav-link {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .nav-link i {
    font-size: 15px;
  }
  
  .search-input {
    height: 44px;
    font-size: 14px;
  }
  
  .search-submit {
    height: 44px;
    width: 44px;
  }
  
  .action-btn {
    width: 40px;
    height: 40px;
  }
  
  .support-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .auth-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Large tablets */
@media (max-width: 1024px) {
  .header {
    padding: 0 20px;
  }
  
  .header-left {
    gap: 20px;
  }
  
  .header-center {
    margin: 0 20px;
    max-width: 400px;
  }
  
  .search-container {
    max-width: 400px;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link {
    padding: 12px;
    min-width: 44px;
    justify-content: center;
  }
  
  .nav-link i {
    font-size: 16px;
  }
  
  .support-btn span {
    display: none;
  }
  
  .support-btn {
    padding: 12px;
    min-width: 44px;
    justify-content: center;
  }
  
  .auth-btn span {
    display: none;
  }
  
  .auth-btn {
    padding: 12px;
    min-width: 44px;
    justify-content: center;
    gap: 0;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .header {
    height: 70px;
    padding: 0 16px;
  }
  
  .header-left {
    gap: 16px;
  }
  
  .header-center {
    display: none;
  }
  
  .header-right {
    gap: 12px;
  }
  
  .logo {
    height: 32px;
  }
  
  .logo-img {
    max-width: 100px;
  }
  
  .nav-link {
    padding: 10px;
    min-width: 40px;
  }
  
  .nav-link i {
    font-size: 15px;
  }
  
  .action-btn {
    width: 36px;
    height: 36px;
  }
  
  .action-btn i {
    font-size: 16px;
  }
  
  .support-btn {
    padding: 10px;
    min-width: 40px;
  }
  
  .auth-btn {
    padding: 10px;
    min-width: 40px;
    gap: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .primary-nav {
    display: none;
  }
  
  .quick-actions {
    gap: 6px;
  }
  
  .notification-badge {
    font-size: 9px;
    padding: 3px 6px;
    top: -4px;
    right: -4px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .header {
    height: 64px;
    padding: 0 12px;
  }
  
  .header-left {
    gap: 12px;
  }
  
  .header-right {
    gap: 8px;
  }
  
  .logo {
    height: 28px;
  }
  
  .logo-img {
    max-width: 80px;
  }
  
  .action-btn {
    width: 32px;
    height: 32px;
  }
  
  .action-btn i {
    font-size: 14px;
  }
  
  .support-btn {
    padding: 8px;
    min-width: 36px;
  }
  
  .auth-btn {
    padding: 8px;
    min-width: 36px;
    gap: 0;
  }
  
  .notification-badge {
    font-size: 8px;
    padding: 2px 5px;
    top: -3px;
    right: -3px;
  }
  
  .hamburger-line {
    width: 20px;
    height: 2px;
  }
}

/* Small mobile phones */
@media (max-width: 360px) {
  .header {
    padding: 0 8px;
  }
  
  .header-left {
    gap: 8px;
  }
  
  .header-right {
    gap: 6px;
  }
  
  .logo {
    height: 24px;
  }
  
  .logo-img {
    max-width: 60px;
  }
  
  .action-btn {
    width: 28px;
    height: 28px;
  }
  
  .action-btn i {
    font-size: 12px;
  }
  
  .support-btn {
    padding: 6px;
    min-width: 32px;
  }
  
  .auth-btn {
    padding: 6px;
    min-width: 32px;
    gap: 0;
  }
  
  .hamburger-line {
    width: 18px;
    height: 2px;
  }
}

/* Mobile navigation specific styles */
@media (max-width: 768px) {
  .mobile-nav-overlay {
    display: block;
  }
  
  .mobile-nav-content {
    max-width: 280px;
  }
  
  .mobile-nav-header {
    padding: 20px;
  }
  
  .mobile-nav {
    padding: 20px 0;
  }
  
  .mobile-nav-link {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .mobile-nav-link i {
    font-size: 16px;
    width: 20px;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .header {
    height: 60px;
  }
  
  .mobile-nav-content {
    max-width: 240px;
  }
  
  .mobile-nav-header {
    padding: 16px;
  }
  
  .mobile-nav {
    padding: 16px 0;
  }
  
  .mobile-nav-link {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .header,
  .nav-link,
  .search-input,
  .action-btn,
  .support-btn,
  .auth-btn,
  .mobile-nav-overlay,
  .mobile-nav-content {
    transition: none;
  }
  
  .nav-link::before,
  .action-btn::before,
  .support-btn::before {
    animation: none;
  }
  
  .notification-badge {
    animation: none;
  }
  
  .support-btn i {
    animation: none;
  }
}
