@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;600;700;900&family=Bebas+Neue&family=Montserrat:wght@400;600;700;900&display=swap');

:root {
  --red: #e50914;
  --red-dark: #b0060f;
  --red-glow: rgba(229, 9, 20, 0.4);
  --black: #0a0a0a;
  --dark: #111111;
  --card: #1a1a1a;
  --card2: #222222;
  --border: #2a2a2a;
  --white: #ffffff;
  --gray: #888888;
  --gray2: #555555;
  --accent: var(--red);
}

[data-theme="blue"] { --red: #1a6cf6; --red-dark: #0d4ebd; --red-glow: rgba(26,108,246,0.4); }
[data-theme="green"] { --red: #00c851; --red-dark: #008a35; --red-glow: rgba(0,200,81,0.4); }
[data-theme="purple"] { --red: #9b59b6; --red-dark: #7d3c98; --red-glow: rgba(155,89,182,0.4); }
[data-theme="gold"] { --red: #f39c12; --red-dark: #d68910; --red-glow: rgba(243,156,18,0.4); }
[data-theme="cyan"] { --red: #00bcd4; --red-dark: #0097a7; --red-glow: rgba(0,188,212,0.4); }

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Noto Sans Arabic', 'Montserrat', sans-serif;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.85) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229,9,20,0.2);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.99);
  border-bottom-color: rgba(229,9,20,0.4);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--red-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(229,9,20,0.15);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 25px;
  padding: 8px 20px 8px 45px;
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 220px;
  transition: all 0.3s;
  direction: rtl;
}

.nav-search:focus {
  border-color: var(--red);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 15px var(--red-glow);
  width: 260px;
}

.nav-search-icon {
  position: absolute;
  left: 15px;
  color: var(--gray);
  font-size: 14px;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.search-dropdown.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--white);
}

.search-result-item:hover { background: rgba(229,9,20,0.1); }

.search-result-item img {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-result-info { flex: 1; min-width: 0; }
.search-result-info h4 { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-info span { font-size: 11px; color: var(--gray); }

.color-picker-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-picker-btn:hover { border-color: var(--red); background: rgba(229,9,20,0.1); }

.color-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: none;
  z-index: 200;
  min-width: 180px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.color-panel.show { display: block; }
.color-panel h4 { font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.color-swatch:hover, .color-swatch.active { border-color: var(--white); transform: scale(1.15); }

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--gray);
  font-size: 10px;
  transition: color 0.2s;
  padding: 4px 10px;
}

.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--red); }

/* HERO SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slider-slide.active { opacity: 1; }

.slider-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.7) 40%,
    rgba(10,10,10,0.2) 70%,
    transparent 100%
  ), linear-gradient(
    to top,
    rgba(10,10,10,1) 0%,
    transparent 50%
  );
}

.slider-content {
  position: absolute;
  bottom: 20%;
  right: 8%;
  max-width: 550px;
  z-index: 2;
}

.slider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.slider-title {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  font-weight: 900;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.slider-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #ccc;
  flex-wrap: wrap;
}

.slider-meta .rating {
  color: #ffd700;
  font-weight: 700;
  font-size: 15px;
}

.slider-desc {
  font-size: 15px;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--red);
  color: white;
  border: none;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--red-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.slider-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* SECTIONS */
.section {
  padding: 60px 40px;
}

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

.section-title {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: var(--red);
  border-radius: 2px;
}

.see-all {
  color: var(--red);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.see-all:hover { color: var(--white); gap: 8px; }

/* SWIPER */
.swiper-container {
  position: relative;
  overflow: hidden;
}

.swiper-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.swiper-track::-webkit-scrollbar { display: none; }

.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(229,9,20,0.85);
  border: none;
  color: white;
  width: 40px;
  height: 70px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  z-index: 5;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-btn:hover { background: var(--red); transform: translateY(-50%) scale(1.05); }
.swiper-btn.left { left: 0; border-radius: 0 6px 6px 0; }
.swiper-btn.right { right: 0; border-radius: 6px 0 0 6px; }

/* MOVIE CARD */
.movie-card {
  flex-shrink: 0;
  width: 160px;
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
  color: var(--white);
  display: block;
}

.movie-card:hover { transform: scale(1.05); z-index: 2; }

.movie-card-img {
  position: relative;
  width: 100%;
  padding-top: 150%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.movie-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.movie-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

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

.movie-card-views {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #ccc;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.movie-card-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(229,9,20,0.85);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.movie-card-info { margin-top: 10px; }
.movie-card-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-year { font-size: 11px; color: var(--gray); margin-top: 3px; }

/* CAST CARD */
.cast-card {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  cursor: pointer;
}

.cast-card-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid var(--border);
  transition: all 0.3s;
  display: block;
}

.cast-card:hover .cast-card-img { border-color: var(--red); transform: scale(1.08); }
.cast-card-name { font-size: 12px; font-weight: 600; }
.cast-card-role { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* AI SEARCH SECTION */
.ai-search-section {
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(229,9,20,0.08) 0%, rgba(10,10,10,0) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ai-search-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.ai-search-title {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.ai-search-subtitle {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.7;
}

.ai-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.ai-search-box:focus-within { border-color: var(--red); box-shadow: 0 0 30px var(--red-glow); }

.ai-input {
  flex: 1;
  background: none;
  border: none;
  padding: 18px 24px;
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  direction: rtl;
}

.ai-input::placeholder { color: var(--gray2); }

.ai-search-btn {
  background: var(--red);
  border: none;
  padding: 18px 28px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-search-btn:hover { background: var(--red-dark); }

.ai-results {
  margin-top: 24px;
  text-align: right;
}

.ai-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
}

.ai-result-item:hover { border-color: var(--red); background: rgba(229,9,20,0.08); }

.ai-result-item img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.ai-result-info h4 { font-size: 15px; font-weight: 700; }
.ai-result-info p { font-size: 12px; color: var(--gray); margin-top: 4px; }

.ai-no-result {
  text-align: center;
  font-size: 60px;
  margin: 20px 0 10px;
}

/* FOOTER */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--red);
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--red-glow);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--red); }

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

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

/* POPUP / MODAL */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.popup-overlay.show { opacity: 1; visibility: visible; }

.popup-box {
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.popup-overlay.show .popup-box { transform: scale(1); }

.popup-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover { background: var(--red); }

/* PAGE BANNER */
.page-banner {
  height: 280px;
  background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(229,9,20,0.2) 0%, transparent 70%);
}

.page-banner-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: 4px;
  color: var(--white);
  text-shadow: 0 0 40px var(--red-glow);
}

.page-banner p { color: var(--gray); margin-top: 10px; font-size: 16px; }

/* MOVIE GRID */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

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

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover, .page-btn.active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 15px var(--red-glow);
}

/* FILTER BUTTONS */
.sort-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.sort-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--gray);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn:hover, .sort-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  min-width: 280px;
  z-index: 50;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.filter-panel.show { display: block; }
