/* ============================================================
   Saharadoc — ملفات صحراوية
   Brand: black + red (#BA1622, sampled from the official logo)
   ============================================================ */

:root {
  --red: #ba1622;
  --red-600: #a0121d;
  --red-700: #850e17;
  --black: #0b0b0b;
  --nav-bg: #1c1c1c;
  --footer-bg: #121212;
  --footer-text: #cfcfcf;

  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #d6d6d6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --gutter: 15px;
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #1a1a1a;
  --surface: #262626;
  --surface-2: #202020;
  --text: #e0e0e0;
  --muted: #a3a3a3;
  --line: #3b3b3b;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #1a1a1a;
    --surface: #262626;
    --surface-2: #202020;
    --text: #e0e0e0;
    --muted: #a3a3a3;
    --line: #3b3b3b;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip; /* belt-and-braces: no horizontal page scroll, ever */
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--red);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.4;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  max-width: 990px;
}

/* ───────────── Progress bar & back-to-top ───────────── */
.progress-bar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  background: var(--red);
  z-index: 200;
  transition: width 0.1s linear;
}
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(186, 22, 34, 0.45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.25s;
  z-index: 90;
}
.back-to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ───────────── Header ───────────── */
.topbar {
  background: var(--red);
  color: #fff;
}
.topbar-inner {
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-end {
  justify-content: flex-end;
}
.brand img {
  height: 58px;
  width: auto;
}
.circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  transition: background 0.2s;
}
.circle-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
.theme-btn {
  color: #ffd25e;
}
.pill-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pill-btn:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

.mainnav {
  background: var(--nav-bg);
  color: #fff;
}
.mainnav-inner {
  display: flex;
  align-items: stretch;
  min-height: 56px;
  gap: 8px;
}
.menu-btn {
  border: 0;
  background: none;
  color: #fff;
  width: 48px;
  display: grid;
  place-items: center;
  flex: none;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  margin-inline-end: 56px; /* visually centre against the hamburger */
}
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
}

/* drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 300;
  animation: fade 0.2s;
}
.drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(320px, 86vw);
  background: var(--nav-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.25s ease-out;
  overflow-y: auto;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--red);
}
.drawer-head img {
  height: 44px;
  width: auto;
}
.drawer-links {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.drawer-links a {
  display: block;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
}
.drawer-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.drawer-social {
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  margin-top: auto;
}
.drawer-social .circle-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* search */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 10, 10, 0.94);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.2s;
}
.search-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: none;
  border: 0;
  color: #fff;
  width: 48px;
  height: 48px;
}
.search-form {
  width: min(700px, 100%);
  display: flex;
  border-bottom: 3px solid var(--red);
}
.search-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: clamp(20px, 4vw, 30px);
  padding: 12px 4px;
  outline: none;
}
.search-form button {
  background: none;
  border: 0;
  color: #fff;
  width: 56px;
}

/* ───────────── Ticker ───────────── */
.ticker {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ticker-label {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  box-shadow: 0 0 14px rgba(186, 22, 34, 0.55);
}
.ticker-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(to left, transparent, #000 30px, #000 calc(100% - 30px), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline-end: 14px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 16px;
}
.ticker-chip {
  background: var(--red);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-flex;
}
.ticker-chip img {
  height: 26px;
  width: auto;
}
.ticker-arrows {
  flex: none;
  display: flex;
  gap: 10px;
  padding-inline-end: 12px;
}
.ticker-arrows button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ───────────── Ads / campaign banner ───────────── */
.sd-box {
  margin: 0 auto;
}
.sd-box img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.sd-box-top {
  margin-top: 14px;
  margin-bottom: 4px;
}
.sd-box-home {
  margin-block: 10px;
}

/* ───────────── Section heading  ── [ title ] ── ───────────── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-heading::before,
.section-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--line);
}
.section-heading-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  padding: 13px 20px;
  max-width: 80%;
}
.section-heading-label a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.section-heading-label a:hover {
  color: #fff;
  opacity: 0.85;
}
.band-red .section-heading::before,
.band-red .section-heading::after {
  background: rgba(0, 0, 0, 0.75);
}

/* ───────────── Home bands ───────────── */
.home-band {
  padding: 28px 0;
}
.band-red {
  background: var(--red);
  color: #fff;
}
.hero-band {
  padding-top: 24px;
}

/* hero: timeline | slider | teasers */
.hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: start;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
}
.time-badge {
  flex: none;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 8px;
  margin-top: 3px;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.timeline a {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.55;
}
.hero-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.hero-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}
.hero-slide.on {
  opacity: 1;
  z-index: 1;
}
.hero-slide img {
  object-fit: cover;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.hero-arrow.next {
  right: 14px;
}
.hero-arrow.prev {
  left: 14px;
}
.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.65);
}
.hero-dots button.on {
  background: var(--red);
}
.teaser + .teaser {
  margin-top: 22px;
}
.teaser-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

/* overlay card */
.ocard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #222;
  isolation: isolate;
}
.ocard-link {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
}
.ocard-link:hover {
  color: #fff;
}
.ocard-img {
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ocard:hover .ocard-img {
  transform: scale(1.05);
}
.ocard-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 38%, transparent 65%);
  z-index: 0;
}
.ocard-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 16px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.ocard-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.ocard-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.ocard-lg .ocard-title {
  font-size: 22px;
}
.ocard-lg .ocard-body {
  padding: 20px 22px;
}
.play-badge {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
}
.ocard-lg .play-badge {
  width: 46px;
  height: 46px;
}
/* video cards: the date sits in its own row above the title, never over burnt-in thumbnail text */
.vcard .ocard-link::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 30%, transparent 55%);
}
.vcard-blur {
  object-fit: cover;
  filter: blur(18px) brightness(0.6);
  transform: scale(1.2);
}
.vcard-img-vertical {
  object-fit: contain;
}

/* 1 large + 4 small */
.one-plus-four {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  height: 420px;
}
.opf-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}
.opf-main {
  display: grid;
  min-height: 0;
}
.opf-mobile-list {
  display: none;
}

/* opinion */
.opinion-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.opinion-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.opinion-img {
  position: relative;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--red);
}
.opinion-img img {
  object-fit: cover;
}
.opinion-item h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

/* shorts */
.shorts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.shorts-row .ocard {
  aspect-ratio: 3 / 2.1;
}

/* three columns + widgets */
.three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.three-cols .ocard {
  aspect-ratio: 16 / 11;
}
.widget {
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  min-height: 256px;
  display: flex;
  flex-direction: column;
}
.weather-widget {
  background: linear-gradient(145deg, #2f86de, #1557b0);
}
.prayer-widget {
  background: linear-gradient(145deg, #12755a, #0b5743);
}
.widget-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.widget-date {
  font-size: 13px;
  opacity: 0.95;
}
.city-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  min-height: 38px;
  color: #fff;
}
.city-select option {
  color: #111;
}
.widget-error {
  margin: auto;
  opacity: 0.9;
}
.wx-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
}
.wx-icon {
  font-size: 46px;
}
.wx-temp {
  font-size: 46px;
  font-weight: 800;
}
.wx-desc {
  font-size: 16px;
}
.wx-stats {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
}
.wx-stats strong {
  display: block;
  font-size: 15px;
}
.prayer-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}
.prayer-next strong {
  font-size: 18px;
}
.prayer-left {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 12px;
}
.prayer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.prayer-grid li {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  padding: 6px;
}
.prayer-grid li strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.prayer-grid li.on {
  background: #fff;
  color: #0b5743;
}

/* list card (thumbnail beside title) */
.lcard {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.lcard-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.lcard-thumb img {
  object-fit: cover;
}
.lcard-cat {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.lcard h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}
.lcard time {
  font-size: 12px;
  color: var(--muted);
}
.band-red .lcard time {
  color: rgba(255, 255, 255, 0.8);
}

/* ───────────── Archive pages (category / tag / author / search) ───────────── */
.archive {
  padding: 28px 0 40px;
}
.archive-desc {
  text-align: center;
  color: var(--muted);
  margin: -6px auto 22px;
  max-width: 640px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.post-grid .ocard {
  aspect-ratio: 293 / 208;
}
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 30px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
}
.btn-red:hover {
  background: var(--red-600);
  color: #fff;
}
.btn-red[disabled] {
  opacity: 0.6;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.pagination [aria-current] {
  background: var(--red);
  color: #fff;
}
.empty {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
}
.search-page-form {
  display: flex;
  max-width: 620px;
  margin: 0 auto 26px;
  background: var(--surface);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0 20px;
  min-height: 50px;
  outline: none;
}
.search-page-form button {
  border-radius: 0;
}
.list-stack {
  display: grid;
  gap: 18px;
}

/* ───────────── Article ───────────── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 28px 0 40px;
}
.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 30px 30px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}
.breadcrumbs li + li::before {
  content: '/';
  margin-inline-end: 6px;
}
.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 18px;
}
.article-figure {
  margin: 0 0 6px;
}
.article-figure .img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.article-figure img {
  object-fit: cover;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta .meta-author,
.article-meta .meta-author a {
  color: var(--red);
  font-weight: 700;
}
.prose {
  font-size: 18px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.prose p {
  margin: 0 0 1.1em;
}
.prose h2 {
  font-size: 24px;
  margin: 1.3em 0 0.6em;
}
.prose h3 {
  font-size: 20px;
  margin: 1.2em 0 0.5em;
}
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose img {
  border-radius: var(--radius-sm);
  margin: 1em 0;
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-inline-start: 4px solid var(--red);
  background: var(--surface-2);
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}
.sd-box-article {
  margin: 18px 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 6px;
}
.tags a {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
}
.tags a:hover {
  border-color: var(--red);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 8px;
}
.post-nav a {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}
.post-nav small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.post-nav .next {
  text-align: left;
}
.related-heading .section-heading-label,
.footer-heading span {
  background: var(--red);
  border-radius: 30px;
}
.related {
  margin-top: 30px;
}
.related .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.comments {
  margin-top: 30px;
}
.comment-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.comment-list li {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.comment-list strong {
  color: var(--red);
}
.comment-list time {
  color: var(--muted);
  font-size: 12px;
  margin-inline-start: 8px;
}
.comment-list p {
  margin: 4px 0 0;
  white-space: pre-line;
}
.comment-form {
  display: grid;
  gap: 12px;
}
.comment-form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.comment-form input,
.comment-form textarea,
.newsletter input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 46px;
}
.comment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.comment-form .btn-red {
  justify-self: start;
}
.comment-form {
  position: relative;
}
.comment-form .hp {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px !important;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}
.form-msg {
  font-size: 14px;
  margin: 6px 0 0;
}
.form-msg.ok {
  color: #1c8a4a;
}
.form-msg.err {
  color: var(--red);
}

/* sidebar */
.sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 20px;
}
.sidebar-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.sidebar-box .section-heading-label {
  background: var(--red);
  border-radius: 6px;
  font-size: 15px;
  padding: 9px 16px;
}
.sidebar-box .timeline {
  max-height: none;
}

/* share */
.share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-label {
  font-weight: 700;
}
.share a,
.share button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
}
.share a:hover,
.share button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.share-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  z-index: 50;
}
.share-inline {
  display: none;
  margin-bottom: 18px;
}

