:root {
  --bg: #07090e;
  --surface: #10141f;
  --surface-2: #161c2c;
  --surface-3: #1e263b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f3f6fc;
  --text-muted: #94a3b8;
  --red: #e50914;
  --red-hover: #ff1e2b;
  --blue: #3b82f6;
  --gold: #f59e0b;
  --green: #10b981;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(229, 9, 20, 0.09), transparent 36%),
    radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.09), transparent 40%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

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

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

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

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

::-webkit-scrollbar-thumb {
  background: #27314a;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a4769;
}

/* Sticky Glassmorphic Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 16px rgba(78, 115, 248, 0.38);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.brand-name em {
  font-style: normal;
  color: var(--red);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
  font-size: 0.76rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab small {
  font-size: 0.72rem;
  opacity: 0.8;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(59, 130, 246, 0.18));
  border-color: rgba(229, 9, 20, 0.45);
}

/* Search Input */
.search-wrapper {
  position: relative;
  width: 245px;
  max-width: 100%;
  flex-shrink: 1;
}

.search-wrapper .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-wrapper input {
  width: 100%;
  padding: 9px 38px 9px 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrapper input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.clear-search {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

/* Main Content */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 24px 60px;
}

/* Statistics Dashboard Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(145deg, rgba(22, 28, 44, 0.92), rgba(16, 20, 31, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-movies .stat-icon {
  background: rgba(229, 9, 20, 0.16);
  color: #ff4d58;
}

.stat-episodes .stat-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

.stat-series .stat-icon {
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold);
}

.stat-library .stat-icon {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-label {
  font-size: 0.77rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 1.03rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.stat-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hero Featured Banner */
.hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 360px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.45);
  transform: scale(1.1);
  transition: background-image 0.5s ease;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(7, 9, 14, 0.94) 20%, rgba(7, 9, 14, 0.72) 60%, rgba(7, 9, 14, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-poster-wrap {
  width: 175px;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
  background: var(--surface-2);
}

.hero-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-details {
  flex: 1;
  min-width: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-badge {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-badge.accent {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.hero-badge.gold {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

.hero-details h1 {
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 650px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-hover), #dc2626);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-secondary.saved {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fcd34d;
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.hero-thumbs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 0 32px 22px;
  overflow-x: auto;
}

.hero-thumb {
  width: 62px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  border-color: var(--red);
  transform: translateY(-2px);
}

/* Structured Categories Hub */
.categories-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cat-row.focused-row {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cat-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.series-label {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.movies-label {
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #fca5a5;
}

.cat-pills-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex: 1;
}

.cat-pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.series-pill.active {
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.movies-pill.active {
  background: linear-gradient(135deg, var(--red), #b91c1c);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

@media (max-width: 700px) {
  .cat-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.genres-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex: 1;
  min-width: 240px;
}

.genre-pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.genre-pill:hover {
  color: #fff;
  border-color: var(--border-hover);
}

.genre-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
}

.select-wrap i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.select-wrap select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.select-wrap select option {
  background: var(--surface);
  color: var(--text);
}

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.status-text {
  font-size: 0.92rem;
  font-weight: 700;
}

/* Section Headers */
.content-section {
  margin-bottom: 36px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accent-bar {
  width: 5px;
  height: 24px;
  border-radius: 99px;
  background: var(--red);
}

.accent-bar.gold {
  background: var(--gold);
}

.section-title h2 {
  font-size: 1.24rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-count {
  padding: 3px 11px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.btn-link {
  background: transparent;
  border: none;
  color: #60a5fa;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-link:hover {
  color: #93c5fd;
}

/* Responsive 2-to-6 Column Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1280px) {
  .media-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
  .hero-badges,
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .header-container {
    padding: 12px 14px;
  }
  .main-content {
    padding: 16px 14px 44px;
  }
}

/* Media Cards */
.media-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--surface-2);
  overflow: hidden;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.media-card:hover .card-poster img {
  transform: scale(1.07);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.92) 0%, rgba(7, 9, 14, 0.15) 55%, transparent 100%);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.55);
}

.card-badge-ep {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #111827;
  font-size: 0.73rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-badge-type {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(7, 9, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.7rem;
  font-weight: 700;
}

.card-year-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.card-bookmark-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 9, 14, 0.8);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-bookmark-btn:hover,
.card-bookmark-btn.saved {
  background: var(--gold);
  border-color: var(--gold);
  color: #111827;
}

.card-body {
  padding: 11px 12px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-lang-badge {
  position: absolute;
  top: 38px;
  left: 10px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.85);
  color: #022c22;
  font-size: 0.68rem;
  font-weight: 800;
}

.card-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-eps-count {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Skeleton Loader */
.skeleton-card {
  aspect-ratio: 2 / 3.35;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid var(--border);
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 55px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-state i {
  font-size: 2.6rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pagination Bar */
.pagination-bar {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn,
.page-num {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.page-num.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.page-num:hover:not(.active),
.page-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.page-dots {
  color: var(--text-muted);
  padding: 0 4px;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#pageInfoText {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.jump-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jump-form input {
  width: 96px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.84rem;
  outline: none;
}

.jump-form input:focus {
  border-color: var(--blue);
}

.jump-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(16, 20, 31, 0.7);
  padding: 20px 24px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand span {
  color: var(--red);
}

.footer-brand code {
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
  color: #93c5fd;
}

/* Cinema Watch & Series Modal */
.watch-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 22px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-badge {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.08rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.close-modal-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

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

.modal-scroll {
  overflow-y: auto;
  padding: 20px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Player & Server Switcher */
.servers-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.servers-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.server-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.server-pill {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.server-pill:hover {
  border-color: var(--blue);
}

.server-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.open-external-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
}

.player-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.player-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.player-loading {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.episode-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ep-nav-btn {
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ep-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.current-ep-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
}

/* Modal Details */
.modal-details-grid {
  display: flex;
  gap: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.modal-poster-col {
  width: 145px;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-3);
}

.modal-poster-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-meta-chips,
.modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-chip.quality {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.genre-chip {
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-story {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.7;
}

.modal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* Seasons & Episodes Panel */
.seasons-episodes-panel,
.downloads-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.panel-heading h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seasons-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.season-tab {
  padding: 7px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.season-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-left: 4px;
}

.ep-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: all 0.2s;
}

.ep-btn:hover {
  border-color: var(--gold);
  background: var(--surface-3);
}

.ep-btn.active {
  background: linear-gradient(135deg, var(--red), #b91c1c);
  border-color: var(--red);
  color: #fff;
}

/* Downloads Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 700;
  transition: all 0.2s;
}

.dl-card:hover {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

@media (max-width: 680px) {
  .modal-details-grid,
  .watch-details-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .modal-meta-chips,
  .modal-genres,
  .modal-actions-row {
    justify-content: center;
  }
}

/* =========================================================
   Dedicated Watch & Series Pages + SEO / FAQ Sections
   ========================================================= */
.watch-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
}

.breadcrumbs a {
  color: #93c5fd;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs span i {
  font-size: 0.72rem;
  opacity: 0.65;
}

.bc-current {
  color: var(--text);
  font-weight: 700;
}

.watch-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.watch-page-header h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.35;
}

.theater-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.theater-section.expanded {
  max-width: 100%;
  background: #04060a;
  border-color: rgba(78, 115, 248, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
}

.theater-section.expanded .player-frame-wrap {
  max-height: 82vh;
}

.player-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ep-nav-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.watch-details-card {
  display: flex;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.wa:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.share-btn.tg:hover {
  background: #0284c7;
  border-color: #0284c7;
}

.share-btn.copy:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.series-cta-btn {
  padding: 11px 22px;
}

.related-section {
  margin-top: 6px;
}

.seo-summary-box,
.seo-faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-top: 10px;
}

.seo-faq-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.seo-summary-box h2,
.seo-intro-box h2 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #f8fafc;
}

.seo-summary-box p,
.seo-intro-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.seo-intro-box code,
.seo-summary-box code {
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
  color: #93c5fd;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 780px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
}

.faq-card summary {
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  color: #e2e8f0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.faq-card summary::after {
  content: "+";
  font-size: 1.1rem;
  color: #60a5fa;
}

.faq-card[open] summary::after {
  content: "−";
}

.faq-card p {
  margin-top: 9px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #fff;
}
