/* ==========================================================================
   NetGram (نت جرام) - Ultra-Professional Blended Red & Black Cinema Theme
   Aesthetic: Velvet Crimson & Midnight Obsidian Mesh, Dark Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Changa:wght@600;700;800&display=swap');

:root {
  /* Blended Red & Black Canvas */
  --bg-pure-black: #06070a;
  --bg-deep-carbon: #0a0c10;
  --bg-wine-dark: #160408;
  --bg-wine-mid: #25060d;
  
  /* Crimson & Ruby Accents */
  --red-cinema: #e50914;
  --red-crimson: #e61937;
  --red-glow: #ff2a4b;
  --red-neon: #ff1e42;
  --red-deep: #7a0012;
  
  /* Tinted Glass & Translucencies */
  --glass-red-surface: rgba(30, 8, 14, 0.7);
  --glass-dark-surface: rgba(14, 17, 24, 0.8);
  --red-border-subtle: rgba(229, 9, 20, 0.22);
  --red-border-bright: rgba(255, 42, 75, 0.5);
  --red-glow-ambient: rgba(229, 9, 20, 0.35);

  /* Typography & Contrast */
  --text-white: #ffffff;
  --text-silver: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-rose: #fecdd3;
  --star-gold: #fbbf24;

  /* Layout Dimensions */
  --sidebar-width: 290px;
  --header-mobile-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body.cinema-app-body {
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;
  background-color: var(--bg-pure-black);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(229, 9, 20, 0.22) 0%, rgba(37, 6, 13, 0.7) 35%, transparent 70%),
    radial-gradient(circle at 100% 40%, rgba(229, 9, 20, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 0% 80%, rgba(229, 9, 20, 0.06) 0%, transparent 45%),
    linear-gradient(to bottom, #0d0306 0%, #08090d 50%, #06070a 100%);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   1. MAIN APP LAYOUT
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   2. SIDEBAR (Blended Red-Black Glass Navigation)
   ========================================================================== */
.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, rgba(22, 5, 9, 0.95) 0%, rgba(12, 14, 20, 0.96) 40%, rgba(7, 8, 12, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--red-border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.75), inset 1px 0 0 rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.3);
  border-radius: 4px;
}

/* Sidebar Header */
.sidebar-header {
  padding: 1.75rem 1.4rem 1.25rem;
  border-bottom: 1px solid rgba(229, 9, 20, 0.15);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-cinema) 0%, #800010 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 18px var(--red-glow-ambient);
  border: 1px solid var(--red-glow);
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Changa', 'Cairo', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-accent, .brand-red {
  color: var(--red-glow);
  text-shadow: 0 0 16px rgba(229, 9, 20, 0.8);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-rose);
  opacity: 0.85;
  font-weight: 500;
}

/* Sidebar mini perk pill */
.sidebar-perks-mini {
  padding: 0.85rem 1.4rem 0.2rem;
}

.mini-perk-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid var(--red-border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fca5a5;
}

.dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-glow);
  box-shadow: 0 0 8px var(--red-glow);
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 1.25rem 1rem;
  flex: 1;
}

.nav-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.85rem;
  padding: 0 0.6rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-silver);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
}

.nav-btn:hover {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #ffffff;
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateX(-3px);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--red-cinema) 0%, #a00618 60%, #60000e 100%);
  color: #ffffff;
  border-color: var(--red-glow);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.45);
  transform: translateX(-2px);
}

.nav-btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nav-counter {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.nav-btn.active .nav-counter {
  background: rgba(0, 0, 0, 0.4);
  color: #ffe4e6;
}

/* Sidebar Info Box */
.sidebar-info-box {
  margin: 1rem;
  padding: 1.1rem;
  background: linear-gradient(145deg, rgba(40, 8, 15, 0.6) 0%, rgba(15, 18, 25, 0.7) 100%);
  border: 1px solid var(--red-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.info-box-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.info-box-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   3. MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 2.5rem 3.5rem;
}

/* ==========================================================================
   4. HERO SECTION (Blended Cinema Red & Black)
   ========================================================================== */
.hero-cinema-section {
  padding: 3.25rem 0 2.75rem;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18), rgba(60, 10, 18, 0.5));
  border: 1px solid var(--red-border-bright);
  padding: 0.4rem 1.35rem;
  border-radius: 50px;
  font-size: 0.88rem;
  color: #fca5a5;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-neon);
  box-shadow: 0 0 10px var(--red-neon);
  animation: redPulse 1.8s infinite;
}

@keyframes redPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-main-heading {
  font-family: 'Changa', 'Cairo', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.1rem;
  letter-spacing: -0.5px;
}

.text-glow-red {
  color: var(--red-glow);
  text-shadow: 0 0 35px rgba(229, 9, 20, 0.85);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-silver);
  max-width: 740px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
}

.hero-description strong {
  color: #ffffff;
}

