/*
Theme Name: cima2day
Theme URI: https://cima2day.com
Author: cima2day
Author URI: https://cima2day.com
Description: قالب احترافي لمواقع مشاهدة وتحميل الأفلام والمسلسلات العربية - cima2day
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cima2day
Tags: rtl-language, arabic, movies, series, dark, video-streaming
*/

/* =============================================
   CSS VARIABLES & RESET
   ============================================= */
:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #13132a;
  --bg-card: #1a1a35;
  --bg-nav: #0a0a18;
  --accent-red: #e63946;
  --accent-orange: #f4a261;
  --accent-gold: #ffd60a;
  --accent-purple: #6c63ff;
  --text-primary: #ffffff;
  --text-secondary: #b0b0cc;
  --text-muted: #666688;
  --border-color: rgba(255,255,255,0.08);
  --gradient-hero: linear-gradient(135deg, rgba(13,13,26,0) 0%, rgba(13,13,26,0.7) 50%, #0d0d1a 100%);
  --gradient-card: linear-gradient(180deg, transparent 50%, rgba(13,13,26,0.98) 100%);
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '•';
  color: var(--accent-red);
  font-size: 1.2rem;
}

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

.see-all-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-arabic);
  cursor: pointer;
  transition: var(--transition);
}

.see-all-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

/* =============================================
   TOP NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1px;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}

.nav-vip-btn {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange)) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 7px 18px !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.login-btn {
  background: var(--accent-red);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-arabic);
  transition: var(--transition);
}

.login-btn:hover {
  background: #c1121f;
  transform: translateY(-1px);
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,24,0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
}

.search-overlay input {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  font-size: 1.2rem;
  color: white;
  font-family: var(--font-arabic);
  outline: none;
}

.search-overlay input:focus {
  border-color: var(--accent-red);
}

.search-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  margin-top: 65px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,13,26,0.98) 0%,
    rgba(13,13,26,0.8) 40%,
    rgba(13,13,26,0.3) 70%,
    rgba(13,13,26,0) 100%
  );
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.hero-info {
  max-width: 560px;
}

.hero-logo-img {
  max-width: 200px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-meta span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-meta .dot {
  width: 5px;
  height: 5px;
  background: var(--accent-red);
  border-radius: 50%;
}

.hero-genres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.genre-tag {
  background: rgba(230,57,70,0.2);
  border: 1px solid rgba(230,57,70,0.4);
  color: var(--accent-red);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cast {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-cast span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-cast a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-cast a:hover {
  color: var(--accent-gold);
}

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

.btn-watch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-arabic);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-watch:hover {
  background: #c1121f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230,57,70,0.4);
}

.btn-watch svg { width: 18px; height: 18px; fill: white; }

.btn-add-list {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-arabic);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-list:hover {
  background: rgba(255,255,255,0.2);
}

/* Hero Slider Nav */
.hero-slider-nav {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-slider-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.8rem;
}

.hero-slider-nav button:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* Hero Thumbnails Strip */
.hero-thumbnails {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  padding: 10px;
  background: rgba(10,10,24,0.6);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.hero-thumb {
  width: 80px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

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

.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  border-color: var(--accent-red);
}

/* =============================================
   CONTENT SECTIONS (General)
   ============================================= */
.content-section {
  padding: 40px 0;
}

.content-section + .content-section {
  padding-top: 0;
}

/* =============================================
   CATEGORY DESTINATIONS
   ============================================= */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.destination-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  min-height: 110px;
  text-align: center;
}

.destination-card:hover {
  border-color: var(--accent-red);
  background: rgba(230,57,70,0.08);
  transform: translateY(-3px);
}

.destination-card img {
  max-height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin: 0 auto;
}

.destination-card .dest-label {
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
}

/* =============================================
   MEDIA CARDS (Movies/Series Grid)
   ============================================= */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}

.cards-row.wide {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.media-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition);
  aspect-ratio: 2/3;
}

.media-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  z-index: 10;
}

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

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
}

.card-play-btn {
  width: 52px;
  height: 52px;
  background: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.card-play-btn:hover {
  transform: scale(1.1);
  background: #c1121f;
}

.card-play-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
  margin-right: -3px;
}

.card-action-btns {
  display: flex;
  gap: 8px;
}

