/* ألوان الهوية: غيّر --accent هنا فقط ويتغيّر لون الموقع كله */
:root {
  color-scheme: dark;
  --bg: #0B0B0B;
  --surface: #151515;
  --panel: #1E1E1E;
  --line: #2A2A2A;
  --text: #F2F0ED;
  --muted: #A3A3A3;
  --accent: #2F80ED;
  --accent-soft: #6FA9F5;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  inset-block-start: -60px;
  inset-inline-start: 16px;
  z-index: 20;
  padding: 8px 16px;
  background: var(--accent);
  border-radius: 8px;
}
.skip:focus { inset-block-start: 12px; }

/* الشريط العلوي */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(11 11 11 / .85);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
}
.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand { font-weight: 900; font-size: 1.2rem; white-space: nowrap; }
.top nav { display: flex; gap: 28px; font-weight: 500; font-size: .98rem; }
.top nav a { color: var(--muted); transition: color .15s; white-space: nowrap; }
.top nav a:hover { color: var(--text); }

/* الواجهة */
.hero {
  position: relative;
  padding-block: 72px 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 50% 20%, rgb(11 11 11 / .55), var(--bg) 85%);
}
.hero > * { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-soft);
  font-weight: 700;
}
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1.15;
}
.hero__lead {
  max-width: 34em;
  margin: 18px 0 32px;
  color: var(--muted);
  font-size: 1.22rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
  transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #1f6fd9; border-color: #1f6fd9; }

.portrait {
  position: relative;
  width: clamp(240px, 26vw, 320px);
  margin: 0;
}
.portrait img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
}
/* زوايا إطار الكاميرا */
.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border: 3px solid var(--accent);
}
.portrait::before {
  inset-block-start: -12px;
  inset-inline-start: -12px;
  border-block-end: 0;
  border-inline-end: 0;
  border-start-start-radius: 16px;
}
.portrait::after {
  inset-block-end: -12px;
  inset-inline-end: -12px;
  border-block-start: 0;
  border-inline-start: 0;
  border-end-end-radius: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px 0 0;
  border-block: 1px solid var(--line);
}
.stats > div { padding: 24px 0; }
.stats > div + div {
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--line);
}
.stats dt { color: var(--muted); font-size: .95rem; }
.stats dd {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.4;
}

/* الأقسام */
.section { padding-block: 88px 0; }
h2 {
  margin: 0 0 32px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
}
h3 {
  margin: 56px 0 24px;
  font-size: 1.4rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}
.split h2 { margin: 0; }
.prose { max-width: 42em; font-size: 1.15rem; }
.prose p { margin: 0 0 18px; }
.prose p:last-of-type { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 26px; }
.tags li {
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .98rem;
}

/* القنوات */
.channels { border-block-start: 1px solid var(--line); }
.channels li { border-block-end: 1px solid var(--line); }
.channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-block: 26px;
  transition: padding .2s, color .15s;
}
.channel__icon { width: 32px; height: 32px; }
.channel__name { font-size: 1.35rem; font-weight: 700; }
.channel__name bdi { color: var(--muted); font-size: 1rem; font-weight: 500; margin-inline-start: 6px; }
.channel__desc { color: var(--muted); }
.channel__arrow { color: var(--muted); transition: color .15s, transform .2s; }
.channel:hover { padding-inline: 12px; }
.channel:hover .channel__arrow { color: var(--accent-soft); transform: translateX(-4px); }

/* الفيديوهات */
.long {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.shorts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.video { display: block; }
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
}
.thumb--short { aspect-ratio: 9 / 16; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.video:hover .thumb img { transform: scale(1.04); }
.thumb__play {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: rgb(11 11 11 / .8);
}
.video__meta {
  display: block;
  margin-block-start: 12px;
  color: var(--muted);
  font-size: .92rem;
}
.video__meta--new { color: var(--accent-soft); font-weight: 700; }
.video__title {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
}
.shorts .video__title { font-size: 1rem; }

/* التواصل */
.contact { padding-block-end: 96px; }
.contact__lead { max-width: 34em; margin: -16px 0 20px; color: var(--muted); font-size: 1.15rem; }
.contact__mail {
  display: inline-block;
  max-width: 100%;
  color: var(--accent-soft);
  font-size: clamp(1.25rem, 5.6vw, 2.6rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  border-block-end: 2px solid var(--accent);
  line-height: 1.5;
}
.contact__mail:hover { color: var(--text); }
.contact__links { display: flex; flex-wrap: wrap; gap: 28px; margin-block-start: 32px; font-weight: 700; }
.contact__links a { color: var(--muted); transition: color .15s; }
.contact__links a:hover { color: var(--text); }

.foot {
  padding-block: 24px;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

/* صفحة 404 */
.notfound {
  display: grid;
  place-content: center;
  justify-items: start;
  min-height: 100vh;
  padding: 24px;
}
.notfound h1 { font-size: clamp(3rem, 12vw, 5rem); }
.notfound p { margin: 8px 0 24px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding-block-start: 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .portrait { order: -1; width: 200px; margin-inline-start: 12px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .channel { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 0; }
  .channel__icon { grid-row: span 2; }
  .channel__desc { grid-column: 2; grid-row: 2; }
  .channel__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .long { grid-template-columns: minmax(0, 1fr); }
  .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block-start: 68px; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .top__row { flex-direction: column; align-items: stretch; gap: 0; padding-block: 8px; }
  .top nav { justify-content: space-between; gap: 12px; font-size: .92rem; }
  html { scroll-padding-top: 112px; }
  .stats > div + div { padding-inline-start: 12px; }
  .stats dt { font-size: .8rem; line-height: 1.5; }
  .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
