/* =====================================================
   بوصلة٢٤ (Bosla24) — نظام التصميم
   هوية: بوصلة ملاحية · كحلي عميق + أحمر إخباري + ذهبي
   ===================================================== */

:root {
  /* الألوان الأساسية */
  --brand: #c8102e;
  --brand-dark: #9b0c23;
  --brand-contrast: #ffffff;
  --navy: #0b2c45;
  --gold: #d6a756;
  --ink: #121212;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e4e2de;
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-alt: #f1efeb;
  --dark-band: #0b2c45;
  --dark-band-ink: #f5f5f5;

  /* ألوان الأقسام */
  --cat-politics: #1f5fa8;
  --cat-economy: #1c7d4d;
  --cat-sports: #d8590f;
  --cat-tech: #6742c1;
  --cat-health: #c2185b;
  --cat-culture: #0d7f8c;
  --cat-science: #8a6d00;
  --cat-opinion: #444444;

  --up: #1c7d4d;
  --down: #c62828;

  /* الخطوط */
  --font-head: "Cairo", "Segoe UI", "Tahoma", sans-serif;
  --font-body: "Tajawal", "Segoe UI", "Tahoma", sans-serif;

  /* الأبعاد */
  --container: 1240px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07);
  --shadow-lift: 0 4px 10px rgba(0,0,0,.10), 0 16px 40px rgba(0,0,0,.12);
  --speed: .25s;
}

[data-theme="dark"] {
  --ink: #f2f0ec;
  --ink-soft: #d3d0ca;
  --muted: #9d9a94;
  --line: #2b2e33;
  --bg: #101214;
  --surface: #181b1f;
  --surface-alt: #1f2328;
  --dark-band: #0b0c0e;
  --dark-band-ink: #f5f5f5;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.45);
  --shadow-lift: 0 4px 10px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.55);
}

/* ---------- إعادة ضبط ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  transition: background var(--speed), color var(--speed);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.35; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* =====================================================
   الشريط العلوي
   ===================================================== */
.topbar {
  background: var(--dark-band); color: var(--dark-band-ink);
  font-size: .8rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar .dates { display: flex; gap: 14px; align-items: center; opacity: .9; }
.topbar .dates .sep { opacity: .4; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: inherit; padding: 3px 12px; border-radius: 999px; font-size: .75rem;
  transition: background var(--speed);
}
.chip:hover { background: rgba(255,255,255,.18); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,77,77,.55); }
  60% { box-shadow: 0 0 0 7px rgba(255,77,77,0); }
}

/* =====================================================
   الترويسة
   ===================================================== */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 18px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 54px; height: 54px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--navy);
}
.logo-mark .brand-mark { width: 100%; height: 100%; }
.footer .logo-mark, .video-band .logo-mark { color: #fff; }
[data-theme="dark"] .logo-mark { color: #cfe0ee; }
.logo-text h1, .logo-text .brand-word {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 900;
  letter-spacing: -.5px; line-height: 1.25; display: block; margin: 0;
}
.logo-text h1 b, .logo-text .brand-word b { color: var(--brand); }
.logo-text p { margin: 0; font-size: .78rem; color: var(--muted); }
.masthead-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink);
  transition: all var(--speed);
}
.icon-btn:hover { background: var(--surface-alt); transform: translateY(-1px); }
.btn-primary {
  background: var(--brand); color: #fff; border: none;
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  font-family: var(--font-head);
  transition: all var(--speed); box-shadow: 0 4px 14px rgba(200,16,46,.3);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* =====================================================
   شريط التنقل
   ===================================================== */
.mainnav {
  background: var(--surface); border-bottom: 3px solid var(--brand);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.mainnav-inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: 14px 16px; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: color var(--speed), border-color var(--speed);
}
.mainnav a:hover, .mainnav a.active { color: var(--brand); border-color: var(--brand); }
.mainnav a.hot { color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }

/* =====================================================
   شريط الأخبار العاجلة
   ===================================================== */
.breaking {
  background: var(--brand); color: #fff; overflow: hidden;
  display: flex; align-items: stretch;
}
.breaking-label {
  background: var(--brand-dark); font-family: var(--font-head); font-weight: 900;
  padding: 10px 18px; display: flex; align-items: center; gap: 8px;
  white-space: nowrap; font-size: .9rem; z-index: 2;
  box-shadow: 4px 0 12px rgba(0,0,0,.2);
}
.ticker { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap; padding-inline: 24px;
  animation: ticker 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-size: .92rem; opacity: .95; }
.ticker-track span::before { content: "●"; margin-inline-end: 10px; font-size: .6rem; vertical-align: 2px; opacity: .7; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* =====================================================
   شريط الأسواق
   ===================================================== */
.markets {
  background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: .82rem; overflow-x: auto; scrollbar-width: none;
}
.markets::-webkit-scrollbar { display: none; }
.markets-inner { display: flex; gap: 28px; padding-block: 9px; align-items: center; white-space: nowrap; }
.market-item { display: flex; gap: 8px; align-items: baseline; }
.market-item .name { color: var(--muted); font-weight: 500; }
.market-item .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.delta { font-weight: 700; font-size: .78rem; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* =====================================================
   البطاقات والصور
   ===================================================== */
.thumb {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16/9; background: var(--surface-alt);
}
.thumb.tall { aspect-ratio: 3/4; }
.thumb.square { aspect-ratio: 1/1; }
.thumb .art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s ease; }
a:hover .thumb .art { transform: scale(1.05); }
.thumb .badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  color: #fff; padding: 4px 12px; border-radius: 999px;
  background: var(--cat, var(--brand));
}
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
}
.thumb .play span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--brand);
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow-lift); transition: transform var(--speed);
  padding-inline-start: 4px;
}
a:hover .thumb .play span { transform: scale(1.1); }
.thumb .duration {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.75); color: #fff; font-size: .72rem;
  padding: 2px 9px; border-radius: 5px; font-variant-numeric: tabular-nums;
}

.kicker {
  font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  color: var(--cat, var(--brand)); letter-spacing: .2px;
}
.meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .78rem; flex-wrap: wrap; }
.meta .dot::before { content: "·"; }

.card { display: flex; flex-direction: column; gap: 10px; }
.card h3 a, .card h2 a { transition: color var(--speed); }
.card h3 a:hover, .card h2 a:hover { color: var(--brand); }
.card p.excerpt { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* =====================================================
   قسم البطل (Hero)
   ===================================================== */
.hero { padding-block: 28px 36px; }
.hero-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1.6fr 1fr .84fr;
}
.hero-main .thumb { aspect-ratio: 16/10; border-radius: 14px; }
.hero-main h2 { font-size: 1.85rem; font-weight: 900; margin-top: 4px; }
.hero-main .excerpt { font-size: 1rem; }
.hero-side { display: flex; flex-direction: column; gap: 22px; }
.hero-side .card h3 { font-size: 1.06rem; font-weight: 800; }
.hero-list {
  border-inline-start: 1px solid var(--line); padding-inline-start: 22px;
  display: flex; flex-direction: column;
}
.hero-list-title {
  font-family: var(--font-head); font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.hero-list article { padding-block: 13px; border-bottom: 1px solid var(--line); }
.hero-list article:last-of-type { border-bottom: none; }
.hero-list h3 { font-size: .93rem; font-weight: 700; }
.hero-list time { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* =====================================================
   عناوين الأقسام
   ===================================================== */
.section { padding-block: 34px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 16px;
}
.section-title {
  font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ""; width: 6px; height: 28px; border-radius: 3px;
  background: var(--cat, var(--brand));
}
.section-more {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--cat, var(--brand)); display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--speed);
}
.section-more:hover { gap: 10px; }

