:root {
  --bg: #080b10;
  --surface: #101520;
  --surface-2: #161f30;
  --border: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --radius: 12px;
}
body.light-mode {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  width: 100%; max-width: 100vw; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 14px; min-width: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(8, 11, 16, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body.light-mode .site-header { background: rgba(255, 255, 255, 0.96); }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 0; min-width: 0;
}
.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.site-logo {
  display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 19px;
  letter-spacing: -0.3px; white-space: nowrap;
}
.site-logo .badge-hd {
  background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 6px; font-size: 12.5px;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  height: 36px; padding: 0 11px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}
.icon-btn:hover { border-color: var(--primary); }

/* Search Box & 3-Letter Dropdown */
.search-area { position: relative; flex: 1; max-width: 470px; min-width: 0; }
.search-input-wrap {
  display: flex; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; height: 40px;
}
.search-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.22); }
.search-input-wrap input {
  width: 100%; border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 14px; min-width: 0;
}
.search-results-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.65); z-index: 999; display: none;
  max-height: 390px; overflow-y: auto;
}
.search-results-dropdown.active { display: block; }
.sr-hint { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.sr-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--surface-2); }
.sr-thumb { width: 42px; height: 58px; border-radius: 6px; object-fit: cover; background: #1e293b; flex-shrink: 0; }
.sr-meta { min-width: 0; flex: 1; }
.sr-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; }
  .search-area { order: 3; flex: 1 1 100%; max-width: 100%; margin-top: 2px; }
}

/* Nav Menu Bar */
.nav-bar {
  border-top: 1px solid var(--border);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.nav-bar::-webkit-scrollbar { display: none; }
.nav-list {
  display: flex; align-items: center; gap: 6px; list-style: none;
  margin: 0; padding: 8px 0;
}
.nav-list a {
  display: inline-block; padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: 0.15s;
}
.nav-list a:hover, .nav-list li.current-menu-item a, .nav-list a.active {
  background: var(--primary); color: #fff;
}

/* Slide Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.68); z-index: 1000; display: none;
}
.drawer-backdrop.open { display: block; }
.side-drawer {
  position: fixed; top: 0; left: -290px; width: 280px; max-width: 85vw; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--border);
  z-index: 1001; transition: left 0.25s ease; padding: 16px; overflow-y: auto;
}
.side-drawer.open { left: 0; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.drawer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer-links a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; background: var(--surface-2); }
.drawer-links a:hover { background: var(--primary); color: #fff; }

/* Compact Featured Strip */
.featured-strip {
  margin: 14px 0; background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1d4ed8 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
body.light-mode .featured-strip { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.fs-left { min-width: 0; }
.fs-tag {
  display: inline-block; background: rgba(37,99,235,0.28); color: #93c5fd;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-bottom: 4px;
}
body.light-mode .fs-tag { color: var(--primary); }
.fs-title { font-size: 15px; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-desc { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.fs-btn {
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 9px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}

/* Ad Slots */
.ad-slot-box {
  margin: 14px 0; text-align: center; overflow: hidden; max-width: 100%;
  background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 8px;
}

/* Section Heading */
.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 12px; gap: 10px;
}
.section-title { font-size: 17px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--primary); border-radius: 4px; }
.count-pill { font-size: 12px; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); }

/* 20-Movies Responsive Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 540px)  { .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.movie-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; min-width: 0;
}
.movie-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.poster-box {
  position: relative; aspect-ratio: 2/3; background: #1e293b; overflow: hidden;
}
.poster-box img { width: 100%; height: 100%; object-fit: cover; }
.badge-qual {
  position: absolute; top: 8px; left: 8px;
  background: rgba(16, 185, 129, 0.94); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
}
.badge-stream {
  position: absolute; top: 8px; right: 8px;
  background: rgba(37, 99, 235, 0.94); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.badge-imdb {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(8, 11, 16, 0.88); color: #fbbf24;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
.badge-lang {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(8, 11, 16, 0.88); color: #93c5fd;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
  max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body { padding: 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title {
  font-size: 13.5px; font-weight: 700; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); }

/* Load More (+20) */
.load-more-wrap { text-align: center; margin: 24px 0 32px; }
.btn-load-more {
  background: var(--primary); color: #fff; border: 0; padding: 12px 26px;
  border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-load-more:hover { background: var(--primary-hover); }
.btn-load-more:disabled { opacity: 0.55; cursor: not-allowed; }

/* Single Movie Page — VegaMovies Exact Experience */
.single-wrap { margin: 16px 0 38px; }
.breadcrumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a:hover { color: var(--primary); }

.single-hero {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; display: grid; grid-template-columns: 230px 1fr; gap: 20px;
}
@media (max-width: 720px) {
  .single-hero { grid-template-columns: 1fr; }
  .single-poster { max-width: 200px; margin: 0 auto; }
}
.single-poster img { border-radius: 10px; width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--border); }
.single-title { font-size: 21px; font-weight: 800; margin: 0 0 10px; line-height: 1.35; }
.spec-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.spec-pill {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 700;
}

.info-table {
  width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px;
  background: var(--surface-2); border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
}
.info-table th, .info-table td {
  padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 145px; color: #60a5fa; font-weight: 700; background: rgba(37,99,235,0.06); }
@media (max-width: 480px) { .info-table th { width: 112px; font-size: 12.5px; } .info-table td { font-size: 12.5px; } }

.section-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; margin-top: 16px;
}
.box-heading {
  font-size: 16px; font-weight: 800; margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.story-text { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Screenshots Gallery + Lightbox Zoom */
.ss-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
@media (max-width: 680px) { .ss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .ss-grid { grid-template-columns: 1fr; } }
.ss-grid img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); background: #000; cursor: zoom-in; transition: transform 0.2s;
}
.ss-grid img:hover { transform: scale(1.02); border-color: var(--primary); }

/* Multi-Server Online Player */
.server-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.srv-tab {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 6px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.srv-tab.active, .srv-tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
  border-radius: 10px; overflow: hidden;
}
.video-frame video, .video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.player-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center;
}
.player-toolbar input {
  flex: 1; min-width: 180px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: 13px;
}
.btn-sm {
  background: var(--primary); color: #fff; border: 0; padding: 8px 14px;
  border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
}

/* VegaMovies Multi-Mirror Quality Download Groups */
.dl-group-list { display: flex; flex-direction: column; gap: 14px; }
.dl-group-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; text-align: center;
}
.dl-group-heading {
  font-size: 14.5px; font-weight: 800; color: var(--emerald); margin-bottom: 4px;
}
.dl-group-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.dl-mirrors-wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
}
.mirror-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--primary); transition: transform 0.15s, opacity 0.15s;
}
.mirror-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.mirror-btn.m-gdrive { background: #2563eb; }
.mirror-btn.m-vcloud { background: #059669; }
.mirror-btn.m-fast   { background: #0284c7; }
.mirror-btn.m-batch  { background: #7c3aed; }
.mirror-btn.m-tg     { background: #0ea5e9; }

/* Related Movies */
.related-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 540px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 24px 0; margin-top: 32px; text-align: center; font-size: 13px; color: var(--muted);
}
