/* ============================================================
   مدار الناس — نظام التصميم العام (RTL)
   Editorial clean: بطاقات بسيطة، حواف ناعمة، ظلال خفيفة
   ============================================================ */

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo-arabic-400.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo-latin-400.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #1a2cb2;
  --brand-deep: #101d85;
  --brand-glow: #3148e8;
  --brand-red: #6e1e1d;
  --ink: #111318;
  --body: #232936;
  --muted: #737B88;
  --surface: #FFFFFF;
  --surface-soft: #F7F8FA;
  --surface-softer: #F1F3F5;
  --divider: #E5E7EB;
  --live-bg: #090D15;
  --live-card: #141B2A;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1240px;
  --gutter: 12px;
  --bottom-nav-height: 56px;
  --shadow-sm: 0 1px 2px rgba(17,19,24,.05);
  --shadow-md: 0 4px 14px rgba(17,19,24,.07);
  --quote-bg: #EEF1FD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Cairo', 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  color: var(--body);
  background: var(--surface);
  line-height: 1.75;
  font-size: 14px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.5; margin: 0; }
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: embed; }
.mono { font-variant-numeric: tabular-nums; }
.small { font-size: 12px; color: var(--muted); }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { inset-inline-start: 0; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, white); outline-offset: 2px; border-radius: 4px; }

/* ============ الهيدر ============ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--divider); position: sticky; top: 0; z-index: 60; }

/* الشريط العلوي — نمط الصحائف: تاريخ + روابط سريعة + تواصل (سطح المكتب فقط) */
.utility-bar { background: var(--ink); color: rgba(255,255,255,.82); font-size: 11.5px; display: none; }
.utility-inner { display: flex; align-items: center; gap: 16px; min-height: 30px; }
.utility-date { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: rgba(255,255,255,.9); }
.utility-links { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.utility-links a { color: rgba(255,255,255,.78); font-weight: 600; transition: color .15s; }
.utility-links a:hover { color: #fff; }
.utility-social { display: flex; align-items: center; gap: 4px; }
.utility-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; color: rgba(255,255,255,.78);
  transition: background .15s, color .15s;
}
.utility-social a:hover { background: rgba(255,255,255,.14); color: #fff; }
@media (min-width: 1024px) { .utility-bar { display: block; } }

.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 6px; min-height: 60px; gap: 8px;
}
.header-logo img { width: 112px; height: auto; object-fit: contain; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; background: transparent; color: var(--ink);
  border-radius: var(--radius-sm);
}
.icon-btn:hover { background: var(--surface-softer); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-login { font-weight: 700; }
.header-avatar img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.header-tabs-wrap { border-top: 1px solid var(--divider); }
.header-tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding-block: 5px; -webkit-overflow-scrolling: touch;
}
.header-tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 13px; color: var(--body);
}
.tab:hover { background: var(--surface-softer); }
.tab.active { background: var(--brand); color: #fff; }

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(9,13,21,.55); z-index: 90;
}
.drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: min(320px, 86vw);
  background: var(--surface); z-index: 95; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-md); overflow-y: auto;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head img { width: 92px; height: auto; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { padding: 11px 8px; border-bottom: 1px solid var(--divider); font-weight: 600; font-size: 14.5px; }
.drawer-nav a:hover { color: var(--brand); }
.drawer-services { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-services a { font-size: 13px; background: var(--surface-soft); padding: 7px 12px; border-radius: 999px; }
.drawer-social { display: flex; gap: 8px; margin-top: auto; }
.drawer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--divider); border-radius: 50%; }

/* ============ شريط العاجل ============ */
.breaking { background: var(--brand); color: #fff; }
.breaking-high { background: var(--brand-deep); }
.breaking-inner { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.breaking-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.breaking-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.breaking-text { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ الهيرو ============ */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide:not(.current) { visibility: hidden; }
.hero-link { display: block; position: relative; aspect-ratio: 21 / 9; max-height: 460px; width: 100%; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,11,15,.92) 8%, rgba(9,11,15,.45) 45%, rgba(9,11,15,0) 75%);
}
.hero-badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 5px 12px; border-radius: 999px;
}
.hero-content { position: absolute; inset-inline: 16px; bottom: 14px; color: #fff; padding-inline-start: max(0px, env(safe-area-inset-left)); }
.hero-title {
  color: #fff; font-size: clamp(17px, 3.6vw, 25px); font-weight: 800; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-desc {
  color: rgba(255,255,255,.85); font-size: 13px; margin: 5px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.8); }
.hero-time { display: inline-flex; align-items: center; gap: 5px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(9,11,15,.45); color: #fff; display: none; align-items: center; justify-content: center;
}
.hero-prev { inset-inline-end: 12px; }
.hero-next { inset-inline-start: 12px; }
.hero-dots { position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 7px; }
[dir="rtl"] .hero-dots { transform: translateX(50%); }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); padding: 0; transition: all .3s; }
.hero-dot.current { background: var(--brand); width: 26px; }
@media (min-width: 768px) { .hero-arrow { display: inline-flex; } }

