/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #010208;
  --bg2: #050d1a;
  --accent: #00d4ff;
  --accent2: #ff2d6f;
  --accent3: #7b2fff;
  --text: #e0f0ff;
  --text-dim: #4a7a9b;
  --card-bg: rgba(0, 20, 40, 0.8);
  --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.scanline {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(1, 2, 8, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', monospace;
}

.logo-icon {
  color: var(--accent);
  font-size: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--text);
}

.logo-accent { color: var(--accent); }

nav {
  display: flex;
  gap: 40px;
}

nav a {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.3s;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

nav a:hover, nav a.active { color: var(--accent); }
nav a:hover::after, nav a.active::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 60px 60px;
  text-align: left;
  max-width: 900px;
}

.hero-tag {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.hero-line1 {
  font-family: 'Orbitron', monospace;
  font-size: 60px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.4s both;
}

.hero-line2 {
  font-family: 'Orbitron', monospace;
  font-size: 60px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.6s both;
}

.hero-line3 {
  font-family: 'Orbitron', monospace;
  font-size: 60px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 8px;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.8s both;
}

.cursor-blink { animation: blink 1s step-end infinite; }

/* ===== SEARCH ===== */
.search-wrapper {
  position: relative;
  width: 500px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 1s both;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  z-index: 1;
}

#searchInput {
  width: 100%;
  padding: 18px 20px 18px 55px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  outline: none;
  transition: all 0.3s;
}

#searchInput::placeholder { color: var(--text-dim); }

#searchInput:focus {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  gap: 15px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 1.2s both;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--text);
  padding: 10px 25px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 2px;
}

.filter-year { color: var(--text); }
.filter-plus { color: var(--accent); font-weight: bold; }

.filter-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.section-tag {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  opacity: 0.6;
}

.section-label {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--text);
  font-weight: 700;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), transparent);
}

/* ===== TRENDING ===== */
.trending-section {
  position: relative;
  z-index: 1;
  padding: 20px 60px 40px;
}

.trending-strip {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.trending-strip::-webkit-scrollbar { height: 3px; }
.trending-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.trending-card {
  min-width: 160px;
  background: var(--card-bg);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
  animation: fadeScaleIn 0.5s ease both;
}

.trending-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-5px);
}