/* Central Search Engine */
.cinema-search-wrapper {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  position: relative;
}

.search-input-container {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(28, 7, 13, 0.9) 0%, rgba(14, 17, 24, 0.95) 100%);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 50px;
  padding: 0.45rem 0.85rem 0.45rem 1.6rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 9, 20, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-container:focus-within {
  border-color: var(--red-glow);
  box-shadow: 0 0 35px rgba(229, 9, 20, 0.55), 0 15px 45px rgba(0, 0, 0, 0.9);
  background: linear-gradient(135deg, rgba(38, 9, 17, 0.95) 0%, rgba(18, 22, 32, 0.98) 100%);
}

.search-lens-icon {
  font-size: 1.35rem;
  color: var(--red-glow);
  margin-left: 0.85rem;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.cinema-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  padding: 0.65rem 0.2rem;
}

.cinema-search-input::placeholder {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
}

.cinema-search-clear {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  border-radius: 50%;
  display: none;
  transition: all 0.2s ease;
}

.cinema-search-clear:hover {
  background: var(--red-cinema);
  color: #ffffff;
}

/* Hero Feature Highlights */
.hero-features-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-silver);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  font-size: 1.15rem;
}

/* ==========================================================================
   5. TELEGRAM PERKS SECTION (القسم الجديد: مميزات تيليجرام الاحترافية)
   ========================================================================== */
.telegram-perks-section {
  padding: 2.5rem 0 3.5rem;
  margin: 1rem 0 2rem;
  border-top: 1px solid rgba(229, 9, 20, 0.15);
  border-bottom: 1px solid rgba(229, 9, 20, 0.15);
  background: radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.07) 0%, transparent 80%);
}

.perks-header-container {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.perks-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--red-border-subtle);
  padding: 0.3rem 1.1rem;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.85rem;
}

.perks-section-title {
  font-family: 'Changa', 'Cairo', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.perks-section-subtitle {
  font-size: 1.05rem;
  color: var(--text-silver);
  line-height: 1.7;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Individual Perk Card (Red & Black Blend) */
.perk-card {
  background: linear-gradient(145deg, rgba(35, 7, 13, 0.75) 0%, rgba(18, 20, 28, 0.85) 55%, rgba(10, 11, 15, 0.95) 100%);
  border: 1.5px solid rgba(229, 9, 20, 0.25);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.perk-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-border-bright);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(229, 9, 20, 0.35);
}

/* Highlighted Perk Card (بحفظ قديش حضرت) */
.perk-card.highlighted-perk {
  border-color: var(--red-glow);
  background: linear-gradient(145deg, rgba(55, 10, 18, 0.9) 0%, rgba(24, 18, 25, 0.9) 60%, rgba(12, 13, 18, 0.95) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 9, 20, 0.3);
}

.perk-card.highlighted-perk::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-neon), transparent);
  box-shadow: 0 0 12px var(--red-neon);
}

.perk-tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--red-cinema);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4px;
}

.perk-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.25);
  flex-shrink: 0;
}

.perk-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.perk-desc {
  font-size: 0.92rem;
  color: var(--text-silver);
  line-height: 1.65;
}

/* ==========================================================================
   6. MEDIA CATALOG SECTION & CARDS
   ========================================================================== */
.media-section {
  padding: 1.5rem 0 3rem;
  flex: 1;
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.active-category-title {
  font-family: 'Changa', 'Cairo', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
}

.results-counter-pill {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.2), rgba(0, 0, 0, 0.4));
  border: 1px solid var(--red-border-bright);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.95rem;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

/* Grid Layout */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Media Card (Deep Red & Black Blend) */
.cinema-card {
  background: linear-gradient(150deg, rgba(28, 7, 12, 0.85) 0%, rgba(17, 20, 28, 0.95) 50%, rgba(9, 10, 14, 0.98) 100%);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  position: relative;
}

.cinema-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-border-bright);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(229, 9, 20, 0.35);
}

/* Poster Header */
.card-poster-header {
  height: 210px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  overflow: hidden;
}

.card-poster-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 20, 28, 1) 0%, rgba(28, 7, 12, 0.3) 50%, transparent 100%);
  z-index: 1;
}

.poster-watermark-icon {
  position: absolute;
  top: 8px;
  left: 15px;
  font-size: 4.8rem;
  opacity: 0.18;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
}