/* ============ الأقسام العامة ============ */
.page-block { padding-block: 16px; }
.page-block + .page-block { padding-top: 2px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title {
  display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800;
  padding-inline-start: 10px; border-inline-start: 4px solid var(--brand);
}
.section-more { font-size: 13px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 3px; }

/* ============ شبكة الأخبار والبطاقات ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .news-grid { grid-template-columns: repeat(4, 1fr); } .news-grid.four { grid-template-columns: repeat(4, 1fr); } }
.news-card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .2s, transform .2s; min-width: 0; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-link { display: flex; flex-direction: column; height: 100%; }
.news-card-media { aspect-ratio: 16 / 10; background: var(--surface-softer); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.news-card-cat { color: var(--brand); font-size: 11.5px; font-weight: 700; }
.news-card-title {
  font-size: 13.5px; font-weight: 700; line-height: 1.6; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; margin-top: auto; }
.media-fallback {
  width: 100%; height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-softer), var(--divider)); color: var(--muted);
}
.media-fallback.dark { background: linear-gradient(135deg, #1A2233, #0C1018); color: rgba(255,255,255,.5); }
.media-fallback.sm { min-height: 64px; }

/* قائمة صفوف (اقرأ أيضاً / الأكثر قراءة) */
.list-col { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--divider); min-width: 0; }
.list-row:last-child { border-bottom: 0; }
.list-rank {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.list-row-text { flex: 1; min-width: 0; }
.list-row-title { font-size: 14px; font-weight: 700; line-height: 1.6; }
.list-row-thumb img { width: 86px; height: 58px; object-fit: cover; border-radius: var(--radius-sm); }

/* ============ شريط الفيديو المميز ============ */
.video-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--live-bg); }
.video-band-link { display: block; position: relative; }
.video-band-media { aspect-ratio: 2 / 1; max-height: 420px; width: 100%; }
.video-band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-band-overlay { position: absolute; inset: 0; background: linear-gradient(to left, rgba(9,13,21,.9) 20%, rgba(9,13,21,.25) 60%, rgba(9,13,21,.65)); }
[dir="rtl"] .video-band-overlay { background: linear-gradient(to left, rgba(9,13,21,.92) 15%, rgba(9,13,21,.3) 55%, rgba(9,13,21,.55)); }
.video-band-body { position: absolute; inset-inline-start: 18px; inset-block-end: 16px; max-width: 60%; color: #fff; }
.video-band-title { color: #fff; font-size: clamp(16px, 3vw, 24px); font-weight: 800; }
.video-band-desc { color: rgba(255,255,255,.8); font-size: 13px; margin: 6px 0 0; }
.badge-red { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }
.play-circle {
  position: absolute; top: 50%; inset-inline-end: 22%; transform: translate(50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.75); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: transform .2s;
}
.play-circle:hover { transform: translate(50%, -50%) scale(1.08); }
.duration-badge {
  position: absolute; bottom: 14px; inset-inline-end: 14px; background: rgba(9,11,15,.8);
  color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.duration-badge.sm { position: absolute; bottom: 8px; inset-inline-end: 8px; font-size: 11px; }

/* ============ أبرز الملفات والتقارير ============ */
.files-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .files-grid { grid-template-columns: repeat(4, 1fr); } }
.file-card { border-radius: var(--radius-md); overflow: hidden; display: block; min-width: 0; }
.file-media { position: relative; aspect-ratio: 4 / 3; background: var(--live-card); }
.file-media img { width: 100%; height: 100%; object-fit: cover; }
.file-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,13,21,.85) 15%, rgba(9,13,21,.15)); }
.file-icon {
  position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(50%, -50%);
  width: 44px; height: 44px; border-radius: 12px; background: rgba(26,44,178,.9); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
[dir="rtl"] .file-icon { transform: translate(50%, -50%); }
.file-name { position: absolute; bottom: 10px; inset-inline: 0; text-align: center; color: #fff; font-weight: 700; font-size: 13.5px; }
.files-grid.compact .file-media { aspect-ratio: 16 / 9; }

.reports-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .reports-grid { grid-template-columns: 1fr 1fr; } }
.report-card { border-radius: var(--radius-md); overflow: hidden; background: var(--surface); border: 1px solid var(--divider); }
.report-media { position: relative; aspect-ratio: 16 / 9; }
.report-media img { width: 100%; height: 100%; object-fit: cover; }
.report-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,13,21,.7), transparent 55%); }
.report-body { padding: 11px 13px 13px; }
.report-tag { color: var(--brand); font-size: 11.5px; font-weight: 700; }
.report-title { font-size: 14.5px; font-weight: 800; margin-top: 3px; }
.report-desc { color: var(--muted); font-size: 12.5px; margin: 5px 0 0; }

