/* ═══════════════════════════════════════════════════════════════
   السيرة النبوية الشريفة — Ultra Modern Islamic UI
   نظام التصميم الشامل
   ═══════════════════════════════════════════════════════════════ */

/* Fonts loaded via <link> in index.html to avoid duplicate requests */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Palette — Light Mode */
  --gold:          #D4AF37;
  --gold-light:    #F0D878;
  --gold-dark:     #A07820;
  --gold-glow:     rgba(212,175,55,0.35);
  --emerald:       #0D4A2F;
  --emerald-mid:   #155C3A;
  --emerald-light: #1E7A4E;
  --midnight:      #071A10;
  --ivory:         #F8F6F0;
  --ivory-dark:    #EDE8DC;
  --ivory-mid:     #E5DFD0;
  --cream:         #FAF8F2;
  --text-dark:     #0d1f14;
  --text-mid:      #2c4033;
  --text-muted:    #5a7262;
  --text-light:    #8fa898;
  --card-bg:       rgba(255,255,255,0.96);
  --card-border:   rgba(212,175,55,0.18);
  --shadow-sm:     0 4px 16px rgba(13,74,47,0.10);
  --shadow-md:     0 8px 32px rgba(13,74,47,0.15);
  --shadow-lg:     0 20px 60px rgba(13,74,47,0.18);
  --shadow-gold:   0 8px 32px rgba(212,175,55,0.25);
  --glass-bg:      rgba(255,255,255,0.08);
  --glass-border:  rgba(212,175,55,0.20);
  --nav-bg:        rgba(7,26,16,0.96);
  --section-alt:   #f0ede4;
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     36px;
  --transition:    all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --ivory:         #0d1f14;
  --ivory-dark:    #0a1810;
  --ivory-mid:     #0f2418;
  --cream:         #111f17;
  --section-alt:   #0a1a10;
  --text-dark:     #e8f0ea;
  --text-mid:      #b8ccbe;
  --text-muted:    #7a9e86;
  --text-light:    #5a7a64;
  --card-bg:       rgba(13,40,22,0.95);
  --card-border:   rgba(212,175,55,0.22);
  --shadow-sm:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.6);
  --nav-bg:        rgba(5,16,9,0.98);
}

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

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

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  direction: rtl;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  line-height: 1.7;
}

::selection { background: var(--gold-glow); color: var(--emerald); }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ivory-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold), var(--gold-dark));
  border-radius: 4px;
}

/* ─── Reading Progress Bar ──────────────────────────────────── */
#reading-progress {
  position: fixed; top: 0; right: 0; left: 0; z-index: 2000;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald-light), var(--gold));
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  height: 68px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
nav.scrolled {
  height: 58px;
  background: rgba(5,16,9,0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-logo {
  font-family: 'Amiri', serif;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-logo::before {
  content: '✦';
  font-size: 0.9rem;
  opacity: 0.7;
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.nav-links {
  display: flex; gap: 0; align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.80);
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(212,175,55,0.18);
  color: var(--gold-light);
}

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

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.theme-toggle:hover {
  background: rgba(212,175,55,0.25);
  transform: rotate(20deg);
}

.nav-search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.nav-search-btn:hover { background: rgba(212,175,55,0.25); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Welcome / Intro Overlay ────────────────────────────────── */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #071A10 0%, #030e07 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 2rem;
  transition: opacity 1s ease, visibility 1s ease;
}
.welcome-overlay.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.welcome-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.welcome-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.welcome-ornament {
  font-family: 'Amiri', serif;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: rgba(212,175,55,0.5);
  margin-bottom: 2rem;
  letter-spacing: 4px;
  animation: fadeInUp 1s ease 0.3s both;
}

.welcome-bismillah {
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  animation: fadeInUp 1s ease 0.6s both;
  text-shadow: 0 0 40px rgba(212,175,55,0.4);
}

.welcome-text {
  font-family: 'Amiri', serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  min-height: 3.5rem;
}

.welcome-sub {
  color: rgba(255,255,255,0.50);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 1.5s both;
}

.welcome-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d1f14;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: 'Cairo', sans-serif;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
  box-shadow: 0 8px 32px rgba(212,175,55,0.4);
}
.welcome-btn.show { opacity: 1; transform: translateY(0); }
.welcome-btn:hover {
  box-shadow: 0 12px 48px rgba(212,175,55,0.6);
  transform: translateY(-2px);
}

/* ─── Shared Section Styles ─────────────────────────────────── */
section { padding: 90px 1.5rem 70px; }
.container { max-width: 1140px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.30);
  color: var(--gold-dark);
  font-size: 0.75rem;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
[data-theme="dark"] .section-badge { color: var(--gold-light); }

.section-title {
  font-family: 'Amiri', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  font-weight: 700;
  line-height: 1.3;
}
[data-theme="dark"] .section-title { color: var(--gold-light); }

.gold-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 1rem auto 1.5rem;
}
.gold-divider::before, .gold-divider::after {
  content: ''; flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.gold-divider span {
  color: var(--gold);
  font-size: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  font-family: 'Tajawal', sans-serif;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── Hero Section ─────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding: 80px 1.5rem 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #041409 0%, #0a2d16 30%, #0F5132 60%, #0a2916 85%, #041409 100%);
  overflow: hidden;
}

.hero-bg-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(212,175,55,0.07) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(30,122,78,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212,175,55,0.05) 0%, transparent 35%);
}