.poster-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.badge-quality {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #38bdf8;
  font-family: 'Changa', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-rating {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: var(--star-gold);
  font-family: 'Changa', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-category-tag {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(229, 9, 20, 0.25);
  border: 1px solid var(--red-border-bright);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
}

/* Card Body */
.card-body {
  padding: 1.35rem 1.45rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.card-original-title {
  font-family: 'Changa', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.card-genres {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--text-rose);
  opacity: 0.9;
  margin-bottom: 0.85rem;
}

.card-story {
  font-size: 0.9rem;
  color: var(--text-silver);
  line-height: 1.65;
  margin-bottom: 1.35rem;
  flex: 1;
}

/* Metadata Row */
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(229, 9, 20, 0.15);
  margin-bottom: 1.2rem;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.meta-seasons {
  color: #fca5a5;
  font-weight: 600;
}

/* Telegram Action Button (Deep Red & Crimson Gradient) */
.card-action-btns {
  display: flex;
  gap: 0.55rem;
}

.telegram-watch-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--red-cinema) 0%, #b30018 50%, #66000e 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.8rem 1.15rem;
  border-radius: 11px;
  border: 1px solid var(--red-glow);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px var(--red-glow-ambient);
}

.telegram-watch-btn:hover {
  background: linear-gradient(135deg, var(--red-neon) 0%, var(--red-cinema) 50%, #800010 100%);
  box-shadow: 0 6px 26px rgba(229, 9, 20, 0.65);
  transform: translateY(-2px);
  color: #ffffff;
}

.telegram-watch-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
}

.card-copy-btn {
  background: #11141d;
  border: 1px solid rgba(229, 9, 20, 0.25);
  color: var(--text-muted);
  border-radius: 11px;
  padding: 0 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.card-copy-btn:hover {
  background: #20080e;
  border-color: var(--red-glow);
  color: var(--red-glow);
}

/* ==========================================================================
   7. EMPTY STATE
   ========================================================================== */
.empty-media-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(145deg, rgba(32, 6, 12, 0.8), rgba(13, 16, 23, 0.9));
  border: 2px dashed var(--red-border-bright);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.empty-media-icon {
  font-size: 3.5rem;
  margin-bottom: 0.85rem;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(229, 9, 20, 0.5));
}

.empty-media-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.empty-media-text {
  font-size: 0.96rem;
  color: var(--text-silver);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.reset-search-btn {
  background: linear-gradient(135deg, var(--red-cinema), #800010);
  color: #ffffff;
  border: 1px solid var(--red-glow);
  padding: 0.75rem 1.85rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--red-glow-ambient);
  transition: all 0.2s ease;
}

.reset-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.6);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.cinema-footer {
  margin-top: auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(229, 9, 20, 0.15);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo h3 {
  font-family: 'Changa', 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.footer-logo p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Toast */
.cinema-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #1f060b, #11141d);
  border: 1px solid var(--red-glow);
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 35px rgba(0,0,0,0.8), 0 0 25px rgba(229, 9, 20, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cinema-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   9. MOBILE NAVBAR & RESPONSIVE DRAWER
   ========================================================================== */
.mobile-navbar {
  display: none;
  height: var(--header-mobile-height);
  background: linear-gradient(180deg, #150508 0%, #0c0e14 100%);
  border-bottom: 1px solid rgba(229, 9, 20, 0.2);
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.sidebar-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.sidebar-toggle-btn:hover .hamburger-line {
  background: var(--red-glow);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Changa', 'Cairo', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.mobile-badge-live {
  background: linear-gradient(135deg, var(--red-cinema), #800010);
  color: #ffffff;
  font-family: 'Changa', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .mobile-navbar {
    display: flex;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    transform: translateX(100%);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.95);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
  }

  .main-content {
    padding: 0 1.25rem 2.5rem;
  }

  .hero-main-heading {
    font-size: 2.35rem;
  }

  .perks-section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .hero-cinema-section {
    padding: 2rem 0 1.75rem;
  }

  .hero-main-heading {
    font-size: 1.95rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .perks-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .hero-features-bar {
    gap: 1rem;
  }

}

/* ==========================================================================
   10. EPISODES MODAL & ADS SLOTS
   ========================================================================== */
.episodes-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.episodes-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.episodes-modal {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(229, 9, 20, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  padding: 2rem;
}

.episodes-modal-backdrop.active .episodes-modal {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #e50914;
  transform: rotate(90deg);
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-poster-icon {
  font-size: 3rem;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 16px;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-title-wrap h2 {
  font-family: 'Changa', 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.modal-title-wrap p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Ad Placement Banner */
.modal-ad-box {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.08), rgba(15, 23, 42, 0.6));
  border: 1px dashed rgba(229, 9, 20, 0.4);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.75rem;
  text-align: center;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-ad-box .ad-tag {
  font-size: 0.72rem;
  color: #e50914;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.modal-ad-box .ad-text {
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* Season Tabs */
.season-tabs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.season-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.season-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.season-tab-btn.active {
  background: #e50914;
  border-color: #e50914;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

/* Episodes Grid */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
}

.episode-btn {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.22s ease;
}

.episode-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.episode-btn .ep-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.episode-btn .ep-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.episode-btn:hover .ep-sub {
  color: #e2e8f0;
}

.modal-notice-box {
  margin-top: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .episodes-modal {
    padding: 1.25rem;
  }
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