/* ============ شريط التنقل السفلي ============ */
.with-bottom-nav { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px); }
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 70;
  background: var(--surface); border-top: 1px solid var(--divider);
  display: flex; align-items: stretch; justify-content: space-around;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .bottom-nav { display: none; } .with-bottom-nav { padding-bottom: 0; } }
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 10.5px; font-weight: 600;
}
.bn-item.active { color: var(--brand); }
.bn-primary {
  flex: 1; display: flex; align-items: center; justify-content: center; position: relative;
}
.bn-primary .icon { width: 42px; height: 42px; padding: 10px; background: var(--brand); color: #fff; border-radius: 50%; margin-top: -20px; box-shadow: 0 4px 12px rgba(26,44,178,.4); }

/* ============ صفحة المقال ============ */
.article-container { max-width: 780px; }
.breadcrumb { font-size: 12.5px; color: var(--muted); padding-block: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--brand); }
.crumb-sep { color: var(--divider); }
.article-head { text-align: center; padding-block: 6px 14px; }
.article-cat { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 800; font-size: 14px; }
.cat-bar { display: inline-block; width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }
.article-title { font-size: clamp(20px, 4.6vw, 29px); font-weight: 800; line-height: 1.55; margin-top: 8px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.article-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.avatar-fallback {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-softer); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.avatar-fallback.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-fallback.xl { width: 88px; height: 88px; font-size: 30px; }
.article-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article-head-actions { display: inline-flex; gap: 6px; }
.save-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--divider);
  background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.save-btn.is-saved { background: var(--brand); color: #fff; border-color: var(--brand); }

.article-hero { margin: 0; }
.article-hero img { width: 100%; border-radius: var(--radius-md); aspect-ratio: 16/9; object-fit: cover; }
.article-hero figcaption { font-size: 12.5px; color: var(--muted); padding-top: 8px; text-align: center; }

.article-body { padding-block: 16px; font-size: 15px; line-height: 1.95; color: var(--body); }
.article-body p { margin: 0 0 15px; }
.article-body h2 { font-size: 19px; font-weight: 800; margin: 22px 0 10px; }
.article-body h3 { font-size: 16.5px; font-weight: 800; margin: 18px 0 8px; }
.article-body img { border-radius: var(--radius-md); margin-block: 8px; }
.article-body ul, .article-body ol { padding-inline-start: 26px; margin: 0 0 18px; }
.article-body blockquote {
  background: var(--quote-bg); border-inline-start: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0; font-weight: 700; color: var(--brand-deep);
}
.article-body a { color: var(--brand); text-decoration: underline; }
.article-body mark { background: #FDEBC8; }

.writer-follow-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-soft); border: 1px solid var(--divider); border-radius: var(--radius-md);
  padding: 12px 16px; margin-block: 18px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; transition: all .2s;
}
.btn-red { background: var(--brand); color: #fff; }
.btn-red:hover { background: var(--brand-deep); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--quote-bg); }
.btn-ghost { border-color: var(--divider); color: var(--ink); background: var(--surface); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.share-row { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 14px; }
.share-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--divider);
  background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-btn.wa:hover { background: #1FA855; color: #fff; border-color: #1FA855; }
.share-btn.fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn.tg:hover { background: #229ED9; color: #fff; border-color: #229ED9; }

.read-also, .most-read {
  background: var(--quote-bg); border: 1px solid #F3D8DD; border-radius: var(--radius-md);
  padding: 14px 16px; margin-block: 16px;
}
.box-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.read-also .list-row, .most-read .list-row { border-color: #EFD3D9; }

.comments { margin-block: 20px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-block: 12px; }
.comment-form textarea {
  border: 1px solid var(--divider); border-radius: var(--radius-md); padding: 12px 14px; resize: vertical;
}
.comment-note { font-size: 12px; color: var(--muted); }
.comment-login-note { font-size: 14px; }
.comment-login-note a { color: var(--brand); font-weight: 700; }
.comment { display: flex; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--divider); }
.comment .avatar-fallback { width: 34px; height: 34px; font-size: 14px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.comment-head span { color: var(--muted); font-size: 11.5px; }
.comment-main p { margin: 4px 0 0; font-size: 14px; }
.comments-empty { color: var(--muted); font-size: 13.5px; }

.article-side { margin-top: 26px; }
.article-bottom-bar {
  position: fixed; bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  inset-inline: 0; background: var(--surface); border-top: 1px solid var(--divider);
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; z-index: 65;
}
.like-pill {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--divider);
  border-radius: 999px; padding: 9px 16px; background: var(--surface); font-weight: 700; font-size: 13.5px;
}
.like-pill.on { color: var(--brand); border-color: var(--brand); background: var(--quote-bg); }
.comment-pill {
  flex: 1; border: 1px solid var(--divider); border-radius: 999px; padding: 9px 16px;
  color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px;
}
.article-bottom-bar ~ .bottom-nav { display: flex; }

/* ============ صفحة القسم ============ */
.category-hero { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; padding-block: 26px; }
.category-hero h1 { color: #fff; font-size: clamp(22px, 5vw, 30px); font-weight: 800; }
.category-hero p { color: rgba(255,255,255,.85); margin: 6px 0 0; font-size: 14px; }
.file-hero { background: var(--ink); }
.tab-bar { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--divider); margin-bottom: 16px; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar-item {
  padding: 9px 16px; font-weight: 700; font-size: 13.5px; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab-bar-item.active { color: var(--brand); border-color: var(--brand); }
.cat-lead { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.cat-lead img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.cat-lead-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,11,15,.88) 10%, transparent 60%); }
.cat-lead-body { position: absolute; bottom: 16px; inset-inline: 16px; color: #fff; }
.cat-lead-body h2 { color: #fff; font-size: clamp(17px, 4vw, 24px); font-weight: 800; }

/* ============ شبكة الأقسام S08 ============ */
.sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 900px) { .sections-grid { grid-template-columns: repeat(6, 1fr); } }
.section-card {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 10px; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-md); font-weight: 700; font-size: 13.5px; text-align: center;
  transition: all .2s;
}
.section-card:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.section-card-icon { color: var(--brand); }
.gov-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gov-card { background: var(--surface-soft); border: 1px solid var(--divider); padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.gov-card:hover { border-color: var(--brand); color: var(--brand); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ الكتّاب ============ */
.writer-featured {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  background: var(--surface-soft); border: 1px solid var(--divider); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 18px;
}
.writer-featured-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.writer-spec { color: var(--brand); font-size: 13px; font-weight: 700; }
.writer-featured-body { flex: 1; min-width: 220px; }
.writer-featured-body h2 { font-size: 20px; }
.writer-featured-body p { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.writer-featured-actions { display: flex; gap: 8px; }
.follow-btn { min-width: 110px; }
.writers-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .writers-grid { grid-template-columns: 1fr 1fr; } }
.writer-card {
  display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--divider);
  border-radius: var(--radius-md); padding: 14px;
}
.writer-card-head { display: flex; gap: 12px; align-items: center; }
.writer-card-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.writer-card h3 { font-size: 15.5px; }
.writer-count { display: block; color: var(--muted); font-size: 12px; }
.writer-profile-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.writer-profile-info h1 { font-size: clamp(20px, 4.5vw, 28px); }
.writer-bio { color: var(--body); font-size: 14.5px; margin: 8px 0; }
.writer-stats { display: flex; gap: 18px; color: var(--muted); font-size: 13.5px; }
.writer-stats strong { color: var(--ink); font-size: 16px; }
.writer-actions { display: flex; gap: 8px; margin-top: 10px; }
.writer-about { background: var(--surface-soft); border-radius: var(--radius-md); padding: 18px; }

/* ============ الفيديو ============ */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--divider); background: var(--surface); }
.video-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--live-card); }
.video-card-media img { width: 100%; height: 100%; object-fit: cover; }
.play-mini {
  position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: rgba(26,44,178,.92); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.video-card-body { padding: 10px 12px; }
.video-card-title { font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.video-card-meta { display: flex; gap: 14px; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.video-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.video-player-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--live-bg); margin-bottom: 14px; }
.video-iframe, .video-player { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.video-page-title { font-size: clamp(19px, 4.5vw, 26px); font-weight: 800; }
.video-page-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-block: 8px 12px; }
.video-page-meta span { display: inline-flex; align-items: center; gap: 5px; }
.video-page-desc { color: var(--body); }
.video-error { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.7); }

