/* =============================================
   NEONFLIX - Dark Theme with Neon Green
   Movie Database Website
   ============================================= */

/* CSS Variables */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --neon-green: #39ff14;
  --neon-green-dim: #2dd10a;
  --neon-green-glow: rgba(57, 255, 20, 0.4);
  --neon-green-subtle: rgba(57, 255, 20, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --border-color: #222222;
  --border-neon: rgba(57, 255, 20, 0.3);
  --rating-high: #39ff14;
  --rating-medium: #ffd700;
  --rating-low: #ff4444;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green-dim);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.text-neon {
  color: var(--neon-green);
}

.text-gradient {
  background: linear-gradient(135deg, var(--neon-green), #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   LOADING & SKELETON
   ============================================= */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-color);
  border-top-color: var(--neon-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px var(--neon-green-glow);
}

.loader-text {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--neon-green);
  text-transform: uppercase;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, #222 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border-neon);
  box-shadow: 0 4px 30px rgba(57, 255, 20, 0.05);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-green), #00ff88);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--neon-green-glow);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--bg-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-green);
  transition: var(--transition);
  box-shadow: 0 0 10px var(--neon-green-glow);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Search Box */
.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 21px;
  padding: 0 45px 0 18px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.search-box input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--neon-green);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-box button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.search-box button svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-primary);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--neon-green);
  transition: var(--transition);
  box-shadow: 0 0 5px var(--neon-green-glow);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    rgba(10, 10, 10, 0.8) 30%,
    rgba(10, 10, 10, 0.4) 60%,
    rgba(10, 10, 10, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--neon-green-subtle);
  border: 1px solid var(--border-neon);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-rating {
  color: var(--neon-green) !important;
  font-weight: 700;
}

.hero-overview {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), #00ff88);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--neon-green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--neon-green-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.btn-glow {
  background: transparent;
  color: var(--neon-green);
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green-glow);
}

.btn-glow:hover {
  background: var(--neon-green-subtle);
  box-shadow: 0 0 25px var(--neon-green-glow);
}

/* =============================================
   SECTIONS & LAYOUT
   ============================================= */
.section {
  padding: 60px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--neon-green);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--neon-green-glow);
}

.view-all {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all:hover {
  color: var(--neon-green);
}

/* =============================================
   MOVIE CARDS
   ============================================= */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.movie-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-neon);
  box-shadow: 0 20px 40px rgba(57, 255, 20, 0.1);
}

.movie-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

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

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
}

.movie-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.movie-card:hover .movie-poster-overlay {
  opacity: 1;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: var(--neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 0 30px var(--neon-green-glow);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-primary);
  margin-left: 3px;
}

.movie-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green-glow);
}

.movie-rating.medium {
  border-color: var(--rating-medium);
  color: var(--rating-medium);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.movie-rating.low {
  border-color: var(--rating-low);
  color: var(--rating-low);
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.movie-info {
  padding: 14px 12px;
}

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

.movie-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   MOVIE CAROUSEL (Horizontal Scroll)
   ============================================= */
.carousel-container {
  position: relative;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 4px;
}

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

.carousel .movie-card {
  min-width: 180px;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 10, 0.9);
  border: 2px solid var(--border-neon);
  border-radius: 50%;
  color: var(--neon-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.carousel-btn:hover {
  background: var(--neon-green);
  color: var(--bg-primary);
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =============================================
   TABS
   ============================================= */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.tab-btn:hover {
  border-color: var(--border-neon);
  color: var(--neon-green);
}

.tab-btn.active {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 0 15px var(--neon-green-glow);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.page-btn:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.page-btn.active {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-btn.dots {
  cursor: default;
}

.page-btn.dots:hover {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

/* =============================================
   MOVIE DETAIL PAGE
   ============================================= */
.detail-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  margin-top: 70px;
  padding-bottom: 60px;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) blur(2px);
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    rgba(10, 10, 10, 0.85) 40%,
    rgba(10, 10, 10, 0.6) 100%
  );
  z-index: 1;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  gap: 48px;
  align-items: flex-end;
}

.detail-poster {
  flex-shrink: 0;
  width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-neon);
  box-shadow: 0 20px 60px rgba(57, 255, 20, 0.15);
}

.detail-poster img {
  width: 100%;
  height: auto;
}

.detail-info {
  flex: 1;
  padding-bottom: 20px;
}

.detail-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.1;
}

.detail-tagline {
  font-size: 16px;
  font-style: italic;
  color: var(--neon-green);
  margin-bottom: 20px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.detail-genres {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.genre-tag {
  padding: 6px 16px;
  background: var(--neon-green-subtle);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-green);
  letter-spacing: 1px;
}

.detail-overview {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 28px;
}

.detail-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   VIDEO PLAYER SECTION
   ============================================= */
.player-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.player-container:hover {
  border-color: var(--border-neon);
  box-shadow: 0 0 30px var(--neon-green-glow);
}

.player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.05), transparent);
}

.player-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.player-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.player-play-btn {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: var(--neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px var(--neon-green-glow);
  transition: var(--transition);
}

.player-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px var(--neon-green-glow);
}

.player-play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--bg-primary);
  margin-left: 4px;
}

.player-label {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-green);
}

/* Server Selection */
.server-tabs {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.server-tab {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.server-tab:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.server-tab.active {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 0 15px var(--neon-green-glow);
}

/* =============================================
   CAST SECTION
   ============================================= */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.cast-card {
  text-align: center;
  transition: var(--transition);
}

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

.cast-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.cast-card:hover .cast-photo {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green-glow);
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.cast-character {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   TRAILER SECTION
   ============================================= */
.trailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.trailer-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.trailer-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.1);
}

.trailer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.trailer-card:hover img {
  transform: scale(1.05);
}

.trailer-card .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  width: 60px;
  height: 60px;
}

.trailer-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 13px;
  font-weight: 600;
}

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-hero {
  margin-top: 70px;
  padding: 60px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.search-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.search-hero .search-box {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.search-hero .search-box input {
  height: 52px;
  border-radius: 26px;
  font-size: 16px;
  padding: 0 55px 0 24px;
}

.search-hero .search-box button {
  width: 40px;
  height: 40px;
}

.search-results-info {
  text-align: center;
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.no-results {
  text-align: center;
  padding: 80px 24px;
}

.no-results svg {
  width: 80px;
  height: 80px;
  fill: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-secondary);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--neon-green);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--neon-green);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--neon-green);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .carousel-btn {
    display: none;
  }

  .detail-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-poster {
    width: 200px;
  }

  .detail-meta,
  .detail-genres,
  .detail-actions {
    justify-content: center;
  }

  .detail-overview {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .search-box {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

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

  .mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .mobile-menu .nav-links a {
    font-size: 18px;
  }

  .mobile-menu .search-box {
    display: block;
    width: 100%;
    margin-top: 32px;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }

  .section {
    padding: 40px 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-container {
    aspect-ratio: 16/9;
  }

  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trailer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-overview {
    -webkit-line-clamp: 2;
  }

  .btn {
    height: 44px;
    padding: 0 20px;
    font-size: 12px;
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .carousel .movie-card {
    min-width: 150px;
  }

  .detail-poster {
    width: 160px;
  }

  .tabs {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--neon-green-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--neon-green-glow), 0 0 40px var(--neon-green-glow);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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