.card-action-btn {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  color: white;
  font-size: 0.75rem;
  transition: var(--transition);
}

.card-action-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.card-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.badge-quality {
  background: #2d6a4f;
  color: #b7e4c7;
}

.badge-quality.webdl { background: #1b4332; }

.badge-year {
  background: var(--accent-gold);
  color: #000;
}

.badge-ep {
  background: var(--accent-red);
  color: white;
  font-size: 0.65rem;
}

.badge-dubbed {
  background: #4361ee;
  color: white;
}

.badge-season {
  background: rgba(108,99,255,0.9);
  color: white;
  font-size: 0.65rem;
}

.badge-18 {
  background: #6d0202;
  color: #ff9999;
  border: 1px solid #9b0000;
}

.badge-16 {
  background: #7a3f00;
  color: #ffd580;
}

.card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.card-ep-badge {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
}

/* Ramadan cards special */
.ramadan-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition);
}

.ramadan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.ramadan-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ramadan-card .card-badges {
  top: 8px;
}

/* =============================================
   NEWS SECTION
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card-body {
  padding: 14px;
}

.news-card-body h3 {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   RAMADAN MOST WATCHED
   ============================================= */
.ramadan-section {
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(255,150,30,0.04) 0%, rgba(230,57,70,0.04) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.ramadan-title {
  color: var(--accent-gold);
}

/* =============================================
   HORIZONTAL SCROLL ROWS
   ============================================= */
.scroll-row-container {
  position: relative;
}

.scroll-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar { display: none; }

.scroll-row .media-card {
  flex: 0 0 140px;
  width: 140px;
  scroll-snap-align: start;
}

.scroll-row .media-card.wide-card {
  flex: 0 0 170px;
  width: 170px;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
  font-size: 0.9rem;
}

.scroll-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.scroll-btn.prev { right: -20px; }
.scroll-btn.next { left: -20px; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: #070714;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 60px;
}

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

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 14px;
  display: block;
}

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

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.social-icon:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-red);
  padding-right: 4px;
}

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

.footer-bottom-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-bottom-nav a:hover { color: var(--accent-red); }

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =============================================
   SINGLE MOVIE/SERIES PAGE
   ============================================= */
.single-hero {
  position: relative;
  padding-top: 65px;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
}

.single-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.single-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.single-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 20%, rgba(13,13,26,0.6) 100%);
}

.single-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 36px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.single-poster {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.single-poster img {
  width: 100%;
  height: auto;
}

.single-info {
  flex: 1;
  min-width: 0;
}

.single-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.single-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-red);
  flex-shrink: 0;
}

.single-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.single-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 700px;
}

.single-cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.cast-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.cast-tag:hover {
  border-color: var(--accent-red);
  color: white;
}

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

/* Video Player */
.video-section {
  padding: 40px 0;
}

.player-wrapper {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.server-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.server-tab {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-arabic);
}

.server-tab.active, .server-tab:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

/* Episodes Grid */
.episodes-section {
  padding: 40px 0;
}

.season-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.season-tab {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-arabic);
}

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

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

.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.ep-card:hover, .ep-card.current {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

/* =============================================
   ARCHIVE PAGE (Movies/Series Listing)
   ============================================= */
.archive-header {
  padding: 100px 0 40px;
  text-align: center;
}

.archive-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.archive-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.filters-bar {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-arabic);
  cursor: pointer;
  outline: none;
  direction: rtl;
  flex: 1 1 130px;
  min-width: 0;
  max-width: 200px;
}

.filter-select:focus {
  border-color: var(--accent-red);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

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

.page-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  transition: var(--transition);
}

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

/* =============================================
   LOADING SPINNER
   ============================================= */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* =============================================
   RATINGS
   ============================================= */
.rating-stars {
  display: flex;
  gap: 2px;
  color: var(--accent-gold);
  font-size: 0.85rem;
}