/* ============ البث المباشر (سمة داكنة — تستكمل live.css) ============ */
.chip-bar { display: flex; gap: 8px; overflow-x: auto; padding-block: 6px; margin-block: 14px; scrollbar-width: none; }
.chip-bar::-webkit-scrollbar { display: none; }
.chip-label { align-self: center; font-size: 12.5px; color: var(--muted); }
.chip {
  padding: 8px 18px; border-radius: 999px; background: var(--surface-soft);
  border: 1px solid var(--divider); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ============ البحث ============ */
.search-form { display: flex; gap: 10px; margin-bottom: 12px; }
.search-form input[type="search"] {
  flex: 1; border: 2px solid var(--divider); border-radius: var(--radius-md);
  padding: 13px 16px; font-size: 16px;
}
.search-form input[type="search"]:focus { border-color: var(--brand); outline: none; }
.search-count { color: var(--muted); font-size: 13.5px; margin: 8px 0 14px; }
.search-result { display: flex; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--divider); }
.search-result-text { flex: 1; min-width: 0; }
.search-result h3 { font-size: 15.5px; }
.search-result h3 mark, .search-result p mark { background: #FDEBC8; }
.search-result p { color: var(--muted); font-size: 13px; margin: 4px 0; }
.search-result img { width: 92px; height: 62px; border-radius: var(--radius-sm); object-fit: cover; }

/* ============ الأرشيف ============ */
.archive-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.archive-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.archive-filters input, .archive-filters select { border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 8px 10px; }

/* ============ الحالات الفارغة والترقيم ============ */
.empty-state { text-align: center; padding: 44px 16px; color: var(--muted); }
.empty-icon {
  width: 68px; height: 68px; border-radius: 50%; background: var(--surface-soft);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand); margin-bottom: 12px;
}
.empty-state h3 { font-size: 16.5px; color: var(--ink); }
.empty-state p { font-size: 13.5px; margin: 6px 0 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 20px; }
.pager-btn {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--divider);
  border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13.5px;
}
.pager-btn:hover { border-color: var(--brand); color: var(--brand); }
.pager-btn.is-disabled { opacity: .45; pointer-events: none; }
.pager-status { font-size: 13px; color: var(--muted); }