.filter-panel h4 { font-size: 12px; color: var(--gray); margin: 12px 0 8px; letter-spacing: 1px; }
.filter-panel h4:first-child { margin-top: 0; }

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tag {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--gray);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.apply-filter-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--red);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.apply-filter-btn:hover { background: var(--red-dark); }

/* SINGLE MOVIE */
.single-hero {
  margin-top: 70px;
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 80px 40px 60px;
  overflow: hidden;
}

.single-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(2px) brightness(0.35);
  transform: scale(1.05);
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(10,10,10,0.5) 50%, transparent 100%);
}

.single-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 50px;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.single-poster {
  width: 240px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.single-poster img { width: 100%; display: block; }

.single-info h1 {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.meta-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #ddd;
}

.meta-tag.rating-tag {
  background: rgba(229,9,20,0.2);
  border-color: var(--red);
  color: #ff8080;
  font-weight: 700;
}

.single-desc {
  font-size: 16px;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 600px;
}

/* SERVER POPUP */
.servers-popup .popup-box {
  max-width: 550px;
}

.server-title {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-align: center;
}

.server-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.server-btn {
  padding: 10px 22px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.server-btn.active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 15px var(--red-glow);
}

.video-frame {
  width: 100%;
  height: 300px;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.video-frame iframe { width: 100%; height: 100%; border: none; }

/* SEASON / EPISODE */
.season-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.season-tab {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--gray);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.season-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.ep-btn {
  padding: 12px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.ep-btn:hover { border-color: var(--red); background: rgba(229,9,20,0.1); }

.ep-btn.watched {
  background: rgba(0,200,81,0.15);
  border-color: #00c851;
  color: #00c851;
}

.ep-btn .ep-check {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  color: #00c851;
}

/* LOADING */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; height: 60px; }
  .nav-links, .nav-right .nav-search-wrap { display: none; }
  .mobile-nav { display: flex; }
  .section { padding: 40px 16px; }
  body { padding-bottom: 70px; }
  .slider-content { right: 5%; max-width: 90%; bottom: 15%; }
  .slider-title { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .single-hero { padding: 40px 16px 40px; }
  .single-hero-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .single-poster { width: 150px; }
  .color-picker-btn span { display: none; }
  .page-banner { height: 180px; margin-top: 60px; }
  .ai-search-section { padding: 50px 16px; }
}

@media (max-width: 600px) {
  .movies-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-top { grid-template-columns: 1fr; }
  .slider-btns { flex-direction: column; }
  .sort-filter-bar { gap: 8px; }
}

.cast-card {
  width: 140px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
}

.cast-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

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

.cast-info {
  padding: 10px;
}

.cast-card-name {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.cast-card-role {
  font-size: 12px;
  color: #aaa;
}