.imdb-badge {
  background: var(--accent-gold);
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .single-hero-content { flex-direction: column; }
  .single-poster { width: 180px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero-content { padding: 0 20px; }
  .hero-info { max-width: 100%; }
  .cards-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .single-hero-content { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn-watch, .btn-add-list { width: 100%; justify-content: center; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* archive-grid handled below in CARD SIZE section */
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1100;
  background: var(--bg-nav, #0d0d1a);
  border-top: 1px solid var(--border-color);
  max-height: calc(100svh - 65px);
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  padding: 8px 0 20px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 13px 20px;
  color: var(--text-secondary, rgba(255,255,255,.7));
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.mobile-nav a:hover,
.mobile-nav a:active { color: #fff; background: rgba(230,57,70,.12); }

/* sub-items (↳) */
.mobile-nav a[style*="padding-right:24px"] {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  border-bottom-color: transparent;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* =============================================
   CUSTOM SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c1121f; }

/* =============================================
   ANIMATE ON SCROLL
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV DROPDOWNS - cima2day v3
   ============================================= */
.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 190px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s;
  z-index: 1000;
  backdrop-filter: blur(20px);
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block !important;
  padding: 10px 18px !important;
  font-size: 0.85rem !important;
  color: var(--text-secondary) !important;
  border-bottom: none !important;
  transition: all .2s !important;
  white-space: nowrap;
}
.nav-dropdown a:first-child {
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  margin-bottom: 4px;
}
.nav-dropdown a:hover {
  color: white !important;
  background: rgba(230,57,70,0.12) !important;
  padding-right: 24px !important;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(-45deg);
}


/* =============================================
   CARD SIZE — RESPONSIVE
   ============================================= */
/* موبايل صغير: 3 كروت في الصف */
@media (max-width: 480px) {
  .filters-bar {
    padding: 10px 8px;
    gap: 6px;
  }
  .filter-select {
    font-size: 0.78rem;
    padding: 6px 8px;
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
/* تابلت صغير: 4 كروت في الصف */
@media (min-width: 481px) and (max-width: 768px) {
  .archive-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

/* =============================================
   MOBILE RESPONSIVE — FULL FIX v2
   ============================================= */

/* ── General mobile base ── */
@media (max-width: 768px) {
  /* Fix body overflow */
  body { overflow-x: hidden; }

  /* Container padding */
  .container { padding: 0 12px; }

  /* Header height fix */
  .header-inner { height: 56px; padding: 0 14px; }
  .site-logo { font-size: 1.4rem; }

  /* Hide desktop nav, show hamburger */
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  /* Hero section */
  .hero-section {
    height: 80vw;
    min-height: 320px;
    max-height: 520px;
    margin-top: 56px;
  }
  .hero-content { padding: 0 14px; }
  .hero-info { max-width: 100%; }
  .hero-title { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .hero-desc { -webkit-line-clamp: 2; font-size: 0.85rem; }
  .hero-buttons { flex-direction: column; gap: 8px; }
  .btn-watch, .btn-add-list { width: 100%; justify-content: center; padding: 12px 20px; }
  .hero-thumbnails { display: none; }
  .hero-slider-nav { bottom: 12px; }

  /* Cards grid */
  .cards-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cards-row.wide { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Scroll row cards */
  .scroll-row .media-card { flex: 0 0 120px; width: 120px; }
  .scroll-btn { display: none; }

  /* Category grid */
  .destinations-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .destination-card { padding: 18px 12px; min-height: 80px; }

  /* News grid */
  .news-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Single page hero */
  .single-hero { padding-top: 56px; min-height: auto; padding-bottom: 30px; }
  .single-hero-content {
    flex-direction: column;
    align-items: center;
    padding: 0 14px;
    gap: 20px;
  }
  .single-poster { width: 140px; margin: 0 auto; }
  .single-info { text-align: center; }
  .single-title { font-size: clamp(1.3rem, 5vw, 2rem); }
  .single-meta-row { justify-content: center; }
  .single-genres { justify-content: center; }
  .single-cast-row { justify-content: center; }
  .single-action-btns { justify-content: center; }
  .single-desc { font-size: 0.88rem; }

  /* Video player */
  .player-wrapper { border-radius: 8px; }
  .server-tabs { gap: 6px; }
  .server-tab { padding: 6px 14px; font-size: 0.82rem; }

  /* Episodes grid */
  .episodes-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .ep-card { padding: 8px 4px; font-size: 0.78rem; }

  /* Archive page */
  .archive-header { padding: 80px 0 24px; }
  .archive-title { font-size: 1.5rem; }
  .archive-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .filters-bar { gap: 8px; padding: 10px; }
  .filter-select { flex: 1 1 calc(50% - 8px); max-width: calc(50% - 8px); font-size: 0.8rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  #site-footer { padding: 40px 0 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom-nav { flex-wrap: wrap; gap: 12px; }

  /* Section title */
  .section-title { font-size: 1.1rem; }

  /* Search overlay */
  .search-overlay { padding-top: 80px; }
  .search-overlay input { font-size: 1rem; padding: 14px 18px; }

  /* Pagination */
  .page-btn { width: 34px; height: 34px; font-size: 0.85rem; }

  /* Content section */
  .content-section { padding: 24px 0; }

  /* Table/Info tables on single pages */
  table { font-size: 0.85rem; }

  /* Season tabs */
  .season-tabs { gap: 6px; }
  .season-tab { padding: 6px 14px; font-size: 0.82rem; }

  /* Related section */
  .related-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ── Extra small screens ── */
@media (max-width: 380px) {
  .container { padding: 0 8px; }
  .header-inner { padding: 0 10px; }
  .site-logo { font-size: 1.2rem; }
  .cards-row { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .episodes-grid { grid-template-columns: repeat(3, 1fr); }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .single-poster { width: 120px; }
  .hero-buttons { gap: 6px; }
  .btn-watch, .btn-add-list { font-size: 0.88rem; padding: 10px 16px; }
  .filter-select { flex: 1 1 100%; max-width: 100%; }
}

/* ── Tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .main-nav a { padding: 6px 10px; font-size: 0.88rem; }
  .cards-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .single-hero-content { padding: 0 24px; }
  .single-poster { width: 180px; }
  .archive-grid { grid-template-columns: repeat(4, 1fr); }
  .episodes-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ── Touch device improvements ── */
@media (hover: none) {
  .media-card:hover { transform: none; }
  .media-card .card-overlay { opacity: 0 !important; }
  .destination-card:hover { transform: none; }
  .fp-cat:hover { transform: none; }
  .scroll-btn { display: none !important; }
}

/* ── Fix: padding-top for pages with fixed header ── */
@media (max-width: 768px) {
  .single-hero,
  div[style*="padding-top:65px"],
  div[style*="padding-top: 65px"] {
    padding-top: 56px !important;
  }
  .archive-header { padding-top: 72px; }
  .hero-section { margin-top: 56px; }
}

/* ── Fix: mobile nav aria & button ── */
.mobile-menu-btn {
  width: 40px; height: 40px;
  padding: 0;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}
.mobile-menu-btn:focus { outline: 2px solid var(--accent-red); }

/* ── Fix: Search overlay mobile ── */
@media (max-width: 480px) {
  .search-overlay-inner { padding: 0 12px; }
  .search-close { top: 14px; left: 14px; }
}

/* ── Fix: fp (front page) hero on mobile ── */
@media (max-width: 480px) {
  .fp-body { padding: 0 12px; }
  .fp-search-btn { padding: 0 14px; font-size: 0.82rem; }
  .fp-search-placeholder { font-size: 0.68rem; }
}

/* ── Fix: scroll-row horizontal on mobile ── */
@media (max-width: 768px) {
  .scroll-row-container { margin: 0 -12px; padding: 0 12px; }
  .scroll-row { padding-bottom: 10px; }
}

/* ── Fix: card title overflow on small screens ── */
@media (max-width: 480px) {
  .card-title { font-size: 0.75rem; }
  .badge { font-size: 0.6rem; padding: 2px 5px; }
}

/* ── Fix: footer copyright center on mobile ── */
@media (max-width: 480px) {
  .footer-copyright { font-size: 0.78rem; text-align: center; width: 100%; }
  .footer-bottom-nav { justify-content: center; width: 100%; }
  .footer-logo { font-size: 1.6rem; }
}

/* ── Fix: section header wrapping ── */
@media (max-width: 480px) {
  .section-header { flex-wrap: wrap; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════════
   CIMA2DAY PERFORMANCE & UX IMPROVEMENTS v4.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Core Web Vitals: منع CLS ── */
img { contain-intrinsic-size: auto; content-visibility: auto; }
.media-card img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; }
.hero-bg, [style*="object-fit:cover"] { content-visibility: visible; }

/* ── Critical: تحسين LCP ── */
.fp-slide, .hero-bg { will-change: opacity; transform: translateZ(0); }

/* ── Skeleton Loading Animation ── */
@keyframes skeleton-pulse {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { height: 240px; border-radius: var(--radius-md); }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }

/* ── Scrollbar Styling ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c1121f; }
* { scrollbar-width: thin; scrollbar-color: var(--accent-red) var(--bg-secondary); }

/* ── Focus Visible (Accessibility) ── */
:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ── تحسين Genre Tags ── */
.genre-tag {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.genre-tag:hover { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

/* ── Rating Stars ── */
.rating-stars { color: var(--accent-gold); letter-spacing: 1px; font-size: 0.85rem; }

/* ── IMDB Badge ── */
.imdb-badge { background: var(--accent-gold); color: #000; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px; }

/* ── Player Improvements ── */
.player-container { position: relative; background: #000; border-radius: 14px; overflow: hidden; }
.player-overlay-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); cursor: pointer; transition: background 0.3s;
  border: none; width: 100%;
}
.player-overlay-btn:hover { background: rgba(0,0,0,0.3); }
.play-circle {
  width: 72px; height: 72px; background: var(--accent-red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(230,57,70,0.6); transition: transform 0.2s, box-shadow 0.2s;
}
.player-overlay-btn:hover .play-circle { transform: scale(1.08); box-shadow: 0 0 50px rgba(230,57,70,0.8); }

/* ── Download Button Improvements ── */
.download-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 16px 20px; text-decoration: none;
  transition: all 0.3s ease; max-width: 520px;
}
.download-btn:hover { border-color: var(--accent-red); background: rgba(230,57,70,0.05); transform: translateX(-2px); }
.download-icon { width: 44px; height: 44px; background: rgba(230,57,70,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Quality Badges ── */
.quality-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700;
  background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary);
}
.quality-badge.hd    { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.quality-badge.fhd   { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.3); color: #a78bfa; }
.quality-badge.uhd4k { background: rgba(234,179,8,0.15);  border-color: rgba(234,179,8,0.3);  color: #fbbf24; }

/* ── تحسين الكروت على الموبايل ── */
@media (max-width: 768px) {
  .download-btn { padding: 12px 14px; gap: 10px; }
  .download-icon { width: 38px; height: 38px; }
  .play-circle  { width: 56px; height: 56px; }
}

/* ── Print Styles ── */
@media print {
  #site-header, .scroll-btn, .hero-section, #site-footer, .search-overlay { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* ── تحسين Accessibility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Dark Mode Media Query (للأجهزة التي تدعمه) ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0d0d1a;
    --text-primary: #ffffff;
  }
}

/* ── High Contrast Mode ── */
@media (prefers-contrast: high) {
  :root { --border-color: rgba(255,255,255,0.3); }
  .genre-tag { border-color: rgba(255,255,255,0.4); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fp-slide { transition: none !important; }
}

/* ── Nav Dropdown تحسين ── */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); min-width: 180px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.25s ease; z-index: 100; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nav-dropdown-wrap:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 8px 16px; color: var(--text-secondary); font-size: 0.88rem; transition: all 0.2s; white-space: nowrap; border-radius: 0; }
.nav-dropdown a:hover { color: white; background: rgba(255,255,255,0.06); padding-right: 22px; }

/* ── Toast محسّن ── */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }

/* ── Breadcrumb ── */
.breadcrumb-nav { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 14px 0; }
.breadcrumb-nav a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb-nav a:hover { color: var(--accent-red); }
.breadcrumb-sep { opacity: 0.4; font-size: 0.6rem; }

/* ── Info Table محسّن ── */
.info-table { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.info-row { display: flex; align-items: center; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--border-color); }
.info-row:last-child { border-bottom: none; }
.info-icon { color: var(--accent-red); width: 16px; flex-shrink: 0; font-size: 0.85rem; }
.info-label { color: var(--text-muted); font-size: 0.85rem; min-width: 110px; }
.info-value { color: #fff; font-size: 0.88rem; font-weight: 500; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 16px; display: block; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }


/* ══ Title Type Badge ══════════════════════════════════════════ */
.cs-title-type-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: .68em;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
    line-height: 1.7;
    position: relative;
    top: -2px;
}
.cs-badge-movie  { background: var(--accent-red, #e63946); color: #fff; }
.cs-badge-series { background: var(--accent-gold, #ffd166); color: #000; }
.cs-badge-tvshow { background: #2ec4b6; color: #fff; }