/* ============ الفوتر — مضغوط وأنيق ولا يغطي المحتوى ============ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-block: 20px 16px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; } }
.footer-brand img { width: 104px; height: auto; margin-bottom: 8px; }
.footer-brand p { font-size: 12px; margin: 0; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.footer-col h3 { color: #fff; font-size: 13.5px; margin-bottom: 2px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 6px; }
.footer-social a {
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 10px; font-size: 11.5px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.footer-links { display: flex; gap: 12px; }
.footer-links a:hover { color: #fff; }
/* الهاتف: شريط التنقل السفلي ثابت — نضيف حشوة داخل الفوتر نفسه حتى لا يغطيه */
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom)); }
  .footer-bottom { border-bottom: 0; }
}

/* ============ صفحات ثابتة/حساب/تواصل ============ */
.static-page { max-width: 820px; }
.static-page.narrow { max-width: 640px; }
.static-page h1 { font-size: clamp(22px, 5vw, 30px); margin-bottom: 16px; padding-inline-start: 12px; border-inline-start: 4px solid var(--brand); }
.contact-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.contact-form, .auth-card { display: flex; flex-direction: column; gap: 12px; }
.contact-form label, .auth-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea, .auth-card input {
  border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 15px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .auth-card input:focus { border-color: var(--brand); outline: none; }
.form-success { background: #EAF7EF; color: #0F6B3E; border: 1px solid #BFE5CC; padding: 12px 16px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; }
.auth-page { display: flex; justify-content: center; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); margin-block: 30px;
}
.auth-card h1 { font-size: 20px; text-align: center; }
.auth-card img { align-self: center; }
.auth-alt { font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--brand); font-weight: 700; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.check-line input { width: auto; }
.check-line a { color: var(--brand); }
.account-card {
  display: flex; align-items: center; gap: 14px; background: var(--surface-soft);
  border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 16px; margin-block: 14px;
}
.account-card div { flex: 1; display: flex; flex-direction: column; }
.account-card span { color: var(--muted); font-size: 13px; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) { .account-grid { grid-template-columns: repeat(3, 1fr); } }
.account-link { display: block; padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; font-weight: 600; }
.account-more { color: var(--brand); font-weight: 700; font-size: 13px; display: inline-block; margin-top: 8px; }
.muted-note { color: var(--muted); font-size: 13px; }
.notif-actions { margin-bottom: 12px; }
.notif-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 12px; border-bottom: 1px solid var(--divider); border-radius: var(--radius-sm); }
.notif-row.unread { background: var(--quote-bg); }
.notif-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-softer); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-body strong { font-size: 14px; }
.notif-body p { font-size: 13px; color: var(--muted); margin: 3px 0; }
.notif-time { font-size: 11.5px; color: var(--muted); }
.notif-mark { border: 0; background: transparent; color: var(--brand); padding: 6px; }
.notif-mark:hover { background: var(--surface-softer); border-radius: 8px; }

