:root {
  /* 🌈 Colors */
  --color-bg: #fafafa;
  --color-text: #111;
  --color-muted: #555;

  /* Brand Colors */
  --color-primary: #FFCC00; /* MTN Sunshine */
  --color-secondary: #ED0C6E; /* MTN Play (Magenta) */
  --color-accent: #00678F; /* MTN MoMo */
  --color-black: #000000;
  --color-white: #ffffff;

  /* Buttons */
  --btn-radius: 40px;
  --btn-padding: 12px 30px;
  --btn-font-weight: 600;

  /* Shadows */
  --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: 0.3s ease-in-out;
}
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;

}
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;

}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-weight: var(--btn-font-weight);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
}

.btn-secondary {
  background-color: var(--color-secondary);
}

.btn-accent {
  background-color: var(--color-accent);
}

.btn-dark {
  background-color: var(--color-black);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.btn-circle:hover {
  transform: scale(1.1);
}

header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header a {
  color: var(--color-text);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
}

header a:hover {
  color: var(--color-primary);
}



.btn {
  background: var(--color-primary);
  color: var(--color-black);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.btn.watch:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn.add-list {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn.add-list:hover {
  background: var(--color-accent);
}

/* الفيديو الخلفي */
.preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s;
}

.slide.active .preview {
  opacity: 1;
}

/* أزرار السلايدر */
.slider-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.slider-controls button.active {
  background: var(--color-primary);
}




.main-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo a {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-btn, .menu-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-text);
}

.search-box {
  display: none;
  background: var(--color-bg);
  padding: 10px 20px;
  border-top: 1px solid #ddd;
}

.search-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--color-white);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }
}

.page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
}

.page-content h1 {
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-size: 28px;
}

.page-content h3 {
  color: var(--color-accent);
  margin-top: 20px;
}

.contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
}

.contact-form button {
  background: var(--color-primary);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
}

.faq-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 15px;
}