/* شبكة الأخبار الرئيسية + الشريط الجانبي */
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid .card h3 { font-size: 1.02rem; font-weight: 800; }

/* =====================================================
   الشريط الجانبي
   ===================================================== */
.sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 70px; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.panel-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-head h3 { font-size: 1.05rem; font-weight: 900; }
.tabs { display: flex; gap: 4px; background: var(--surface-alt); border-radius: 999px; padding: 3px; }
.tabs button {
  border: none; background: transparent; color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: .75rem;
  padding: 4px 14px; border-radius: 999px; transition: all var(--speed);
}
.tabs button.active { background: var(--brand); color: #fff; }
.mostread { padding: 6px 18px 10px; }
.mostread li { display: flex; gap: 14px; align-items: flex-start; padding-block: 13px; border-bottom: 1px solid var(--line); }
.mostread li:last-child { border-bottom: none; }
.mostread .rank {
  font-family: var(--font-head); font-weight: 900; font-size: 1.7rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand); line-height: 1;
  min-width: 30px; text-align: center;
}
.mostread h4 { font-size: .89rem; font-weight: 700; line-height: 1.55; }
.mostread h4 a:hover { color: var(--brand); }
.mostread .views { font-size: .72rem; color: var(--muted); }

/* النشرة البريدية */
.newsletter {
  background: linear-gradient(150deg, var(--dark-band), #232830);
  color: var(--dark-band-ink); border-radius: 14px; padding: 26px 22px;
  position: relative; overflow: hidden;
}
.newsletter::after {
  content: "✉"; position: absolute; left: -12px; bottom: -26px;
  font-size: 7rem; opacity: .07; transform: rotate(-15deg);
}
.newsletter h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; }
.newsletter p { font-size: .84rem; opacity: .8; margin: 0 0 16px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; border-radius: 999px; padding: 10px 16px; font-family: inherit; font-size: .85rem;
  min-width: 0;
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter button {
  background: var(--brand); border: none; color: #fff; border-radius: 999px;
  padding: 10px 20px; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  transition: background var(--speed);
}
.newsletter button:hover { background: #e04a5f; }
.newsletter .note { font-size: .72rem; opacity: .6; margin-top: 10px; }

/* الطقس */
.weather-panel { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.weather-now { display: flex; align-items: center; justify-content: space-between; }
.weather-now .temp { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; }
.weather-now .cond { color: var(--muted); font-size: .85rem; }
.weather-days { display: flex; justify-content: space-between; text-align: center; font-size: .75rem; color: var(--muted); }
.weather-days .d { display: flex; flex-direction: column; gap: 2px; }
.weather-days .t { font-weight: 700; color: var(--ink); }

/* =====================================================
   قسم الفيديو (شريط داكن)
   ===================================================== */
.video-band { background: var(--dark-band); color: var(--dark-band-ink); }
.video-band .section-title::before { background: var(--brand); }
.video-band .card p.excerpt, .video-band .meta { color: #9b9b9b; }
.video-band .card h3 a:hover { color: #ff6b6b; }
.video-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 24px; }
.video-grid .feature h3 { font-size: 1.4rem; font-weight: 900; }
.video-grid .feature .thumb { aspect-ratio: 16/9.5; border-radius: 14px; }

/* =====================================================
   أقسام مزدوجة
   ===================================================== */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.cat-block .lead-card h3 { font-size: 1.25rem; font-weight: 900; }
.cat-list { margin-top: 18px; display: flex; flex-direction: column; }
.cat-list article {
  display: flex; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.cat-list article:last-child { border-bottom: none; }
.cat-list .thumb { flex: 0 0 120px; aspect-ratio: 4/3; border-radius: 8px; }
.cat-list h4 { font-size: .95rem; font-weight: 700; }
.cat-list time { font-size: .74rem; color: var(--muted); }

/* =====================================================
   الرأي والكتّاب
   ===================================================== */
.opinion-band { background: var(--surface-alt); }
.opinion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.opinion-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--speed), box-shadow var(--speed);
  position: relative;
}
.opinion-card::before {
  content: "❝"; position: absolute; top: 12px; left: 18px;
  font-size: 2.6rem; color: var(--brand); opacity: .16; line-height: 1;
}
.opinion-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.opinion-card h3 { font-size: 1.02rem; font-weight: 800; flex: 1; }
.opinion-card h3 a:hover { color: var(--brand); }
.author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}
.author .info b { display: block; font-size: .86rem; font-family: var(--font-head); }
.author .info span { font-size: .73rem; color: var(--muted); }

/* =====================================================
   تذييل الصفحة
   ===================================================== */
.footer { background: var(--dark-band); color: #c9c9c9; margin-top: 40px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px;
  padding-block: 48px 36px;
}
.footer h4 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; font-size: .86rem; }
.footer a { transition: color var(--speed); }
.footer a:hover { color: #fff; }
.footer .about p { font-size: .85rem; line-height: 1.8; opacity: .8; }
.footer .logo-text h1 { color: #fff; font-size: 1.5rem; }
.footer .logo-text p { color: #999; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  transition: all var(--speed);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.apps { display: flex; flex-direction: column; gap: 10px; }
.app-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 9px 16px; transition: background var(--speed);
}
.app-btn:hover { background: rgba(255,255,255,.12); }
.app-btn small { display: block; font-size: .66rem; opacity: .7; }
.app-btn b { font-size: .85rem; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .78rem; flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 20px; }

/* =====================================================
   طبقة البحث
   ===================================================== */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  display: none; padding: 9vh 20px 40px;
  overflow-y: auto;
}
.search-overlay.open { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-box { max-width: 680px; margin-inline: auto; }
.search-input-wrap { position: relative; }
.search-input-wrap input {
  width: 100%; font-size: 1.35rem; font-family: var(--font-head); font-weight: 700;
  padding: 20px 26px; border-radius: 16px; border: 2px solid var(--brand);
  background: var(--surface); color: var(--ink); outline: none;
  box-shadow: var(--shadow-lift);
}
.search-close {
  position: absolute; top: 50%; left: 16px; transform: translateY(-50%);
  border: none; background: var(--surface-alt); color: var(--muted);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1rem;
}
.search-hint { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }
.search-results { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.search-results a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--speed), transform var(--speed);
}
.search-results a:hover { border-color: var(--brand); transform: translateX(-3px); }
.search-results .r-cat { font-size: .72rem; font-weight: 800; font-family: var(--font-head); color: var(--brand); }
.search-results .r-title { font-weight: 700; font-size: .95rem; }

/* =====================================================
   عناصر عامة
   ===================================================== */
.to-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none; font-size: 1.1rem;
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: all .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.progress-bar {
  position: fixed; top: 0; right: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--brand), #ff7a45); z-index: 400;
}

/* =====================================================
   صفحة المقال
   ===================================================== */
.article-page { padding-block: 30px 50px; }
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.breadcrumb { display: flex; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.article-head h1 { font-size: 2.15rem; font-weight: 900; line-height: 1.4; margin-block: 10px 14px; }
.article-head .standfirst { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.8; }
.article-byline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 16px; border-block: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap;
}
.share-row { display: flex; gap: 8px; align-items: center; }
.share-row .icon-btn { width: 38px; height: 38px; font-size: .9rem; }
.font-controls { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.font-controls button { border: none; background: var(--surface); color: var(--ink); padding: 6px 14px; font-weight: 800; }
.font-controls button:hover { background: var(--surface-alt); }

.article-body { font-size: 1.05rem; line-height: 2; }
.article-body > p { margin-block: 0 22px; }
.article-body .lede::first-letter {
  font-family: var(--font-head); font-weight: 900; font-size: 3.2em;
  float: right; line-height: .8; margin-inline-end: 12px; margin-top: 8px; color: var(--brand);
}
.article-fig { margin: 0 0 26px; }
.article-fig .thumb { border-radius: 14px; aspect-ratio: 16/8.5; }
.article-fig figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; }
.article-fig figcaption::before { content: ""; width: 18px; height: 3px; background: var(--brand); border-radius: 2px; margin-top: 9px; flex-shrink: 0; }
.pullquote {
  border-inline-start: 5px solid var(--brand); background: var(--surface);
  border-radius: 0 12px 12px 0; padding: 22px 26px; margin-block: 30px;
  box-shadow: var(--shadow);
}
[dir="rtl"] .pullquote { border-radius: 12px 0 0 12px; }
.pullquote p { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin: 0 0 8px; line-height: 1.7; }
.pullquote cite { font-style: normal; color: var(--muted); font-size: .82rem; }
.article-body h2 { font-size: 1.4rem; font-weight: 900; margin-block: 34px 14px; }
.keypoints {
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 26px; margin-block: 26px;
}
.keypoints h3 { font-size: 1rem; font-weight: 900; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.keypoints ul { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.keypoints li { display: flex; gap: 10px; }
.keypoints li::before { content: "✦"; color: var(--brand); flex-shrink: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 30px 0; }
.tags a {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: .78rem; padding: 6px 16px; border-radius: 999px; transition: all var(--speed);
}
.tags a:hover { border-color: var(--brand); color: var(--brand); }

.author-box {
  display: flex; gap: 18px; align-items: center; margin-top: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.author-box .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.author-box .bio b { font-family: var(--font-head); font-size: 1rem; display: block; }
.author-box .bio p { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.author-box .follow {
  margin-inline-start: auto; border: 1.5px solid var(--brand); color: var(--brand);
  background: transparent; border-radius: 999px; padding: 8px 20px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; transition: all var(--speed);
  flex-shrink: 0;
}
.author-box .follow:hover { background: var(--brand); color: #fff; }

.related { margin-top: 44px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related-grid h3 { font-size: .95rem; font-weight: 800; }

/* التعليقات */
.comments { margin-top: 44px; }
.comment-form textarea {
  width: 100%; min-height: 110px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
  font-family: inherit; font-size: .92rem; background: var(--surface); color: var(--ink);
}
.comment-form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.comment-form .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.comment-form .row small { color: var(--muted); font-size: .75rem; }
.comment { display: flex; gap: 14px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.comment .body b { font-family: var(--font-head); font-size: .88rem; }
.comment .body time { font-size: .72rem; color: var(--muted); margin-inline-start: 8px; }
.comment .body p { margin: 6px 0 8px; font-size: .9rem; }
.comment .actions { display: flex; gap: 16px; font-size: .76rem; color: var(--muted); }
.comment .actions button { border: none; background: none; color: inherit; padding: 0; transition: color var(--speed); }
.comment .actions button:hover { color: var(--brand); }

/* =====================================================
   استجابة الشاشات
   ===================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .hero-list { display: none; }
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-grid .feature { grid-column: 1 / -1; }
  .opinion-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main h2 { font-size: 1.45rem; }
  .news-grid { grid-template-columns: 1fr; }
  .dual { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .opinion-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .logo-text h1 { font-size: 1.5rem; }
  .article-head h1 { font-size: 1.6rem; }
  .masthead-actions .btn-primary { display: none; }
  .topbar .dates .weather-chip { display: none; }
}

/* =====================================================
   صفحة القسم
   ===================================================== */
.cat-hero {
  background:
    radial-gradient(1200px 300px at 80% -50%, color-mix(in srgb, var(--cat, var(--brand)) 35%, transparent), transparent),
    var(--dark-band);
  color: var(--dark-band-ink);
  padding-block: 44px 38px;
}
.cat-hero .kicker { color: color-mix(in srgb, var(--cat, var(--brand)) 60%, #fff); }
.cat-hero h1 { font-size: 2.3rem; font-weight: 900; margin-block: 6px 10px; }
.cat-hero p { margin: 0; opacity: .75; max-width: 640px; }
.cat-hero .count {
  display: inline-flex; margin-top: 16px; font-size: .78rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  padding: 4px 14px; border-radius: 999px;
}
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-grid .card h3 { font-size: 1.05rem; font-weight: 800; }
.load-more-wrap { text-align: center; margin-top: 36px; }
.load-more {
  border: 1.5px solid var(--brand); color: var(--brand); background: transparent;
  border-radius: 999px; padding: 11px 34px; font-family: var(--font-head);
  font-weight: 800; font-size: .92rem; transition: all var(--speed);
}
.load-more:hover { background: var(--brand); color: #fff; }
.cat-empty { text-align: center; color: var(--muted); padding-block: 60px; }
.cat-nav-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.cat-nav-pills a {
  font-size: .78rem; font-family: var(--font-head); font-weight: 700;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 5px 16px; border-radius: 999px; transition: all var(--speed);
}
.cat-nav-pills a:hover, .cat-nav-pills a.on { background: var(--cat, var(--brand)); border-color: transparent; }

/* =====================================================
   صفحة الفيديو
   ===================================================== */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips button {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  padding: 7px 18px; border-radius: 999px; transition: all var(--speed);
}
.filter-chips button:hover { border-color: var(--brand); color: var(--brand); }
.filter-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.player-layout { display: grid; grid-template-columns: 1.9fr 1fr; gap: 28px; align-items: start; }
.player-main .thumb { aspect-ratio: 16/9; border-radius: 16px; box-shadow: var(--shadow-lift); }
.player-main h2 { font-size: 1.5rem; font-weight: 900; margin-top: 16px; }
.player-main .excerpt { color: var(--muted); margin: 8px 0 0; }
.up-next {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.up-next-head { padding: 13px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 900; font-size: .95rem; }
.up-next-list { max-height: 480px; overflow-y: auto; }
.up-next-item {
  display: flex; gap: 12px; padding: 12px 16px; width: 100%; text-align: start;
  background: none; border: none; border-bottom: 1px solid var(--line);
  color: var(--ink); transition: background var(--speed); align-items: flex-start;
}
.up-next-item:hover { background: var(--surface-alt); }
.up-next-item.now { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.up-next-item .thumb { flex: 0 0 118px; aspect-ratio: 16/9; border-radius: 8px; }
.up-next-item h4 { font-size: .84rem; font-weight: 700; line-height: 1.5; margin: 0; font-family: var(--font-head); }
.up-next-item .len { font-size: .72rem; color: var(--muted); }
.up-next-item .nowtag { color: var(--brand); font-size: .7rem; font-weight: 800; font-family: var(--font-head); }

/* ---------- المشغّل المحاكى ---------- */
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: #000; box-shadow: var(--shadow-lift); user-select: none;
}
.video-frame .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.vf-center {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
  background: rgba(0,0,0,.15); border: none; cursor: pointer; transition: opacity var(--speed);
}
.vf-center span {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.94);
  color: var(--brand); display: grid; place-items: center; font-size: 1.7rem;
  padding-inline-start: 5px; box-shadow: var(--shadow-lift); transition: transform var(--speed);
}
.vf-center:hover span { transform: scale(1.08); }
.video-frame.playing .vf-center { opacity: 0; pointer-events: none; }
.vf-playing-fx {
  position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .5s;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.06) 45%, transparent 60%);
  background-size: 220% 100%; animation: shimmer 2.2s linear infinite;
}
.video-frame.playing .vf-playing-fx { opacity: 1; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.vf-controls {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 4;
  padding: 30px 14px 10px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: #fff; transition: opacity .3s;
}
.video-frame.playing:not(:hover) .vf-controls { opacity: 0; }
.vf-btn {
  border: none; background: transparent; color: #fff; font-size: 1.05rem;
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  transition: background var(--speed); flex-shrink: 0;
}
.vf-btn:hover { background: rgba(255,255,255,.18); }
.vf-time { font-size: .74rem; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .9; }
.vf-progress {
  flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer;
}
.vf-progress .rail { position: relative; width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
.vf-progress .fill {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0%;
  border-radius: 3px; background: var(--brand);
}
.vf-progress .knob {
  position: absolute; top: 50%; inset-inline-start: 0%;
  width: 13px; height: 13px; border-radius: 50%; background: #fff;
  transform: translate(50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
[dir="rtl"] .vf-progress .knob { transform: translate(50%, -50%); }
.player-meta-row {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.player-meta-row .views { color: var(--muted); font-size: .84rem; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-family: var(--font-head);
  font-weight: 700; font-size: .82rem; transition: all var(--speed);
}
.pill-btn:hover { border-color: var(--brand); color: var(--brand); }
.pill-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.autoplay-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); cursor: pointer; }

/* شريط «مباشر الآن» */
.live-now-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 14px; padding: 14px 20px; margin-bottom: 26px;
}
.live-now-bar .live-tag { font-size: .72rem; padding: 4px 13px; }
.live-now-bar b { font-family: var(--font-head); font-size: .95rem; }
.live-now-bar .sub { color: var(--muted); font-size: .78rem; }
.live-now-bar .go-live { margin-inline-start: auto; }

/* واصل المشاهدة */
.thumb .watchbar {
  position: absolute; inset-inline: 0; bottom: 0; height: 4px; z-index: 3;
  background: rgba(255,255,255,.3);
}
.thumb .watchbar i { display: block; height: 100%; background: var(--brand); }
.hscroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }
.cw-card { width: 240px; }
.cw-card h4 { font-size: .85rem; font-weight: 700; margin-top: 8px; font-family: var(--font-head); }
.cw-card .left { font-size: .72rem; color: var(--muted); }

/* شورتس */
.short-card { width: 156px; background: none; border: none; padding: 0; text-align: start; color: var(--ink); }
.short-card .thumb { aspect-ratio: 9/16; border-radius: 14px; }
.short-card .thumb::after {
  content: "▶"; position: absolute; top: 10px; left: 10px; z-index: 2;
  color: #fff; font-size: .8rem; background: rgba(0,0,0,.5);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
}
.short-card h4 { font-size: .8rem; font-weight: 700; margin-top: 8px; font-family: var(--font-head); line-height: 1.5; }
.short-card .views { font-size: .7rem; color: var(--muted); }
.shorts-modal {
  position: fixed; inset: 0; z-index: 350; display: none;
  background: rgba(0,0,0,.88); backdrop-filter: blur(6px);
  place-items: center; padding: 4vh 16px;
}
.shorts-modal.open { display: grid; animation: fadeIn .2s ease; }
.shorts-player { position: relative; height: 86vh; aspect-ratio: 9/16; max-width: 92vw; }
.shorts-player .video-frame { aspect-ratio: 9/16; height: 100%; border-radius: 20px; }
.shorts-player .s-title {
  position: absolute; inset-inline: 14px; bottom: 34px; z-index: 5; color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.shorts-player .s-views {
  position: absolute; inset-inline: 14px; bottom: 14px; z-index: 5;
  color: rgba(255,255,255,.8); font-size: .72rem; text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.shorts-player .s-segs {
  position: absolute; top: 12px; inset-inline: 14px; z-index: 6;
  display: flex; gap: 5px;
}
.shorts-player .s-segs i {
  flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); overflow: hidden;
}
.shorts-player .s-segs i b { display: block; height: 100%; width: 0%; background: #fff; }
.shorts-player .s-count {
  position: absolute; top: 24px; inset-inline-start: 14px; z-index: 6;
  color: rgba(255,255,255,.85); font-size: .7rem; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.shorts-player .s-fade {
  position: absolute; inset-inline: 0; z-index: 4; pointer-events: none;
}
.shorts-player .s-fade.top { top: 0; height: 70px; background: linear-gradient(rgba(0,0,0,.55), transparent); border-radius: 20px 20px 0 0; }
.shorts-player .s-fade.bottom { bottom: 0; height: 110px; background: linear-gradient(transparent, rgba(0,0,0,.65)); border-radius: 0 0 20px 20px; }
.s-pause-ind {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.s-pause-ind span {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; display: grid; place-items: center; font-size: 1.4rem;
}
.shorts-player.paused .s-pause-ind { opacity: 1; }
.s-mute {
  position: absolute; top: 40px; inset-inline-end: 12px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.45); color: #fff; font-size: .95rem;
}
.shorts-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem;
  transition: background var(--speed);
}
.shorts-nav:hover { background: rgba(255,255,255,.3); }
.shorts-nav.prev { right: -60px; }
.shorts-nav.next { left: -60px; }
.shorts-close {
  position: absolute; top: -8px; left: -52px; z-index: 6;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1rem;
}
@media (max-width: 640px) {
  .shorts-nav.prev { right: 6px; } .shorts-nav.next { left: 6px; }
  .shorts-close { left: 6px; top: 6px; }
}

/* السلاسل الوثائقية */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.series-card {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow);
  transition: transform var(--speed), box-shadow var(--speed);
}
.series-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.series-card .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.series-card .overlay {
  position: relative; z-index: 2; width: 100%; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.series-card h3 { font-size: 1.1rem; font-weight: 900; }
.series-card .ep { font-size: .75rem; opacity: .85; }

/* شبكة جميع الفيديوهات */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vid-grid .card { cursor: pointer; }
.vid-grid .card h3 { font-size: .98rem; font-weight: 800; }
.sort-select {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  border-radius: 999px; padding: 8px 16px;
}

/* =====================================================
   المركز التقني
   ===================================================== */
.trend-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.trend-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-family: var(--font-head); font-weight: 700; font-size: .84rem;
  transition: all var(--speed);
}
.trend-tag:hover { border-color: var(--cat-tech); color: var(--cat-tech); transform: translateY(-2px); }
.trend-tag .heat { font-size: .7rem; color: var(--up); font-weight: 800; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--speed), box-shadow var(--speed);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.review-card .top { display: flex; gap: 16px; align-items: center; }
.ring { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--cat-tech); stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.ring .score {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900; font-size: 1.15rem;
}
.review-card h3 { font-size: 1rem; font-weight: 800; }
.review-card .verdict { font-size: .74rem; color: var(--cat-tech); font-weight: 800; font-family: var(--font-head); }
.pros-cons { font-size: .8rem; display: flex; flex-direction: column; gap: 5px; color: var(--ink-soft); }
.pros-cons .p::before { content: "✓ "; color: var(--up); font-weight: 800; }
.pros-cons .c::before { content: "✗ "; color: var(--down); font-weight: 800; }
.spec-panel { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.spec-table th {
  font-family: var(--font-head); padding: 12px 10px; border-bottom: 2px solid var(--line);
  font-size: .85rem;
}
.spec-table td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { text-align: start; color: var(--muted); font-size: .78rem; }
.spec-table .best { color: var(--cat-tech); font-weight: 800; }
.spec-table tr:last-child td { border-bottom: none; }

/* =====================================================
   المركز الصحي — حاسبات وأدلة
   ===================================================== */
.calc-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow);
}
.calc-panel h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 18px; }
.calc-field { margin-bottom: 18px; }
.calc-field label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 8px; }
.calc-field label b { font-family: var(--font-head); color: var(--cat-health); font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] {
  width: 100%; accent-color: var(--cat-health); height: 6px; cursor: pointer;
}
.bmi-out { text-align: center; padding: 18px 0 6px; }
.bmi-out .num {
  font-family: var(--font-head); font-weight: 900; font-size: 3rem;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.bmi-out .cat-pill {
  display: inline-block; margin-top: 10px; padding: 6px 20px; border-radius: 999px;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  background: var(--bmi-color, var(--cat-health)); transition: background .4s;
}
.bmi-scale { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin-top: 18px; }
.bmi-scale i { flex: 1; }
.bmi-scale .s1 { background: #4aa3df; } .bmi-scale .s2 { background: #1c7d4d; }
.bmi-scale .s3 { background: #e6a700; } .bmi-scale .s4 { background: #c62828; }
.bmi-marker { position: relative; height: 16px; margin-top: 2px; }
.bmi-marker i {
  position: absolute; top: 0; width: 0; height: 0; transform: translateX(50%);
  border-inline: 7px solid transparent; border-bottom: 10px solid var(--ink);
  transition: inset-inline-start .4s ease;
}
.bmi-note { font-size: .74rem; color: var(--muted); margin-top: 14px; }
.acc details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.acc summary {
  padding: 15px 20px; cursor: pointer; font-family: var(--font-head); font-weight: 800;
  font-size: .93rem; list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--speed);
}
.acc summary:hover { background: var(--surface-alt); }
.acc summary::after { content: "＋"; color: var(--cat-health); font-size: 1.1rem; }
.acc details[open] summary::after { content: "－"; }
.acc details p { margin: 0; padding: 0 20px 16px; font-size: .87rem; color: var(--ink-soft); }

/* =====================================================
   المركز الثقافي — معرض وأجندة
   ===================================================== */
.book-week {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow);
}
.book-week .cover .thumb { aspect-ratio: 3/4.2; border-radius: 10px; box-shadow: var(--shadow-lift); }
.book-week h3 { font-size: 1.35rem; font-weight: 900; margin-top: 4px; }
.book-week .by { color: var(--muted); font-size: .85rem; }
.stars { color: #e6a700; font-size: 1rem; letter-spacing: 2px; }
.book-week p.blurb { color: var(--ink-soft); font-size: .9rem; margin: 10px 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid button { border: none; padding: 0; background: none; cursor: zoom-in; }
.gallery-grid .thumb { border-radius: 12px; transition: transform var(--speed), box-shadow var(--speed); }
.gallery-grid button:hover .thumb { transform: scale(1.02); box-shadow: var(--shadow-lift); }
.gallery-cap { font-size: .74rem; color: var(--muted); margin-top: 6px; text-align: start; }
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none;
  background: rgba(0,0,0,.9); place-items: center; padding: 4vh 18px;
}
.lightbox.open { display: grid; animation: fadeIn .2s ease; }
.lightbox .lb-frame { max-width: 860px; width: 100%; }
.lightbox .thumb { border-radius: 14px; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: 14px; font-size: .9rem; }
.lightbox .lb-close {
  position: absolute; top: 18px; inset-inline-start: 18px;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1rem;
}
.agenda { display: flex; flex-direction: column; }
.ag-row {
  display: flex; gap: 18px; align-items: center; padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.ag-row:last-child { border-bottom: none; }
.ag-date {
  flex-shrink: 0; width: 64px; text-align: center; border-radius: 12px;
  background: color-mix(in srgb, var(--cat-culture) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--cat-culture) 30%, var(--line));
  padding: 8px 4px;
}
.ag-date b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--cat-culture); }
.ag-date span { font-size: .68rem; color: var(--muted); }
.ag-row h4 { font-size: .95rem; font-weight: 800; font-family: var(--font-head); }
.ag-row .where { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.ag-row .ag-cta { margin-inline-start: auto; flex-shrink: 0; }

@media (max-width: 1080px) {
  .review-grid { grid-template-columns: 1fr; }
  .book-week { grid-template-columns: 1fr; }
  .book-week .cover { max-width: 200px; }
}
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   المركز المالي — أسواق وشارتات
   ===================================================== */
.mkt-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mkt-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 16px 10px; cursor: pointer; text-align: start; color: var(--ink);
  transition: border-color var(--speed), transform var(--speed), box-shadow var(--speed);
  position: relative; overflow: hidden;
}
.mkt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mkt-card.on { border-color: var(--cat-economy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-economy) 15%, transparent); }
.mkt-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mkt-card .name { font-family: var(--font-head); font-weight: 800; font-size: .85rem; }
.mkt-card .src {
  font-size: .6rem; padding: 2px 8px; border-radius: 999px; font-weight: 700;
  background: color-mix(in srgb, var(--cat-economy) 12%, transparent); color: var(--cat-economy);
}
.mkt-card .src.sim { background: var(--surface-alt); color: var(--muted); }
.mkt-card .val {
  font-family: var(--font-head); font-weight: 900; font-size: 1.35rem;
  font-variant-numeric: tabular-nums; margin-top: 6px; transition: color .3s;
}
.mkt-card .val.up { color: var(--up); }
.mkt-card .val.down { color: var(--down); }
.mkt-card .delta-row { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; margin-top: 2px; }
.mkt-card .spark { height: 38px; margin-top: 8px; }
@keyframes flashBg { 0% { background: color-mix(in srgb, currentColor 14%, transparent); } 100% { background: transparent; } }
.mkt-card .val.flash { animation: flashBg .7s ease; border-radius: 6px; }

.chart-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow); margin-top: 22px;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h3 { font-size: 1.15rem; font-weight: 900; }
.chart-head .big-val { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.range-chips { display: flex; gap: 6px; }
.range-chips button {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  padding: 5px 14px; border-radius: 999px; transition: all var(--speed);
}
.range-chips button.on { background: var(--cat-economy); border-color: var(--cat-economy); color: #fff; }
.chart-wrap { position: relative; color: var(--ink); }
.ak-tip {
  position: absolute; top: 6px; pointer-events: none;
  background: var(--dark-band); color: #fff; font-size: .72rem;
  padding: 4px 10px; border-radius: 7px; white-space: nowrap;
  font-variant-numeric: tabular-nums; transition: opacity .15s;
}
.data-status {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .74rem; color: var(--muted); margin-top: 14px;
}
.data-status .dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
.data-status .dot-warn { width: 8px; height: 8px; border-radius: 50%; background: #e6a700; }

.converter {
  background: linear-gradient(150deg, var(--cat-economy), #0e5433);
  color: #fff; border-radius: 18px; padding: 24px;
}
.converter h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 14px; }
.converter .row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.converter input, .converter select {
  width: 100%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12);
  color: #fff; border-radius: 10px; padding: 11px 14px; font-family: var(--font-head);
  font-weight: 700; font-size: .95rem;
}
.converter select option { color: #14161a; }
.converter .swap {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.18); color: #fff; font-size: 1rem;
  transition: transform var(--speed);
}
.converter .swap:hover { transform: rotate(180deg); }
.converter .result {
  margin-top: 16px; font-family: var(--font-head); font-weight: 900; font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}
.converter .rate-note { font-size: .72rem; opacity: .75; margin-top: 4px; }

/* =====================================================
   المركز الرياضي — مباريات وجداول
   ===================================================== */
.match-center { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.match-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); position: relative;
}
.match-card .comp { font-size: .7rem; color: var(--muted); text-align: center; margin-bottom: 12px; }
.match-card .status {
  position: absolute; top: 12px; inset-inline-start: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: .68rem;
  padding: 3px 11px; border-radius: 999px;
}
.match-card .status.live { background: var(--brand); color: #fff; display: inline-flex; gap: 6px; align-items: center; }
.match-card .status.soon { background: var(--surface-alt); color: var(--muted); }
.match-card .status.ft { background: var(--dark-band); color: #fff; }
.match-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team .crest {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 1.15rem;
  box-shadow: var(--shadow);
}
.team b { font-size: .82rem; font-family: var(--font-head); text-align: center; }
.score {
  font-family: var(--font-head); font-weight: 900; font-size: 2rem;
  font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: center;
}
.score .goal-flash { animation: goalPop .6s ease; }
@keyframes goalPop { 0% { transform: scale(1.6); color: var(--brand); } 100% { transform: scale(1); } }
.match-card .minute {
  text-align: center; margin-top: 10px; font-size: .74rem; color: var(--brand);
  font-weight: 800; font-family: var(--font-head);
}
.match-card .minute.gray { color: var(--muted); font-weight: 500; }
.countdown { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.countdown .cd {
  background: var(--surface-alt); border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 52px;
}
.countdown .cd b { display: block; font-family: var(--font-head); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.countdown .cd span { font-size: .62rem; color: var(--muted); }

.event-feed { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.event-feed .ev { display: flex; gap: 10px; font-size: .78rem; padding-block: 5px; align-items: baseline; }
.event-feed .ev .m { font-family: var(--font-head); font-weight: 800; color: var(--brand); min-width: 30px; font-variant-numeric: tabular-nums; }
.event-feed .ev.fresh { animation: slideIn .5s ease; }

.league-panel { overflow-x: auto; }
.league-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.league-table th {
  font-family: var(--font-head); font-size: .72rem; color: var(--muted);
  padding: 10px 8px; text-align: center; border-bottom: 2px solid var(--line);
}
.league-table th:first-child, .league-table td:first-child { text-align: start; }
.league-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.league-table tr:last-child td { border-bottom: none; }
.league-table .tname { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-head); }
.league-table .tname .crest { width: 30px; height: 30px; font-size: .8rem; flex-shrink: 0; }
.league-table .pts { font-weight: 900; font-family: var(--font-head); }
.league-table tr.zone-top td:first-child { box-shadow: inset 4px 0 0 var(--up); }
.league-table tr.zone-down td:first-child { box-shadow: inset 4px 0 0 var(--down); }
[dir="rtl"] .league-table tr.zone-top td:first-child { box-shadow: inset -4px 0 0 var(--up); }
[dir="rtl"] .league-table tr.zone-down td:first-child { box-shadow: inset -4px 0 0 var(--down); }
.form-dots { display: inline-flex; gap: 3px; }
.form-dots i {
  width: 16px; height: 16px; border-radius: 50%; font-size: .58rem; color: #fff;
  display: grid; place-items: center; font-style: normal; font-weight: 800;
}
.form-dots .w { background: var(--up); } .form-dots .d { background: #9d9a94; } .form-dots .l { background: var(--down); }

.scorers { display: flex; flex-direction: column; }
.scorer { display: flex; align-items: center; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.scorer:last-child { border-bottom: none; }
.scorer .rank { font-family: var(--font-head); font-weight: 900; color: var(--muted); min-width: 22px; text-align: center; }
.scorer .info { flex: 1; }
.scorer .info b { font-family: var(--font-head); font-size: .88rem; display: block; }
.scorer .info span { font-size: .72rem; color: var(--muted); }
.scorer .goals {
  font-family: var(--font-head); font-weight: 900; font-size: 1.1rem;
  color: var(--cat-sports); font-variant-numeric: tabular-nums;
}
.goal-toast {
  position: fixed; bottom: 30px; right: 50%; transform: translate(50%, 80px); z-index: 500;
  background: var(--dark-band); color: #fff; border-radius: 999px;
  padding: 12px 26px; font-family: var(--font-head); font-weight: 800;
  box-shadow: var(--shadow-lift); display: flex; gap: 10px; align-items: center;
  opacity: 0; transition: all .4s cubic-bezier(.2,.9,.3,1.2);
}
.goal-toast.show { opacity: 1; transform: translate(50%, 0); }

@media (max-width: 1080px) {
  .mkt-board { grid-template-columns: repeat(2, 1fr); }
  .match-center { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mkt-board { grid-template-columns: 1fr 1fr; }
  .converter .row { grid-template-columns: 1fr; }
  .converter .swap { justify-self: center; transform: rotate(90deg); }
}

/* =====================================================
   المركز السياسي
   ===================================================== */
.pol-lead { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.pol-lead .hero-main .thumb { aspect-ratio: 16/9; }
.pol-side-stack { display: flex; flex-direction: column; gap: 20px; }

.hot-file {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow);
}
.hot-file-head {
  background: linear-gradient(120deg, var(--cat-politics), #123c6e);
  color: #fff; padding: 16px 20px;
}
.hot-file-head .tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.16); border-radius: 999px; padding: 3px 13px;
  font-size: .7rem; font-family: var(--font-head); font-weight: 800;
}
.hot-file-head h3 { font-size: 1.1rem; font-weight: 900; margin-top: 8px; }
.hot-file .timeline { margin: 14px 20px 6px; }
.hot-file .lb-item { padding-block: 12px 14px; }
.hot-file .lb-item::before { border-color: var(--cat-politics); }
.hot-file .lb-item.key::before { background: var(--cat-politics); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cat-politics) 20%, transparent); }
.hot-file .lb-time { color: var(--cat-politics); }
.hot-file .lb-item h3 { font-size: .9rem; }
.hot-file .lb-item p { font-size: .8rem; }
.hot-file-foot { padding: 0 20px 16px; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px 22px; position: relative; display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--speed), box-shadow var(--speed);
  border-top: 4px solid var(--cat-politics);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.quote-card .q {
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  line-height: 1.8; margin: 0; flex: 1;
}
.quote-card .q::before { content: "❝ "; color: var(--cat-politics); font-size: 1.4rem; }
.quote-card .ctx { font-size: .74rem; color: var(--muted); margin-top: -8px; }

.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic-card {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10;
  display: flex; align-items: flex-end; color: #fff;
  transition: transform var(--speed), box-shadow var(--speed);
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.topic-card .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.topic-card .overlay {
  position: relative; z-index: 2; width: 100%; padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.topic-card h3 { font-size: .98rem; font-weight: 900; }
.topic-card .n { font-size: .72rem; opacity: .85; }

.analysis-band { background: var(--surface-alt); }
.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.analysis-card {
  display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; align-items: flex-start;
  transition: transform var(--speed), box-shadow var(--speed);
}
.analysis-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.analysis-card .tagcol {
  font-family: var(--font-head); font-weight: 900; font-size: .68rem; color: var(--cat-politics);
  border: 1.5px solid var(--cat-politics); border-radius: 999px; padding: 3px 12px;
  flex-shrink: 0;
}
.analysis-card h3 { font-size: 1.05rem; font-weight: 800; }
.analysis-card h3 a:hover { color: var(--cat-politics); }
.analysis-card .who { font-size: .76rem; color: var(--muted); margin-top: 8px; }

@media (max-width: 1080px) {
  .pol-lead { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topics-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   البودكاست
   ===================================================== */
.pod-player {
  display: grid; grid-template-columns: 280px 1fr; gap: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow); align-items: center;
}
.pod-art { position: relative; }
.pod-art .thumb { aspect-ratio: 1/1; border-radius: 18px; box-shadow: var(--shadow-lift); }
.pod-art .eq {
  position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2;
  display: flex; gap: 3px; align-items: flex-end; height: 22px; opacity: 0;
  transition: opacity var(--speed);
}
.pod-player.playing .pod-art .eq { opacity: 1; }
.pod-art .eq i { width: 4px; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.pod-art .eq i:nth-child(1) { animation-delay: 0s; }
.pod-art .eq i:nth-child(2) { animation-delay: .2s; }
.pod-art .eq i:nth-child(3) { animation-delay: .4s; }
.pod-art .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
.pod-info .kicker { display: block; margin-bottom: 4px; }
.pod-info h2 { font-size: 1.45rem; font-weight: 900; }
.pod-info .ep-meta { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.pod-controls { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.pod-play {
  width: 64px; height: 64px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; font-size: 1.4rem;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(200,16,46,.35);
  transition: transform var(--speed); padding-inline-start: 3px;
}
.pod-play:hover { transform: scale(1.06); }
.pod-skip {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: .72rem; font-weight: 700; transition: all var(--speed);
}
.pod-skip:hover { border-color: var(--brand); color: var(--brand); }
.pod-speed {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-family: var(--font-head);
  font-weight: 800; font-size: .8rem; min-width: 66px; transition: all var(--speed);
}
.pod-speed:hover { border-color: var(--brand); color: var(--brand); }
.pod-progress-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pod-progress-row .vf-time { color: var(--muted); }
.pod-progress-row .vf-progress .rail { background: var(--line); }
.ep-row {
  display: flex; gap: 16px; align-items: center; padding: 16px 6px;
  border-bottom: 1px solid var(--line); width: 100%; text-align: start;
  background: none; border-inline: none; border-top: none; color: var(--ink);
  transition: background var(--speed);
}
.ep-row:hover { background: var(--surface-alt); }
.ep-row .num {
  font-family: var(--font-head); font-weight: 900; font-size: 1.1rem;
  color: var(--muted); min-width: 34px; text-align: center;
}
.ep-row.now .num { color: var(--brand); }
.ep-row h4 { font-size: .96rem; font-weight: 800; font-family: var(--font-head); margin: 0; }
.ep-row .ep-sub { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.ep-row .len { margin-inline-start: auto; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ep-row .nowtag { color: var(--brand); font-size: .72rem; font-weight: 800; font-family: var(--font-head); }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.platforms a {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 18px; font-size: .8rem; font-weight: 700;
  font-family: var(--font-head); transition: all var(--speed);
}
.platforms a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
@media (max-width: 860px) {
  .pod-player { grid-template-columns: 1fr; }
  .pod-art { max-width: 260px; margin-inline: auto; }
}

/* =====================================================
   المحفوظات
   ===================================================== */
.icon-btn.saved-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.saved-empty { text-align: center; color: var(--muted); padding-block: 70px; }
.saved-empty .big { font-size: 3rem; margin-bottom: 10px; }
.remove-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 6px 16px; font-size: .76rem; font-family: var(--font-head);
  font-weight: 700; transition: all var(--speed); flex-shrink: 0;
}
.remove-btn:hover { border-color: var(--down); color: var(--down); }

/* =====================================================
   الاستفتاء
   ===================================================== */
.poll-panel { padding: 18px; }
.poll-q { font-family: var(--font-head); font-weight: 800; font-size: .98rem; margin-bottom: 14px; line-height: 1.6; }
.poll-opt {
  position: relative; display: block; width: 100%; text-align: start;
  border: 1px solid var(--line); background: var(--surface-alt); color: var(--ink);
  border-radius: 10px; padding: 10px 16px; font-size: .86rem; margin-bottom: 8px;
  overflow: hidden; transition: border-color var(--speed);
}
.poll-opt:hover { border-color: var(--brand); }
.poll-opt .bar {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 0%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  transition: width .8s ease;
}
.poll-opt .row { position: relative; display: flex; justify-content: space-between; gap: 8px; }
.poll-opt .pct { font-weight: 800; font-family: var(--font-head); color: var(--brand); opacity: 0; transition: opacity .4s; }
.poll-panel.voted .poll-opt { pointer-events: none; }
.poll-panel.voted .pct { opacity: 1; }
.poll-opt.mine { border-color: var(--brand); }
.poll-total { font-size: .74rem; color: var(--muted); margin-top: 6px; }

@media (max-width: 1080px) {
  .series-grid, .vid-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .series-grid, .vid-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   صفحة الرأي والكتّاب
   ===================================================== */
.writers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.writer-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 20px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 10px; transition: transform var(--speed), box-shadow var(--speed);
}
.writer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.writer-card .avatar { width: 76px; height: 76px; font-size: 1.7rem; }
.writer-card b { font-family: var(--font-head); font-size: 1.05rem; }
.writer-card .role { font-size: .78rem; color: var(--muted); margin-top: -6px; }
.writer-card .latest { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.writer-card .latest a:hover { color: var(--brand); }
.follow-btn {
  border: 1.5px solid var(--brand); color: var(--brand); background: transparent;
  border-radius: 999px; padding: 7px 24px; font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; transition: all var(--speed);
}
.follow-btn:hover { background: var(--brand); color: #fff; }
.follow-btn.on { background: var(--brand); color: #fff; }

.oped-list { display: flex; flex-direction: column; }
.oped-item {
  display: flex; gap: 20px; align-items: center; padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.oped-item:last-child { border-bottom: none; }
.oped-item .avatar { width: 56px; height: 56px; font-size: 1.25rem; flex-shrink: 0; }
.oped-item h3 { font-size: 1.15rem; font-weight: 800; }
.oped-item h3 a:hover { color: var(--brand); }
.oped-item .who { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.oped-item .who b { color: var(--ink-soft); }
.oped-item .go { margin-inline-start: auto; color: var(--brand); font-size: 1.3rem; flex-shrink: 0; }

@media (max-width: 1080px) {
  .player-layout { grid-template-columns: 1fr; }
  .writers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .writers-grid { grid-template-columns: 1fr; }
  .oped-item { flex-wrap: wrap; }
}

/* =====================================================
   صفحة التغطية المباشرة
   ===================================================== */
.live-hero {
  background:
    radial-gradient(900px 260px at 15% -40%, rgba(200,16,46,.5), transparent),
    var(--dark-band);
  color: var(--dark-band-ink); padding-block: 40px 34px;
}
.live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-family: var(--font-head);
  font-weight: 900; font-size: .8rem; padding: 5px 16px; border-radius: 999px;
}
.live-hero h1 { font-size: 2rem; font-weight: 900; margin-block: 14px 8px; }
.live-hero .sub { opacity: .75; margin: 0; max-width: 680px; }
.live-stats { display: flex; gap: 22px; margin-top: 18px; font-size: .8rem; flex-wrap: wrap; }
.live-stats .stat { display: flex; align-items: center; gap: 7px; opacity: .85; }
.live-stats b { font-variant-numeric: tabular-nums; }

.live-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; flex-wrap: wrap;
}
.auto-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); cursor: pointer; }
.auto-toggle .switch {
  width: 42px; height: 24px; border-radius: 999px; background: var(--line);
  position: relative; transition: background var(--speed); flex-shrink: 0;
}
.auto-toggle .switch::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
  transition: transform var(--speed);
}
.auto-toggle input { display: none; }
.auto-toggle input:checked + .switch { background: var(--up); }
.auto-toggle input:checked + .switch::after { transform: translateX(-18px); }

.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; right: 7px;
  width: 2px; background: var(--line);
}
.lb-item { position: relative; padding-block: 20px 24px; }
.lb-item::before {
  content: ""; position: absolute; right: -25px; top: 27px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand);
}
.lb-item.key::before { background: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.lb-item + .lb-item { border-top: 1px solid var(--line); }
.lb-time {
  font-family: var(--font-head); font-weight: 800; font-size: .8rem; color: var(--brand);
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px;
}
.lb-time .tagchip {
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
  font-size: .68rem; padding: 2px 10px; border-radius: 999px;
}
.lb-item h3 { font-size: 1.12rem; font-weight: 800; margin-block: 6px 8px; }
.lb-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.lb-item .lb-quote {
  margin-top: 12px; background: var(--surface); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand); border-radius: 10px; padding: 14px 18px;
  font-size: .9rem; color: var(--ink-soft);
}
.lb-item.pinned {
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent) !important;
  border-radius: 14px; padding-inline: 20px; margin-block: 4px 8px;
}
.lb-item.pinned .pin-label {
  font-size: .7rem; font-weight: 800; font-family: var(--font-head);
  color: var(--brand); display: inline-flex; gap: 6px; margin-bottom: 4px;
}
.lb-item.fresh { animation: slideIn .6s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
.new-updates-btn {
  position: sticky; top: 64px; z-index: 50; display: none;
  margin-inline: auto; margin-bottom: 10px;
  background: var(--brand); color: #fff; border: none; border-radius: 999px;
  padding: 9px 26px; font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  box-shadow: var(--shadow-lift);
}
.new-updates-btn.show { display: block; animation: slideIn .4s ease; }

@media (max-width: 720px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-hero h1 { font-size: 1.6rem; }
  .live-hero h1 { font-size: 1.4rem; }
}
@media (max-width: 1080px) and (min-width: 721px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   عناصر صفحة الخبر — بوصلة٢٤
   ===================================================== */
.article-cover {
  width: 100%; height: auto; border-radius: 14px; display: block;
  background: var(--surface-alt);
}
.update-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 14px; padding: 16px 20px; margin-bottom: 24px;
  font-size: .9rem; line-height: 1.8;
}
.update-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  margin-top: 8px; flex-shrink: 0; animation: pulse 1.8s infinite;
}
.article-body ul.bullets { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.article-body ul.bullets li { display: flex; gap: 10px; }
.article-body ul.bullets li::before { content: "▪"; color: var(--brand); flex-shrink: 0; font-size: .8em; margin-top: .45em; }

.table-wrap { overflow-x: auto; margin: 26px 0; border-radius: 12px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); }
.data-table caption {
  caption-side: top; text-align: start; padding: 13px 18px;
  font-family: var(--font-head); font-weight: 800; font-size: .84rem;
  background: var(--surface-alt); color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.data-table th, .data-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.data-table thead th {
  font-family: var(--font-head); font-size: .8rem; color: var(--muted);
  background: color-mix(in srgb, var(--surface-alt) 60%, transparent);
}
.data-table tbody th { font-weight: 700; font-family: var(--font-head); }
.data-table td { font-variant-numeric: tabular-nums; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

.sources-box {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--navy); border-radius: 12px;
  padding: 20px 24px; margin: 32px 0 0;
}
.sources-box h2 { font-size: 1rem; font-weight: 900; margin: 0 0 12px; }
.sources-box h2::before { content: "🔗 "; }
.sources-box ul { display: flex; flex-direction: column; gap: 9px; font-size: .88rem; }
.sources-box li::before { content: "↗ "; color: var(--navy); }
.sources-box a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.src-note { font-size: .78rem; color: var(--muted); margin: 14px 0 0; line-height: 1.8; }

.article-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.share-label { font-family: var(--font-head); font-weight: 800; font-size: .84rem; color: var(--muted); }
.share-btn {
  font-size: .8rem; font-family: var(--font-head); font-weight: 700;
  padding: 8px 18px; border-radius: 999px; color: #fff;
  transition: transform var(--speed), opacity var(--speed);
}
.share-btn:hover { transform: translateY(-2px); opacity: .92; }
.share-btn.wa { background: #25a366; } .share-btn.fb { background: #1877f2; }
.share-btn.x  { background: #14171a; } .share-btn.tg { background: #229ed9; }

.faq-section { margin-top: 40px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 15px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 800; font-size: .93rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background var(--speed);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--brand); font-size: 1.1rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: "－"; }
.faq-item summary:hover { background: var(--surface-alt); }
.faq-a { padding: 0 20px 16px; font-size: .89rem; color: var(--ink-soft); line-height: 1.9; }

.keypoints h2 { font-size: 1rem; font-weight: 900; margin: 0 0 12px; }
.cat-hero .cat-nav-pills a.on { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   أدوات الأقسام المدمجة (Section Widgets)
   ===================================================== */
.sec-widget { margin-block: 34px 30px; padding-block: 26px; border-block: 1px solid var(--line); }
.sec-widget .section-head { margin-bottom: 18px; }
.widget-sub { font-size: .78rem; color: var(--muted); }
.widget-note { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.9; }
.widget-note a { color: var(--brand); font-weight: 700; }
.cv-lab { display: block; font-size: .78rem; opacity: .8; margin-bottom: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.topic-card.sm { aspect-ratio: 16/7; background: linear-gradient(135deg, var(--cat-politics), #0e2c52); }
.topic-card.sm .overlay { background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.sec-widget .cat-grid + .sec-widget { margin-top: 0; }
@media (max-width: 720px) { .sec-widget { padding-block: 20px; } }

/* اعتماد الصور (Attribution) — مطلوب لتراخيص CC */
.article-fig figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.article-fig figcaption a:hover { color: var(--brand); }