/* ============ النسخة الورقية ============ */
.issues-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 800px) { .issues-grid { grid-template-columns: repeat(4, 1fr); } }
.issue-card { border: 1px solid var(--divider); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.issue-cover { aspect-ratio: 3 / 4; background: var(--surface-softer); }
.issue-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-cover.big { max-width: 300px; border-radius: var(--radius-md); overflow: hidden; }
.issue-body { padding: 10px 12px; }
.issue-number { color: var(--brand); font-weight: 800; font-size: 12.5px; }
.issue-body h3 { font-size: 14px; margin-top: 3px; }
.issue-date { color: var(--muted); font-size: 12px; }
.issue-detail { display: flex; flex-wrap: wrap; gap: 22px; }
.issue-info { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ============ أدوات عامة ============ */
.center-row { display: flex; justify-content: center; padding-block: 14px; }
.only-mobile { display: flex; }
@media (min-width: 768px) { .only-mobile { display: none; } }
.simple-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.toast {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-start: 50%; transform: translateX(50%);
  background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  z-index: 120; box-shadow: var(--shadow-md);
}
[dir="rtl"] .toast { transform: translateX(50%); }

@media (min-width: 768px) {
  :root { --gutter: 20px; }
  body { font-size: 14.5px; }
  .header-top { min-height: 68px; }
  .header-logo img { width: 128px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 28px; }
  .news-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-track { transition: none; }
}

/* ============================================================
   v6 — سرعة التنقل وسلاسة الحركة
   انتقالات سلسة بين الصفحات + دخول متدرج للبطاقات + رسم أول أسرع
   ============================================================ */

/* انتقال مشاهد بين الصفحات (MPA View Transitions — Chromium) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
@keyframes mn-page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: mn-fade-out .18s ease both; }
::view-transition-new(root) { animation: mn-page-in .26s ease both; }
@keyframes mn-fade-out { to { opacity: 0; } }

/* دخول متدرج لبطاقات الأخبار عند أول رسم */
.news-grid > *, .issues-grid > *, .videos-grid > *, .writers-grid > *, .cards-row > *, .sec-block {
  animation: mn-rise .4s cubic-bezier(.2,.7,.3,1) both;
}
.news-grid > *:nth-child(2), .issues-grid > *:nth-child(2), .videos-grid > *:nth-child(2), .writers-grid > *:nth-child(2) { animation-delay: .05s; }
.news-grid > *:nth-child(3), .issues-grid > *:nth-child(3), .videos-grid > *:nth-child(3), .writers-grid > *:nth-child(3) { animation-delay: .1s; }
.news-grid > *:nth-child(4), .issues-grid > *:nth-child(4), .videos-grid > *:nth-child(4), .writers-grid > *:nth-child(4) { animation-delay: .15s; }
.news-grid > *:nth-child(n+5), .issues-grid > *:nth-child(n+5), .videos-grid > *:nth-child(n+5), .writers-grid > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes mn-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* تفاعل البطاقات: إحساس مباشر باللمس */
.news-card, .issue-card, .video-card, .writer-card, .tab, .btn {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.news-card:hover, .issue-card:hover, .video-card:hover, .writer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card:active, .issue-card:active, .video-card:active { transform: translateY(-1px) scale(.995); }
.tab:active { transform: scale(.96); }

/* رسم أول أسرع: أقسام أسفل الشاشة تُرسم عند الاقتراب منها */
main .page-block { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* هيكل عظمي أثناء تحميل الصور (يمنع القفز) */
img { background: linear-gradient(110deg, var(--surface-softer) 8%, var(--surface-soft) 18%, var(--surface-softer) 33%); background-size: 200% 100%; }
img:not([src^="data:"]) { min-height: 1px; }
/* الشفاف ممنوع من الهيكل العظمي: الشعار يظهر بخلفيته الحقيقية على أي سطح */
img[src^="/brand/"], img[src^="data:"], .header-logo img, .drawer-head img, .footer-brand img, .adm-logo img, .auth-card img {
  background: transparent;
}
.hero-img, .news-card img, .issue-cover img, .video-card img { aspect-ratio: 16 / 9; object-fit: cover; }

/* شريط تقدم أعلى الصفحة أثناء التنقل */
#mn-nav-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow));
  z-index: 300; border-radius: 0 2px 2px 0; opacity: 0; transition: width .2s ease, opacity .3s ease;
}
#mn-nav-progress.active { opacity: 1; width: 72%; transition: width 1.4s cubic-bezier(.1,.6,.3,1); }
#mn-nav-progress.done { width: 100%; opacity: 0; transition: width .15s ease, opacity .25s ease .15s; }

/* ============================================================
   النسخة الورقية — قارئ احترافي + قائمة منظمة
   ============================================================ */
.anim-rise { animation: mn-rise .45s cubic-bezier(.2,.7,.3,1) both; }

/* قائمة الأعداد */
.issues-sub { margin: 26px 0 12px; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.issues-sub::after { content: ''; flex: 1; height: 1px; background: var(--divider); }
.issue-featured {
  display: flex; gap: 22px; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 6px; box-shadow: var(--shadow-sm);
}
.issue-featured:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.issue-featured-cover { position: relative; flex: 0 0 240px; }
.issue-featured-cover img { border-radius: var(--radius-md); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.issue-flag {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.issue-featured-body { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.issue-featured-body h2 { font-size: 24px; }
.issue-desc { color: var(--muted); font-size: 14.5px; margin: 0; }
.issue-meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.issue-pages-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface-soft);
  border: 1px solid var(--divider); color: var(--body); font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.issue-read-btn { margin-top: auto; }
.issue-num-badge {
  position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(9,13,21,.78); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.issue-card .issue-cover { position: relative; }
@media (max-width: 720px) {
  .issue-featured { flex-direction: column; }
  .issue-featured-cover { flex: none; max-width: 300px; }
}

/* صفحة العدد: الترويسة */
.paper-reader-wrap { max-width: 1060px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; }
.crumbs a:hover { color: var(--brand); }
.issue-head {
  display: flex; gap: 20px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px;
}
.issue-head-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.issue-head-info h1 { font-size: 26px; }
.issue-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.issue-head-cover { flex: 0 0 160px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
@media (max-width: 640px) { .issue-head { flex-direction: column; } .issue-head-cover { flex: none; width: 150px; } }

/* القارئ */
.paper-reader { display: flex; flex-direction: column; gap: 14px; }
.paper-stage {
  position: relative; background: #101418; border-radius: var(--radius-lg);
  padding: 18px 46px; display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.paper-stage-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 760px; }
#paperMain {
  border-radius: 4px; box-shadow: 0 8px 32px rgba(0,0,0,.5); max-height: 78vh; width: auto; max-width: 100%;
  transition: opacity .25s ease; background: #1c222b;
}
#paperMain + figcaption { color: #aeb6c2; font-size: 12.5px; text-align: center; }
.paper-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .15s ease;
}
.paper-nav:hover { background: var(--brand); transform: translateY(-50%) scale(1.08); }
.paper-prev { inset-inline-start: 10px; }
.paper-next { inset-inline-end: 10px; }
.paper-counter {
  position: absolute; top: 10px; inset-inline-start: 12px; background: rgba(9,13,21,.7); color: #fff;
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
}
.paper-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.paper-thumb {
  flex: 0 0 auto; border: 2px solid var(--divider); border-radius: 8px; padding: 0;
  background: var(--surface-soft); overflow: hidden; position: relative; scroll-snap-align: center;
  transition: border-color .18s ease, transform .18s ease;
}
.paper-thumb img { width: 90px; height: 124px; object-fit: cover; display: block; }
.paper-thumb:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 50%, white); }
.paper-thumb.current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.paper-thumb-num {
  position: absolute; bottom: 0; inset-inline-end: 0; background: rgba(9,13,21,.75); color: #fff;
  font-size: 10px; padding: 1px 6px; border-start-start-radius: 6px;
}
@media (max-width: 640px) {
  .paper-stage { padding: 14px 12px 16px; }
  .paper-nav { width: 36px; height: 36px; }
  .paper-prev { inset-inline-start: 4px; }
  .paper-next { inset-inline-end: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-rise, .news-grid > *, .issues-grid > *, .videos-grid > *, .writers-grid > *, .cards-row > *, .sec-block { animation: none; }
}

/* ============ لوحة الأدمن — محرر النسخة الورقية ============ */
.adm-pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 12px; }
.adm-page-card { background: var(--surface-soft); border: 1px solid var(--divider); border-radius: var(--radius-md); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.adm-page-thumb { position: relative; border-radius: 8px; overflow: hidden; background: var(--surface-softer); }
.adm-page-thumb img { width: 100%; height: 150px; object-fit: cover; }
.adm-page-num {
  position: absolute; top: 6px; inset-inline-start: 6px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.adm-preview-row { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.adm-preview { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.adm-preview img { max-width: 160px; border-radius: 8px; border: 1px solid var(--divider); }
.adm-actions-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.adm-details form { margin-top: 8px; }

/* ============ v10 — قياسات كل الأجهزة: كمبيوتر/آيباد/هاتف ============ */
/* 1) أهداف لمس أكبر لنقاط السلايدر (مساحة إصبع 23px مع الحفاظ على الشكل المرئي 9px) */
.hero-dot {
  width: 23px; height: 23px;
  border: 7px solid transparent;
  background-clip: padding-box;
}
.hero-dot.current { width: 40px; }
/* 2) روابط "عرض الكل" وأهداف صغيرة — لمس مريح */
@media (hover: none), (max-width: 768px) {
  .section-more { padding: 8px 10px; margin: -8px -10px; }
  .hero-dots { bottom: 10px; }
}
/* 3) الهاتف: تقليل الحشو العام وإبقاء الشبكات مرتبة */
@media (max-width: 400px) {
  .news-grid { grid-template-columns: 1fr; }
  .container { --gutter: 12px; }
}
/* 4) حماية عامة من أي تمدد أفقي عرضي */
img, video, iframe { max-width: 100%; }
.adm-input, .adm-table input, .adm-table select { max-width: 100%; }

/* ===================== شريط البث المباشر في الرئيسية (v15) ===================== */
.home-live {
  margin-top: 14px;
  background: linear-gradient(160deg, #0C1120 0%, #090D15 55%, #0E0A14 100%);
  border-block: 1px solid #1B2337;
  position: relative;
  overflow: hidden;
}
.home-live::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 220px at 88% -10%, rgba(225,29,51,.14), transparent 65%),
    radial-gradient(520px 200px at 8% 120%, rgba(26,44,178,.16), transparent 60%);
  pointer-events: none;
}
.home-live-inner { position: relative; padding-block: 14px 16px; }
.home-live-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.home-live-head h2 {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: clamp(16px, 3vw, 20px); font-weight: 800; margin: 0;
}
.home-live-all {
  display: inline-flex; align-items: center; gap: 4px;
  color: #FF5C79; font-weight: 800; font-size: 13.5px; white-space: nowrap;
  border: 1px solid rgba(225,29,51,.4); border-radius: 999px; padding: 7px 14px;
  background: rgba(225,29,51,.12); transition: background .2s, transform .2s;
}
.home-live-all:hover { background: rgba(225,29,51,.22); transform: translateY(-1px); }
.home-live-strip {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #232E4A transparent;
}
.home-live-strip::-webkit-scrollbar { height: 6px; }
.home-live-strip::-webkit-scrollbar-thumb { background: #232E4A; border-radius: 999px; }
.home-live-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: linear-gradient(150deg, #141B2A, #0D1322);
  border: 1px solid #1E2841; border-radius: 12px;
  padding: 12px 8px 10px;
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-height: 110px; justify-content: space-between;
}
.home-live-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225,29,51,.55);
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.hl-logo-wrap {
  width: 100%; height: 46px;
  display: flex; align-items: center; justify-content: center;
}
.hl-logo-wrap img { max-width: 78%; max-height: 100%; object-fit: contain; }
.hl-name {
  color: #fff; font-weight: 700; font-size: 11.5px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
/* شارة مباشر — معرفة هنا لتعمل على الرئيسية (live.css لا يُحمَّل إلا في صفحات البث) */
:root { --mn-live-red: #E11D33; }
.badge-live {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(225,29,51,.16);
  color: #FF5C79; font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(225,29,51,.4);
}
.badge-live.sm { font-size: 10.5px; padding: 3px 9px; }
.live-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--mn-live-red);
  display: inline-block; box-shadow: 0 0 0 4px rgba(225,29,51,.22); animation: pulse 1.4s infinite;
}
.live-dot.sm { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(225,29,51,.2); }
.home-live-card .badge-live { position: static; }
.home-live-card .badge-live.sm { position: static; }

/* شاشات أكبر: الشبكة تتحول لصفوف مرتبة بلا تمرير */
@media (min-width: 1000px) {
  .home-live-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
  }
}
@media (max-width: 560px) {
  .home-live-card { padding: 10px 7px 9px; min-height: 98px; }
  .hl-logo-wrap { height: 40px; }
  .hl-name { font-size: 11px; }
}

/* حركة دخول لطيفة تحترم تقليل الحركة */
@media (prefers-reduced-motion: no-preference) {
  .home-live-card { animation: hlRise .5s both; }
  .home-live-card:nth-child(2) { animation-delay: .04s; }
  .home-live-card:nth-child(3) { animation-delay: .08s; }
  .home-live-card:nth-child(4) { animation-delay: .12s; }
  .home-live-card:nth-child(5) { animation-delay: .16s; }
  .home-live-card:nth-child(6) { animation-delay: .2s; }
  @keyframes hlRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   v19 — ويدجت الرئيسية: الطقس + أسعار العملات (مكان مميز)
   ============================================================ */
.widgets-band { padding-block: 14px 4px; background: var(--surface-soft); border-bottom: 1px solid var(--divider); }
.widgets-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .widgets-grid { grid-template-columns: 1.2fr 1fr; } }
.widget-card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-lg);
  padding: 12px 14px 13px; box-shadow: var(--shadow-sm); min-width: 0;
}
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.widget-title { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; color: var(--ink); }
.widget-title .icon { color: var(--brand); }
.widget-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.widgets-note { margin-top: 8px; }
.widgets-note span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }

/* تبويبات الطقس */
.wx-tabs { display: inline-flex; background: var(--surface-soft); border: 1px solid var(--divider); border-radius: 999px; padding: 2px; gap: 2px; }
.wx-tab {
  border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 12px;
  padding: 5px 13px; border-radius: 999px; transition: all .18s; font-family: inherit;
}
.wx-tab.active { background: var(--brand); color: #fff; }
.wx-tab:not(.active):hover { color: var(--brand); }

/* بطاقات الطقس */
.wx-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr);
  gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--divider) transparent;
}
.wx-strip[hidden] { display: none; }
.wx-strip::-webkit-scrollbar { height: 5px; }
.wx-strip::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 999px; }
.wx-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(160deg, #F4F7FF, #EDF1FB);
  border: 1px solid #E2E7F5; border-radius: 12px; padding: 10px 6px 9px;
  transition: transform .18s, box-shadow .18s; min-width: 0;
}
.wx-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.wx-city { font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wx-icon { font-size: 19px; line-height: 1.3; filter: drop-shadow(0 1px 1px rgba(17,19,24,.12)); }
.wx-temp { font-size: 16px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.3; }
.wx-temp i { font-style: normal; font-size: 11px; vertical-align: super; }
.wx-range { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .wx-strip { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); grid-auto-columns: unset; overflow: visible; }
  .widget-weather .wx-strip[data-wx-group="arab"] { grid-template-columns: repeat(8, 1fr); }
}