.contact-form button {
  background: var(--color-primary);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.contact-form button:hover {
  background: var(--color-secondary);
  color: #fff;
}

.form-message {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}






















/* === Dark Theme Overrides === */
:root[data-theme="dark"] {
  --color-bg: #14171f;
  --color-text: #f5f7fb;
  --color-muted: #aab0bb;

  --color-white: #111318; /* بطاقات */
  --color-black: #000;    /* كما هو */
  /* ممكن تخلّي الألوان البراند كما هي عشان الهوية: */
  /* --color-primary: #FFCC00; --color-secondary: #ED0C6E; --color-accent: #00678F; */

  --shadow-soft: 0 4px 12px rgba(0, 0, 0, .5);
  --shadow-strong: 0 8px 30px rgba(0, 0, 0, .65);
}
:root[data-theme="dark"] nav.all-nav {
  background: #FACC15 !important; /* ✅ اللون الأصفر يفضل ثابت */
  color: #000 !important;
}
:root[data-theme="dark"] nav.all-nav a, :root[data-theme="dark"] .search-btn{ /* ✅ اللون الأصفر يفضل ثابت */
  color: #000 ;
}
:root[data-theme="dark"] nav.all-nav .dropdown-content a { /* ✅ اللون الأصفر يفضل ثابت */
  color: #fff ;
}
:root[data-theme="dark"] .hamburger span { /* ✅ اللون الأصفر يفضل ثابت */
  background: #000 !important;
}
:root[data-theme="dark"] .menu.active a { /* ✅ اللون الأصفر يفضل ثابت */
  color: #fff !important;
}
:root[data-theme="dark"] .user-name , :root[data-theme="dark"] .menu.active .search-btn{ /* ✅ اللون الأصفر يفضل ثابت */
  color: #fff !important;
}
/* عناصر شائعة تتأثر تلقائياً لأنها تستخدم المتغيرات */
body { background: var(--color-bg); color: var(--color-text); }
.page-content,
.account-container,
.badges-card,
.episode-info,
.episode-card,
.suggested-card,
.nextup-card {
  background: var(--color-white);
  color: var(--color-text);
}
/* حدود أفتح شوية في الدارك */
.badges-card,
.episode-card { border-color: rgba(255,255,255,.08); }

/* شريط التنقل يتبع الثيم */
nav.all-nav { background: var(--color-white); color: var(--color-text); }

/* زر التبديل */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--color-white);
  color: var(--color-text);
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
:root[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] footer, :root[data-theme="dark"] footer a { background: #000; color: #f5f7fb; }









/* ===== Hero ===== */
:root[data-theme="dark"] .series-hero{background:#000 !important;}
:root[data-theme="dark"] .hero-banner{filter:brightness(.5) !important;}
:root[data-theme="dark"] .hero-video{filter:brightness(.65) !important;}
:root[data-theme="dark"] .hero-overlay{color:#fff;}
:root[data-theme="dark"] .hero-title{color:var(--color-primary) !important;}
:root[data-theme="dark"] .hero-desc{color:#ddd !important;}
:root[data-theme="dark"] .hero-meta{color:#bbb !important;}
:root[data-theme="dark"] .hero-rating{color:var(--color-primary) !important;}

/* ===== Header Banner ===== */
:root[data-theme="dark"] .series-header{
  background:#0f131b !important;color:var(--color-text) !important;
}
:root[data-theme="dark"] .series-header p{color:var(--color-muted) !important;}
:root[data-theme="dark"] .series-meta{color:#c9c9c9 !important;}

/* ===== Episodes Section (كانت فاتحة) ===== */
:root[data-theme="dark"] .episodes-section{
  background:linear-gradient(to bottom,#0f131b,var(--color-bg)) !important;
  box-shadow:
    inset 0 4px 10px rgba(0,0,0,.25),
    0 -4px 15px rgba(0,0,0,.45),
    0 -1px 0 rgba(255,255,255,0.03) !important;
  border-top:1px solid rgba(255,255,255,0.06) !important;
}

/* ===== الكروت ===== */
:root[data-theme="dark"] .episode-card{background:#000 !important;border-color:rgba(255,255,255,0.06) !important;}
:root[data-theme="dark"] .episode-card:hover{box-shadow:0 12px 30px rgba(0,0,0,.6),0 0 20px rgba(255,204,0,.18) !important;}
:root[data-theme="dark"] .episode-info{background:linear-gradient(to top,rgba(0,0,0,.78) 60%,rgba(0,0,0,.42) 90%,transparent) !important;}
:root[data-theme="dark"] .episode-info h3{color:var(--color-primary) !important;}
:root[data-theme="dark"] .episode-info p{color:#ddd !important;}
:root[data-theme="dark"] .episode-duration,
:root[data-theme="dark"] .episode-rating{color:#aaa !important;}
:root[data-theme="dark"] .episode-rating i{color:var(--color-primary) !important;}

/* ===== بطاقات/مساحات فاتحة عامة ===== */
:root[data-theme="dark"] .watch-stats,
:root[data-theme="dark"] .reviews{
  background:var(--surface) !important;color:var(--color-text) !important;
  border:1px solid var(--ring) !important; box-shadow:0 8px 25px rgba(0,0,0,.25) !important;
}
:root[data-theme="dark"] .reviews > div{border-bottom:1px solid var(--ring) !important;}

/* أزرار */
:root[data-theme="dark"] .watch-btn{background:var(--color-primary) !important;color:#111 !important;}
:root[data-theme="dark"] .list-btn{background:var(--color-accent) !important;color:#fff !important;}
:root[data-theme="dark"] .episode-btn{background:var(--color-accent) !important;color:#fff !important;}

/* نصوص عامة */
:root[data-theme="dark"] h1, 
:root[data-theme="dark"] h2, 
:root[data-theme="dark"] h3{color:var(--color-text) !important;}

/* كسر أي inline أبيض */
:root[data-theme="dark"] [style*="background: #fff"]{background:var(--surface) !important;color:var(--color-text) !important;}



* كارت المشغّل */
:root[data-theme="dark"] .player-card{
  background: var(--surface, #141821) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35) !important;
  border: 1px solid var(--ring, #1f2531);
}

/* مساحة الكنترولز */
:root[data-theme="dark"] .controls{
  background: var(--surface-2, #0f131b) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  border: 1px solid var(--ring, #1f2531);
}


/* العناوين والمعلومات */
:root[data-theme="dark"] .info h1{ color: var(--color-primary) !important; }
:root[data-theme="dark"] .meta{ color: var(--color-muted) !important; }
:root[data-theme="dark"] .small{ color: var(--color-muted) !important; }

/* النجوم والبادجات */
:root[data-theme="dark"] .stars{ color:#FFD54A !important; }
:root[data-theme="dark"] .badge{
  background: rgba(255,255,255,.1) !important;
  color: var(--color-text) !important;
}

/* الأزرار */
:root[data-theme="dark"] .btn-primary{ background: var(--color-primary) !important; color:#111 !important; }
:root[data-theme="dark"] .btn-fav{ background: var(--color-accent) !important; color:#fff !important; }
:root[data-theme="dark"] .btn-fav.faved{ background:#28a745 !important; }

/* المراجعات وحواف العناصر */
:root[data-theme="dark"] #reviewText{
  background: var(--surface-2, #0f131b) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--ring, #1f2531) !important;
}
:root[data-theme="dark"] .review{ border-bottom:1px solid var(--ring, #1f2531) !important; }
:root[data-theme="dark"] .review p{ color: var(--color-text) !important; }

/* صورة الغلاف لو مفيش صورة */
:root[data-theme="dark"] .cover{ background:#222 !important; }








