/* ================================================================
   موقع فضيلة الشيخ محمد العطار — الهوية البصرية
   أخضر عميق + ذهبي + ورق عاجي، مستوحاة من الشعار ومكتبة الشيخ
   ================================================================ */
:root {
  --bg: #f7f2e7;
  --bg-2: #efe7d4;
  --surface: #fffdf8;
  --surface-2: #f3ecdc;
  --ink: #1b2622;
  --ink-2: #4a524c;
  --muted: #7a7867;
  --line: #e3d8bf;
  --green: #0f3b33;
  --green-2: #164c42;
  --green-deep: #0a2a24;
  --gold: #b88a2e;
  --gold-2: #d9b464;
  --gold-soft: #f1e2bb;
  --accent-ink: #0f3b33;  /* نص على خلفية ذهبية فاتحة */
  --on-dark: #f4ecd8;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 8px 24px -12px rgba(40, 30, 10, .18);
  --shadow-lg: 0 24px 60px -24px rgba(10, 42, 36, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Amiri', 'Noto Naskh Arabic', serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d9b464' stroke-width='1'%3E%3Crect x='30' y='30' width='36' height='36'/%3E%3Crect x='30' y='30' width='36' height='36' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0h18M0 0v18M96 0h-18M96 0v18M0 96h18M0 96v-18M96 96h-18M96 96v-18'/%3E%3Cpath d='M48 0v12M48 96v-12M0 48h12M96 48h-12'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1714;
  --bg-2: #0f1f1b;
  --surface: #12231f;
  --surface-2: #172c27;
  --ink: #efe7d3;
  --ink-2: #c9c1ac;
  --muted: #8f9a90;
  --line: #243b35;
  --green: #0c2f29;
  --green-2: #15463c;
  --green-deep: #071a16;
  --gold: #d9b464;
  --gold-2: #e8cb86;
  --gold-soft: #2c3526;
  --accent-ink: #e8cb86;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1714; --bg-2: #0f1f1b; --surface: #12231f; --surface-2: #172c27;
    --ink: #efe7d3; --ink-2: #c9c1ac; --muted: #8f9a90; --line: #243b35;
    --green: #0c2f29; --green-2: #15463c; --green-deep: #071a16;
    --gold: #d9b464; --gold-2: #e8cb86; --gold-soft: #2c3526; --accent-ink: #e8cb86;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .72em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1d1405; box-shadow: 0 6px 18px -8px rgba(184, 138, 46, .8); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(217, 180, 100, .45); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(217, 180, 100, .12); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .45em 1em; font-size: .88rem; }

/* ---------- الرأس ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold-2); object-fit: cover; background: #111; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: .15s; }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.active { color: var(--accent-ink); background: var(--gold-soft); font-weight: 600; }
.header-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); transition: .15s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.search-bar { border-top: 1px solid var(--line); background: var(--surface); display: none; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 10px; padding: 14px 0; }
.search-input {
  flex: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); outline: none; min-width: 0;
}
.search-input:focus { border-color: var(--gold); }

/* ---------- البطل ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(217, 180, 100, .16), transparent 60%),
    radial-gradient(700px 500px at 90% 110%, rgba(22, 76, 66, .9), transparent 60%),
    linear-gradient(160deg, var(--green-2), var(--green-deep));
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .09; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.verse {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-family: var(--font-head); font-size: 1.25rem; color: var(--gold-2);
  padding: 10px 22px; border: 1px solid rgba(217, 180, 100, .3); border-radius: 12px;
  background: rgba(0, 0, 0, .12);
}
.verse small { font-family: var(--font-body); font-size: .75rem; color: rgba(244, 236, 216, .6); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 22px 0 14px; }
.hero h1 span { color: var(--gold-2); display: block; }
.hero .lead { font-size: 1.1rem; color: rgba(244, 236, 216, .82); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(217, 180, 100, .2); }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold-2); line-height: 1.1; }
.hero-stats span { font-size: .88rem; color: rgba(244, 236, 216, .7); }

.hero-figure { position: relative; justify-self: center; width: min(400px, 100%); }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden;
  border: 3px solid var(--gold-2); box-shadow: var(--shadow-lg), 0 0 0 10px rgba(217, 180, 100, .1);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 26, 22, .75)); }
.hero-badge {
  position: absolute; inset-inline-start: -28px; bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: 290px;
  background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.hero-badge .play { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--gold-2); display: grid; place-items: center; }
.hero-badge small { color: var(--muted); font-size: .75rem; display: block; }
.hero-badge b { font-size: .9rem; display: block; line-height: 1.5; }

/* ---------- الأقسام ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); margin-top: 4px; }
.link-more { color: var(--gold); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { gap: 10px; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }

/* ---------- الأغلفة المصممة ---------- */
.cover {
  position: relative; overflow: hidden; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 120%, var(--green-2), var(--green-deep) 70%);
  color: var(--gold-2); isolation: isolate;
}
.cover::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .14; z-index: -1; }
.cover::after {
  content: ""; position: absolute; inset: 12px; z-index: -1;
  border: 1px solid rgba(217, 180, 100, .35); border-radius: 120px 120px 8px 8px;
}
.cover.v1 { background: radial-gradient(circle at 50% 120%, #1d3f63, #0b1e33 70%); }
.cover.v2 { background: radial-gradient(circle at 50% 120%, #5c2230, #2a0e16 70%); }
.cover.v3 { background: radial-gradient(circle at 50% 120%, #5a4020, #2a1c0c 70%); }
.cover.v4 { background: radial-gradient(circle at 50% 120%, #2d4a3a, #11231a 70%); }
.cover-title { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.5; padding: 30px 34px 20px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cover.has-img::before, .cover.has-img::after { display: none; }

/* ---------- بطاقة السلسلة ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.series-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s ease;
}
.series-card:hover { transform: translateY(-4px); border-color: var(--gold-2); box-shadow: var(--shadow-lg); }
.series-card .cover { aspect-ratio: 16 / 10; }
.series-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.series-card h3 { font-size: 1.35rem; }
.series-card p { color: var(--ink-2); font-size: .93rem; line-height: 1.75; }
.chip {
  align-self: flex-start; display: inline-block; font-size: .78rem; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold);
}
.meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .84rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; }

/* ---------- بطاقة الدرس ---------- */
.lesson-card { display: flex; flex-direction: column; gap: 12px; }
.lesson-card .thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.lesson-card .thumb .cover { position: absolute; inset: 0; }
.lesson-card .thumb .cover::after { inset: 8px; border-radius: 70px 70px 6px 6px; }
.thumb-series { font-size: .72rem; color: rgba(244, 236, 216, .75); font-family: var(--font-body); }
.thumb-ep { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.3; display: block; }
.thumb-sec { font-size: .8rem; color: var(--on-dark); opacity: .85; font-family: var(--font-body); }
.play-badge {
  position: absolute; inset-inline-end: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-2); color: #1d1405;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); transition: .2s; z-index: 2;
}
.play-badge svg { width: 16px; height: 16px; margin-inline-start: -2px; }
.lesson-card:hover .play-badge { transform: scale(1.12); }
.lesson-card:hover .thumb { border-color: var(--gold-2); }
.lesson-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.6; }
.lesson-card:hover h3 { color: var(--gold); }
.lesson-card .sub { color: var(--muted); font-size: .84rem; display: flex; gap: 8px; flex-wrap: wrap; }
.lesson-card .sub a:hover { color: var(--gold); }
.watched-tag {
  position: absolute; inset-inline-start: 10px; top: 10px; z-index: 2; font-size: .72rem; font-weight: 600;
  background: rgba(7, 26, 22, .8); color: var(--gold-2); padding: 2px 10px; border-radius: 999px; display: none;
}
.is-watched .watched-tag { display: block; }

/* ---------- التصنيفات ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat {
  position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: .2s; overflow: hidden;
}
.cat::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 110px; height: 110px; background: var(--pattern); opacity: .35; border-radius: 50%; }
.cat:hover { border-color: var(--gold); transform: translateY(-2px); }
.cat h3 { font-size: 1.3rem; }
.cat p { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.cat b { color: var(--gold); font-size: .82rem; display: block; margin-top: 10px; }

/* ---------- تابع ---------- */
.continue { display: none; }
.continue.show { display: block; }
.continue-card {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--gold-2); box-shadow: var(--shadow);
}
.continue-card .icon { width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.continue-card small { color: var(--muted); display: block; font-size: .8rem; }
.continue-card b { display: block; }
.continue-card .btn { margin-inline-start: auto; }

/* ---------- شريط تيليجرام ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 48px; color: var(--on-dark);
  background: linear-gradient(135deg, var(--green-2), var(--green-deep));
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .1; }
.cta > * { position: relative; }
.cta h2 { font-size: 2rem; color: var(--gold-2); }
.cta p { color: rgba(244, 236, 216, .8); margin-top: 6px; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- رأس الصفحات الداخلية ---------- */
.page-head {
  position: relative; overflow: hidden; color: var(--on-dark); padding: 56px 0 50px;
  background: linear-gradient(160deg, var(--green-2), var(--green-deep));
}
.page-head::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .08; }
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--gold-2); }
.page-head p { color: rgba(244, 236, 216, .8); margin-top: 8px; max-width: 46em; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: rgba(244, 236, 216, .6); margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-2); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.filters a:hover { border-color: var(--gold); }
.filters a.active { background: var(--green); color: var(--gold-2); border-color: var(--green); }

/* ---------- صفحة السلسلة ---------- */
.series-hero { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; }
.series-hero .cover { aspect-ratio: 3 / 4; border-radius: 18px; border: 2px solid var(--gold-2); box-shadow: var(--shadow-lg); }
.series-hero .cover-title { font-size: 1.6rem; }
.series-facts { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; color: rgba(244, 236, 216, .85); font-size: .92rem; }
.series-facts span { display: inline-flex; gap: 8px; align-items: center; }
.series-facts svg { width: 17px; height: 17px; color: var(--gold-2); }
.progress { margin-top: 20px; max-width: 420px; display: none; }
.progress.show { display: block; }
.progress-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; }
.progress small { color: rgba(244, 236, 216, .7); font-size: .82rem; }

.episode-list { display: flex; flex-direction: column; gap: 10px; }
.sec-title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 30px 0 14px; color: var(--accent-ink); }
.sec-title:first-child { margin-top: 0; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.episode {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: .15s;
}
.episode:hover { border-color: var(--gold-2); transform: translateX(-3px); }
.ep-num {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; background: var(--gold-soft); color: var(--gold);
}
.episode.is-watched .ep-num { background: var(--green); color: var(--gold-2); }
.ep-body { flex: 1; min-width: 0; }
.ep-body b { display: block; font-weight: 600; }
.ep-body small { color: var(--muted); font-size: .82rem; }
.ep-play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.ep-play svg { width: 14px; height: 14px; }
.episode:hover .ep-play { background: var(--gold-2); color: #1d1405; border-color: var(--gold-2); }
.ep-check { display: none; color: var(--accent-ink); font-size: .78rem; font-weight: 600; }
.episode.is-watched .ep-check { display: inline; }

.layout-2 { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-box h3 { font-size: 1.2rem; margin-bottom: 12px; }
.side-box + .side-box { margin-top: 20px; }

/* ---------- صفحة الدرس ---------- */
.lesson-page { padding: 32px 0 72px; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-card { display: grid; place-items: center; aspect-ratio: auto; min-height: 340px; }
.player-card::after { inset: 16px; border-radius: 200px 200px 12px 12px; }
.pc-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; width: min(560px, 100%); }
.pc-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(217, 180, 100, .14); border: 1px solid rgba(217, 180, 100, .45); }
.pc-icon svg { width: 34px; height: 34px; color: var(--gold-2); }
.pc-series { font-size: .85rem; color: rgba(244, 236, 216, .7); }
.pc-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-2); line-height: 1.4; margin-bottom: 8px; }
.pc-note { color: rgba(244, 236, 216, .6); font-size: .8rem; }
.pc-audio { width: 100%; }
.kind-tag {
  position: absolute; inset-inline-start: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; background: rgba(7, 26, 22, .78); color: var(--gold-2); padding: 3px 10px; border-radius: 999px;
}
.kind-tag svg { width: 13px; height: 13px; }
.series-card .cover .kind-tag { bottom: 14px; inset-inline-start: 14px; }
.thumb-icon { width: 30px; height: 30px; color: var(--gold-2); opacity: .9; margin: 0 auto 4px; display: block; }
.lesson-title { margin: 22px 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lesson-series { color: var(--gold); font-weight: 600; }
.lesson-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin: 10px 0 18px; }
.lesson-meta span { display: inline-flex; gap: 6px; align-items: center; }
.lesson-meta svg { width: 16px; height: 16px; }
.lesson-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--line); }
.lesson-desc { margin-top: 20px; white-space: pre-line; color: var(--ink-2); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pn { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: .15s; }
.pn:hover { border-color: var(--gold); }
.pn small { color: var(--muted); font-size: .8rem; display: block; }
.pn b { font-weight: 600; font-size: .95rem; }
.pn.next { text-align: left; }
.pn.empty { visibility: hidden; }

.playlist { position: relative; max-height: 560px; overflow: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; }
.pl-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; transition: .15s; }
.pl-item:hover { background: var(--surface-2); }
.pl-item.current { background: var(--gold-soft); }
.pl-item .ep-num { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 10px; }
.pl-item.current .ep-num { background: var(--gold); color: #1d1405; }
.pl-item b { font-weight: 500; font-size: .9rem; display: block; line-height: 1.5; }
.pl-item small { color: var(--muted); font-size: .76rem; }
.pl-item.is-watched .ep-num { background: var(--green); color: var(--gold-2); }
.pl-sec { font-size: .8rem; color: var(--gold); font-weight: 700; padding: 10px 10px 4px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 100;
  background: var(--green); color: var(--gold-2); padding: 10px 22px; border-radius: 999px; transition: .3s; box-shadow: var(--shadow-lg);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- عن الشيخ ---------- */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.about-body { font-size: 1.08rem; white-space: pre-line; color: var(--ink-2); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
.form input, .form textarea {
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); outline: none; font-weight: 400;
}
.form input:focus, .form textarea:focus { border-color: var(--gold); }
.alert { padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); color: var(--accent-ink); font-weight: 600; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); font-size: 1.5rem; margin-bottom: 8px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; }
.pagination .current { background: var(--green); color: var(--gold-2); border-color: var(--green); }

