/* ============================================================
   DV عربية — ورقة الأنماط (مستوحاة من هوية الموقع الأصلي)
   الألوان مستخرجة من النظام اللوني الأصلي:
   #002186 أزرق العلامة | #081336 كحلي النصوص | #05b2fc سيان
   #F0F6FA خلفية فاتحة | #CDE1EE حدود | #BE232D أحمر العاجل
   ============================================================ */

:root {
  --brand: #002186;
  --brand-dark: #00175e;
  --ink: #081336;
  --ink-2: #000821;
  --gray: #5C718A;
  --gray-mid: #99B5C9;
  --bg-soft: #F0F6FA;
  --line: #CDE1EE;
  --accent: #05b2fc;
  --red: #BE232D;
  --green: #1d9e5f;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(8, 19, 54, .08);
  --font: "Pangea", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", Arial, Helvetica, sans-serif;
  --container: 1110px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; right: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { right: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ================= شريط الأخبار العاجلة ================= */
.breaking-bar {
  background: var(--red);
  color: #fff;
  font-size: 14.5px;
  animation: dropIn .35s ease;
}
@keyframes dropIn { from { transform: translateY(-100%); } to { transform: none; } }
.breaking-inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.breaking-label {
  flex: 0 0 auto; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; letter-spacing: .3px;
}
.breaking-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.75);} }
.breaking-track-clip { flex: 1; overflow: hidden; position: relative; }
.breaking-track {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 34px;
  white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.breaking-track::-webkit-scrollbar { display: none; }
.breaking-track a { font-weight: 600; }
.breaking-track a::after { content: "•"; margin-right: 30px; opacity: .6; font-weight: 400; }
.breaking-track li:last-child a::after { content: ""; margin: 0; }
.breaking-close {
  flex: 0 0 auto; background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1;
  padding: 4px 8px; opacity: .85;
}
.breaking-close:hover { opacity: 1; }

/* ================= الترويسة ================= */
.site-header {
  position: sticky; top: 0; z-index: 120; background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.header-start { display: flex; align-items: center; gap: 14px; }
.header-nav { flex: 1; min-width: 0; }
.header-nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.header-nav-list::-webkit-scrollbar { display: none; }
.header-nav-list a {
  display: block; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: var(--ink); white-space: nowrap; transition: background .15s, color .15s;
}
.header-nav-list a:hover { background: var(--bg-soft); color: var(--brand); }
.header-end { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 6px 2px; color: var(--ink);
}
.nav-toggle-box {
  width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 8px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--bg-soft);
}
.burger-line { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle-text { font-size: 13.5px; font-weight: 600; }
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 44px; height: 25px; }
.logo-word { font-size: 21px; font-weight: 800; color: var(--brand); letter-spacing: .5px; white-space: nowrap; }
.logo-sub { font-weight: 700; color: var(--ink); }

.header-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-soft);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.header-icon-btn:hover { background: var(--brand); color: #fff; }

.live-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  transition: background .15s;
}
.live-btn:hover { background: var(--brand-dark); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }

.header-progress { height: 3px; width: 0; background: var(--brand); transition: width .1s linear; }

/* ================= القائمة الكاملة ================= */
.nav-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--white);
  overflow-y: auto; animation: dropIn .25s ease;
}
.nav-overlay-head {
  position: sticky; top: 0; background: var(--white); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.nav-overlay-title { font-weight: 800; color: var(--brand); font-size: 17px; }
.nav-overlay-close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft);
  font-size: 24px; color: var(--ink); line-height: 1;
}
.nav-overlay-close:hover { background: var(--brand); color: #fff; }
.nav-overlay-body { max-width: var(--container); margin: 0 auto; padding: 26px 20px 50px; }
.nav-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 36px; }
.nav-group-title {
  margin: 0 0 12px; font-size: 14px; font-weight: 800; color: var(--brand);
  text-transform: uppercase; letter-spacing: .6px;
  border-bottom: 2px solid var(--line); padding-bottom: 8px;
}
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group li + li { margin-top: 4px; }
.nav-group a {
  display: block; padding: 7px 10px; border-radius: var(--radius);
  font-size: 16.5px; font-weight: 600; color: var(--ink);
}
.nav-group a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-group.focus .nav-group-title { color: var(--red); }