.trending-poster {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.trending-poster::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.trending-rank {
  position: absolute;
  top: 8px; left: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  z-index: 1;
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.trending-initial {
  font-family: 'Orbitron', monospace;
  font-size: 55px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
}

.trending-info { padding: 10px 12px; }

.trending-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 1px;
}

.trending-meta {
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ===== CONTROLS BAR ===== */
.controls-bar {
  position: relative;
  z-index: 50;
  padding: 10px 60px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-bar .section-header { margin-bottom: 0; flex: 1; }

.controls-right {
  display: flex;
  gap: 10px;
}

/* ===== SPINNER ===== */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
  position: relative;
  z-index: 1;
}

.spinner-ring {
  width: 60px; height: 60px;
  border: 2px solid transparent;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

.ring2 {
  width: 80px; height: 80px;
  border-top-color: var(--accent3);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.ring3 {
  width: 100px; height: 100px;
  border-top-color: var(--accent2);
  animation-duration: 2s;
}

.spinner-text {
  margin-top: 70px;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
}

.dots { animation: dots 1.5s steps(4) infinite; }
.hidden { display: none !important; }

/* ===== GRID ===== */
.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 60px 40px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  animation: fadeScaleIn 0.5s ease both;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--glow), 0 20px 40px rgba(0,0,0,0.5);
  transform: translateY(-8px);
}

.card:hover::before { transform: scaleX(1); }

.card-poster-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.no-poster {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.no-poster::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(transparent, var(--card-bg));
}

.poster-initial {
  font-family: 'Orbitron', monospace;
  font-size: 70px;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
}

.card-info {
  padding: 14px 16px;
  position: relative;
}

.title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.year {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.rating {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ===== ERROR ===== */
.error {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent2);
  padding: 60px;
}

/* ===== PAGINATION ===== */
.pagination {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 60px 50px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 2px;
  color: var(--text-dim);
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

.pagination button:disabled { opacity: 0.2; cursor: not-allowed; }

.pagination button.active-page {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

.pagination-dots {
  color: var(--text-dim);
  font-size: 14px;
  padding: 0 4px;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  width: 860px;
  max-width: 95%;
  position: relative;
  animation: fadeScaleIn 0.3s ease;
  box-shadow: var(--glow), 0 0 80px rgba(0, 212, 255, 0.1);
  overflow: hidden;
}

.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3), var(--accent2));
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ===== MODAL BACKDROP ===== */
.modal-backdrop {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.modal-backdrop::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 70%;
  background: linear-gradient(transparent, var(--bg2));
}

/* ===== MODAL BODY (poster + info side by side) ===== */
.modal-body {
  display: flex;
  gap: 30px;
  padding: 0 30px 30px;
  margin-top: -80px;
  position: relative;
  z-index: 1;
}

.modal-poster-img {
  width: 160px;
  min-width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  display: block;
  align-self: flex-end;
}

.modal-poster {
  width: 160px;
  min-width: 160px;
  height: 240px;
  border-radius: 4px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 60px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  align-self: flex-end;
}

.modal-main {
  flex: 1;
  padding-top: 20px;
  min-width: 0;
}

.modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.3;
}

.modal-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.modal-info-item {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  padding: 10px 12px;
  border-radius: 2px;
}

.modal-info-label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 5px;
  opacity: 0.7;
}

.modal-info-value {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== MODAL OVERVIEW ===== */
.modal-overview {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(224, 240, 255, 0.75);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

/* ===== MODAL SECTIONS (trailer, cast, etc.) ===== */
.modal-section {
  padding: 20px 30px;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
}

.modal-section-title {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

/* ===== WATCH PROVIDERS ===== */
.modal-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.provider-item { display: flex; align-items: center; }

.provider-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  object-fit: cover;
  transition: transform 0.2s;
}

.provider-logo:hover { transform: scale(1.1); }

/* ===== TRAILER ===== */
.modal-trailer {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.modal-trailer iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== CAST ===== */
.modal-cast {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.modal-cast::-webkit-scrollbar { height: 3px; }
.modal-cast::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.cast-item {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
}

.cast-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 212, 255, 0.2);
  display: block;
  margin: 0 auto 8px;
}

.cast-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  border: 2px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.cast-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.cast-char {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

/* ===== RECOMMENDATIONS ===== */
.modal-recs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.modal-recs::-webkit-scrollbar { height: 3px; }
.modal-recs::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.rec-card {
  flex-shrink: 0;
  width: 110px;
  cursor: pointer;
  transition: transform 0.2s;
}

.rec-card:hover { transform: translateY(-4px); }

.rec-img {
  width: 110px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: block;
  margin-bottom: 6px;
}

.rec-placeholder {
  width: 110px;
  height: 160px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 30px;
  color: var(--accent);
}

.rec-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

/* ===== POSTER IMAGES ===== */
.card-poster {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

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

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

.trending-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== POSTER FADE IN ===== */
.poster-fadein { animation: posterFade 0.5s ease both; }

@keyframes posterFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.trending-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }

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

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

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

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ===== CUSTOM DROPDOWN ===== */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

.custom-select {
  position: relative;
  min-width: 160px;
  z-index: 100;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 2px;
  color: var(--text);
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  white-space: nowrap;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.custom-select-arrow {
  font-size: 8px;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.custom-select.open .custom-select-arrow { transform: rotate(180deg); }

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(5, 13, 26, 0.98);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 2px;
  z-index: 9999;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 212, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.custom-select-dropdown::-webkit-scrollbar { width: 3px; }
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.custom-select.open .custom-select-dropdown {
  display: block;
  animation: dropdownOpen 0.2s ease;
}

@keyframes dropdownOpen {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-option {
  padding: 10px 18px;
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  position: relative;
  z-index: 2;
}

.custom-select-option:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 22px;
}

.custom-select-option.selected {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

.custom-select-option::before {
  content: '//';
  position: absolute;
  left: 6px;
  opacity: 0;
  font-size: 8px;
  color: var(--accent);
  transition: opacity 0.2s;
}

.custom-select-option:hover::before,
.custom-select-option.selected::before { opacity: 1; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  header { padding: 15px 20px; flex-wrap: wrap; gap: 10px; }
  nav { gap: 15px; flex-wrap: wrap; }
  nav a { font-size: 9px; letter-spacing: 2px; }
  .hero { padding: 40px 20px 30px; }
  .hero-line1, .hero-line2, .hero-line3 { font-size: 28px; letter-spacing: 4px; }
  .search-wrapper { width: 100%; }
  .filters { flex-wrap: wrap; gap: 10px; }
  .filter-btn { font-size: 11px; padding: 8px 15px; }
  .trending-section { padding: 20px 20px 30px; }
  .trending-card { min-width: 130px; }
  .controls-bar { padding: 10px 20px 15px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .controls-right { width: 100%; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 15px 20px 30px; }
  .no-poster, .card-poster, .card-poster-wrap { height: 200px; }
  .poster-initial { font-size: 50px; }
  .pagination { padding: 15px 20px 40px; gap: 6px; }
  .pagination button { padding: 6px 10px; font-size: 9px; }

  .modal-overlay { padding: 20px 10px; }
  .modal-backdrop { height: 180px; }
  .modal-body { flex-direction: column; padding: 0 16px 20px; margin-top: -60px; gap: 16px; }
  .modal-poster-img, .modal-poster { width: 110px; min-width: 110px; height: 165px; }
  .modal-title { font-size: 15px; letter-spacing: 2px; }
  .modal-info { grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal-info-value { font-size: 12px; }
  .modal-section { padding: 16px 16px; }
  .cast-item { width: 75px; }
  .cast-img, .cast-placeholder { width: 60px; height: 60px; }
  .rec-card { width: 90px; }
  .rec-img, .rec-placeholder { width: 90px; height: 130px; }
}

@media (max-width: 400px) {
  .hero-line1, .hero-line2, .hero-line3 { font-size: 22px; letter-spacing: 2px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  nav { gap: 10px; }
}