/* ---------- التذييل ---------- */
.site-footer { background: var(--green-deep); color: rgba(244, 236, 216, .75); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .05; }
.footer-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.site-footer h4 { color: var(--gold-2); font-size: 1.2rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold-2); }
.footer-brand b { font-family: var(--font-head); font-size: 1.4rem; color: var(--on-dark); }
.footer-bottom { position: relative; border-top: 1px solid rgba(217, 180, 100, .15); padding: 18px 0; font-size: .85rem; text-align: center; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(217, 180, 100, .3); color: var(--gold-2); }
.social-row a:hover { background: var(--gold-2); color: var(--green-deep); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1000px) {
  .layout-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .arch { max-width: 340px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 40px; }
  .hero-figure { width: min(320px, 86%); }
  .hero-badge { inset-inline-start: -8px; }
  .series-hero { grid-template-columns: 1fr; }
  .series-hero .cover { max-width: 240px; }
  .cta { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1.1rem; }
  .brand-name small { display: none; }
  .header-inner { gap: 10px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 1.6rem; }
  .section { padding: 52px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .prev-next { grid-template-columns: 1fr; }
  .continue-card { flex-wrap: wrap; }
  .continue-card .btn { margin-inline-start: 0; width: 100%; justify-content: center; }
  .verse { font-size: 1.05rem; }
}

/* ---------- شريط الإعلان ---------- */
.announce { font-size: .92rem; font-weight: 600; }
.announce-gold { background: var(--gold); color: #1d1a12; }
.announce-green { background: var(--green); color: #fff; }
.announce-red { background: #a3302a; color: #fff; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 8px; text-align: center; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.announce-x { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .75; padding: 0 6px; }
.announce-x:hover { opacity: 1; }

/* ---------- الصفحات المخصصة ---------- */
.prose { max-width: 760px; font-size: 1.08rem; line-height: 2; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose blockquote { margin: 0 0 1em; padding: 12px 18px; border-inline-start: 4px solid var(--gold); background: var(--surface-2, rgba(0,0,0,.03)); border-radius: 8px; font-family: Amiri, serif; font-size: 1.2rem; }

/* زر تحميل الصوت */
.dl-btn { flex: none; white-space: nowrap; }
.player-card .dl-btn { margin-top: 12px; }