/* ================= نافذة البحث ================= */
.search-overlay {
  position: fixed; inset: 0; z-index: 210; background: rgba(8, 19, 54, .92);
  backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: center;
  padding: 14vh 20px 40px; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-overlay-head { width: min(680px, 100%); display: flex; gap: 10px; }
.search-form { flex: 1; display: flex; background: #fff; border-radius: 10px; overflow: hidden; }
.search-input {
  flex: 1; border: 0; padding: 15px 18px; font-size: 17px; font-family: inherit;
  color: var(--ink); outline: none; min-width: 0;
}
.search-submit { border: 0; background: var(--brand); color: #fff; width: 58px; display: inline-flex; align-items: center; justify-content: center; }
.search-submit:hover { background: var(--brand-dark); }
.search-suggest { width: min(680px, 100%); margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-suggest-label { color: #cbd7e8; font-size: 14px; }
.search-overlay .nav-overlay-close { background: rgba(255,255,255,.14); color: #fff; align-self: flex-end; margin-bottom: -46px; }
.search-overlay .nav-overlay-close:hover { background: var(--red); }

.chip {
  display: inline-block; background: rgba(255,255,255,.12); color: #e8effa; border: 1px solid rgba(255,255,255,.25);
  padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.chip:hover { background: #fff; color: var(--brand); }

/* ================= المحتوى العام ================= */
.main { min-height: 55vh; }
.page-body { max-width: var(--container); margin: 0 auto; padding: 26px 20px 60px; }

.breadcrumb { display: flex; gap: 8px; font-size: 13.5px; color: var(--gray); margin: 18px 0 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- البطل (الموضوع الرئيسي) ---- */
.hero { margin: 18px 0 8px; }
.hero-link { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: center; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-soft); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hero-link:hover .hero-media img { transform: scale(1.03); }
.hero-body { display: flex; flex-direction: column; gap: 10px; }
.hero-kicker {
  color: var(--brand); font-weight: 800; font-size: 14px; letter-spacing: .4px;
  display: inline-block;
}
.hero-title { margin: 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.35; font-weight: 800; }
.hero-link:hover .hero-title { color: var(--brand); }
.hero-teaser { margin: 0; color: var(--gray); font-size: 16.5px; }
.card-date { color: var(--gray-mid); font-size: 13px; margin-top: 6px; display: inline-block; }

/* ---- رؤوس الأقسام ---- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 34px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--brand);
}
.section-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.section-more { font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

/* ---- قائمة الأخبار ---- */
.news-list { display: flex; flex-direction: column; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.news-row { display: flex; gap: 16px; padding: 16px 0; align-items: flex-start; }
.row-num {
  flex: 0 0 auto; font-size: 26px; font-weight: 800; color: var(--brand);
  min-width: 30px; line-height: 1.15; opacity: .85; font-variant-numeric: tabular-nums;
}
.row-media { flex: 0 0 148px; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-soft); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-body { min-width: 0; }
.row-title { margin: 2px 0 6px; font-size: 17.5px; line-height: 1.45; font-weight: 700; }
.row-title a:hover { color: var(--brand); }

/* ---- شبكة البطاقات ---- */
.card-grid { display: grid; gap: 26px 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-item.is-hidden { display: none; }
.card { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-soft); margin-bottom: 10px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-kicker { color: var(--brand); font-weight: 800; font-size: 12.5px; display: inline-block; margin-bottom: 3px; }
.card-title { margin: 0 0 6px; font-size: 16.5px; line-height: 1.45; font-weight: 700; }
.card-title a:hover { color: var(--brand); }
.card-teaser { margin: 0; color: var(--gray); font-size: 14.5px; line-height: 1.6; }

.type-badge {
  position: absolute; bottom: 8px; inset-inline-start: 8px;
  background: rgba(8, 19, 54, .82); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 4px; display: inline-flex; align-items: center; gap: 5px;
}
.type-badge.live { background: var(--red); }

/* ---- زر المزيد ---- */
.show-more-wrap { text-align: center; margin: 26px 0 8px; }
.show-more-btn {
  background: var(--white); color: var(--brand); border: 2px solid var(--brand);
  font-size: 15px; font-weight: 700; padding: 10px 38px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.show-more-btn:hover { background: var(--brand); color: #fff; }

/* ---- الملف (دوسيه) ---- */
.dossier {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.dossier-side { display: flex; flex-direction: column; justify-content: center; }
.dossier-side .news-row { padding: 10px 0; }
.dossier-side .row-media { flex-basis: 108px; }

/* ---- شريط الفيديوهات القصيرة ---- */
.v-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px;
  gap: 16px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: thin;
}
.v-card { display: flex; flex-direction: column; gap: 8px; }
.v-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9/16; background: var(--bg-soft); }
.v-media img { width: 100%; height: 100%; object-fit: cover; }
.v-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(transparent 45%, rgba(8,19,54,.55));
}
.v-dur {
  position: absolute; bottom: 8px; inset-inline-end: 8px;
  background: rgba(8,19,54,.85); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums;
}
.v-title { font-size: 13.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= صفحات الأقسام ================= */
.section-header { margin: 10px 0 6px; }
.section-page-title { margin: 4px 0 8px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
.section-desc { color: var(--gray); margin: 0; max-width: 720px; }

/* ================= صفحة الخبر ================= */
.article { max-width: 780px; margin: 0 auto; }
.article-head { margin: 10px 0 18px; }
.article-title { margin: 6px 0 12px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.4; font-weight: 800; }
.article-teaser { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 14px; line-height: 1.7; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--gray); font-size: 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 12px;
}
.article-meta a { color: var(--brand); font-weight: 600; }
.article-figure { margin: 14px 0 22px; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-figure figcaption { font-size: 13px; color: var(--gray); margin-top: 8px; line-height: 1.6; }

.article-body { font-size: 18px; line-height: 1.95; }
.article-body p { margin: 0 0 20px; }
.article-body h2 { font-size: 23px; margin: 34px 0 12px; line-height: 1.45; }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; }
.article-body a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-inline-start: 26px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 24px 0; padding: 14px 20px; border-inline-start: 4px solid var(--brand);
  background: var(--bg-soft); border-radius: var(--radius); font-weight: 600;
}
.article-body img { border-radius: var(--radius); margin: 8px auto; }
.article-body figcaption { font-size: 13px; color: var(--gray); }
.article-body strong { color: var(--ink-2); }
.article-editors { color: var(--gray); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 12px; }

.share-bar { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; }
.share-label { font-size: 14px; font-weight: 700; color: var(--gray); margin-inline-end: 4px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.share-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-row .chip { background: var(--bg-soft); color: var(--brand); border-color: var(--line); }
.chips-row .chip:hover { background: var(--brand); color: #fff; }

.gallery { display: grid; gap: 22px; }
.gallery-item img { border-radius: var(--radius); }
.gallery-item figcaption { font-size: 13.5px; color: var(--gray); margin-top: 6px; }

/* ================= الصفحات الإعلامية ================= */
.media-page .player-wrap, .player-wrap {
  position: relative; background: #000; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; margin: 12px 0 18px; max-height: 72vh;
}
.dv-player { width: 100%; height: 100%; display: block; background: #000; }
.player-msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; background: rgba(0,0,0,.72); padding: 20px; text-align: center;
}

.audio-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin: 12px 0 0; }
.audio-poster { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.audio-panel {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: linear-gradient(transparent, rgba(8,19,54,.85)); color: #fff;
}
.audio-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.dv-audio { width: 100%; margin: 14px 0 18px; }

.live-head { display: flex; align-items: center; gap: 16px; margin: 10px 0 4px; flex-wrap: wrap; }
.live-flag {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 13.5px; padding: 6px 14px; border-radius: 999px;
}
.live-flag .live-dot { background: #fff; }

.schedule { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.schedule th {
  background: var(--bg-soft); text-align: right; padding: 11px 14px; font-size: 13.5px;
  color: var(--brand); border-bottom: 2px solid var(--line);
}
.schedule td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule tr:last-child td { border-bottom: 0; }
.sch-time { white-space: nowrap; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.sch-prog { font-weight: 700; min-width: 130px; }
.sch-el { display: block; font-weight: 400; font-size: 13.5px; color: var(--gray); margin-top: 3px; }
.sch-desc { color: var(--gray); font-size: 14px; }

/* ================= البحث ================= */
.search-count { color: var(--gray); font-weight: 700; margin-bottom: 14px; }
.search-status { color: var(--gray); padding: 20px 0; }

/* ================= حالات عامة ================= */
.empty-note {
  background: var(--bg-soft); border: 1px dashed var(--gray-mid); color: var(--gray);
  border-radius: var(--radius); padding: 34px 22px; text-align: center; margin: 24px 0; font-size: 16px;
}
.error-box { text-align: center; padding: 60px 20px; }
.error-icon {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--bg-soft); color: var(--brand); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800;
}
.error-icon.nf { width: auto; border-radius: 10px; padding: 0 18px; }
.error-box h2 { margin: 0 0 8px; }
.error-box p { color: var(--gray); margin: 0 0 22px; }
.btn-primary {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  font-weight: 700; font-size: 15px; padding: 11px 34px; border-radius: 999px;
}
.btn-primary:hover { background: var(--brand-dark); }

/* ---- هياكل التحميل ---- */
.sk { background: linear-gradient(90deg, var(--bg-soft) 25%, #e3eef7 45%, var(--bg-soft) 65%); background-size: 220% 100%; animation: shine 1.3s infinite; border-radius: var(--radius); }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -60% 0; } }
.sk-img { aspect-ratio: 16/9; }
.sk-line { height: 15px; margin: 10px 0; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w70 { width: 70%; } .sk-line.w80 { width: 80%; } .sk-line.w90 { width: 90%; }
.sk-title { height: 30px; width: 80%; margin: 10px 0 16px; }
.sk-hero { margin: 22px 0; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; margin: 30px 0; }
.sk-detail { max-width: 780px; margin: 22px auto; }

.toast {
  position: fixed; bottom: 26px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--ink); color: #fff; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; z-index: 400; box-shadow: var(--shadow);
  animation: toastUp .25s ease;
}
@keyframes toastUp { from { opacity: 0; transform: translate(50%, 14px); } to { opacity: 1; transform: translate(50%, 0); } }

.to-top {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.to-top:hover { background: var(--brand-dark); }

.noscript-note { background: var(--red); color: #fff; text-align: center; padding: 18px; font-weight: 700; }

/* ================= التذييل ================= */
.site-footer { background: var(--ink); color: #c8d4e6; margin-top: 70px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; padding: 46px 20px 34px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo-word { color: #fff; }
.footer-brand .logo-sub { color: var(--gray-mid); }
.footer-slogan { margin: 0 0 18px; font-size: 15px; color: #9db1cc; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--brand); }
.footer-col h3 { margin: 0 0 14px; font-size: 15px; color: #fff; font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 9px; }
.footer-col a { font-size: 14.5px; color: #9db1cc; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; color: #7d92ae; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ================= استجابة ================= */
@media (max-width: 980px) {
  .hero-link { grid-template-columns: 1fr; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
  .dossier { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-nav { display: none; }
  .nav-toggle-text { display: none; }
  .header-row { min-height: 58px; gap: 10px; }
  .logo-word { font-size: 18px; }
  .live-btn { padding: 8px 12px; font-size: 13px; }
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .sk-grid { grid-template-columns: 1fr; }
  .row-media { flex-basis: 118px; }
  .row-title { font-size: 16px; }
  .article-body { font-size: 17px; }
  .hero-title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .breaking-track { gap: 22px; }
  .v-strip { grid-auto-columns: 148px; }
  .dossier-side .row-media { flex-basis: 90px; }
}

@media (max-width: 430px) {
  .row-num { display: none; }
  .card-title { font-size: 15.5px; }
}

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

/* طباعة */
@media print {
  .site-header, .site-footer, .breaking-bar, .share-bar, .to-top, .nav-overlay, .search-overlay { display: none !important; }
  .article-body { font-size: 12pt; }
}

/* ================== لوحة التحكم (مسار /admin) ================== */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 20px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-title { margin: 0; font-size: 1.45rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.admin-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); display: inline-block; }
.admin-sub { margin: 4px 0 0; color: var(--gray); font-size: .9rem; }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.admin-live { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--green); }
.admin-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
.admin-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.atab { font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; padding: 11px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--gray); margin-bottom: -2px; border-radius: 10px 10px 0 0; transition: color .15s, background .15s; white-space: nowrap; }
.atab:hover { background: rgba(0,33,134,.06); color: var(--ink); }
.atab.on { color: var(--brand); border-bottom-color: var(--brand); background: rgba(0,33,134,.07); }

/* بطاقات لوحة التحكم */
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 10px; }
.admin-warn { background: rgba(190,35,45,.08); border: 1px solid rgba(190,35,45,.3); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .92rem; color: var(--ink); line-height: 1.9; }

/* مؤشرات KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand), transparent 70%); }
.kpi-v { font-size: 1.6rem; font-weight: 900; color: var(--ink); line-height: 1.2; }
.kpi-l { font-size: .86rem; font-weight: 700; color: var(--gray); margin-top: 4px; }
.kpi-s { font-size: .76rem; color: var(--gray-mid); margin-top: 3px; }

/* أزرار لوحة التحكم */
.abtn { font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; padding: 8px 15px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); text-decoration: none; display: inline-block; transition: all .15s; }
.abtn:hover { border-color: var(--brand); color: var(--brand); }
.abtn:disabled { opacity: .45; cursor: not-allowed; }
.abtn-red { background: var(--brand); border-color: var(--brand); color: #fff; }
.abtn-red:hover { filter: brightness(1.15); color: #fff; border-color: var(--brand-dark); }

/* الجداول */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.atable { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 720px; }
.atable th { background: rgba(0,33,134,.07); color: var(--ink); font-weight: 800; padding: 11px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.atable td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.atable tr:last-child td { border-bottom: 0; }
.atable tr:hover td { background: rgba(0,33,134,.035); }
.td-path { font-family: ui-monospace, monospace; font-size: .78rem; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.td-fp { font-family: ui-monospace, monospace; font-size: .78rem; direction: ltr; }
.td-actions { white-space: nowrap; }

/* الفلاتر */
.vf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.vf-grid label { display: grid; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--gray); }
.vf-grid input, .vf-grid select, .admin-card textarea, .admin-card input[type="url"], .admin-card input[type="text"], .admin-card input[type="password"], .admin-card select { font: inherit; font-size: .88rem; padding: 9px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 100%; box-sizing: border-box; }
.vf-grid input:focus, .vf-grid select:focus, .admin-card textarea:focus { outline: none; border-color: var(--brand); }
.vf-bar { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font-size: .9rem; font-weight: 700; color: var(--gray); }

/* بوابة كلمة المرور */
.admin-gate { max-width: 430px; margin: 40px auto; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 36px 30px; }
.gate-mark { margin-bottom: 10px; }
.admin-gate h2 { font-size: 1.3rem; font-weight: 900; margin: 0 0 6px; }
.admin-gate p { color: var(--gray); font-size: .9rem; line-height: 1.9; margin: 0 0 8px; }
.gate-form { display: flex; gap: 10px; margin: 18px 0 8px; }
.gate-form input { flex: 1; font: inherit; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.gate-form input:focus { outline: none; border-color: var(--brand); }
.gate-note { font-size: .85rem; color: var(--gray); min-height: 1.4em; display: block; }
.gate-err { color: var(--red); font-weight: 700; }
.gate-ok { color: var(--green); font-weight: 700; }
.gate-hint { font-size: .76rem; color: var(--gray-mid); margin-top: 10px; line-height: 1.9; }
.gate-hint code { background: rgba(0,33,134,.08); padding: 2px 7px; border-radius: 6px; direction: ltr; display: inline-block; }

/* الرسوم البيانية */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ch-wide { grid-column: 1 / -1; }
.admin-card canvas { max-width: 100%; }

/* نموذج المواضيع */
.post-form { display: grid; gap: 14px; }
.post-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.post-form .req { color: var(--red); }
.post-form textarea { font: inherit; font-size: .92rem; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); resize: vertical; line-height: 1.9; }
.post-form input[type="text"], .post-form input[type="url"], .post-form input[type="datetime-local"] { font: inherit; font-size: .92rem; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.pf-preview { margin-top: 6px; }
.pf-preview img { max-width: 100%; max-height: 150px; border-radius: var(--radius); border: 1px solid var(--line); }
.pf-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px !important; font-size: .9rem; }
.pf-check input { width: auto; }
@media (max-width: 860px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pf-grid { grid-template-columns: 1fr; } }

/* شارات المواضيع */
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0,33,134,.1); color: var(--brand); }
.badge-video { background: rgba(5,178,252,.15); color: #026a97; }

/* الرسائل */
.msg-list { display: grid; gap: 12px; }
.msg-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.msg-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; font-size: .85rem; color: var(--gray-mid); }
.msg-head strong { color: var(--ink); font-size: .95rem; }
.msg-mail { direction: ltr; font-family: ui-monospace, monospace; }
.msg-subject { font-weight: 800; color: var(--ink); margin-top: 6px; }
.msg-body { color: var(--ink); line-height: 1.95; margin: 8px 0 10px; white-space: pre-wrap; }
.msg-item .abtn { margin-top: 4px; }

/* حالات فارغة */
.empty { text-align: center; color: var(--gray); padding: 34px 18px; font-size: .92rem; border: 2px dashed var(--line); border-radius: 14px; line-height: 2; }

@media (max-width: 620px) {
  .admin-head { flex-direction: column; align-items: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-card { padding: 16px; }
  .gate-form { flex-direction: column; }
}

/* ================== صفحات الموقع الثابتة (about/contact/privacy) ================== */
.policy-page .article-body { max-width: 780px; margin: 0 auto; }
.policy-page .article-body p { line-height: 2.1; margin: 0 0 16px; }
.policy-mail { color: var(--brand); font-weight: 700; direction: ltr; unicode-bidi: embed; }

/* نموذج اتصل بنا */
.contact-form { display: grid; gap: 14px; max-width: 620px; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.contact-form input, .contact-form textarea { font: inherit; font-size: .92rem; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); color: var(--ink); resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }
.cf-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cf-note { font-size: .85rem; color: var(--gray); min-height: 1.4em; }
.cf-err { color: var(--red); font-weight: 700; }
.cf-ok { color: var(--green); font-weight: 700; }

/* ================== فيديو مواد لوحة التحكم ================== */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 18px 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed video { width: 100%; height: 100%; background: #000; }
.video-embed a { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-weight: 700; }

/* ================== روابط قانونية في التذييل ================== */
.footer-legal { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a { color: #9fb3cc; }
.footer-legal a:hover { color: #fff; }

/* عنوان 404 */
.nf-title { font-size: 1.3rem; font-weight: 900; margin: 8px 0; }