.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(212,175,55,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-ornament {
  position: absolute;
  opacity: 0.06;
  animation: float-ornament 8s ease-in-out infinite;
}
@keyframes float-ornament {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 780px; padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold-light);
  font-size: 0.82rem;
  padding: 8px 24px;
  border-radius: 30px;
  margin-bottom: 2rem;
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 3px;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  font-weight: 700;
  animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-title .gold { color: var(--gold); }
.hero-title .line2 {
  display: block;
  font-size: 0.65em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3em;
  font-family: 'Tajawal', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-verse {
  font-family: 'Amiri', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.25s both;
}

.hero-sub {
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 300;
  animation: fadeInUp 0.8s ease 0.35s both;
}

.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a1a08;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(212,175,55,0.4);
  display: flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.55);
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 15px 36px;
  border-radius: 36px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(212,175,55,0.5);
  color: var(--gold-light);
}

.hero-stats {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-stat-num {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-family: 'Tajawal', sans-serif;
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  font-family: 'Tajawal', sans-serif;
  animation: bounce-indicator 2.5s ease-in-out infinite;
  cursor: pointer;
  z-index: 3;
}
.scroll-indicator svg { width: 20px; opacity: 0.5; }
@keyframes bounce-indicator {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ─── Pattern Background (dark sections) ────────────────────── */
.pattern-bg {
  background-color: var(--emerald);
  position: relative;
}
.pattern-bg::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212,175,55,0.07) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,0.05) 0%, transparent 40%),
    repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(212,175,55,0.025) 28px, rgba(212,175,55,0.025) 29px),
    repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(212,175,55,0.025) 28px, rgba(212,175,55,0.025) 29px);
}
.pattern-bg .container { position: relative; z-index: 1; }

/* ─── Timeline Section ─────────────────────────────────────── */
#timeline { background: var(--ivory-dark); transition: background 0.4s; }
[data-theme="dark"] #timeline { background: var(--ivory-dark); }

.timeline-wrap { position: relative; padding: 1.5rem 0 1rem; }
.timeline-line {
  position: absolute;
  right: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform: translateX(50%);
}

.tl-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tl-item.visible { opacity: 1; transform: translateY(0); }
.tl-item:nth-child(even) { flex-direction: row-reverse; }

.tl-card {
  flex: 1;
  max-width: calc(50% - 3rem);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tl-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
}
.tl-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,175,55,0.45);
}

.tl-era {
  display: inline-block;
  background: rgba(13,74,47,0.08);
  color: var(--emerald-light);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}
[data-theme="dark"] .tl-era { background: rgba(212,175,55,0.1); color: var(--gold-light); }

.tl-year {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-family: 'Tajawal', sans-serif;
}

.tl-card h3 {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}
[data-theme="dark"] .tl-card h3 { color: var(--gold-light); }

.tl-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-family: 'Tajawal', sans-serif;
}

