/* ============================================================
   NohadraLive - Main Stylesheet (RTL / Dark Premium)
   ============================================================ */
:root {
  --primary: #c41e3a;
  --primary-2: #e50914;
  --secondary: #d4af37;
  --dark: #0b0b0f;
  --dark-2: #12121a;
  --dark-3: #1a1a24;
  --card: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #a0a0b0;
  --live: #e50914;
  --gold: #d4af37;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

main { flex: 1 0 auto; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: #2c2c3a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { background: rgba(11, 11, 15, 0.96); box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 4px; flex-shrink: 0; text-decoration: none; }
.brand-img { height: 36px; width: auto; }
.brand-logo {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #7a1024);
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  position: relative;
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.4);
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.brand-name .brand-gold { color: var(--gold); }
.brand-name .brand-red { color: var(--primary); }

/* Desktop: main-nav is invisible wrapper, nav-list is the flex row */
.main-nav { display: contents; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}
.nav-list > li > a:hover, .nav-list > li > a.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-list > li > a.active { color: var(--gold); }

.nav-live {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--live), #b3000e) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 30px !important;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
  position: relative;
  overflow: hidden;
}
.nav-live:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(229, 9, 20, 0.55); }
.nav-live .dot {
  width: 9px; height: 9px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 46px; height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero Slider
   ============================================================ */
.hero {
  position: relative;
  height: min(76vh, 720px);
  min-height: 480px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, transform 7s linear;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-slide.active .bg { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 9, 0.92) 0%, rgba(11, 11, 15, 0.65) 45%, rgba(11, 11, 15, 0.25) 100%);
}
.hero-slide .content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding: 40px 20px;
}
.hero-slide .content .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--live);
  color: #fff;
  padding: 7px 18px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.hero-slide .content .badge.gold { background: linear-gradient(135deg, var(--gold), #a8841f); }
.hero-slide h1 {
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-slide h1 span { color: var(--gold); }
.hero-slide p { font-size: clamp(15px, 1.6vw, 18px); color: #d5d5e0; margin-bottom: 28px; max-width: 540px; }
.hero-slide .date { color: var(--muted); font-size: 14px; margin-bottom: 26px; display: flex; align-items: center; gap: 8px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: var(--transition);
  justify-content: center;
}
.btn-primary { background: linear-gradient(135deg, var(--live), #b3000e); color: #fff; box-shadow: 0 8px 24px rgba(229, 9, 20, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(229, 9, 20, 0.55); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #a8841f); color: #101010; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* slider arrows & dots */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: #fff;
  display: grid; place-items: center;
  font-size: 20px;
  transition: var(--transition);
}
.hero-nav:hover { background: var(--primary); border-color: var(--primary); }
.hero-nav.prev { right: 20px; }
.hero-nav.next { left: 20px; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  right: 50%;
  transform: translateX(50%);
  z-index: 5;
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 11px; height: 11px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}
.hero-dots button.active { width: 34px; background: var(--gold); }

/* ============================================================
   Section styling
   ============================================================ */
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--dark-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.section-head .title { flex: 1; min-width: 260px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); display: inline-block; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; }
.section-head p { color: var(--muted); margin-top: 8px; }
.section-head .more a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-weight: 700;
  padding: 10px 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 30px;
  transition: var(--transition);
}
.section-head .more a:hover { background: rgba(212, 175, 55, 0.12); border-color: var(--gold); }

/* ============================================================
   Cards: Broadcast / Activity / Video / News
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, 0.35); }

.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--dark-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.07); }

.card-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.badge-live { background: var(--live); }
.badge-live .pulse { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulse 1.2s infinite; }
.badge-upcoming { background: linear-gradient(135deg, #3a6df0, #22439c); }
.badge-ended { background: linear-gradient(135deg, #2f2f3a, #1c1c24); }

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.card-play .play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(196, 30, 58, 0.85);
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: grid; place-items: center;
  color: #fff;
  font-size: 22px;
  transition: var(--transition);
}
.card:hover .play-icon { transform: scale(1.12); background: var(--live); }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .views { margin-right: auto; }
.card-title { font-size: 17px; font-weight: 800; line-height: 1.5; }
.card-title a:hover { color: var(--gold); }
.card-text { color: var(--muted); font-size: 14px; }
.card-footer { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Countdown */
.countdown { display: flex; gap: 8px; align-items: center; }
.countdown .unit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 54px;
  padding: 8px 6px;
  text-align: center;
}
.countdown .unit b { display: block; font-size: 20px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.countdown .unit span { font-size: 11px; color: var(--muted); }
.countdown .sep { color: var(--muted); font-weight: 700; }

/* ============================================================
   Stats
   ============================================================ */
.stats { background: linear-gradient(135deg, #0e0e14, #1a1020); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: rgba(196, 30, 58, 0.12);
  border: 1px solid rgba(196, 30, 58, 0.3);
  display: grid; place-items: center;
  font-size: 28px;
}
.stat-value {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
}
.stat-label { color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ============================================================
   Nohadra TV section
   ============================================================ */
.tv-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.tv-visual { position: relative; }
.tv-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--dark-3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(6px);
}
.tv-watch-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), #a0162e);
  color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 12px; text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}
.tv-watch-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196, 30, 58, 0.6); color: #fff; }
.tv-play-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--dark-3), #1a1028);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: var(--transition);
}
.tv-play-link:hover { border-color: var(--primary); box-shadow: 0 24px 60px rgba(196, 30, 58, 0.3); }
.tv-play-link .tv-badge { position: absolute; top: 16px; right: 16px; }
.tv-play-icon {
  width: 80px;
  height: 80px;
  background: rgba(196, 30, 58, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 0 40px rgba(196, 30, 58, 0.5);
  transition: var(--transition);
}
.tv-play-link:hover .tv-play-icon { transform: scale(1.1); background: var(--primary); box-shadow: 0 0 60px rgba(196, 30, 58, 0.7); }
.tv-play-icon i { margin-right: -3px; }

/* Live broadcast player controls */
.live-controls {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.75);
  padding: 8px 18px;
  border-radius: 40px;
  backdrop-filter: blur(10px);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 10;
}
.lc-btn {
  background: none; border: none; color: #fff; font-size: 16px;
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
  transition: background 0.2s;
}
.lc-btn:hover { background: rgba(255,255,255,0.15); }
.lc-slider {
  width: 80px; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.3); border-radius: 4px; outline: none;
  cursor: pointer;
}
.lc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: var(--primary); border-radius: 50%; cursor: pointer;
}
.lc-slider::-moz-range-thumb {
  width: 14px; height: 14px; background: var(--primary);
  border-radius: 50%; cursor: pointer; border: none;
}
.center-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: rgba(196, 30, 58, 0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 15;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 40px rgba(196, 30, 58, 0.5);
}
.center-play-btn i {
  font-size: 30px; color: #fff; margin-right: -3px;
}
.center-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 60px rgba(196, 30, 58, 0.7);
}
#volSlider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: var(--primary); border-radius: 50%; cursor: pointer;
}
#volSlider::-moz-range-thumb {
  width: 14px; height: 14px; background: var(--primary);
  border-radius: 50%; cursor: pointer; border: none;
}
.featured-card:hover .featured-card-img img { transform: scale(1.05); }
.featured-card { transition: transform .3s, box-shadow .3s; }
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
@media (max-width: 768px) {
  .featured-card { flex-direction: column !important; }
  .featured-card-img { flex: 0 0 auto !important; max-height: 220px; }
}
#playerWrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#ytPlayer { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.tv-info h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 14px; }
.tv-info h2 span { color: var(--gold); }
.tv-info p { color: var(--muted); margin-bottom: 24px; }
.tv-programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.tv-program {
  display: flex; align-items: center; gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  transition: var(--transition);
}
.tv-program:hover { border-color: var(--gold); transform: translateX(-4px); }
.tv-program img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.tv-program .p-title { font-weight: 700; font-size: 14px; }
.tv-program .p-desc { font-size: 11px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Live page
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #15060a, #0b0b0f 55%, #150e02);
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.page-hero .crumb { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.page-hero .crumb a { color: var(--gold); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tabs button {
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  transition: var(--transition);
}
.filter-tabs button.active { background: linear-gradient(135deg, var(--live), #b3000e); color: #fff; border-color: transparent; }

/* ============================================================
   Videos page
   ============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card { cursor: pointer; }
.video-card .card-media { aspect-ratio: 16 / 9; }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 9, 0.82);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 36px 30px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: var(--transition);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal .modal-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 16px;
}
.modal .modal-close:hover { background: var(--primary); }
.modal-icon { font-size: 46px; margin-bottom: 14px; }
.modal h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--dark-3);
  color: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12); }
.form-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.form-group { margin-bottom: 18px; text-align: right; }
.form-error { color: var(--live); font-size: 13px; margin-top: 10px; font-weight: 600; }
.form-success { color: #3ddc84; font-size: 14px; margin-top: 10px; font-weight: 600; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--gold); transform: translateX(-4px); }
.contact-card .ico {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(196, 30, 58, 0.12);
  border: 1px solid rgba(196, 30, 58, 0.3);
  display: grid; place-items: center;
  font-size: 22px;
}
.contact-card h4 { font-weight: 800; font-size: 15px; margin-bottom: 3px; }
.contact-card p { color: var(--muted); font-size: 14px; direction: ltr; text-align: left; }

.map-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); margin-top: 34px; min-height: 380px; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; filter: grayscale(20%); }

/* ============================================================
   Activity detail
   ============================================================ */
.article { max-width: 860px; margin: 0 auto; }
.article-head { margin-bottom: 28px; }
.article-head h1 { font-size: clamp(24px, 3.4vw, 40px); font-weight: 900; line-height: 1.4; margin-bottom: 14px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-cover { border-radius: 20px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow); }
.article-content { color: #dcdce6; line-height: 2; font-size: 16.5px; }
.article-content h2, .article-content h3 { color: var(--gold); margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; transition: var(--transition); }
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  transition: var(--transition);
}
.pagination a:hover { color: #fff; border-color: var(--gold); }
.pagination .current { background: linear-gradient(135deg, var(--live), #b3000e); color: #fff; border-color: transparent; }

/* ============================================================
   Empty state
   ============================================================ */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .empty-icon { font-size: 54px; margin-bottom: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #08080c;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer h4 { font-size: 17px; font-weight: 800; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: 3px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); font-size: 14px; }
.footer-links a:hover { color: var(--gold); transform: translateX(-4px); }
.footer-contact li { color: var(--muted); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.footer-contact li .ico { color: var(--gold); flex-shrink: 0; }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 18px;
  transition: var(--transition);
}
.social a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-4px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom b { color: var(--gold); }

/* ============================================================
   Utilities / Animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.notice {
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 14px;
}
.notice-success { background: rgba(61, 220, 132, 0.12); border: 1px solid rgba(61, 220, 132, 0.4); color: #3ddc84; }
.notice-error { background: rgba(229, 9, 20, 0.12); border: 1px solid rgba(229, 9, 20, 0.4); color: #ff6b6b; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(61, 220, 132, 0.5); }
.toast.error { border-color: rgba(229, 9, 20, 0.6); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: hide logo icon, show name only */
.brand-logo-mobile { display: none; }

@media (max-width: 992px) {
  /* Mobile/Tablet: hide brand text, show logo only */
  .brand-name { display: none; }
  .brand-logo-mobile { display: inline-block; }
  .brand-img { height: 32px; }
  .brand-logo { width: 40px; height: 40px; font-size: 12px; }

  /* Show hamburger toggle */
  .menu-toggle { display: flex; }

  /* Override desktop display:contents so nav becomes a real box */
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    background: var(--dark-2);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
  }
  .main-nav.open { transform: translateX(0); }

  /* Nav list becomes vertical */
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 4px;
  }
  .nav-list > li > a {
    font-size: 17px;
    padding: 14px 16px;
    justify-content: flex-start;
    border-radius: 12px;
  }
  .nav-live { justify-content: center !important; margin-top: 16px; }

  /* Overlay backdrop */
  .main-nav::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .main-nav.open::before { opacity: 1; pointer-events: auto; }

  .grid-4, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tv-wrap { grid-template-columns: 1fr; gap: 30px; }
  .tv-programs { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { height: min(70vh, 620px); }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .grid-4, .grid-3, .grid-2, .video-grid { grid-template-columns: 1fr; }
  .tv-programs { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-nav { display: none; }
  .hero { min-height: 420px; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