/* بطاقات العملات */
.fx-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr);
  gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--divider) transparent;
}
.fx-strip::-webkit-scrollbar { height: 5px; }
.fx-strip::-webkit-scrollbar-thumb { background: var(--divider); border-radius: 999px; }
.fx-chip {
  scroll-snap-align: start;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-soft); border: 1px solid var(--divider); border-radius: 12px;
  padding: 8px 10px; min-width: 0; transition: transform .18s, border-color .18s;
}
.fx-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, white); }
.fx-flag { font-size: 19px; line-height: 1; flex-shrink: 0; }
.fx-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fx-name { font-size: 11px; font-weight: 700; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-rate { font-size: 13.5px; font-weight: 800; color: var(--brand-deep); font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.fx-rate i { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 600; }
@media (min-width: 1000px) {
  .fx-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: unset; overflow: visible; }
}

/* الهاتف: الويدجت بارتفاع مضبوط بدون اتساع */
@media (max-width: 560px) {
  .widgets-band { padding-block: 10px 2px; }
  .widget-card { padding: 10px 10px 11px; border-radius: 14px; }
  .wx-card { padding: 8px 5px 8px; }
  .wx-icon { font-size: 17px; }
  .wx-temp { font-size: 15px; }
}

/* ===== v21: شريط الكاتب على كروت الأخبار (اسم + صورة) ===== */
.news-card-writer { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); min-width: 0; }
.news-card-writer img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.news-card-writer .ncw-ava { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-glow, #1a2cb2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.news-card-writer a { color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.news-card-writer a:hover { color: var(--brand); }
@media (max-width: 640px) { .news-card-writer a { max-width: 120px; } }


/* ===== v22: account password change ===== */
.password-card{margin-top:1rem}
.account-pass{display:flex;flex-direction:column;gap:.5rem;max-width:360px;margin-top:.6rem}
.account-pass input{padding:.6rem .75rem;border:1px solid #dfe3ec;border-radius:10px;font:inherit;background:#fff}
.flash-note{padding:.6rem .8rem;border-radius:9px;font-size:.9rem;margin:.5rem 0}
.flash-note.ok{background:#e9f7ee;color:#1c7a3a;border:1px solid #bfe6cc}
.flash-note.bad{background:#fdeaea;color:#a02020;border:1px solid #f2c1c1}
.flash-note.warn{background:#fff7e8;color:#8a5b00;border:1px solid #f0d9a8}