.tl-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 1rem;
  color: var(--emerald-light);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(212,175,55,0.4);
  padding-bottom: 1px;
  transition: var(--transition);
}
.tl-more:hover { color: var(--gold); }

.tl-dot {
  position: absolute; right: 50%;
  transform: translateX(50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--ivory-dark), var(--shadow-gold);
  flex-shrink: 0;
  transition: var(--transition);
  color: wheat;
}
.tl-dot:hover { transform: translateX(50%) scale(1.15); }

.tl-empty {
  flex: 1; max-width: calc(50% - 3rem);
  visibility: hidden;
}

/* ─── Listen / Audio Section ────────────────────────────────── */
#listen { background: var(--emerald); }
#listen .section-title { color: var(--gold); }
#listen .section-sub { color: rgba(255,255,255,0.65); }

.listen-controls {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem;
  margin-bottom: 2rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}

.search-box {
  flex: 1; min-width: 200px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.search-box::placeholder { color: rgba(255,255,255,0.40); }
.search-box:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.filter-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  outline: none; cursor: pointer;
  transition: var(--transition);
}
.filter-select option { background: #0F5132; color: #fff; }
.filter-select:focus { border-color: var(--gold); }

.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.station-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,175,55,0.13);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.station-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.station-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.station-card:hover::after { opacity: 1; }
.station-card.playing {
  background: rgba(212,175,55,0.13);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(212,175,55,0.15);
}

.station-cat {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: 'Tajawal', sans-serif;
}

.station-name {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1rem;
  font-family: 'Tajawal', sans-serif;
}

.station-play {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-family: 'Tajawal', sans-serif;
}
.station-card.playing .station-play { color: var(--gold); }

.play-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  border: 1px solid rgba(212,175,55,0.35);
  flex-shrink: 0;
}
.station-card.playing .play-icon {
  background: var(--gold);
  color: #0a1a08;
  animation: pulse-play 1.5s ease-in-out infinite;
}
@keyframes pulse-play {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}

/* Playing Wave Animation */
.wave-bars {
  display: flex; align-items: flex-end; gap: 2px; height: 16px;
}
.wave-bar {
  width: 3px; background: var(--gold);
  border-radius: 2px;
  animation: wave-bar 0.8s ease-in-out infinite;
}
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
@keyframes wave-bar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ─── Mini Player (Fixed Bottom) ───────────────────────────── */
#mini-player {
  position: fixed;
  bottom: 0; right: 0; left: 0;
  z-index: 900;
  background: rgba(5, 20, 10, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(212,175,55,0.25);
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; gap: 1.2rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
#mini-player.visible { transform: translateY(0); }

.mp-artwork {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mp-info { flex: 1; min-width: 0; }
.mp-label {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  font-family: 'Tajawal', sans-serif;
  text-transform: uppercase;
}
.mp-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

.mp-controls {
  display: flex; align-items: center; gap: 10px;
}
.mp-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,175,55,0.4);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}
.mp-btn:hover { background: rgba(212,175,55,0.2); border-color: var(--gold); }
.mp-btn.main {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: #0a1a08;
  font-size: 1.1rem;
}
.mp-btn.main:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(212,175,55,0.4); }

.mp-vol {
  display: flex; align-items: center; gap: 8px;
}
.mp-vol-icon { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.mp-vol-slider {
  width: 80px; height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none; cursor: pointer;
}
.mp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(212,175,55,0.5);
}

.mp-progress {
  position: absolute; top: 0; right: 0; left: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
}
.mp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--emerald-light));
  width: 0%;
  transition: width 1s linear;
}

.mp-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.mp-close:hover { background: rgba(255,0,0,0.2); color: #fff; border-color: rgba(255,0,0,0.4); }

/* Legacy now-playing (hidden, mini player replaces) */
.now-playing { display: none !important; }

/* ─── Ghazawat Section ─────────────────────────────────────── */
#ghazawat { background: var(--ivory); transition: background 0.4s; }
[data-theme="dark"] #ghazawat { background: var(--ivory); }

.ghazawat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ghaz-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.ghaz-card.visible { opacity: 1; transform: translateY(0); }
.ghaz-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,175,55,0.4);
}

