:root{--ink:#171717;--paper:#f6f3ee;--white:#fff;--line:#d8d2ca;--red:#a91618;--muted:#716c66;--dark:#171717;--surface:#fff;--surface-2:#e8e1d8;--band:#222;--reader-bg:#fff;--reader-ink:#222;--reader-line:#ddd;--reader-muted:#777;--reader-accent:#a91618}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'IBM Plex Sans Arabic',sans-serif}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb, var(--paper) 92%, transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.topline{height:82px}.topin{height:100%;display:flex;align-items:center;gap:28px}.brand{display:flex;flex-direction:column;align-items:flex-start;line-height:1}.brand span{font-family:'Noto Naskh Arabic';font-size:28px;font-weight:700}.brand-logo{display:block;height:clamp(28px,4vw,44px);width:auto}.brand small{direction:ltr;font-size:9px;letter-spacing:3px;margin-top:6px;color:var(--muted)}nav{display:flex;gap:22px;margin-right:auto;font-size:14px;font-weight:500}nav a:hover{color:var(--red)}.admin-link{border:1px solid var(--ink);padding:9px 14px;font-size:12px}.hamb{display:none;background:none;border:0;font-size:24px}.hero{min-height:520px;display:grid;grid-template-columns:1.25fr .75fr;gap:40px;align-items:center;border-bottom:1px solid var(--line)}.hero-copy{padding:60px 0}.kicker,.eyebrow{color:var(--red);font-size:12px;font-weight:700;letter-spacing:.5px}.hero h1{font-family:'Noto Naskh Arabic';font-size:58px;line-height:1.25;max-width:760px;margin:18px 0}.hero p{font-size:18px;color:var(--muted);max-width:650px;line-height:2}.hero-actions{display:flex;gap:10px;margin-top:28px}.btn{display:inline-block;padding:12px 20px;border:1px solid var(--ink);font-size:14px}.btn.primary{background:var(--red);color:#fff;border-color:var(--red)}.btn.ghost{background:transparent}.hero-art{height:380px;background:var(--band);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.stamp-logo{width:min(86%,520px);height:auto;transform:rotate(-8deg)}.hero-note{position:absolute;left:20px;bottom:20px;color:var(--muted);direction:ltr;font-size:10px;letter-spacing:3px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:28px}.section-head h2{font-family:'Noto Naskh Arabic';font-size:38px;margin:5px 0 0}.section-head>a{font-size:13px;color:var(--red)}section.current,section.wrap{padding:80px 0}.current-grid{display:grid;grid-template-columns:330px 1fr;gap:40px}.current-cover{background:var(--line);min-height:430px;display:flex;align-items:center;justify-content:center;overflow:hidden}.current-cover img{width:100%;height:100%;object-fit:cover}.placeholder-cover{width:100%;height:100%;min-height:430px;background:linear-gradient(145deg,#202020,#777);display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Noto Naskh Arabic';font-size:60px}.current-info h3{font-family:'Noto Naskh Arabic';font-size:42px;margin:0 0 10px}.current-info .num{color:var(--red);font-weight:700}.current-info p{color:var(--muted);line-height:2;font-size:17px}.issues-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:18px}.issue-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);transition:.2s}.issue-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px #0000000c}.issue-cover{aspect-ratio:3/4;background:#292929;overflow:hidden;display:flex;align-items:center;justify-content:center}.issue-cover img{width:100%;height:100%;object-fit:cover}.issue-cover span{color:#fff;font-family:'Noto Naskh Arabic';font-size:34px}.issue-body{padding:16px}.issue-body strong{font-family:'Noto Naskh Arabic';font-size:22px}.issue-body p{font-size:12px;color:var(--muted);margin:4px 0 12px}.issue-links{display:flex;gap:8px}.mini{font-size:11px;border:1px solid var(--line);padding:7px 10px}.mini.red{background:var(--red);color:#fff;border-color:var(--red)}.dark-band{background:var(--dark);color:#fff;padding:75px 0}.light h2{color:#fff}.sections-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#444}.section-card{padding:30px;background:var(--dark);min-height:150px}.section-card b{font-family:'Noto Naskh Arabic';font-size:25px}.section-card p{color:#aaa;font-size:12px;line-height:1.8}.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.article-card{border-top:3px solid var(--ink);padding-top:18px}.article-card-image{aspect-ratio:16/9;overflow:hidden;background:var(--surface-2);margin-bottom:14px}.article-card-image img{width:100%;height:100%;object-fit:cover;display:block}.article-card .cat{color:var(--red);font-size:11px;font-weight:700}.article-card h3{font-family:'Noto Naskh Arabic';font-size:27px;line-height:1.35;margin:10px 0}.article-card p{color:var(--muted);line-height:1.8;font-size:13px}.article-card small{color:var(--muted)}.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}#editors{padding-top:0}.person{border-top:1px solid var(--line);padding-top:20px}.avatar{width:70px;height:70px;border-radius:50%;background:var(--band);color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Noto Naskh Arabic';font-size:25px;margin-bottom:15px;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.person h3{font-family:'Noto Naskh Arabic';font-size:23px;margin:0}.person .role{color:var(--red);font-size:12px}.person p{color:var(--muted);font-size:13px;line-height:1.8}.about-block{background:var(--surface-2);padding:75px 0}.about-inner{display:grid;grid-template-columns:.7fr 1.3fr;gap:60px}.about-inner h2{font-family:'Noto Naskh Arabic';font-size:48px;margin:5px 0}.about-inner p{font-size:17px;line-height:2}.contact{display:flex;justify-content:space-between;align-items:center;gap:30px}.contact-mail{font-size:18px;border-bottom:2px solid var(--red)}footer{background:#111;color:#aaa;padding:25px 0;font-size:12px}.foot{display:flex;justify-content:space-between}.foot-logo{height:clamp(20px,1.8vw,28px);width:auto;display:block;opacity:.92}.muted{color:var(--muted);font-size:13px}.empty{padding:35px;border:1px dashed var(--line);color:var(--muted)}@media(max-width:900px){nav{display:none;position:absolute;top:82px;right:0;left:0;background:var(--paper);border-bottom:1px solid var(--line);padding:20px;flex-direction:column}.nav-open nav{display:flex}.hamb{display:block}.admin-link{margin-right:auto}.hero{grid-template-columns:1fr}.hero-art{display:none}.hero h1{font-size:43px}.current-grid{grid-template-columns:1fr}.issues-grid{grid-template-columns:repeat(2,1fr)}.sections-grid{grid-template-columns:repeat(2,1fr)}.articles-grid,.team-grid{grid-template-columns:1fr 1fr}.about-inner{grid-template-columns:1fr}.contact{display:block}.contact-mail{display:inline-block;margin-top:20px}}@media(max-width:560px){.wrap{width:min(100% - 24px,1180px)}.topline{height:72px}.brand span{font-size:23px}.hero{min-height:auto}.hero-copy{padding:45px 0}.hero h1{font-size:36px}.hero p{font-size:16px}.issues-grid,.sections-grid,.articles-grid,.team-grid{grid-template-columns:1fr}.section-head h2{font-size:31px}.current-info h3{font-size:34px}.foot{display:block}.foot span{display:block;margin:5px 0}}
.article-card small.views{color:var(--muted);font-size:12px;margin-top:6px;display:block}
.cc-article-date{display:flex;gap:14px;flex-wrap:wrap}
.cc-article-date .views{color:var(--reader-muted)}
a.section-card{text-decoration:none;color:inherit;display:block;transition:transform .18s ease}
a.section-card:hover{transform:translateY(-3px)}
a.section-card:hover b{color:var(--red)}
.issue-year{font-family:inherit;font-size:13px;font-weight:400;color:var(--muted);margin-inline-start:6px}
.issue-body{display:flex;flex-direction:column;gap:0;flex:1}
.issue-body .issue-links{margin-top:auto}

/* ============ الوضع الليلي ============ */
html[data-theme="dark"]{
  --surface:#1e1c1a;
  --surface-2:#221f1c;
  --band:#0b0a09;
  --reader-bg:#1a1817;
  --reader-ink:#eceae5;
  --reader-line:#3a3632;
  --reader-muted:#a09a90;
  --reader-accent:#e2644f;
  --ink:#f4f1ec;
  --paper:#141312;
  --white:#1e1c1a;
  --line:#3a3632;
  --red:#c8412f;
  --muted:#a09a90;
  --dark:#0a0908;
}

html[data-theme="dark"] .issue-card{
  background:var(--surface);
}

html[data-theme="dark"] .placeholder-cover{
  background:var(--line);
  color:var(--ink);
}

html[data-theme="dark"] .hero-note{
  border-color:var(--line);
}

/* ============ زر تبديل الوضع ============ */
.theme-toggle{
  margin-right:auto;
  width:42px;
  height:42px;
  padding:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:none;
  border:1px solid var(--ink);
  color:var(--ink);
  cursor:pointer;
  position:relative;
  transition:background .18s,color .18s,border-color .18s;
}
.theme-toggle:hover{
  background:var(--ink);
  color:var(--paper);
}
.theme-toggle svg{
  width:19px;
  height:19px;
  position:absolute;
  transition:opacity .22s ease,transform .22s ease;
}
.theme-toggle .i-sun{opacity:1;transform:rotate(0deg) scale(1)}
.theme-toggle .i-moon{opacity:0;transform:rotate(-70deg) scale(.85)}
html[data-theme="dark"] .theme-toggle .i-sun{opacity:0;transform:rotate(70deg) scale(.85)}
html[data-theme="dark"] .theme-toggle .i-moon{opacity:1;transform:rotate(0deg) scale(1)}

/* ============ تنسيق الفيديو السينمائي ============ */
.hero-video-container {
  width: min(1180px, calc(100% - 40px));
  margin: 15px auto 0 auto;
  height: 240px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  background-color: #000;
  border: 1px solid var(--line);
  border-bottom: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-box-wrapper {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 20px auto;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 5px 0 20px 0;
}

.hero-box-wrapper .hero {
  border-bottom: none;
  min-height: auto;
  padding: 20px 0;
}

/* ============ أرشيف الأعداد - شريط أفقي ============ */

.issues-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  direction: rtl;
  overflow-x: auto !important;
  overflow-y: hidden;
  gap: 22px;
  padding: 5px 2px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.issues-grid::-webkit-scrollbar {
  display: none;
}

.issues-grid .issue-card {
  flex: 0 0 190px !important;
  min-width: 0 !important;
  scroll-snap-align: start;
  transition: transform .25s ease;
}

.issues-grid .issue-card:hover {
  transform: translateY(-4px);
}

.issues-grid .issue-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.issues-grid .issue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.issues-grid .issue-body {
  padding: 12px;
}

.issues-grid .issue-body strong {
  font-size: 19px;
}

.issues-grid .issue-body p {
  font-size: 12px;
}

/* الهاتف */
@media (max-width: 560px) {
  .issues-grid {
    gap: 14px;
  }

  .issues-grid .issue-card {
    flex: 0 0 42% !important;
  }

  .issues-grid .issue-body {
    padding: 9px;
  }

  .issues-grid .issue-body strong {
    font-size: 17px;
  }
}

/* ============ تأطير النص أسفل الفيديو ============ */

.hero {
  display: block;
  min-height: auto;
  border-bottom: none;
  padding: 0;
}

.hero-copy {
  padding: 0;
}

.hero-text-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: none;
  padding: 28px 34px 24px;
}

.hero-text-panel .kicker {
  font-size: 14px;
}

.hero-text-panel h1 {
  margin: 12px 0;
}

.hero-text-panel p {
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 0;
  padding: 18px 0 28px;
}

@media (max-width: 560px) {
  .hero-text-panel {
    padding: 20px 18px 18px;
  }

  .hero-text-panel h1 {
    font-size: 36px;
    margin: 10px 0;
  }

  .hero-text-panel p {
    font-size: 16px;
  }

  .hero-actions {
    padding: 15px 0 22px;
  }
}