/* video page */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
}
.player.vertical {
  aspect-ratio: 9 / 16;
  max-width: 400px;
  margin-inline: auto;
}
.player iframe,
.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-poster img {
  object-fit: cover;
}
.player-note {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.video-grid .ocard {
  aspect-ratio: 16 / 10;
}
.video-grid.shorts .ocard {
  aspect-ratio: 3 / 2.1;
}

/* ───────────── Footer ───────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 30px;
  padding-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 30px;
}
.footer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 16px;
}
.footer-heading::before,
.footer-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #3a3a3a;
}
.footer-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  padding: 7px 16px;
  border-radius: 4px;
}
.footer-logo {
  height: 84px;
  width: auto;
  margin-bottom: 14px;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 10px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
}
.footer-links a:hover {
  color: #fff;
}
.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  background: #1f1f1f;
  border-color: #333;
  color: #fff;
  border-radius: 30px;
  padding-inline: 18px;
}
.newsletter button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 30px;
  padding: 0 24px;
  font-weight: 700;
  min-height: 46px;
}
.newsletter .form-msg {
  flex-basis: 100%;
}
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact svg {
  color: var(--red);
}
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
}
.footer-credit {
  display: block;
  margin-top: 6px;
  opacity: .85;
}
.footer-credit strong {
  color: #fff;
  font-weight: 700;
}

/* static page */
.page-card {
  max-width: 860px;
  margin: 28px auto 40px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .nav-links a {
    padding: 0 10px;
    font-size: 15px;
  }
  .hero-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .hero-teasers {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .teaser + .teaser {
    margin-top: 0;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .opinion-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .share-rail {
    display: none;
  }
  .share-inline {
    display: flex;
  }
}

/* Tablet & phone: scrollable category chips replace the reference's empty white menu bar */
@media (max-width: 900px) {
  .mainnav {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .mainnav-inner {
    padding-inline: 0;
    min-height: 50px;
  }
  .menu-btn {
    width: 52px;
  }
  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline-end: 0;
    padding-inline-end: 12px;
    gap: 6px;
    align-items: center;
    mask-image: linear-gradient(to left, #000 85%, transparent);
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    height: 34px;
    padding: 0 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 15px;
  }
  .nav-links a.active {
    background: var(--red);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
  }
  .post-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shorts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }
  .topbar-inner {
    height: 60px;
  }
  .brand img {
    height: 48px;
  }
  .hide-sm {
    display: none !important;
  }
  .circle-btn {
    width: 40px;
    height: 40px;
  }
  .ticker {
    margin-top: 14px;
    height: 48px;
    gap: 8px;
  }
  .ticker-label span {
    display: none; /* icon only on phones */
  }
  .ticker-label {
    padding: 0 14px;
  }
  .ticker-arrows {
    display: none; /* swipe-free marquee; saves width */
  }
  .ticker-item {
    font-size: 15px;
  }
  .sd-box-top {
    margin-top: 12px;
  }
  .home-band {
    padding: 22px 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hero-center {
    order: -1;
  }
  .hero-teasers {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-title {
    font-size: 18px;
    min-height: 0;
  }
  .timeline {
    max-height: none;
  }
  .timeline a {
    font-size: 16px;
  }
  .teaser-text {
    text-align: start;
    -webkit-line-clamp: 4;
    font-size: 16px;
  }
  .section-heading-label {
    font-size: 17px;
    padding: 11px 16px;
  }
  /* 1+4 → 1 large card + 4 compact rows (halves the page height vs the reference) */
  .one-plus-four {
    display: block;
    height: auto;
  }
  .opf-side {
    display: none;
  }
  .opf-main .ocard {
    aspect-ratio: 16 / 10;
  }
  .opf-mobile-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
  }
  .one-plus-four:not(:has(.opf-mobile-list)) .opf-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    margin-top: 12px;
  }
  .one-plus-four:not(:has(.opf-mobile-list)) .opf-side .ocard {
    aspect-ratio: 16 / 11;
  }
  .one-plus-four:not(:has(.opf-mobile-list)) .ocard-sm .ocard-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
  .one-plus-four:not(:has(.opf-mobile-list)) .ocard-sm .ocard-body {
    padding: 10px;
    gap: 8px;
  }
  .one-plus-four:not(:has(.opf-mobile-list)) .ocard-sm .play-badge {
    width: 28px;
    height: 28px;
  }
  .one-plus-four:not(:has(.opf-mobile-list)) .ocard-sm .ocard-date {
    display: none;
  }
  .ocard-lg .ocard-title {
    font-size: 19px;
  }
  .opinion-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .opinion-img {
    width: 72px;
    height: 72px;
  }
  .opinion-item h3 {
    font-size: 16px;
  }
  .shorts-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .shorts-row .ocard {
    flex: 0 0 62%;
    aspect-ratio: 9 / 14;
    scroll-snap-align: start;
  }
  .post-grid,
  .video-grid,
  .related .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-grid .ocard {
    aspect-ratio: 16 / 10;
  }
  .article-card {
    padding: 18px 16px 22px;
    border-radius: 0;
    box-shadow: none;
  }
  .article-layout {
    padding-top: 16px;
    padding-inline: 0;
  }
  .article-layout .sidebar {
    padding-inline: var(--gutter);
  }
  .article-title {
    font-size: 25px;
  }
  .prose {
    font-size: 18px;
    line-height: 1.9;
  }
  .post-nav,
  .comment-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-nav .next {
    text-align: start;
  }
  .footer-links a {
    padding: 9px 0;
  }
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 16px;
    left: 16px;
  }
  .lcard {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

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

/* overlay card: date above title (video cards keep play badge beside text) */
.ocard:not(.vcard) .ocard-body {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.vcard .ocard-body > div {
  min-width: 0;
}

/* ============================================================
   WordPress theme additions
   ============================================================ */
[hidden] {
  display: none !important;
}
img.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.vcard-img-vertical.fill {
  object-fit: contain;
}
.theme-btn .i-sun,
:root[data-theme='dark'] .theme-btn .i-moon {
  display: none;
}
:root[data-theme='dark'] .theme-btn .i-sun {
  display: contents;
}
.theme-btn .i-moon {
  display: contents;
}
.newsletter {
  position: relative;
}
.newsletter .hp {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* sticky bars under the WordPress admin bar (logged-in editors) */
.admin-bar .sidebar {
  top: 48px;
}
@media (max-width: 900px) {
  .admin-bar .mainnav {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .mainnav {
    top: 0;
  }
}

/* article content from the block editor / classic editor */
.prose > *:first-child {
  margin-top: 0;
}
.prose figure,
.prose .wp-caption {
  margin: 1.2em 0;
  max-width: 100%;
}
.prose figure img,
.prose .wp-caption img {
  margin: 0;
}
.prose figcaption,
.prose .wp-caption-text,
.prose .wp-element-caption {
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
  text-align: center;
}
.prose .aligncenter {
  margin-inline: auto;
  text-align: center;
}
.prose .alignleft {
  float: left;
  margin: 0.4em 0 1em 1.2em;
  max-width: 50%;
}
.prose .alignright {
  float: right;
  margin: 0.4em 1.2em 1em 0;
  max-width: 50%;
}
.prose::after {
  content: '';
  display: table;
  clear: both;
}
.prose iframe,
.prose video,
.prose embed {
  max-width: 100%;
}
.prose iframe[src*='youtube'],
.prose iframe[src*='youtu.be'] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
}
.prose .wp-block-embed__wrapper {
  position: relative;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 8px;
}
.prose .wp-block-gallery,
.prose .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.prose .gallery img,
.prose .wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
@media (max-width: 640px) {
  .prose .alignleft,
  .prose .alignright {
    float: none;
    margin: 1em auto;
    max-width: 100%;
  }
}
.page-links {
  margin: 20px 0;
  font-weight: 700;
}

/* comments (WordPress) */
.comment-list .children {
  list-style: none;
  margin: 10px 0 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 10px;
}
.comment-list .comment-text p {
  margin: 4px 0 0;
}
.comment-reply-link {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
}
.comment-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.comment-form .form-submit {
  margin: 0;
}
.comment-form .logged-in-as {
  font-size: 13px;
  margin: 0;
}
#cancel-comment-reply-link {
  font-size: 13px;
  color: var(--red);
  margin-inline-start: 10px;
}

/* search form outside the overlay (search page, 404) */
.inline-search {
  margin: 10px 0 20px;
  border-bottom-color: var(--red);
}
.inline-search input,
.inline-search button {
  color: var(--text);
}
.not-found p {
  margin: 0 0 16px;
}
.not-found .btn-red {
  display: inline-block;
  text-decoration: none;
}
.more-grid {
  margin-top: 18px;
}
.copy-link.copied {
  color: var(--red);
}
/* overlays below the WordPress admin bar for logged-in editors */
.admin-bar .drawer-backdrop,
.admin-bar .search-overlay {
  top: var(--wp-admin--admin-bar--height, 32px);
}
/* "على مدار الساعة" next to the slider: scroll box the slider's height (desktop) */
@media (min-width: 1101px) {
  .hero-timeline .timeline {
    max-height: 480px;
    overflow-y: auto;
    padding-inline-end: 6px;
    scrollbar-width: thin;
  }
}
/* many slides: dots wrap instead of overflowing on phones */
.hero-dots {
  flex-wrap: wrap;
  padding-inline: 50px;
}

/* ============================================================
   Main menu: dropdowns + "المزيد" (desktop), expandable drawer (phone)
   ============================================================ */
.nav-links {
  min-width: 0;
  flex-wrap: nowrap;
}
.nav-item {
  position: relative;
  display: flex;
  flex: none;
}
.nav-links .caret {
  display: inline-flex;
  margin-inline-start: 4px;
  opacity: 0.75;
  transition: transform 0.2s;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  z-index: 200;
  min-width: 230px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #242424;
  border-top: 3px solid var(--red);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  grid-template-columns: minmax(0, 1fr);
}
.nav-item.wide > .nav-sub {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  min-width: 420px;
  column-gap: 4px;
}
.nav-more > .nav-sub {
  inset-inline-start: auto;
  inset-inline-end: 0; /* last item on the left: open towards the page */
}
.nav-item.has-sub:hover > .nav-sub,
.nav-item.has-sub:focus-within > .nav-sub,
.nav-item.open > .nav-sub {
  display: grid;
  animation: dropIn 0.18s ease-out;
}
.nav-item.has-sub:hover > a .caret,
.nav-item.open > a .caret {
  transform: rotate(180deg);
}
.nav-links .nav-sub a {
  height: auto;
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border-inline-start: 3px solid transparent;
  border-radius: 0;
  background: none;
}
.nav-links .nav-sub a:hover,
.nav-links .nav-sub a.active {
  background: rgba(255, 255, 255, 0.07);
  border-inline-start-color: var(--red);
  color: #fff;
}
/* an item moved into "المزيد" that has its own sub-items: list them under it */
.nav-sub .nav-item {
  display: block;
}
.nav-sub .caret {
  display: none !important;
}
.nav-sub .nav-sub {
  display: block !important;
  position: static;
  min-width: 0;
  padding: 0 0 4px;
  border: 0;
  box-shadow: none;
  background: none;
  animation: none;
}
.nav-sub .nav-sub a {
  padding-inline-start: 34px;
  font-size: 14px;
  opacity: 0.85;
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* drawer with expandable sub-items */
.drawer-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.drawer-links .drawer-row a,
.drawer-parent {
  flex: 1;
  border-bottom: 0;
}
.drawer-parent {
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: none;
  border: 0;
  text-align: start;
  cursor: pointer;
}
.drawer-caret {
  flex: none;
  width: 54px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.drawer-caret svg {
  transition: transform 0.2s;
}
.has-sub.open > .drawer-row .drawer-caret svg {
  transform: rotate(180deg);
}
.has-sub.open > .drawer-row {
  background: rgba(186, 22, 34, 0.25);
}
.drawer-sub {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.28);
}
.drawer-links .drawer-sub a {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  padding-inline-start: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.drawer-links a.active {
  color: #fff;
  background: rgba(186, 22, 34, 0.35);
}

@media (max-width: 900px) {
  .nav-sub,
  .nav-auto-more {
    display: none !important;
  }
  .nav-links .caret {
    margin-inline-start: 2px;
  }
}

/* ============================================================
   Interactive row: إنفوغرافيك | استطلاع الرأي | طالع / نازل
   ============================================================ */
.interactive.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.interactive.cols-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin-inline: auto;
}
/* infographic: the whole image, never cropped */
.infographic {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.infographic img.fill {
  object-fit: contain;
  transition: transform 0.4s;
}
.infographic:hover img.fill {
  transform: scale(1.03);
}

/* poll */
.poll {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.poll-q {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 12px;
}
.poll-opts {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.poll-opts label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.poll-opts label:hover {
  background: var(--surface-2);
}
.poll-opts input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  margin: 0;
  flex: none;
}
.poll-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.poll-show {
  border: 0;
  background: none;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 4px 0;
}
.poll-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.poll-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 5px;
}
.poll-bar {
  height: 9px;
  border-radius: 9px;
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.poll-bar i {
  display: block;
  height: 100%;
  background: #8a8a8a;
  border-radius: 9px;
  animation: barIn 0.6s ease-out;
}
.poll-bars .top .poll-bar i {
  background: var(--red);
}
.poll-bars .top strong {
  color: var(--red);
}
.poll-total {
  margin: 14px 0 4px;
  font-size: 14px;
  color: var(--muted);
}
@keyframes barIn {
  from {
    width: 0;
  }
}

/* طالع / نازل */
.updown {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}
.ud {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ud + .ud {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ud-photo {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
}
.ud-photo img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.ud-up .ud-photo img {
  box-shadow: 0 0 0 3px #1fb46a;
}
.ud-down .ud-photo img {
  box-shadow: 0 0 0 3px #e5245a;
}
.ud-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid var(--surface);
}
.ud-up .ud-badge {
  background: #1fb46a;
}
.ud-down .ud-badge {
  background: #e5245a;
}
.ud-body h3 {
  margin: 4px 0 6px;
  font-size: 19px;
  font-weight: 800;
}
.ud-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.band-red .poll,
.band-red .updown {
  color: var(--text);
}
@media (max-width: 900px) {
  .interactive.cols-2,
  .interactive.cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .infographic {
    aspect-ratio: auto;
    min-height: 0;
  }
  .infographic img.fill {
    position: static;
    height: auto;
  }
}

/* ============================================================
   Newsroom fields: subtitle, image credit, sources
   ============================================================ */
.article-subtitle {
  margin: -4px 0 16px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--muted);
  border-inline-start: 4px solid var(--red);
  padding-inline-start: 12px;
}
.img-credit {
  opacity: 0.85;
}
.sources {
  margin: 26px 0 8px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-inline-start: 4px solid var(--red);
}
.sources h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
}
.sources ol {
  margin: 0;
  padding-inline-start: 20px;
  font-size: 15px;
  line-height: 1.8;
}
.sources a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* «طالع / نازل»: links and person page */
.ud-photo { display: block; }
.ud-body h3 a:hover { color: var(--red); }
.ud-more { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--red); }
.ud-page .ud-head { display: flex; gap: 24px; align-items: center; margin-bottom: 16px; }
.ud-photo-lg, .ud-photo-lg img { width: 160px; height: 160px; }
.ud-photo-lg { flex: none; position: relative; }
.ud-photo-lg img { border-radius: 50%; object-fit: cover; }
.ud-page.ud-up .ud-photo-lg img { box-shadow: 0 0 0 4px #1fb46a; }
.ud-page.ud-down .ud-photo-lg img { box-shadow: 0 0 0 4px #e5245a; }
.ud-page .ud-photo-lg .ud-badge { width: 40px; height: 40px; }
.ud-page.ud-up .ud-badge { background: #1fb46a; }
.ud-page.ud-down .ud-badge { background: #e5245a; }
.ud-label { display: inline-block; font-weight: 800; font-size: 15px; padding: 2px 14px; border-radius: 20px; color: #fff; }
.ud-page.ud-up .ud-label { background: #1fb46a; }
.ud-page.ud-down .ud-label { background: #e5245a; }
.ud-page .article-title { margin: 6px 0 4px; }
.ud-page .article-meta { border: 0; padding: 0; margin: 0; }
.ud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ud-list a { font-weight: 700; }
.ud-list small { color: var(--muted); margin-inline-start: 8px; }
.ud-list .ud-up .ud-mini { color: #1fb46a; }
.ud-list .ud-down .ud-mini { color: #e5245a; }
@media (max-width: 600px) {
  .ud-page .ud-head { flex-direction: column; text-align: center; }
}

/* ============================================================
   Saharadoc Sport
   ============================================================ */
.sp-hero { background: linear-gradient(135deg, #0b0b0b, #2a0a0d 60%, var(--red)); color: #fff; padding: 26px 0 18px; }
.sp-hero-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sp-hero h1 { margin: 0; font-size: 34px; font-weight: 900; direction: ltr; letter-spacing: .3px; }
.sp-hero h1 span { color: #fff; background: var(--red); padding: 0 10px; border-radius: 8px; margin-inline-end: 6px; }
.sp-hero p { margin: 4px 0 0; color: #d8d8d8; font-weight: 600; }
.sp-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.sp-days::-webkit-scrollbar { display: none; }
.sp-days a { flex: none; display: grid; text-align: center; min-width: 64px; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; line-height: 1.3; }
.sp-days a b { font-size: 14px; }
.sp-days a small { font-size: 12px; opacity: .8; }
.sp-days a.on { background: #fff; color: var(--red); }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; margin-top: 22px; align-items: start; }
.sp-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sp-card-h { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 800; font-size: 18px; border-bottom: 3px solid var(--red); }
.sp-card-h small { color: var(--muted); font-weight: 600; font-size: 13px; margin-inline-start: auto; }
.sp-comp h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; font-size: 16px; font-weight: 800; background: var(--surface-2); border-top: 1px solid var(--line); }
.sp-comp h3 img { object-fit: contain; }
.sp-comp h3 small { margin-inline-start: auto; font-size: 12px; color: var(--muted); font-weight: 600; direction: ltr; }
.sp-comp ul { list-style: none; margin: 0; padding: 0; }
.sp-match { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); }
.sp-match:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.sp-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.sp-team b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-team img { flex: none; object-fit: contain; }
.sp-a { flex-direction: row-reverse; justify-content: flex-start; text-align: left; }
.sp-mid { display: grid; justify-items: center; gap: 2px; }
.sp-time { font-weight: 800; font-size: 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; direction: ltr; }
.sp-score { font-weight: 900; font-size: 18px; display: inline-flex; gap: 8px; }
.sp-st { font-size: 11px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.is-live .sp-score, .is-live .sp-st { color: var(--red); }
.is-live .sp-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: spPulse 1.2s infinite; }
@keyframes spPulse { 50% { opacity: .25; } }
.sp-empty { padding: 22px 18px; margin: 0; color: var(--muted); }
.sp-all { display: block; text-align: center; padding: 12px; font-weight: 800; color: var(--red); border-top: 1px solid var(--line); }
.sp-ltabs { display: flex; gap: 6px; padding: 12px 14px 4px; overflow-x: auto; scrollbar-width: none; }
.sp-ltabs button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.sp-ltabs button img { width: 30px; height: 30px; object-fit: contain; }
.sp-ltabs button[aria-selected="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.sp-lpanel h4 { margin: 8px 16px; font-size: 16px; font-weight: 800; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-table th { font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.sp-table td { text-align: center; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.sp-table .t { text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sp-table td.t img { vertical-align: middle; margin-inline-end: 4px; object-fit: contain; }
.sp-table tr td:first-child { color: var(--muted); font-weight: 700; width: 26px; }
.sp-expand { display: block; width: 100%; padding: 10px; border: 0; background: var(--surface-2); color: var(--red); font: inherit; font-weight: 800; cursor: pointer; }
.sp-home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.band-red .sp-card { color: var(--text); }
@media (max-width: 900px) {
  .sp-layout, .sp-home { grid-template-columns: minmax(0, 1fr); }
  .sp-match { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); padding: 10px 12px; }
  .sp-team { font-size: 13px; gap: 6px; }
  .sp-hero h1 { font-size: 26px; }
}

/* Saharadoc Sport: header button, tools, text tabs */
.sport-pill { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 6px; padding: 7px 14px; border-radius: 22px; background: var(--red); color: #fff; font-weight: 800; font-size: 15px; white-space: nowrap; direction: ltr; box-shadow: 0 0 0 2px rgba(255,255,255,.15) inset; transition: transform .15s, background .15s; }
.sport-pill b { font-weight: 900; }
.sport-pill span { font-weight: 600; opacity: .9; }
.sport-pill:hover, .sport-pill.on { background: #fff; color: var(--red); transform: translateY(-1px); }
.sp-tools { display: flex; justify-content: flex-end; padding: 10px 18px 0; }
.sp-live-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 20px; padding: 5px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.sp-live-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sp-live-btn[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.sp-live-btn[aria-pressed="true"] i { background: #fff; }
.sp-comp h3[data-sp-fold] { cursor: pointer; user-select: none; }
.sp-fold { margin-inline-start: 8px; display: inline-flex; transition: transform .2s; }
.sp-comp h3:not(:has(small)) .sp-fold { margin-inline-start: auto; }
.sp-comp h3[aria-expanded="false"] .sp-fold { transform: rotate(180deg); }
.sp-ltabs-text { flex-wrap: wrap; gap: 6px; }
.sp-ltabs-text button { width: auto; height: auto; border-radius: 18px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.sp-ltabs-text button[aria-selected="true"] { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
.sp-credit { font-size: 12px; color: var(--muted); padding: 8px 16px 12px; margin: 0; }
.sp-credit a { color: var(--muted); text-decoration: underline; }
.sp-news { margin-top: 30px; }
@media (max-width: 900px) {
  .sport-pill { padding: 6px 12px; font-size: 14px; margin-inline-start: 4px; }
  .sport-pill span { display: none; }
}

/* ───────── Sponsored articles + native ads ───────── */
.sponsored-label {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: #fff4d6; color: #7a5300; font-size: 13px; font-weight: 700;
  border: 1px solid #f0d58a;
}
html[data-theme="dark"] .sponsored-label { background: #3a2f12; color: #f3d27a; border-color: #5c4a1a; }
.sd-box-native { margin: 28px 0; }

/* ───────── إعلانات — ANNONCES (printed-page look) ───────── */
.annonces { padding: 24px 0 40px; }
.an-paper {
  background: #fff; color: #111; border-radius: 12px; padding: 22px 22px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); font-family: "Times New Roman", Times, "Amiri", serif;
}
.an-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-bottom: 3px solid #111; padding-bottom: 12px; }
.an-title {
  margin: 0 auto 0 0; font-size: clamp(40px, 7vw, 76px); line-height: 1; font-weight: 900; letter-spacing: 2px;
  color: #e9e9e9; -webkit-text-stroke: 2px #4a4a4a; font-family: "Cairo", "Tajawal", sans-serif;
}
.an-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.an-brand img { height: 64px; width: auto; }
.an-site { font: 800 15px/1 Arial, sans-serif; text-decoration: underline; letter-spacing: .5px; }
.an-issue { font: 700 17px/1.5 "Cairo", sans-serif; }
.an-issue span { font-weight: 600; }
.an-bar { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 18px; border: 2px solid #999; background: linear-gradient(#fff, #e6e6e6); padding: 3px; }
.an-bar span { font: 800 16px/1 Arial, sans-serif; padding: 6px 14px; }
.an-fr { background: #111; color: #fff; }
.an-ar { background: #9a9a9a; color: #fff; font-family: "Cairo", sans-serif !important; }
.an-cols { column-count: 5; column-gap: 18px; column-rule: 2px solid #111; text-align: center; }
.an-item { break-inside: avoid; padding: 0 0 4px; font-size: 15.5px; line-height: 1.45; }
.an-item h3 { margin: 0 0 4px; font: 700 15.5px/1.35 "Times New Roman", Times, serif; color: #19a7e0; text-transform: uppercase; }
.an-item h3 a { color: inherit; text-decoration: none; }
.an-item h3 a:hover { text-decoration: underline; }
.an-body p { margin: 0; }
.an-body { white-space: normal; }
.an-nd { margin: 4px 0 0; color: #e00000; font-weight: 700; }
.an-sep { margin: 2px 0 10px; letter-spacing: 2px; font-size: 12px; }
.an-item[dir="rtl"], .an-item:dir(rtl) { font-family: "Cairo", "Tajawal", sans-serif; }
.an-empty { text-align: center; padding: 40px 0; font: 600 17px "Cairo", sans-serif; }
.an-one .an-item { font-size: 18px; max-width: 560px; margin: 10px auto; }
.an-one .an-item h3 { font-size: 20px; }
.an-issues { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.an-issues h2 { font-size: 18px; margin: 0 0 0 8px; }
.an-issues a { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; background: var(--card, #fff); border: 1px solid var(--line, #ddd); color: inherit; text-decoration: none; }
.an-issues a.on { border-color: var(--red, #c8102e); box-shadow: inset 0 0 0 1px var(--red, #c8102e); }
.an-issues small { opacity: .75; }
.an-admin, .an-back { margin-top: 16px; }
.an-admin .btn { display: inline-block; background: var(--red, #c8102e); color: #fff; padding: 6px 14px; border-radius: 999px; text-decoration: none; margin-inline-end: 10px; }
@media (max-width: 1100px) { .an-cols { column-count: 3; } }
@media (max-width: 700px) {
  .an-cols { column-count: 1; column-rule: none; }
  .an-item { border-bottom: 1px solid #ddd; padding-bottom: 8px; margin-bottom: 8px; }
  .an-sep { display: none; }
  .an-paper { padding: 16px; }
  .an-head { justify-content: center; text-align: center; }
  .an-title { margin: 0; }
}

/* ───────── «قرأنا لكم» slider ───────── */
.opinion-slider { position: relative; }
.opinion-row.opinion-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 6px;
}
.opinion-track::-webkit-scrollbar { display: none; }
.opinion-track .opinion-item { flex: 0 0 calc((100% - 66px) / 4); scroll-snap-align: start; }
.opinion-txt { min-width: 0; }
.opinion-author { display: block; color: var(--red); font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.opinion-txt h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.o-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.o-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #9a9a9a; cursor: pointer; transition: transform .2s, background .2s; }
.o-dots button.on { background: var(--text); transform: scale(1.25); }
@media (max-width: 1100px) { .opinion-track .opinion-item { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 700px) { .opinion-row.opinion-track { gap: 14px; } .opinion-track .opinion-item { flex-basis: 88%; } }

/* ───────── Coloured columns (تكنولوجيا / دين و دنيا / سياسة) ───────── */
.color-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.color-col { border-radius: 6px; padding: 18px 16px 20px; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); border-top: 4px solid #d9b25f; }
.cc-0 { background: linear-gradient(180deg, #1f7a4a 0%, #0a4d2c 100%); } /* Moroccan green (flag) */
.cc-1 { background: linear-gradient(180deg, #c99a3e 0%, #8e6420 100%); } /* Saharan gold */
.cc-2 { background: linear-gradient(180deg, #b3202b 0%, #6d0c14 100%); } /* deep Moroccan red (flag) */
.cc-head { position: relative; text-align: center; margin: 0 0 16px; font-size: 18px; }
.cc-head::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; background: var(--red); }
.cc-head::after {
  content: ""; position: absolute; inset-inline: -4px; top: calc(50% - 4px); height: 8px;
  background: radial-gradient(circle, var(--red) 3px, transparent 4px) left center / 8px 8px no-repeat,
              radial-gradient(circle, var(--red) 3px, transparent 4px) right center / 8px 8px no-repeat;
}
.cc-head a { position: relative; z-index: 1; display: inline-block; text-decoration: none; }
.cc-head span { display: inline-block; background: #fff; color: var(--red); font-weight: 900; padding: 6px 26px; border: 2px solid var(--red); transform: skewX(-12deg); }
.cc-lead { position: relative; display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 14px; }
.cc-lead img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cc-lead:hover img { transform: scale(1.04); }
.cc-lead span { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 14px 12px; text-align: center; font-weight: 800; font-size: 16px; line-height: 1.6; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cc-list a { display: flex; gap: 12px; align-items: flex-start; color: #fff; text-decoration: none; }
.cc-thumb { position: relative; flex: none; width: 76px; height: 64px; border-radius: 3px; overflow: hidden; }
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-t { font-weight: 700; font-size: 15px; line-height: 1.55; text-shadow: 0 1px 2px rgba(0,0,0,.25); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-list a:hover .cc-t { text-decoration: underline; }
@media (max-width: 1000px) { .color-cols { grid-template-columns: minmax(0, 1fr); } }

/* ───────── فرص العمل (big grid) ───────── */
.jobs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.job-card { text-align: center; }
.job-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--line); }
.job-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.job-card:hover .job-img img { transform: scale(1.04); }
.job-tag { display: inline-block; position: relative; top: -12px; background: #7d0f17; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 2px; }
.job-card h3 { margin: -4px 0 0; font-size: 16px; font-weight: 800; line-height: 1.6; text-align: start; }
.job-card h3 a { color: inherit; text-decoration: none; }
.job-card h3 a:hover { color: var(--red); }
.jobs-more { text-align: center; margin-top: 22px; }
.jobs-more a { display: inline-block; padding: 8px 22px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; }
.jobs-empty { text-align: center; padding: 18px; border: 2px dashed var(--line); border-radius: 10px; margin: 20px 0; }
@media (max-width: 1000px) { .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .jobs-grid { grid-template-columns: minmax(0, 1fr); } }

/* ───────── فرص العمل: dark band + sliding square cards ───────── */
.home-band.jobs-band { background: #3d3d3d; color: #fff; padding: 34px 0 38px; margin: 30px 0 0; }
.jb-title { margin: 0 0 22px; font-size: 26px; font-weight: 800; }
.jb-title a { color: #fff; text-decoration: none; display: inline-block; padding-bottom: 8px; position: relative; }
.jb-title a::after { content: ""; position: absolute; inset-inline-start: 50%; transform: translateX(50%); bottom: 0; width: 34px; height: 4px; background: var(--red); border-radius: 2px; }
.jb-slider { position: relative; }
.jb-track {
  display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 0 2px;
}
.jb-track::-webkit-scrollbar { display: none; }
.jb-card {
  position: relative; flex: 0 0 calc((100% - 60px) / 3.25); aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  scroll-snap-align: start; display: block; color: #fff; text-decoration: none; background: #2a2a2a;
}
.jb-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.jb-card:hover img { transform: scale(1.05); }
.jb-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85) 100%); }
.jb-t {
  position: absolute; z-index: 1; inset-inline: 14px; bottom: 16px; font-size: 18px; font-weight: 800; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.jb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s;
}
.jb-arrow:hover { background: var(--red); }
.jb-arrow svg { fill: currentColor; }
.jb-prev { right: -14px; }
.jb-next { left: -14px; }
.jb-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1000px) { .jb-card { flex-basis: calc((100% - 30px) / 2.2); } }
@media (max-width: 600px) { .jb-track { gap: 14px; } .jb-card { flex-basis: 78%; } .jb-t { font-size: 16px; } .jb-prev { right: 0; } .jb-next { left: 0; } }

/* ───────── مقاطع قصيرة: red band + vertical shorts row ───────── */
.home-band.reels-band { background: var(--red); color: #fff; padding: 26px 0 30px; margin: 30px 0; }
.rl-title { margin: 0 0 18px; font-size: 24px; font-weight: 800; }
.rl-title a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.rl-title span { border-inline-start: 6px solid #fff; padding-inline-start: 10px; line-height: 1.2; }
.rl-title svg { fill: currentColor; }
.rl-track { gap: 16px; }
.rl-card { flex: 0 0 calc((100% - 96px) / 7); scroll-snap-align: start; color: #fff; text-decoration: none; display: block; }
.rl-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #7a0e16; }
.rl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rl-card:hover .rl-thumb img { transform: scale(1.05); }
.rl-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: transform .2s;
}
.rl-play svg { fill: var(--red); margin-inline-start: -3px; }
.rl-card:hover .rl-play { transform: translate(-50%, -50%) scale(1.1); }
.rl-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 14.5px; font-weight: 800; line-height: 1.6; }
.rl-arrow { width: 48px; height: 54px; border-radius: 4px; background: #fff; color: var(--red); top: 38%; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.rl-arrow:hover { background: #fff; color: var(--red-700, #850e17); }
@media (max-width: 1100px) { .rl-card { flex-basis: calc((100% - 48px) / 4.3); } }
@media (max-width: 600px) { .rl-card { flex-basis: 42%; } .rl-arrow { width: 38px; height: 44px; } }

/* ───────── Hero: the slider and the side teasers fill the height of «على مدار الساعة» (like shabakanews) ───────── */
@media (min-width: 1101px) {
  .hero-grid { align-items: stretch; }
  .hero-center, .hero-center .hero-slider { display: flex; flex-direction: column; min-height: 0; }
  .hero-center { height: 100%; }
  .hero-center .hero-slider { flex: 1; }
  .hero-center .hero-frame { flex: 1; aspect-ratio: auto; min-height: 380px; background: #000; }
  .hero-center .hero-slide img { object-fit: contain; }
  /* the teasers column takes the row height without pushing it; main.js fits the text in whole lines */
  .hero-teasers { contain: size; height: 100%; overflow: hidden; }
}

/* «تابعنا على واتساب» */
.wa-follow { display: flex; align-items: center; gap: 14px; margin: 24px 0; padding: 14px 18px; border-radius: 14px; background: #e7f8ee; border: 1px solid #b6e7c9; color: #0b3d22; text-decoration: none; }
.wa-follow:hover { background: #d9f4e4; }
.wa-follow-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
.wa-follow-ic svg { fill: currentColor; }
.wa-follow-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.wa-follow-txt strong { font-size: 17px; }
.wa-follow-txt small { font-size: 14px; color: #3d6b50; }
.wa-follow-btn { flex: none; background: #1fa855; color: #fff; font-weight: 800; padding: 8px 20px; border-radius: 999px; }
[data-theme="dark"] .wa-follow { background: #0f2a1b; border-color: #1d5136; color: #d7f5e3; }
[data-theme="dark"] .wa-follow-txt small { color: #9cd3b2; }
@media (max-width: 520px) { .wa-follow-btn { display: none; } }

/* ───────── Saharadoc Sport: competitions ───────── */
.sp-lnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sp-lnav a { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid rgba(255,255,255,.18); }
.sp-lnav a:hover { background: rgba(255,255,255,.22); }
.sp-lnav a.on { background: #fff; color: var(--red); border-color: #fff; }
.sp-hero-league { padding: 22px 0 18px; }
.sp-crumb { margin: 0 0 4px; font-size: 13px; color: #ccc; }
.sp-crumb a { color: #fff; text-decoration: none; font-weight: 700; }
.sp-league-title { margin: 0; font-size: 32px; font-weight: 900; color: #fff; direction: rtl; }
.sp-dayline { list-style: none; padding: 8px 12px 4px; font-size: 13px; font-weight: 800; color: var(--muted, #777); border-top: 1px dashed rgba(127,127,127,.25); }
.sp-comp ul > .sp-dayline:first-child { border-top: 0; }
.sp-lg-link { display: block; margin-top: 10px; text-align: center; font-weight: 800; font-size: 14px; color: var(--red); text-decoration: none; }
.sp-scorers ol { list-style: none; margin: 0; padding: 0; }
.sp-scorers li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(127,127,127,.15); }
.sp-sc-rank { width: 24px; height: 24px; border-radius: 50%; background: rgba(127,127,127,.15); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.sp-scorers li:first-child .sp-sc-rank { background: #d9b25f; color: #3a1a00; }
.sp-sc-p { flex: 1; display: grid; min-width: 0; }
.sp-sc-p b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sc-p small { font-size: 12px; opacity: .75; display: flex; align-items: center; gap: 4px; }
.sp-sc-g { text-align: center; line-height: 1.1; }
.sp-sc-g b { font-size: 20px; color: var(--red); display: block; }
.sp-sc-g small { font-size: 11px; opacity: .7; }
.sp-side > .sp-card + .sp-card { margin-top: 16px; }
@media (max-width: 600px) { .sp-league-title { font-size: 24px; } .sp-lnav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .sp-lnav a { flex: none; } }

/* ───────── Saharadoc Sport: match & team pages ───────── */
.sp-mlink { display: contents; color: inherit; text-decoration: none; }
.sp-match.has-link { cursor: pointer; transition: background .15s; }
.sp-match.has-link:hover { background: rgba(127,127,127,.08); }
.sp-table td.t a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sp-table td.t a:hover { color: var(--red); }
.sp-table td.t img { vertical-align: middle; }
.sp-table tr.is-me td { background: rgba(186,22,34,.12); font-weight: 800; }
.sp-hero-match { padding: 22px 0 30px; }
.sp-crumb a { color: #fff; }
.sp-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 14px; }
.sp-mt { display: grid; justify-items: center; gap: 8px; color: #fff; text-decoration: none; text-align: center; }
.sp-mt b { font-size: 22px; font-weight: 900; }
.sp-mt img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.sp-mt-ph { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.12); }
a.sp-mt:hover b { text-decoration: underline; }
.sp-board-mid { display: grid; justify-items: center; gap: 6px; min-width: 150px; }
.sp-board-score { display: flex; gap: 10px; align-items: center; font-size: 54px; font-weight: 900; color: #fff; line-height: 1; }
.sp-board-score i { font-style: normal; opacity: .6; }
.sp-board-time { font-size: 40px; font-weight: 900; color: #fff; }
.sp-board-st { background: rgba(255,255,255,.15); color: #fff; padding: 3px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.sp-board-st.is-live { background: #e5245a; }
.sp-ht { color: #ddd; font-size: 13px; }
.sp-facts { list-style: none; margin: 0; padding: 6px 14px 12px; }
.sp-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(127,127,127,.15); }
.sp-facts span { opacity: .7; }
.sp-facts b a { color: var(--red); text-decoration: none; }
.sp-sub-h { margin-top: 6px; }
.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-team-head { display: flex; align-items: center; gap: 20px; }
.sp-team-crest { width: 96px; height: 96px; object-fit: contain; background: rgba(255,255,255,.08); border-radius: 18px; padding: 8px; flex: none; }
.sp-team-meta { color: #e2e2e2; line-height: 1.8; margin: 6px 0 0; }
.sp-forms { display: flex; gap: 6px; margin-top: 10px; }
.sp-form { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; text-decoration: none; }
.sp-form-w { background: #1f9d55; } .sp-form-d { background: #8a8a8a; } .sp-form-l { background: #d42d3a; }
.sp-squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; padding: 8px 14px 14px; }
.sp-squad h4 { margin: 8px 0 4px; color: var(--red); font-size: 15px; }
.sp-squad ul { list-style: none; margin: 0; padding: 0; }
.sp-squad li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed rgba(127,127,127,.2); font-size: 14px; }
.sp-squad small { opacity: .6; }
@media (max-width: 600px) {
  .sp-board { gap: 8px; } .sp-mt b { font-size: 15px; } .sp-mt img, .sp-mt-ph { width: 56px; height: 56px; }
  .sp-board-score { font-size: 38px; } .sp-board-time { font-size: 28px; } .sp-board-mid { min-width: 96px; }
  .sp-team-head { align-items: flex-start; } .sp-team-crest { width: 64px; height: 64px; }
}

/* ───────── Saharadoc Sport: phone layout (1.2.26) ───────── */
.sp-hero, .sp-hero-league, .sp-hero-match, .sp-hero-team { overflow-x: clip; }
.sp-hero-in > div { min-width: 0; flex: 1 1 340px; max-width: 100%; }
.sp-hero-in > .sp-days { min-width: 0; }
/* competitions strip: one scrolling row with faded edges */
.sp-lnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin-inline: -2px;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
.sp-lnav::-webkit-scrollbar { display: none; }
.sp-lnav a { flex: none; scroll-snap-align: center; white-space: nowrap; transition: background .15s, color .15s; }
.sp-ltabs-text { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.sp-ltabs-text::-webkit-scrollbar { display: none; }
/* standings */
.sp-table-wrap { overflow-x: auto; }
.sp-table { font-variant-numeric: tabular-nums; }
.sp-table thead th { background: var(--surface-2); position: sticky; top: 0; }
.sp-table tbody tr { transition: background .15s; }
.sp-table tbody tr:hover td { background: rgba(127,127,127,.07); }
.sp-table td { padding: 9px 4px; }
.sp-table tr td:first-child, .sp-table tr th:first-child { width: 34px; padding-inline-start: 10px; }
.sp-rk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 800; color: var(--muted); }
.sp-table tr.z-top .sp-rk { background: #1f9d55; color: #fff; }
.sp-table tr.z-down .sp-rk { background: #d42d3a; color: #fff; }
.sp-table td.t { max-width: none; font-weight: 700; }
.sp-table td.t img { width: 22px; height: 22px; }
.sp-table .c-gd.is-pos { color: #1f9d55; } .sp-table .c-gd.is-neg { color: #d42d3a; }
.sp-table td.c-pts b { display: inline-block; min-width: 30px; padding: 2px 6px; border-radius: 7px; background: var(--red); color: #fff; font-weight: 900; }
.sp-table tr.is-me td.c-pts b { background: #111; }
.sp-zones { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 0; padding: 10px 16px 0; }
.sp-zones i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .sp-zones i.z-top { background: #1f9d55; } .sp-zones i.z-down { background: #d42d3a; margin-inline-start: 10px; }
/* scorers */
.sp-scorers li { gap: 10px; padding: 10px 14px; }
.sp-scorers li.is-top { background: linear-gradient(to left, rgba(217,178,95,.14), transparent 70%); }
.sp-scorers li.is-top2 .sp-sc-rank { background: #c0c4cc; color: #222; }
.sp-scorers li.is-top3 .sp-sc-rank { background: #cd8b54; color: #fff; }
.sp-sc-crest { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.sp-sc-crest img { width: 24px; height: 24px; object-fit: contain; }
.sp-sc-p small a { color: inherit; text-decoration: none; }
.sp-sc-p small a:hover { color: var(--red); }
.sp-sc-bar { display: block; height: 4px; border-radius: 4px; background: rgba(127,127,127,.15); margin-top: 6px; overflow: hidden; }
.sp-sc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.sp-sc-g { min-width: 44px; }
.sp-sc-g b { font-size: 22px; }
/* section tabs: shown on phones and tablets only */
.sp-ptabs { display: none; }
@media (max-width: 900px) {
  .sp-hero { padding: 18px 0 14px; }
  .sp-hero-in { gap: 12px; }
  .sp-hero p { font-size: 14px; }
  .sp-layout { margin-top: 14px; gap: 14px; }
  .has-ptabs .sp-ptabs { display: flex; gap: 6px; position: sticky; top: 6px; z-index: 5; background: var(--surface); padding: 6px; border-radius: 14px; box-shadow: var(--shadow); }
  .sp-ptabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
  .sp-ptabs button[aria-selected="true"] { background: var(--red); color: #fff; }
  .has-ptabs [data-pid] { display: none; }
  .has-ptabs[data-pane="matches"] [data-pid="matches"], .has-ptabs[data-pane="table"] [data-pid="table"], .has-ptabs[data-pane="scorers"] [data-pid="scorers"] { display: block; }
  .has-ptabs .sp-side > .sp-card + .sp-card { margin-top: 0; }
}
@media (max-width: 480px) {
  .sp-table .c-x { display: none; }
  .sp-table { font-size: 14px; }
  .sp-table td.t { white-space: normal; line-height: 1.3; }
  .sp-card-h { font-size: 16px; padding: 12px 14px; }
  .sp-lnav a { padding: 6px 12px; font-size: 13px; }
  .sp-facts li { flex-wrap: wrap; }
  .sp-squad { grid-template-columns: minmax(0, 1fr); }
  .sp-team-meta { font-size: 14px; }
}
.sp-sc-p small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────── House banners in empty ad slots ───────── */
.sd-house { position: relative; margin-block: 18px; }
.sd-box-home.sd-house { margin-block: 26px; }
.sd-hv { display: none; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius); color: #fff; text-decoration: none; overflow: hidden; position: relative; isolation: isolate;
  background: linear-gradient(120deg, #0b0b0b 0%, #2a0a0d 45%, var(--red) 100%); box-shadow: var(--shadow); }
.sd-hv.on { display: flex; }
.sd-hv::before { content: ""; position: absolute; inset: auto -60px -90px auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); z-index: -1; }
.sd-hv::after { content: ""; position: absolute; inset: -70px auto auto 30%; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.05); z-index: -1; }
.sd-hv-wa { background: linear-gradient(120deg, #073b2c 0%, #0b6b4b 55%, #25d366 130%); }
.sd-hv-yt { background: linear-gradient(120deg, #0b0b0b 0%, #3a0606 50%, #e00 130%); }
.sd-hv-fb { background: linear-gradient(120deg, #0b1a3a 0%, #133d8a 55%, #1877f2 130%); }
.sd-hv-ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.12); }
.sd-hv-adv .sd-hv-ic { width: auto; height: auto; background: none; border-radius: 0; }
.sd-hv-adv .sd-hv-ic img { width: 130px; height: auto; display: block; }
.sd-hv-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sd-hv-txt strong { font-size: 22px; font-weight: 900; line-height: 1.3; }
.sd-hv-txt small { font-size: 15px; opacity: .88; line-height: 1.5; }
.sd-hv-btn { flex: none; background: #fff; color: var(--red); font-weight: 900; font-size: 15px; padding: 11px 22px; border-radius: 999px; transition: transform .15s; white-space: nowrap; }
.sd-hv-wa .sd-hv-btn { color: #0b6b4b; } .sd-hv-fb .sd-hv-btn { color: #1877f2; } .sd-hv-yt .sd-hv-btn { color: #c00; }
.sd-hv:hover .sd-hv-btn { transform: translateY(-2px); }
.sd-house-tag { position: absolute; top: 8px; inset-inline-end: 12px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(0,0,0,.28); padding: 2px 10px; border-radius: 999px; text-decoration: none; z-index: 2; }
.sd-house-tag:hover { background: #fff; color: var(--red); }
/* narrow slots (sidebar, sport): stacked card */
.sd-house-tall .sd-hv { flex-direction: column; text-align: center; padding: 34px 20px 22px; gap: 12px; }
.sd-house-tall .sd-hv-txt strong { font-size: 19px; }
.sd-house-tall .sd-hv-txt small { font-size: 14px; }
.sp-side .sd-house { margin: 16px 0 0; }
@media (max-width: 700px) {
  .sd-hv { flex-direction: column; text-align: center; padding: 34px 18px 20px; gap: 12px; }
  .sd-hv-txt strong { font-size: 19px; }
  .sd-hv-txt small { font-size: 14px; }
  .sd-hv-ic { width: 56px; height: 56px; }
}

/* Article views badge */
.sd-views { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 4px; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 700; }
.sd-views svg { color: var(--red); }
.sd-views b { color: var(--text); font-weight: 900; font-variant-numeric: tabular-nums; }

/* ───────────── Wide news sections (grid9 / feature8): title + red/black bar, «المزيد», big stories + row of 6 ───────────── */
.wide-band .container { padding-top: 6px; }
.wide-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.wide-title { margin: 0; padding-bottom: 12px; font-size: 30px; font-weight: 800; line-height: 1.15; position: relative; }
.wide-title a { color: var(--text); }
.wide-title a:hover { color: var(--red); }
.wide-title::after { content: ''; position: absolute; bottom: -2px; inset-inline-start: 0; width: 64px; height: 4px; background: linear-gradient(to left, var(--red) 0 50%, var(--text) 50% 100%); }
.wide-more { display: inline-flex; align-items: center; gap: 4px; padding: 0 2px 12px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--text); margin-bottom: -1px; }
.wide-more:hover { color: var(--red); border-color: var(--red); }
.wide-card { min-width: 0; }
.wide-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.wide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.wide-card:hover .wide-img img { transform: scale(1.04); }
.wide-play { position: absolute; bottom: 8px; inset-inline-start: 8px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--red); color: #fff; }
.wide-body { padding-top: 10px; }
.wide-kicker { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.wide-t { margin: 0; font-weight: 800; line-height: 1.5; }
.wide-t a { color: var(--text); }
.wide-t a:hover { color: var(--red); }
.wide-top { display: grid; gap: 24px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dotted var(--line); }
.wide-three { grid-template-columns: repeat(3, 1fr); }
.wide-three .wide-t, .wide-feature .wc-md .wide-t { font-size: 19px; }
.wide-feature { grid-template-columns: 1fr 2fr; align-items: start; }
.wc-xl { position: relative; }
.wc-xl .wide-img { aspect-ratio: 16 / 9; }
.wc-xl .wide-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 62%); pointer-events: none; }
.wc-xl .wide-body { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 26px; text-align: center; pointer-events: none; }
.wc-xl .wide-body a { pointer-events: auto; }
.wc-xl .wide-kicker { color: rgba(255,255,255,.85); }
.wc-xl .wide-t { font-size: 27px; line-height: 1.45; }
.wc-xl .wide-t a, .wc-xl .wide-t a:hover { color: #fff; }
.wide-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.wc-sm .wide-img { aspect-ratio: 16 / 10; }
.wc-sm .wide-body { padding-top: 8px; }
.wc-sm .wide-kicker { font-size: 11px; color: var(--red); margin-bottom: 2px; }
.wc-sm .wide-t { font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
  .wide-title { font-size: 25px; }
  .wide-three { grid-template-columns: 1fr 1fr; }
  .wide-three .wide-card:first-child { grid-column: 1 / -1; }
  .wide-feature { grid-template-columns: 1fr; }
  .wide-feature .wc-xl { order: -1; }
  .wc-xl .wide-t { font-size: 22px; }
  .wide-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .wide-title { font-size: 22px; }
  .wide-top { gap: 18px; }
  .wide-three { grid-template-columns: 1fr; }
  .wide-three .wide-t, .wide-feature .wc-md .wide-t { font-size: 17px; }
  .wc-xl .wide-body { padding: 14px 16px; }
  .wc-xl .wide-t { font-size: 19px; }
  .wide-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ───────────── بودكاست: موجز الأخبار المسموع ───────────── */
.pod-pill { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 6px; padding: 7px 14px; border-radius: 22px; background: #fff; color: var(--red); font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: 0 0 0 2px var(--red) inset; transition: transform .15s, background .15s; }
.pod-pill:hover, .pod-pill.on { background: var(--red); color: #fff; transform: translateY(-1px); }
.pod-hero { background: linear-gradient(135deg, #1c1c1c 0%, #3a0a0f 60%, var(--red) 140%); color: #fff; padding: 30px 0 26px; }
.pod-hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pod-hero h1 { margin: 0 0 6px; font-size: 34px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pod-hero h1 span { color: #ff6b75; }
.pod-hero p { margin: 0; opacity: .85; }
.pod-days { display: flex; gap: 6px; flex-wrap: wrap; }
.pod-days a { display: grid; justify-items: center; min-width: 58px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; line-height: 1.3; }
.pod-days a small { opacity: .7; font-size: 11px; }
.pod-days a:hover { background: rgba(255,255,255,.18); }
.pod-days a.on { background: #fff; color: var(--red); }
.pod-page { padding-top: 26px; padding-bottom: 40px; }
.pod-empty { text-align: center; padding: 50px 0; color: var(--muted); }
.pod-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.pod-stage { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; border-inline-start: 4px solid var(--red); }
.pod-kicker { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.pod-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; line-height: 1.5; }
.pod-meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.pod-player, .sd-listen { display: flex; align-items: center; gap: 12px; background: #f1ecee; border-radius: 12px; padding: 12px 16px; }
:root[data-theme='dark'] .pod-player, :root[data-theme='dark'] .sd-listen { background: #2f2a2b; }
.pod-btn { flex: none; display: grid; place-items: center; border: 0; cursor: pointer; border-radius: 50%; background: transparent; color: var(--text); width: 38px; height: 38px; }
.pod-btn:hover { background: rgba(0,0,0,.06); }
.pod-play { width: 50px; height: 50px; background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(186,22,34,.35); }
.pod-play:hover { background: var(--red-600); }
.pod-play svg:last-child, .is-playing .pod-play svg:first-child { display: none; }
.is-playing .pod-play svg:last-child { display: block; }
.pod-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pod-lbl { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--red); }
.pod-track { flex: 1; position: relative; height: 6px; border-radius: 6px; background: rgba(0,0,0,.12); cursor: pointer; overflow: hidden; }
:root[data-theme='dark'] .pod-track { background: rgba(255,255,255,.15); }
.pod-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--red); border-radius: 6px; transition: width .4s linear; }
.pod-time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); direction: ltr; min-width: 76px; text-align: center; }
.pod-rate { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; font-weight: 800; font-size: 12px; padding: 4px 9px; cursor: pointer; direction: ltr; }
.pod-summary { margin: 18px 0 8px; font-size: 17px; line-height: 1.9; }
.pod-note { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.pod-novoice { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #fff3cd; color: #6b5100; font-size: 13px; }
.pod-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pod-read, .pod-all { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 800; font-size: 14px; cursor: pointer; }
.pod-read { background: var(--black); color: #fff; }
.pod-read:hover { background: var(--red); color: #fff; }
.pod-all { border: 2px solid var(--red); background: transparent; color: var(--red); font-family: inherit; }
.pod-all:hover, .is-all .pod-all { background: var(--red); color: #fff; }
.pod-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 0 8px; max-height: 640px; display: flex; flex-direction: column; }
.pod-list h3 { margin: 0 18px 10px; font-size: 18px; font-weight: 800; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pod-list h3 small { font-size: 12px; color: var(--muted); font-weight: 600; }
.pod-list ol { list-style: none; margin: 0; padding: 0 10px; overflow-y: auto; }
.pod-list li button { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; text-align: start; padding: 10px 8px; border: 0; background: none; color: var(--text); font-family: inherit; cursor: pointer; border-radius: 8px; border-inline-start: 3px solid transparent; }
.pod-list li button:hover { background: var(--surface-2); }
.pod-list li.on button { background: #f7eaec; border-inline-start-color: var(--red); }
:root[data-theme='dark'] .pod-list li.on button { background: #3a2a2d; }
.pl-ic { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--red); }
.pod-list li.on .pl-ic { background: var(--red); color: #fff; border-color: var(--red); }
.pl-t { font-size: 14px; font-weight: 700; line-height: 1.55; }
.pod-list li small { font-size: 11px; color: var(--muted); }
.sd-listen { margin: 14px 0 18px; }
.sd-listen[hidden] { display: none; }
.sd-listen .pod-play { width: 44px; height: 44px; }
.pod-more { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pod-more:hover { color: var(--red); }
@media (max-width: 900px) {
  .pod-grid { grid-template-columns: 1fr; }
  .pod-list { max-height: 460px; }
  .pod-hero h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .pod-stage { padding: 18px 16px; }
  .pod-title { font-size: 21px; }
  .pod-player { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .pod-player .pod-track { order: 5; flex-basis: 100%; }
  .pod-days a { min-width: 46px; padding: 6px 7px; }
  .sd-listen { gap: 8px; padding: 10px 12px; }
  .pod-more { display: none; }
  .pod-pill b { display: none; }
  .pod-pill { padding: 7px 10px; }
}
.show-novoice .pod-novoice[hidden] { display: block; }
.no-audio .pod-play { opacity: .55; }

/* ───────── صوت القارئ (reader voice) ───────── */
.sdr-fab { position: fixed; bottom: 24px; right: 24px; z-index: 90; display: flex; align-items: center; }
.sdr-fab a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.28); border: 2px solid var(--red); transition: transform .2s; }
.sdr-fab a:hover { transform: translateY(-2px); color: #fff; }
.sdr-fab-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); }
.sdr-fab-x { position: absolute; top: -8px; left: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #fff; color: #333; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); opacity: 0; transition: opacity .2s; }
.sdr-fab:hover .sdr-fab-x, .sdr-fab-x:focus { opacity: 1; }
@media (max-width: 767px) {
  .sdr-fab { bottom: 16px; right: 14px; }
  .sdr-fab a { padding: 7px 14px 7px 8px; font-size: 13px; }
  .sdr-fab-x { opacity: 1; }
}

.sdr-hero { background: linear-gradient(135deg, #0b0b0b 0%, #2a0a0d 55%, var(--red-700) 100%); color: #fff; padding: 44px 0 70px; position: relative; overflow: hidden; }
.sdr-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); left: -90px; top: -120px; }
.sdr-hero-in { position: relative; z-index: 1; max-width: 860px; }
.sdr-kicker { display: inline-block; font-size: 13px; font-weight: 700; color: #ffb4ba; margin-bottom: 8px; }
.sdr-hero h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; margin: 0 0 12px; line-height: 1.25; color: #fff; }
.sdr-hero h1 span { color: #ff5a66; }
.sdr-hero p { font-size: 17px; line-height: 1.8; margin: 0 0 12px; color: #eee; max-width: 720px; }
.sdr-hero .sdr-note { font-size: 14px; color: #ddd; border-right: 3px solid var(--red); padding-right: 12px; margin: 0; }

.sdr-page { margin-top: -42px; position: relative; z-index: 2; max-width: 900px; padding-bottom: 40px; }
.sdr-tabs { display: flex; gap: 6px; background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; padding: 8px; box-shadow: var(--shadow); border-bottom: 1px solid var(--line); }
.sdr-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; }
.sdr-tabs a:hover { color: var(--text); background: var(--surface-2); }
.sdr-tabs a.on { background: var(--red); color: #fff; }
.sdr-panel { background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 26px; }
.sdr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.sdr-f { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 14px; }
.sdr-f > span b, .sdr-check b { color: var(--red); }
.sdr-f small { font-weight: 400; color: var(--muted); }
.sdr-wide { grid-column: 1 / -1; }
.sdr-f input, .sdr-f select, .sdr-f textarea, .sdr-track input, .sdr-filter select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 400; font-size: 15px; }
.sdr-f input:focus, .sdr-f select:focus, .sdr-f textarea:focus, .sdr-track input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; background: var(--surface); }
.sdr-f textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.sdr-count { align-self: flex-end; font-size: 12px; }
.sdr-files { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sdr-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; cursor: pointer; color: var(--muted); transition: border-color .2s; }
.sdr-drop:hover, .sdr-drop:focus-within { border-color: var(--red); color: var(--text); }
.sdr-drop svg { color: var(--red); }
.sdr-drop b { color: var(--text); }
.sdr-drop small { font-size: 12px; font-weight: 400; }
.sdr-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sdr-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.sdr-previews img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.sdr-vid { display: inline-flex; align-items: center; padding: 0 12px; height: 34px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 400; }
.sdr-help { font-weight: 400; color: var(--muted); font-size: 13px; }
.sdr-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.sdr-check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--red); flex: none; }
.sdr-send { margin-top: 22px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border: 0; border-radius: var(--radius); background: var(--red); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; transition: background .2s; }
.sdr-send svg { transform: scaleX(-1); }
.sdr-send:hover { background: var(--red-600); }
.sdr-send.busy { opacity: .7; cursor: progress; }
.sdr-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.sdr-progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.sdr-privacy { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 16px 0 0; }
.sdr-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sdr-alert { background: #fdecee; color: #8a0f19; border: 1px solid #f3c2c7; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-weight: 700; }
:root[data-theme="dark"] .sdr-alert { background: #3a1417; color: #ffb4ba; border-color: #5a2027; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sdr-alert { background: #3a1417; color: #ffb4ba; border-color: #5a2027; } }
.sdr-ok { display: flex; gap: 14px; align-items: center; background: rgba(0,163,42,.1); border: 1px solid rgba(0,163,42,.35); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; line-height: 1.9; }
.sdr-ok > svg { color: #00a32a; flex: none; }
.sdr-code { font-size: 18px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 10px; border-radius: var(--radius-sm); direction: ltr; display: inline-block; }
.sdr-copy { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 3px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.sdr-track { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.sdr-track label { flex: 1; display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 14px; }
.sdr-track input { font-size: 17px; letter-spacing: 1px; text-transform: uppercase; text-align: left; }
.sdr-track button, .sdr-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border: 0; border-radius: var(--radius-sm); background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sdr-empty { color: var(--muted); text-align: center; padding: 18px 0; line-height: 1.8; }
.sdr-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sdr-card h2 { font-size: 20px; margin: 10px 0 4px; }
.sdr-meta { color: var(--muted); font-size: 14px; margin: 0; }
.sdr-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.sdr-st-new { background: var(--red); color: #fff; border-color: transparent; }
.sdr-st-review { background: #f0c33c; color: #222; border-color: transparent; }
.sdr-st-follow { background: #2271b1; color: #fff; border-color: transparent; }
.sdr-st-published { background: #00a32a; color: #fff; border-color: transparent; }
.sdr-steps { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.sdr-steps li { position: relative; padding: 0 30px 18px 0; color: var(--muted); }
.sdr-steps li::before { content: ""; position: absolute; right: 5px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.sdr-steps li::after { content: ""; position: absolute; right: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.sdr-steps li:last-child::after { display: none; }
.sdr-steps li.done, .sdr-steps li.now { color: var(--text); }
.sdr-steps li.done::before { background: var(--red); border-color: var(--red); }
.sdr-steps li.done::after { background: var(--red); }
.sdr-steps li.now::before { background: var(--surface); border: 3px solid var(--red); box-shadow: 0 0 0 4px rgba(186,22,34,.18); }
.sdr-steps small { margin-right: 8px; font-size: 12px; color: var(--muted); }
.sdr-steps p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.sdr-reply { background: var(--surface-2); border-right: 3px solid var(--red); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 6px; }
.sdr-reply p { margin: 6px 0 0; line-height: 1.8; }
.sdr-art { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--red); }
.sdr-filter { display: flex; gap: 10px; margin-bottom: 18px; }
.sdr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.sdr-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.sdr-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--red); line-height: 1.4; }
.sdr-stat span { font-size: 13px; color: var(--muted); }
.sdr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sdr-box h3, .sdr-h { font-size: 16px; margin: 0 0 12px; font-weight: 800; }
.sdr-h { margin-top: 26px; }
.sdr-bars { list-style: none; margin: 0 0 16px; padding: 0; }
.sdr-bars li { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.sdr-bars i { display: block; height: 10px; border-radius: 5px; background: var(--surface-2); position: relative; overflow: hidden; }
.sdr-bars i::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--w); background: var(--red); border-radius: 5px; }
.sdr-bars b { text-align: left; font-variant-numeric: tabular-nums; }
.sdr-cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sdr-cities span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.sdr-cases { list-style: none; margin: 0; padding: 0; }
.sdr-cases li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sdr-cases b { flex: 1; min-width: 200px; }
.sdr-cases small { width: 100%; color: var(--muted); }
.sdr-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0 0; }
@media (max-width: 767px) {
  .sdr-hero { padding: 30px 0 60px; }
  .sdr-hero p { font-size: 15px; }
  .sdr-panel { padding: 18px 16px; }
  .sdr-tabs { gap: 4px; padding: 6px; }
  .sdr-tabs a { flex-direction: column; gap: 4px; font-size: 12px; padding: 9px 4px; }
  .sdr-grid, .sdr-files, .sdr-cols { grid-template-columns: 1fr; }
  .sdr-stats { grid-template-columns: 1fr; }
  .sdr-track { flex-direction: column; align-items: stretch; }
  .sdr-filter { flex-direction: column; }
  .sdr-bars li { grid-template-columns: 100px 1fr 28px; }
}
/* reader voice — phone polish (1.2.52) */
.sdr-ts { display: none; }
@media (max-width: 767px) {
  .sdr-fab { bottom: 16px; right: 14px; }
  .sdr-fab a { padding: 0; width: 52px; height: 52px; justify-content: center; border-width: 2px; }
  .sdr-fab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sdr-fab-ic { width: 44px; height: 44px; }
  .sdr-fab-x { width: 20px; height: 20px; font-size: 13px; top: -6px; left: -6px; }
  .sdr-hero h1 { font-size: 26px; }
  .sdr-hero .sdr-note { font-size: 13px; }
  .sdr-tl { display: none; }
  .sdr-ts { display: inline; }
  .sdr-tabs a { font-size: 13px; }
}
/* reader voice — phone button with short label (1.2.53) */
.sdr-fab-s { display: none; }
@media (max-width: 767px) {
  .sdr-fab a { width: auto; height: auto; padding: 5px 14px 5px 5px; gap: 8px; }
  .sdr-fab-ic { width: 34px; height: 34px; }
  .sdr-fab-s { display: inline; font-size: 14px; font-weight: 800; white-space: nowrap; }
}

/* ═════════════ أخباري — identity on top of the shared news core ═════════════ */
:root { --red: #eb2e2d; --red-600: #d42322; --red-700: #b51c1b; --nav-bg: #eb2e2d; --ink: #111; }

/* banner above everything (OCP …) */
.ak-top-ad { background: var(--surface); text-align: center; padding: 8px 0 0; }
.ak-top-ad .sd-box { margin: 0 auto; }
.ak-top-ad img { max-width: min(720px, 100%); height: auto; display: inline-block; }
.sd-box-below { margin: 14px 0 0; text-align: center; }
.sd-box-below img { width: 100%; height: auto; border-radius: var(--radius); }

/* thin black bar: date · top links · social */
.utilbar { background: var(--ink); color: #ddd; font-size: 13px; }
.utilbar-inner { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.util-date { color: #fff; font-weight: 700; white-space: nowrap; }
.util-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex: 1; overflow: hidden; white-space: nowrap; }
.util-links a { color: #ccc; }
.util-links a:hover { color: #fff; }
.util-social { display: flex; gap: 12px; margin-inline-start: auto; }
.util-social a { color: #bbb; display: inline-flex; }
.util-social a:hover { color: var(--red); }

/* white logo band */
.topbar { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); }
.topbar-inner { height: auto; min-height: 112px; padding: 8px 0; }
.brand img { height: 96px; width: auto; }
:root[data-theme='dark'] .brand img { filter: drop-shadow(0 0 0 transparent); }
.topbar .circle-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.topbar .circle-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.topbar .theme-btn { color: #c78a00; }
.topbar-end .sd-box { max-width: 728px; margin-inline-start: auto; }
.topbar-end img { max-height: 90px; width: auto; }

/* red menu bar */
.mainnav { background: var(--red); box-shadow: 0 2px 0 var(--red-700); }
.nav-links a { font-size: 16px; }
.nav-links a:hover { background: rgba(0, 0, 0, 0.12); }
.nav-links a.active { background: rgba(0, 0, 0, 0.22); }
.nav-links .nav-sub { background: var(--ink); }
.sport-pill { background: var(--ink); box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset; }
.sport-pill:hover, .sport-pill.on { background: #fff; color: var(--red); }
.drawer { background: var(--ink); }
.drawer-head { background: #fff; }

/* ticker chip: the logo sits on white */
.ticker-chip { background: #fff; border: 1px solid var(--line); }

/* dark mode: logo on dark needs the white-letter version */
:root[data-theme='dark'] .topbar .brand img, :root[data-theme='dark'] .drawer-head img { content: url('../img/logo-dark.png'); }
:root[data-theme='dark'] .drawer-head { background: var(--ink); }
:root[data-theme='dark'] .ticker-chip { background: #1b1b1b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .topbar .brand img, :root:not([data-theme='light']) .drawer-head img { content: url('../img/logo-dark.png'); }
}

/* ───── «صوت وصورة»: big video in the middle, two on each side, a row of four ───── */
.vg-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "s1 m m s3" "s2 m m s4" "r1 r2 r3 r4"; gap: 14px; }
.vg-main { grid-area: m; }
.vg-s1 { grid-area: s1; } .vg-s2 { grid-area: s2; } .vg-s3 { grid-area: s3; } .vg-s4 { grid-area: s4; }
.vg-r1 { grid-area: r1; } .vg-r2 { grid-area: r2; } .vg-r3 { grid-area: r3; } .vg-r4 { grid-area: r4; }
.vg-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.vg-card.vg-big { aspect-ratio: auto; height: 100%; min-height: 320px; }
.vg-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; opacity: .92; }
.vg-card:hover img { transform: scale(1.04); }
.vg-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); pointer-events: none; }
.vg-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); z-index: 1; transition: background .2s; }
.vg-big .vg-play { width: 72px; height: 72px; }
.vg-card:hover .vg-play { background: var(--red); border-color: var(--red); }
.vg-t { position: absolute; inset: auto 12px 10px; color: #fff; font-weight: 800; font-size: 14px; line-height: 1.6; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vg-big .vg-t { font-size: 20px; inset: auto 18px 16px; }

/* ───── «الأكثر قراءة»: numbered list in two columns ───── */
.mr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; counter-reset: mr; }
.mr-list li { display: grid; grid-template-columns: 38px 86px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mr-n { font-size: 30px; font-weight: 900; color: var(--red); line-height: 1; text-align: center; }
.mr-img img { width: 86px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); }
.mr-txt h3 { font-size: 15px; line-height: 1.6; margin: 0 0 4px; }
.mr-txt time { font-size: 12px; color: var(--muted); }

/* WP-Polls inside the interactive row */
.wp-polls-box .wp-polls { font-size: 15px; }
.wp-polls-box .wp-polls p[style*="text-align: center"] strong, .wp-polls-box .wp-polls > p strong { font-size: 17px; }
.wp-polls-box .Buttons { background: var(--red); color: #fff; border: 0; border-radius: 22px; padding: 8px 22px; font: inherit; font-weight: 800; cursor: pointer; }
.wp-polls-box ul { list-style: none; padding: 0; }
.wp-polls-box li { margin: 0 0 8px; }

@media (max-width: 991px) {
  .vg-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "m m" "s1 s3" "s2 s4" "r1 r2" "r3 r4"; }
  .vg-card.vg-big { min-height: 220px; aspect-ratio: 16 / 10; }
  .mr-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .utilbar-inner { gap: 10px; }
  .util-links { display: none; }
  .topbar-inner { min-height: 78px; grid-template-columns: auto 1fr auto; }
  .brand img { height: 62px; }
  .topbar-end .sd-box { display: none; }
  .vg-big .vg-t { font-size: 16px; }
}
.mr-img { position: relative; display: block; width: 86px; height: 62px; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
.mr-img img { width: 100%; height: 100%; object-fit: cover; }