.ghaz-header {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  padding: 1.4rem 1.6rem;
  position: relative; overflow: hidden;
}
.ghaz-header::after {
  content: '';
  position: absolute; top: -30px; left: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(212,175,55,0.06);
}
.ghaz-num {
  position: absolute; top: 10px; left: 14px;
  font-family: 'Amiri', serif;
  font-size: 2.5rem;
  color: rgba(212,175,55,0.18);
  font-weight: 700;
  line-height: 1;
}
.ghaz-header h3 {
  font-family: 'Amiri', serif;
  color: var(--gold);
  font-size: 1.35rem;
  position: relative; z-index: 1;
  margin-bottom: 4px;
}
.ghaz-date {
  color: rgba(255,255,255,0.60);
  font-size: 0.82rem;
  font-family: 'Tajawal', sans-serif;
}
.ghaz-body { padding: 1.3rem 1.6rem; }
.ghaz-row { margin-bottom: 0.9rem; }
.ghaz-lbl {
  font-size: 0.68rem;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Tajawal', sans-serif;
  margin-bottom: 3px;
}
.ghaz-val {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-family: 'Tajawal', sans-serif;
}

/* ─── Sahaba Section (New) ─────────────────────────────────── */
#sahaba { background: var(--section-alt); transition: background 0.4s; }

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

.sahabi-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0; transform: translateY(30px);
  cursor: pointer;
}
.sahabi-card.visible { opacity: 1; transform: translateY(0); }
.sahabi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,175,55,0.5);
}

.sahabi-header {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.sahabi-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(212,175,55,0.08) 0%, transparent 60%);
}
.sahabi-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 2rem;
  position: relative; z-index: 1;
}
.sahabi-title-ar {
  font-family: 'Amiri', serif;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  position: relative; z-index: 1;
  margin-bottom: 3px;
}
.sahabi-nickname {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-family: 'Tajawal', sans-serif;
  position: relative; z-index: 1;
}
.sahabi-body { padding: 1.3rem 1.5rem; }
.sahabi-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-family: 'Tajawal', sans-serif;
  margin-bottom: 1rem;
}
.sahabi-badge {
  display: inline-block;
  background: rgba(13,74,47,0.08);
  color: var(--gold-light);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
}
[data-theme="dark"] .sahabi-badge {
  background: rgba(212,175,55,0.12);
  color: var(--gold-light);
}

/* ─── Shamail Section ─────────────────────────────────────── */
#shamail { background: linear-gradient(160deg, var(--ivory-dark) 0%, var(--ivory-mid) 100%); transition: background 0.4s; }
[data-theme="dark"] #shamail { background: linear-gradient(160deg, var(--ivory-dark) 0%, var(--ivory-mid) 100%); }

.shamail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.3rem;
}

.shamail-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: center;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0; transform: translateY(30px);
  position: relative; overflow: hidden;
}
.shamail-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.shamail-card.visible { opacity: 1; transform: translateY(0); }
.shamail-card:hover { transform: translateY(-5px); border-color: rgba(212,175,55,0.5); }
.shamail-card:hover::after { transform: scaleX(1); }

.shamail-icon {
  width: 65px; height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(13,74,47,0.25);
  transition: var(--transition);
}
.shamail-card:hover .shamail-icon { transform: scale(1.1) rotate(-5deg); }

.shamail-card h3 {
  font-family: 'Amiri', serif;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
[data-theme="dark"] .shamail-card h3 { color: var(--gold-light); }

.shamail-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-family: 'Tajawal', sans-serif;
}

/* ─── Hadith Section ─────────────────────────────────────── */

#hadith .section-title { color: var(--gold); }
#hadith .section-sub { color: rgba(255,255,255,0.60); }

.hadith-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.hadith-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.16);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
  opacity: 0; transform: translateY(30px);
}
.hadith-card.visible { opacity: 1; transform: translateY(0); }
.hadith-card::before {
  content: '❝';
  position: absolute; top: -12px; right: 16px;
  font-size: 6rem;
  color: rgba(212,175,55,0.06);
  line-height: 1; pointer-events: none;
}
.hadith-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(212,175,55,0.45);
  transform: translateY(-4px);
}

.hadith-text {
  font-family: 'Amiri', serif;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.93);
  line-height: 2;
  margin-bottom: 1.3rem;
  position: relative; z-index: 1;
}

.hadith-meta {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(212,175,55,0.15);
  padding-top: 0.9rem;
  flex-wrap: wrap; gap: 0.5rem;
}
.hadith-rawi {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-family: 'Tajawal', sans-serif;
}
.hadith-source {
  background: rgba(212,175,55,0.13);
  color: var(--gold-light);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Tajawal', sans-serif;
}

/* ─── Daily Section ─────────────────────────────────────── */
#daily { background: var(--ivory); transition: background 0.4s; }

.daily-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 16px 60px rgba(13,74,47,0.10);
  position: relative; overflow: hidden;
}
.daily-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
}
.daily-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(13,74,47,0.05) 0%, transparent 70%);
}

.daily-type {
  display: inline-block;
  background: rgba(13,74,47,0.07);
  color: var(--emerald);
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 1.8rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  position: relative; z-index: 1;
}
[data-theme="dark"] .daily-type {
  background: rgba(212,175,55,0.12);
  color: var(--gold-light);
}

.daily-text {
  font-family: 'Amiri', serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--text-dark);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}

.daily-source {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: 'Tajawal', sans-serif;
  position: relative; z-index: 1;
}

.daily-actions {
  display: flex; gap: 1rem; justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

.daily-btn {
  background: var(--emerald);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.daily-btn:hover {
  background: var(--emerald-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.daily-btn-share {
  background: rgba(212,175,55,0.12);
  color: var(--gold-dark);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.daily-btn-share:hover {
  background: rgba(212,175,55,0.22);
  transform: translateY(-2px);
}

/* ─── Search Section ─────────────────────────────────────── */
#search-sec { background: var(--ivory-dark); transition: background 0.4s; }

.search-big {
  display: flex; gap: 1rem; align-items: center;
  background: var(--card-bg);
  border-radius: 50px;
  padding: 8px 8px 8px 24px;
  border: 2px solid rgba(212,175,55,0.22);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  transition: var(--transition);
}
.search-big:focus-within {
  border-color: rgba(212,175,55,0.55);
  box-shadow: var(--shadow-gold);
}
.search-big input {
  flex: 1; border: none; outline: none;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  background: transparent;
  color: var(--text-dark);
}
.search-big input::placeholder { color: var(--text-light); }
.search-big button {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 11px 26px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.search-big button:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

.search-results { max-width: 720px; margin: 0 auto; }

.result-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--card-border);
  display: flex; align-items: flex-start; gap: 14px;
  transition: var(--transition);
  animation: fadeInUp 0.4s ease both;
}
.result-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }

.result-type {
  background: rgba(13,74,47,0.08);
  color: var(--emerald);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
[data-theme="dark"] .result-type {
  background: rgba(212,175,55,0.12);
  color: var(--gold-light);
}
.result-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-family: 'Tajawal', sans-serif;
}
.result-text mark {
  background: rgba(212,175,55,0.25);
  color: var(--gold-dark);
  border-radius: 3px;
  padding: 0 2px;
}

/* ─── Toast Notification ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 90px; right: 1.5rem;
  z-index: 1100;
  display: flex; flex-direction: column; gap: 0.6rem;
  pointer-events: none;
}
.toast {
  background: rgba(7,26,16,0.96);
  border: 1px solid rgba(212,175,55,0.3);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(12px);
  animation: slideInToast 0.4s ease, fadeOutToast 0.4s ease 2.6s forwards;
  pointer-events: auto;
  max-width: 300px;
}
.toast-icon { font-size: 1.1rem; }
@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOutToast {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: linear-gradient(160deg, #041409 0%, #071e0d 100%);
  padding: 4rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(212,175,55,0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1140px; margin-left: auto; margin-right: auto;
}

.footer-logo {
  font-family: 'Amiri', serif;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.footer-about {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  line-height: 1.85;
  font-family: 'Tajawal', sans-serif;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-social {
  display: flex; gap: 0.7rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.footer-social a:hover {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-title {
  font-family: 'Amiri', serif;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  transition: color 0.2s;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before {
  content: '›';
  color: var(--gold);
  opacity: 0.5;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0 auto 1.5rem;
  max-width: 1140px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.28);
  font-size: 0.82rem;
  font-family: 'Tajawal', sans-serif;
  line-height: 1.8;
  max-width: 1140px;
  margin: 0 auto;
}
.footer-salah {
  color: rgba(212,175,55,0.5);
  font-family: 'Amiri', serif;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* ─── Utility Animations ─────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-about { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; right: 0; left: 0;
    background: rgba(5,16,9,0.99);
    padding: 1rem;
    border-bottom: 1px solid rgba(212,175,55,0.18);
    gap: 0.2rem; z-index: 999;
    backdrop-filter: blur(20px);
  }
  .nav-links.open a { padding: 12px 16px; border-radius: var(--radius-sm); }

  section { padding: 70px 1rem 50px; }

  .timeline-line { right: 20px; transform: none; }
  .tl-item, .tl-item:nth-child(even) {
    flex-direction: column;
    padding-right: 56px;
  }
  .tl-card { max-width: 100%; }
  .tl-empty { display: none; }
  .tl-dot { right: 0; left: auto; transform: none; top: 0; }

  .daily-card { padding: 2rem 1.5rem; }
  .daily-text { font-size: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }

  .mp-vol { display: none; }
  #mini-player { padding: 0.8rem 1rem; gap: 0.8rem; }

  .hero-stats { gap: 1rem; }
  .hero-stat { padding: 0.7rem 1rem; }

  .search-big { padding: 6px 6px 6px 16px; }
  .search-big button { padding: 10px 18px; }
}

@media (max-width: 480px) {
  .ghazawat-grid { grid-template-columns: 1fr; }
  .sahaba-grid { grid-template-columns: 1fr; }
  .shamail-grid { grid-template-columns: repeat(2, 1fr); }
  .hadith-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}

      body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-color: #0c0d10;
        z-index: -2;
      }
      
      body::after {
        content: "";
        position: fixed;
        inset: 0;
        background-image: radial-gradient(ellipse 2px 2px at 50% 50%, #d4af37, transparent);
        background-size: 45px 45px;
        opacity: 0.035;
        z-index: -1;
        pointer-events: none;
      }
      
      .gold-glow {
        text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
      }
      
      .card-glow:hover {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.12);
        border-color: rgba(212, 175, 55, 0.3) !important;
        transform: translateY(-4px);
      }

      svg {
        direction: rtl;
      }
    
/* ═══════════════════════════════════════════════════════════════
   VIDEOS SECTION — السيرة النبوية الكبرى كاملة
   ═══════════════════════════════════════════════════════════════ */
#videos { padding: 5rem 0; }

.videos-controls{
  display:flex; flex-wrap:wrap; gap:1rem;
  max-width: 880px; margin: 0 auto 2.5rem;
  align-items:stretch;
}
.videos-search-wrap{ position:relative; flex:1 1 20px; }
.videos-search-icon{
  position:absolute; right:1rem; top:50%; transform:translateY(-50%);
  width:1.15rem; height:1.15rem; color: var(--gold); opacity:.8;
  pointer-events:none;
}
.videos-search-input{ padding-right:2.75rem !important; width:100%; }
#videos-local-sort{ flex:0 0 auto; min-width: 220px; }

.videos-sync-status{
  display:flex; justify-content:space-between; align-items:center;
  gap:1rem; max-width: 880px; margin: 0 auto 1.5rem;
  padding:.75rem 1rem;
  background: rgba(212,175,55,.06);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: .9rem;
  font-size: .8rem; color: #cbd0d6;
}
.videos-sync-left{ display:inline-flex; align-items:center; gap:.55rem; }
.videos-sync-dot{ color: var(--gold); }
.videos-sync-live{
  font-family: monospace; font-size:.7rem; color: var(--gold);
  border:1px solid rgba(212,175,55,.3);
  padding:.15rem .55rem; border-radius:999px;
}

.videos-grid{
  display:grid; gap:3rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.videos-load-more{ display:flex; justify-content:center; padding-top:2.5rem; }
.btn-load-more{
  display:inline-flex; align-items:center; gap:.6rem;
  background: rgba(212,175,55,.1);
  color: var(--gold);
  border:1px solid rgba(212,175,55,.35);
  padding: .9rem 2rem; border-radius: .9rem;
  font-size:.9rem; font-weight:600; cursor:pointer;
  transition: all .25s ease;
}
.btn-load-more:hover{
  background: rgba(212,175,55,.2);
  border-color: rgba(212,175,55,.6);
  transform: translateY(-2px);
}
.btn-load-more:active{ transform: translateY(0) scale(.98); }

.videos-empty{
  padding: 4rem 1rem; text-align:center;
  color:#8a8f99; font-family: var(--font-serif, serif);
  font-size: 1.1rem;
}
.videos-empty-reset{
  background:none; border:none; color: var(--gold);
  border-bottom: 1px dashed rgba(212,175,55,.4);
  margin-right:.4rem; cursor:pointer; padding:0 .15rem;
  transition: color .2s;
}
.videos-empty-reset:hover{ color:#fff; }

@media (max-width: 640px){
  #videos{ padding: 3.5rem 0; }
  .videos-grid{ grid-template-columns: 1fr; gap:1.25rem; }
  .videos-controls{ flex-direction:column; }
  #videos-local-sort{ width:100%; }
  /* #videos-local-search{ width:10%; } */
}

/* Video card */
.video-card{
  position:relative;
  background: rgba(18,19,24,.55);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1.1rem;
  overflow:hidden;
  padding: 1rem;
  display:flex; flex-direction:column; gap:1rem;
  cursor:pointer;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.6);
}
.video-card:hover{
  transform: translateY(-4px);
  border-color: rgba(212,175,55,.4);
  box-shadow: 0 18px 40px -18px rgba(212,175,55,.25);
}
.video-card-thumb{
  position:relative;
  aspect-ratio: 16/9;
  border-radius: .8rem;
  overflow:hidden;
  background:#16181e;
  border:1px solid rgba(255,255,255,.05);
}
.video-card-thumb::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent 55%);
  z-index:1; pointer-events:none;
}
.video-card-thumb img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .6s ease;
}
.video-card:hover .video-card-thumb img{ transform: scale(1.06); }

.video-card-badge{
  position:absolute; top:.65rem; right:.65rem; z-index:2;
  background: var(--gold); color:#000;
  font-size:.68rem; font-weight:800;
  padding:.25rem .65rem; border-radius:999px;
  letter-spacing:.02em;
}
.video-card-duration{
  position:absolute; bottom:.5rem; left:.5rem; z-index:2;
  background: rgba(12,13,16,.95);
  color:#fff; font-size:.68rem; font-weight:600;
  padding:.15rem .45rem; border-radius:.3rem;
  border:1px solid rgba(255,255,255,.1);
  font-family: monospace;
}
.video-card-play{
  position:absolute; inset:0; z-index:2;
  display:flex; align-items:center; justify-content:center;
  opacity:0; background: rgba(0,0,0,.4);
  transition: opacity .3s ease;
}
.video-card:hover .video-card-play{ opacity:1; }
.video-card-play-btn{
  width:3.2rem; height:3.2rem; border-radius:50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center;
  transform: scale(.85);
  transition: transform .3s ease;
}
.video-card:hover .video-card-play-btn{ transform: scale(1); }
.video-card-play-btn svg{ width:1.3rem; height:1.3rem; color:#fff; margin-right:-2px; }

.video-card-body{ display:flex; flex-direction:column; gap:.55rem; text-align:right; }
.video-card-meta{
  display:flex; justify-content:space-between; align-items:center;
  font-size:.68rem; color:#888c95; font-family: monospace;
}
.video-card-author{ color: var(--gold); font-weight:700; font-family: var(--font-serif, serif); }
.video-card-title{
  font-family: var(--font-serif, serif);
  font-size: 1rem; font-weight:600; color:#fff;
  line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
  transition: color .25s;
}
.video-card:hover .video-card-title{ color: var(--gold); }
.video-card-desc{
  font-size:.78rem; color:#a8acb3;
  font-family: var(--font-serif, serif);
  line-height:1.7;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden;
}
.video-card-footer{
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid rgba(255,255,255,.06);
  padding-top:.7rem; margin-top:.2rem;
  font-size:.72rem; color: rgba(212,175,55,.75);
  transition: color .25s;
}
.video-card:hover .video-card-footer{ color: var(--gold); }
