/* ==========================================================================
   روضه نیوز — دیزاین‌سیستم عمومی
   مینیمالِ خبری: کاغذ سفید، خط‌های مویی، تک‌رنگ قرمز لوگو (#b51d22)
   راست‌چین · فونت وزیرمتن لوکال · تاریخ شمسی · حالت روشن و تاریک
   ========================================================================== */
@import url("../fonts/fonts.css");

/* ---------- ۱) نشانه‌ها (tokens) ---------- */
:root {
  color-scheme: light;
  --red: #b51d22;
  --red-strong: #911419;
  --red-soft: #fbecee;
  --red-line: #f0d6d8;

  --bg: #ffffff;
  --bg-2: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f6f6f5;
  --ink: #15171a;
  --ink-2: #3a4048;
  --muted: #6d747c;
  --line: #e9e9e7;
  --line-2: #dedede;

  --green: #17794c;
  --green-soft: #e9f4ee;
  --amber: #9a6400;
  --amber-soft: #fbf1df;

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --shadow-1: 0 1px 2px rgba(20, 22, 26, .05);
  --shadow-2: 0 2px 6px rgba(20, 22, 26, .06), 0 18px 40px -22px rgba(20, 22, 26, .22);
  --shadow-3: 0 30px 80px -32px rgba(20, 22, 26, .45);

  --font: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", sans-serif;
  --container: 1180px;
  --gutter: 24px;
  --h-header: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #e2565f;
  --red-strong: #f0767e;
  --red-soft: #2c171a;
  --red-line: #47262b;

  --bg: #0f1114;
  --bg-2: #13161a;
  --surface: #161a1f;
  --surface-2: #1c2126;
  --ink: #eaecf0;
  --ink-2: #c3c9d1;
  --muted: #8b949e;
  --line: #262b32;
  --line-2: #30363e;

  --green: #4fb98a;
  --green-soft: #142a20;
  --amber: #d9a44a;
  --amber-soft: #2a2214;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --shadow-3: 0 30px 80px -30px rgba(0, 0, 0, .9);
}

/* ---------- ۲) پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--font-size-base, 15px);
  font-weight: 400;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: color .3s var(--ease);
  overflow-wrap: break-word;
  word-break: break-word;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20px;
  z-index: -3;
  background-image: var(--site-bg-light, url('/static/img/bg-vault.jpg'));
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  filter: blur(3.5px) saturate(108%);
  -webkit-filter: blur(3.5px) saturate(108%);
  transform: scale(1.02);
  transition: background-image 0.35s ease, filter 0.35s ease;
}
:root[data-theme="dark"] body::before {
  background-image: var(--site-bg-dark, url('/static/img/bg-vault.jpg'));
  filter: blur(3.5px) brightness(0.88) saturate(115%);
  -webkit-filter: blur(3.5px) brightness(0.88) saturate(115%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 252, 248, 0.18) 0%, rgba(246, 242, 235, 0.45) 100%);
  transition: background 0.35s ease;
}
:root[data-theme="dark"] body::after {
  background: radial-gradient(ellipse at 50% 30%, rgba(18, 14, 12, 0.22) 0%, rgba(9, 8, 7, 0.50) 100%);
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; line-height: 1.6; letter-spacing: -.2px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 9px 18px; border-radius: 0 0 10px 10px;
  font-size: 13px; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.muted { color: var(--muted); }
.red { color: var(--red); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- ۳) قاب تصویر — همه تصویرها افقی و هم‌نسب ---------- */
.frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--surface-2);
  border-radius: var(--radius); isolation: isolate;
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%;
  transition: transform .6s var(--ease), filter .3s var(--ease);
}
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--wide { aspect-ratio: 20 / 9; }
.frame--s { aspect-ratio: 3 / 2; }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .06); border-radius: inherit;
}
a.frame:hover img, .card:hover .frame img, .row:hover .frame img { transform: scale(1.04); }
.frame .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 12px; font-weight: 700;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px);
}
figcaption, .frame-cap {
  font-size: 11.5px; color: var(--muted); padding: 8px 2px 0; line-height: 1.7;
}

/* ---------- ۴) دکمه، نشان، چیپ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 9px 20px;
  font-size: 13.5px; font-weight: 700; line-height: 1.8; background: none;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-strong); }
:root[data-theme="dark"] .btn-primary { color: #17090b; }
.btn-outline { border-color: var(--line-2); color: var(--ink-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.btn-quiet { color: var(--muted); background: var(--surface-2); }
.btn-quiet:hover { color: var(--ink); background: var(--line); }
.btn-sm { padding: 6px 15px; font-size: 12.5px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: .18s var(--ease);
}
.icon-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.icon-btn.is-on { color: #fff; background: var(--red); border-color: var(--red); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 500;
  padding: 5px 14px; border-radius: 999px; transition: .16s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .chip.on { color: #180a0c; }

.tag {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); padding: 2px 10px; border-radius: 7px;
  transition: .16s var(--ease);
}
.tag:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.badge-live {
  display: inline-flex; align-items: center; gap: 7px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.badge-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  color: var(--red); letter-spacing: .1px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.kicker--plain::before { display: none; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ---------- ۵) هدر شناور و کپسولی شیشه‌ای ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: transparent;
  border-bottom: 0; padding: 16px 0 10px;
  transition: padding .25s var(--ease);
}
.site-header.scrolled { padding: 10px 0 6px; }
.header-in {
  display: flex; align-items: center; gap: 18px; height: 62px;
  padding: 0 20px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 30px rgba(35, 25, 18, 0.08);
  transition: all .25s var(--ease);
}
:root[data-theme="dark"] .header-in {
  background: rgba(26, 21, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 40px; width: auto; }
:root[data-theme="dark"] .brand img { filter: none; }
.brand-txt { line-height: 1.25; }
.brand-txt b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
:root[data-theme="dark"] .brand-txt b { color: #ffffff; }
.brand-txt span { font-size: 10.5px; color: var(--muted); font-weight: 500; }
:root[data-theme="dark"] .brand-txt span { color: rgba(255, 255, 255, 0.68); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 4px;
  min-width: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar {
  display: none;
}
.main-nav > a, .nav-drop > button {
  border: 0; background: none; padding: 7px 13px; border-radius: 999px; font-size: 13.5px;
  font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: .16s var(--ease);
}
:root[data-theme="dark"] .main-nav > a, :root[data-theme="dark"] .nav-drop > button {
  color: rgba(255, 255, 255, 0.88);
}
.main-nav > a:hover, .nav-drop > button:hover { color: var(--ink); background: rgba(0, 0, 0, 0.06); }
:root[data-theme="dark"] .main-nav > a:hover, :root[data-theme="dark"] .nav-drop > button:hover {
  color: #ffffff; background: rgba(255, 255, 255, 0.12);
}
.main-nav > a.active { color: #ffffff; font-weight: 700; background: var(--red); }
:root[data-theme="dark"] .main-nav > a.active { color: #ffffff; background: var(--red); }
.nav-drop { position: relative; }
.nav-drop > button svg { transition: transform .2s var(--ease); }
.nav-drop:hover > button svg, .nav-drop:focus-within > button svg { transform: rotate(180deg); }
.nav-drop .menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 208px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease);
}
:root[data-theme="dark"] .nav-drop .menu {
  background: rgba(26, 21, 19, 0.88); border-color: rgba(255, 255, 255, 0.16);
}
.nav-drop:hover .menu, .nav-drop:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop .menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
:root[data-theme="dark"] .nav-drop .menu a { color: rgba(255, 255, 255, 0.85); }
.nav-drop .menu a:hover { background: var(--red-soft); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-actions .btn-newsletter {
  white-space: nowrap; background: var(--red); color: #ffffff !important;
  font-weight: 700; border-radius: 9999px; padding: 8px 20px;
  box-shadow: 0 4px 14px rgba(181, 29, 34, 0.38); border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all .2s var(--ease);
}
.header-actions .btn-newsletter:hover {
  background: var(--red-strong); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(181, 29, 34, 0.5);
}
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.8); color: var(--ink-2);
  transition: .18s var(--ease);
}
:root[data-theme="dark"] .icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.icon-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
:root[data-theme="dark"] .icon-btn:hover {
  color: #ffffff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.22);
}
.menu-btn { display: grid; }
.main-nav { display: flex; }

/* ---------- ۶) ساید‌منوی راست (کشویی) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 88; background: rgba(12, 14, 17, .5);
  opacity: 0; visibility: hidden; transition: .25s var(--ease); backdrop-filter: blur(2px);
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; z-index: 90; width: min(370px, 88vw);
  background: var(--surface); border-inline-start: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; overscroll-behavior: contain;
}
html[dir="rtl"] .drawer { transform: translateX(100%); }
html[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; box-shadow: var(--shadow-3); }
.drawer-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer-head b { font-size: 14px; }
.drawer-head .icon-btn { margin-inline-start: auto; }
.drawer-body {
  padding: 16px 18px 26px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.drawer-body::-webkit-scrollbar {
  display: none;
}
.drawer-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-sec:last-child { border-bottom: 0; }
.drawer-sec > h4 {
  font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .5px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.drawer-sec > h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.drawer-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: .15s var(--ease);
}
.drawer-nav a:hover { background: var(--surface-2); color: var(--ink); }
.drawer-nav a.active { background: var(--red-soft); color: var(--red); font-weight: 700; }
.drawer-nav a .n {
  margin-inline-start: auto; font-size: 11px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-weight: 700;
}
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line); flex: none; display: grid; gap: 10px; }
.theme-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.theme-row .switch { margin-inline-start: auto; }

/* کلید حالت تاریک */
.switch {
  position: relative; width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); padding: 0; transition: .2s var(--ease); flex: none;
}
.switch::after {
  content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); transition: .22s var(--ease);
}
.switch[aria-checked="true"] { background: var(--red); border-color: var(--red); }
.switch[aria-checked="true"]::after { inset-inline-start: 22px; background: #fff; }

/* کلیک‌کارت: کلید جستجو و نشانه‌های حالت */
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: grid; place-items: center; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: grid; place-items: center; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
.to-top svg { transform: rotate(180deg); }

/* ---------- ۷) لایه جستجو (طراحی مدرن و ارگونومیک) ---------- */
.search-layer {
  position: fixed; inset: 0; z-index: 95;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  display: none; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity .2s var(--ease);
}
.search-layer.open { display: flex; }

.search-card {
  width: min(620px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  animation: searchPop .22s var(--ease);
}

.search-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.search-title {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.search-title-icon { color: var(--red); display: inline-flex; }
.search-close-btn { width: 34px; height: 34px; border-radius: 999px; }

.search-box { width: 100%; }
.search-bar {
  display: flex; align-items: center; gap: 10px; background: var(--bg-2);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 5px 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.search-bar:focus-within {
  border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 3px var(--red-soft);
}
.search-bar-ico { color: var(--muted); display: inline-flex; flex-shrink: 0; }
.search-bar input {
  flex: 1; border: 0; outline: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 6px 0; min-width: 0;
}
.search-bar input::placeholder { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.search-submit-btn { white-space: nowrap; flex-shrink: 0; }

.search-topics {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.search-topics-lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.search-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search-chip {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  transition: .15s var(--ease); font-weight: 500;
}
.search-chip:hover {
  background: var(--red-soft); color: var(--red); border-color: var(--red-line);
}

@keyframes searchPop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- ۸) ساختار صفحه ---------- */
main { display: block; }
.section { padding: 34px 0; }
.section--first { padding-top: 26px; }
.section + .section, .section--edge { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(19px, 2vw, 22px); display: flex; align-items: center; gap: 11px; }
.sec-head h2::before { content: ""; width: 3px; height: 19px; border-radius: 3px; background: var(--red); }
.sec-head .sub { font-size: 12px; color: var(--muted); margin-inline-start: 2px; }
.sec-head .all {
  font-size: 12.5px; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 5px;
  padding-bottom: 3px;
}
.sec-head .all:hover { color: var(--red-strong); gap: 8px; }

/* ---------- ۹) ستون سردرصفحه (هیرو) ---------- */
.hero { padding: 26px 0 6px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.hero-main .frame { border-radius: var(--radius-l); }
.hero-main .over { position: relative; margin-top: 18px; }
.hero-main h1 { font-size: clamp(21px, 2.55vw, 31px); line-height: 1.6; margin: 10px 0 12px; font-weight: 800; }
.hero-main h1 a:hover { color: var(--red); }
.hero-main .lead {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 2;
  margin-bottom: 16px;
  max-width: 68ch;
  text-align: justify;
  font-weight: 500;
}
:root[data-theme="dark"] .hero-main .lead {
  color: rgba(255, 255, 255, 0.92);
}
.hero-main .stamp { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.hero-side { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.hd { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 13px 18px; }
.hd svg { color: var(--red); }
.hero-side .hd { border-bottom: 1px solid var(--line); }
.most-read .hd { padding: 12px 18px 6px; border-bottom: 1px solid var(--line); }
.most-read ol { padding: 0 18px 10px; }
.live-player { position: relative; height: 100%; }
.live-player .live-frame { display: none; position: absolute; inset: 0; }
.live-player .live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-player.playing .live-frame { display: block; }
.live-player.playing .live-poster { display: none; }
.side-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 13px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.side-item:last-child { border-bottom: 0; }
.side-item .frame { border-radius: var(--radius-s); aspect-ratio: 3 / 2; }
.side-item h3 { font-size: 13.5px; line-height: 1.75; font-weight: 700; }
.side-item a:hover h3, .side-item:hover h3 { color: var(--red); }
.side-item .meta { font-size: 11px; margin-top: 3px; }

.most-read { border: 1px solid var(--line); border-radius: var(--radius-l); margin-top: 20px; background: var(--bg-2); }
.most-read li { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.most-read li:last-child { border-bottom: 0; }
.most-read .rank { font-size: 17px; font-weight: 800; color: var(--red); opacity: .9; min-width: 22px; line-height: 1.8; }
.most-read a { font-size: 13px; font-weight: 700; line-height: 1.75; }
.most-read a:hover { color: var(--red); }
.most-read .meta { font-size: 11px; margin-top: 2px; }

/* ---------- ۱۰) کارت خبر ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card .frame { border-radius: var(--radius); margin-bottom: 12px; }
.card .card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card h3 { font-size: 15px; line-height: 1.8; font-weight: 700; }
.card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a:hover { color: var(--red); }
.card .meta { margin-bottom: 7px; }
.card .excerpt {
  font-size: 13.2px;
  color: var(--ink-2);
  margin-top: 8px;
  line-height: 1.9;
  text-align: justify;
  font-weight: 500;
}
:root[data-theme="dark"] .card .excerpt {
  color: rgba(255, 255, 255, 0.88);
}
.card .tags { margin-top: 10px; }
.card--lead { grid-column: span 2; }
.card--lead h3 { font-size: 20px; }
.card--lead .frame { aspect-ratio: 16 / 9; }

/* ---------- مدل ۲: کارت‌های رسانه‌ای افقی متوازن ---------- */
.cards-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compact-card {
  display: flex; flex-direction: row; align-items: stretch; gap: 16px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-1); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.compact-card:hover {
  transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-2);
}
.compact-card .frame {
  width: 140px; min-width: 140px; aspect-ratio: 4 / 3; border-radius: var(--radius);
  margin-bottom: 0; flex-shrink: 0;
}
.compact-card .card-body,
.compact-card .card-content {
  display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-width: 0;
}
.compact-card h3 { font-size: 14.5px; line-height: 1.75; font-weight: 700; margin: 4px 0; }
.compact-card h3 a:hover { color: var(--red); }
.compact-card .excerpt {
  font-size: 13.2px;
  color: #1f2429;
  line-height: 1.85;
  margin-top: 5px;
  font-weight: 500;
  text-align: justify;
}
:root[data-theme="dark"] .compact-card .excerpt {
  color: rgba(255, 255, 255, 0.9);
}

/* ردیف خبری (فهرست‌ها) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; padding: 20px 0;
  border-bottom: 1px solid var(--line); align-items: center; transition: background-color .2s var(--ease);
}
.row:hover { background: var(--bg-2); }
.row .frame { aspect-ratio: 16 / 10; }
.row h3 { font-size: 17px; line-height: 1.75; margin: 6px 0 8px; }
.row h3 a:hover { color: var(--red); }
.row .excerpt {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.95;
  max-width: 74ch;
  text-align: justify;
  font-weight: 500;
}
:root[data-theme="dark"] .row .excerpt {
  color: rgba(255, 255, 255, 0.88);
}
.row .foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.row .num { font-size: 11.5px; color: var(--muted); }

/* ---------- ۱۱) بلوک دسته در صفحه نخست ---------- */
.cat-block { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cat-block .side-list { display: flex; flex-direction: column; }
.cat-block .side-list .row { grid-template-columns: 104px minmax(0, 1fr); padding: 14px 0; gap: 14px; }
.cat-block .side-list .row:first-child { border-top: 0; padding-top: 0; }
.cat-block .side-list .row h3 { font-size: 14px; margin: 0; line-height: 1.75; }
.cat-block .side-list .row .frame { aspect-ratio: 3 / 2; }

/* ---------- ۱۲) خبرنگاران برتر ---------- */
.reporters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.reporter {
  display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-l); background: var(--surface); transition: .2s var(--ease); position: relative;
}
.reporter:hover { border-color: var(--red-line); background: var(--red-soft); transform: translateY(-2px); }
.reporter .av {
  width: 54px; height: 54px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--red); font-weight: 800; font-size: 17px;
}
.reporter .av img { width: 100%; height: 100%; object-fit: cover; }
.reporter b { display: block; font-size: 14px; font-weight: 700; }
.reporter span { font-size: 11.5px; color: var(--muted); display: block; line-height: 1.7; }
.reporter .n {
  position: absolute; top: 12px; inset-inline-end: 14px; font-size: 10.5px; font-weight: 700; color: var(--red);
  background: var(--surface); border: 1px solid var(--red-line); border-radius: 999px; padding: 0 8px;
}
.reporter:hover .n { background: #fff; }

/* ---------- ۱۳) پخش زنده ---------- */
.live-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: stretch; }
.live-stage {
  position: relative; border-radius: var(--radius-l); overflow: hidden; background: #0c0e11;
  box-shadow: var(--shadow-2); aspect-ratio: 16 / 9;
}
.live-stage iframe, .live-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-ratio { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0c0e11; }
.embed-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-poster { position: absolute; inset: 0; }
.live-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.live-poster .scrim-in { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 11, .82), transparent 55%); }
.live-poster .play {
  position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); display: grid; place-items: center;
  color: #fff; transition: .2s var(--ease);
}
.live-poster .play:hover { background: var(--red); border-color: var(--red); transform: translate(-50%, -50%) scale(1.05); }
.live-poster .txt { position: absolute; inset-inline: 20px; bottom: 18px; color: #fff; }
.live-poster .txt h3 { font-size: 16px; line-height: 1.7; }
.live-poster .txt p { font-size: 12px; opacity: .82; }
.live-poster .badge-live { position: absolute; top: 16px; inset-inline-start: 16px; }
.live-note {
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 14px;
}
.live-note h3 { font-size: 15px; }
.live-note p { font-size: 13px; color: var(--muted); line-height: 1.95; }
.live-note ul { display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.live-note li { display: flex; gap: 9px; align-items: flex-start; }
.live-note li svg { color: var(--red); margin-top: 5px; }

/* ---------- ۱۴) پیوندها ---------- */
.links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.link-card {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-l); background: var(--surface); transition: .18s var(--ease); min-width: 0;
}
.link-card:hover { border-color: var(--red); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.link-card .mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 14px; border: 1px solid var(--red-line);
}
.link-card .mark img { width: 100%; height: 100%; object-fit: contain; }
.link-card b { display: block; font-size: 13.5px; font-weight: 700; }
.link-card span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.link-card .out { margin-inline-start: auto; color: var(--muted); transition: .18s var(--ease); }
.link-card:hover .out { color: var(--red); }

/* ---------- ۱۵) بنر اپ ---------- */
.promo {
  border: 1px solid var(--line); border-radius: 22px; padding: 34px 36px; background:
    radial-gradient(600px 220px at 88% -30%, var(--red-soft), transparent 70%), var(--bg-2);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; margin: 8px 0 6px;
}
.promo h2 { font-size: 22px; margin-bottom: 8px; }
.promo p { color: var(--muted); font-size: 14px; max-width: 62ch; }
.promo .stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg);
  border-radius: 12px; padding: 8px 16px; transition: .18s var(--ease);
}
.store:hover { background: var(--red); color: #fff; }
.store small { display: block; font-size: 10px; opacity: .8; line-height: 1.5; }
.store b { font-size: 13.5px; line-height: 1.5; }

/* ---------- ۱۶) خبرنامه ---------- */
.news-box { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-2); padding: 22px; }
.news-box h3 { font-size: 16px; margin-bottom: 6px; }
.news-box p { font-size: 12.8px; color: var(--muted); margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-size: 12.8px; background: var(--surface); outline: 0; transition: .16s var(--ease);
}
.news-form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.news-inline {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-radius: 20px;
  margin: 30px 0 20px;
  flex-wrap: wrap;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all .25s var(--ease);
}
:root[data-theme="dark"] .news-inline {
  background: rgba(26, 21, 19, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.news-inline .news-inline-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--red-line);
}
.news-inline b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--card-title);
  margin-bottom: 4px;
}
:root[data-theme="dark"] .news-inline b {
  color: #ffffff;
}
.news-inline p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
}
:root[data-theme="dark"] .news-inline p {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- ۱۷) سرصفحه صفحه فهرست ---------- */
.page-head { padding: 30px 0 4px; }
.crumbs {
  font-size: 13px;
  color: var(--ink-2);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
:root[data-theme="dark"] .crumbs {
  background: rgba(26, 21, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
}
.crumbs a {
  color: var(--ink);
  font-weight: 700;
  transition: color .15s;
}
:root[data-theme="dark"] .crumbs a {
  color: #ffffff;
}
.crumbs a:hover {
  color: var(--red);
}
.crumbs .sep {
  color: var(--red);
  font-weight: 700;
  opacity: 0.85;
  margin: 0 2px;
}
.crumbs b {
  color: #374151;
  font-weight: 600;
}
:root[data-theme="dark"] .crumbs b {
  color: rgba(255, 255, 255, 0.8);
}
.page-head h1 { font-size: clamp(22px, 2.6vw, 29px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 .count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.page-head .desc { color: var(--muted); font-size: 13.5px; margin-top: 10px; max-width: 76ch; }
.filter-bar { display: flex; align-items: center; gap: 8px; margin: 20px 0 4px; flex-wrap: wrap; }
.filter-bar .lb { font-size: 12px; color: var(--muted); margin-inline-end: 4px; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 40px; padding: 22px 0 10px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--h-header) + 18px); display: grid; gap: 18px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; background: var(--surface); }
.widget > h4 { font-size: 13.5px; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.widget > h4 svg { color: var(--red); }
.widget.accent { background: var(--red-soft); border-color: var(--red-line); }
.widget.accent > h4 { color: var(--red); }
.widget-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.widget-list li:last-child { border-bottom: 0; }
.widget-list .frame { width: 76px; height: 52px; aspect-ratio: auto; border-radius: 8px; flex: none; }
.widget-list a { font-size: 12.5px; font-weight: 700; line-height: 1.75; }
.widget-list a:hover { color: var(--red); }
.widget-list .meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 28px 0 4px; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); padding-inline: 8px;
  background: var(--surface); transition: .16s var(--ease);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .cur { background: var(--red); border-color: var(--red); color: #fff; }
:root[data-theme="dark"] .pagination .cur { color: #180a0c; }
.pagination .gap { border: 0; background: none; }

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--radius-l); padding: 44px 24px; text-align: center;
  color: var(--muted); background: var(--bg-2);
}
.empty b { display: block; color: var(--ink); font-size: 15px; margin: 12px 0 6px; }
.empty svg { color: var(--red); opacity: .8; }

/* ---------- ۱۸) صفحه خبر ---------- */
.progress-bar { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 70; background: transparent; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .1s linear; }

.article { padding: 24px 0 10px; }
.article-head { max-width: 100%; margin-inline: 0; text-align: right; }
.article-head .kicker { justify-content: flex-start; }
.article-head h1 {
  font-size: var(--article-title-size, clamp(18px, 1.8vw, 22.5px));
  line-height: 1.5;
  margin: 10px 0 14px;
  font-weight: 800;
  letter-spacing: -.3px;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: right;
  width: 100%;
}
.article-head .lead {
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-2);
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: right;
  border-inline-start: 0;
}
.article-head .meta { justify-content: flex-start; font-size: 12.5px; }
.byline { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.byline .who { display: flex; align-items: center; gap: 9px; }
.byline .av { width: 36px; height: 36px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; border: 1px solid var(--red-line); overflow: hidden; }
.byline .av img { width: 100%; height: 100%; object-fit: cover; }
.byline b { font-size: 13px; font-weight: 700; }
.byline small { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; }
.article-rule { width: 60px; height: 3px; border-radius: 3px; background: var(--red); margin: 18px 0 24px; opacity: .9; }
.article-figure { margin: 0 auto; max-width: 980px; }
.article-figure .frame { border-radius: var(--radius-l); }
.article-figure figcaption { text-align: center; padding: 10px 12px 0; }

.article-body {
  max-width: 748px; margin: 26px auto 0; font-size: 16.5px; line-height: 2.25; color: var(--ink-2);
  text-align: justify; text-justify: inter-word; hyphens: auto;
}
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 20px; }
.article-body p:first-of-type { font-size: 17.5px; color: var(--ink); }
.article-body h2 { font-size: 21px; margin: 34px 0 14px; color: var(--ink); line-height: 1.7; padding-inline-start: 14px; position: relative; }
.article-body h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 4px; height: .95em; border-radius: 3px; background: var(--red); }
.article-body h3 { font-size: 18px; margin: 26px 0 12px; color: var(--ink); }
.article-body a { color: var(--red); font-weight: 700; border-bottom: 1px solid var(--red-line); }
.article-body a:hover { border-bottom-color: var(--red); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-inline-start: 26px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; padding-inline-start: 4px; }
.article-body li::marker { color: var(--red); font-weight: 700; }
.article-body blockquote {
  margin: 26px 0; padding: 18px 22px; background: var(--red-soft); border-inline-start: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; font-weight: 500; color: var(--ink);
  line-height: 2.05; text-align: justify;
}
html[dir="ltr"] .article-body blockquote { border-radius: var(--radius) 0 0 var(--radius); border-inline-start: 0; border-inline-end: 3px solid var(--red); }
.article-body figure { margin: 26px 0; }
.article-body img { border-radius: var(--radius); margin-inline: auto; }
.article-body hr { margin: 32px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 22px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: right; }
.article-body th { background: var(--surface-2); font-weight: 700; }
.article-body .embed-ratio { border-radius: var(--radius-l); overflow: hidden; margin: 26px 0; background: #0c0e11; }

.article-foot { max-width: 748px; margin: 26px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.share .icon-btn { width: 34px; height: 34px; }
.source-note { font-size: 12.5px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 26px auto 0; max-width: 748px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.source-note a { color: var(--red); font-weight: 700; }

.author-card {
  max-width: 748px; margin: 28px auto 0; display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px;
}
.author-card .av { width: 54px; height: 54px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 16px; border: 1px solid var(--red-line); flex: none; overflow: hidden; }
.author-card .av img { width: 100%; height: 100%; object-fit: cover; }
.author-card b { font-size: 14.5px; }
.author-card p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.9; }
.author-card a { font-size: 12.5px; color: var(--red); font-weight: 700; }
.author-card a:hover { text-decoration: underline; }

.pick-next { max-width: 748px; margin: 26px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pick-next a { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px 16px; background: var(--surface); transition: .18s var(--ease); }
.pick-next a:hover { border-color: var(--red); background: var(--red-soft); }
.pick-next small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pick-next b { font-size: 13.5px; line-height: 1.75; font-weight: 700; }
.pick-next .next { text-align: left; }
html[dir="rtl"] .pick-next .next { text-align: start; }

.comments { max-width: 748px; margin: 40px auto 0; }
.comments > h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.comments > h2 .n { font-size: 11.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-weight: 700; }
.comment { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .av { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--red); flex: none; }
.comment .who { font-size: 12.5px; }
.comment .who b { font-weight: 700; }
.comment .who span { color: var(--muted); font-size: 11px; margin-inline-start: 8px; }
.comment p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.95; text-align: justify; }
.comment-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; margin-top: 22px; }
.comment-form h3 { font-size: 15px; margin-bottom: 4px; }
.comment-form .tip { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.inp {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; outline: 0;
  background: var(--surface); font-size: 13.5px; line-height: 1.8; transition: .16s var(--ease);
}
.inp:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea.inp { min-height: 108px; resize: vertical; }
.inp::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.checkbox input { width: 16px; height: 16px; margin-top: 5px; accent-color: var(--red); flex: none; }
.err { font-size: 12px; color: var(--red); margin-top: 6px; }

/* ---------- ۱۹) فوتر ---------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  margin-top: 50px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] .site-footer {
  background: rgba(18, 15, 14, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.45);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 44px 0 32px;
}
.footer-brand img { height: 42px; margin-bottom: 14px; }
:root[data-theme="dark"] .footer-brand img { filter: brightness(0) invert(1) opacity(.92); }
.footer-brand p {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 44ch;
  text-align: justify;
  line-height: 2;
  font-weight: 500;
}
:root[data-theme="dark"] .footer-brand p {
  color: rgba(255, 255, 255, 0.9);
}
.footer-brand .checkbox {
  color: var(--ink-2);
  font-weight: 500;
}
:root[data-theme="dark"] .footer-brand .checkbox {
  color: rgba(255, 255, 255, 0.8);
}
.footer-top h4 {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-top h4::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--red);
  display: inline-block;
}
:root[data-theme="dark"] .footer-top h4 {
  color: #ffffff;
}
.footer-top ul { display: grid; gap: 4px; }
.footer-top ul a {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 4px 0;
  transition: .15s var(--ease);
}
:root[data-theme="dark"] .footer-top ul a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-top ul a:hover {
  color: var(--red);
  padding-inline-start: 5px;
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  flex-wrap: wrap;
  align-items: center;
}
:root[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}
.footer-bottom .muted {
  color: var(--ink-2);
}
:root[data-theme="dark"] .footer-bottom .muted {
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: .16s var(--ease);
}
:root[data-theme="dark"] .footer-bottom .socials a {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.footer-bottom .socials a:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.admin-discreet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0 14px;
  height: 32px;
  min-height: 32px;
  line-height: 1;
  box-sizing: border-box;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  transition: all .2s;
  vertical-align: middle;
}
.admin-discreet-link svg {
  display: block;
  flex-shrink: 0;
  margin: 0;
}
.admin-discreet-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
}
:root[data-theme="dark"] .admin-discreet-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}
.admin-discreet-link:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}

/* ---------- ۲۰) توست و ابزارک‌ها ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); z-index: 130;
  background: var(--ink); color: var(--bg); font-size: 13px; padding: 11px 22px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .28s var(--ease); box-shadow: var(--shadow-2);
  max-width: 92vw; text-align: center; line-height: 1.8;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 75; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; box-shadow: var(--shadow-1); opacity: 0; visibility: hidden;
  transition: .22s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--red); border-color: var(--red); }

/* ---------- ۲۱) واکنش‌گرایی ---------- */
@media (max-width: 1120px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-2 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .sidebar { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .reporters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-block { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 14px; --h-header: 56px; }
  body { font-size: 15px; }
  .section { padding: 22px 0; }

  /* تنظیم هدر و جلوگیری از خروج دکمه دارک مود از صفحه در موبایل */
  .header-in { gap: 8px; justify-content: space-between; width: 100%; }
  .brand { gap: 8px; flex-shrink: 0; max-width: calc(100% - 130px); }
  .brand img { height: 32px; }
  .brand-txt span { display: none !important; }
  .brand-txt b { font-size: 15px; }
  .header-actions { margin-inline-start: auto; gap: 5px; flex-shrink: 0; display: flex; align-items: center; }
  .header-actions .btn-newsletter { display: none !important; }
  .icon-btn { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
  .icon-btn svg { width: 17px; height: 17px; }

  /* چیدمان فشرده و ارگونومیک کارت‌های خبر روی موبایل (عکس مربعی در راست، متن در چپ) */
  .grid-cards, .grid-cards--3, .grid-cards--2, .cards-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .grid-cards .card,
  .cards-compact .compact-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-1);
    min-height: 92px;
    transition: background-color .15s var(--ease);
  }
  .grid-cards .card:active,
  .cards-compact .compact-card:active {
    background: var(--surface-2);
  }
  .grid-cards .card .frame,
  .cards-compact .compact-card .frame {
    width: 86px;
    height: 86px;
    min-width: 86px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
    align-self: center;
    overflow: hidden;
  }
  .grid-cards .card .frame img,
  .cards-compact .compact-card .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .grid-cards .card .card-body,
  .cards-compact .compact-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    padding: 2px 0;
  }
  .grid-cards .card .card-body .meta,
  .cards-compact .compact-card .card-body .meta {
    font-size: 11px;
    gap: 6px;
    margin-bottom: 2px;
  }
  .grid-cards .card h3,
  .cards-compact .compact-card h3 {
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 700;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .grid-cards .card .excerpt,
  .cards-compact .compact-card .excerpt {
    display: none !important;
  }
  .grid-cards .card .card-body .meta:last-child,
  .cards-compact .compact-card .card-body .meta:last-child {
    margin-top: auto;
    padding-top: 4px;
    font-size: 11px;
    color: var(--muted);
  }

  .card--lead { grid-column: auto; }
  .card--lead h3 { font-size: 17px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .row .frame { aspect-ratio: 16 / 9; }
  .reporters, .links-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .promo { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .article-body { font-size: 16px; line-height: 2.15; }
  .article-head h1 { line-height: 1.65; }
  .form-grid, .pick-next { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; padding: 30px 0 22px; }
  .most-read { margin-top: 16px; }
  .to-top { bottom: 16px; inset-inline-start: 16px; }

  /* لایه جستجو در موبایل */
  .search-layer {
    padding: 16px 12px;
    align-items: flex-start;
  }
  .search-card {
    padding: 16px 14px;
    border-radius: 16px;
    gap: 12px;
  }
  .search-bar {
    padding: 4px 10px;
  }
  .search-bar input {
    font-size: 14px;
  }
}

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

/* ---------- ۲۲) چاپ ---------- */
@media print {
  .site-header, .site-footer, .drawer, .scrim, .search-layer, .share, .comment-form, .to-top,
  .pick-next, .progress-bar, .section--promoted, .sidebar { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-body { max-width: none; font-size: 12pt; line-height: 1.7; }
  .article-head h1 { font-size: 20pt; }
  a::after { content: ""; }
  .frame img { filter: grayscale(20%); }
}

/* ---------- ۲۳) برگه خبرنامه و اجزای افزوده ---------- */
.panel-lite { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 24px; }
.panel-lite h2 { font-size: 19px; }
.ok-box {
  display: flex; gap: 13px; align-items: flex-start; background: var(--green-soft); color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 26%, transparent); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 20px;
}
.ok-box b { display: block; font-size: 14px; margin-bottom: 2px; color: var(--ink); }
.ok-box p { font-size: 12.8px; color: var(--ink-2); }
.news-form-full .inp { background: var(--bg-2); }
.chips-check { display: flex; flex-wrap: wrap; gap: 7px; }
.chk {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 6px 13px; cursor: pointer;
  transition: .15s var(--ease);
}
.chk:hover { border-color: var(--red); color: var(--red); }
.chk input { accent-color: var(--red); width: 15px; height: 15px; }
.chk:has(input:checked) { background: var(--red-soft); border-color: var(--red); color: var(--red); font-weight: 700; }
.tick-list { display: grid; gap: 9px; font-size: 12.8px; color: var(--ink-2); }
.tick-list li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.9; }
.tick-list li svg { color: var(--red); margin-top: 4px; flex: none; }
.widget details { border-top: 1px dashed var(--line); padding: 9px 0; }
.widget details:first-of-type { border-top: 0; padding-top: 0; }
.widget summary { cursor: pointer; font-size: 12.8px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.widget summary::-webkit-details-marker { display: none; }
.widget summary::before { content: "+"; color: var(--red); font-weight: 800; }
.widget details[open] summary::before { content: "–"; }
.widget details p { font-size: 12.3px; color: var(--muted); margin-top: 6px; line-height: 1.95; text-align: justify; }
.comment-list { display: grid; }
.widget-list > li { align-items: flex-start; }
.crumbs a, .row .meta a, .card .meta a, .byline a:hover, .source-note a:hover { text-decoration: none; }
.byline a:hover b { color: var(--red); }
.section--edge .sec-head .sub, .sec-head .sub a:hover { color: var(--red); }

/* ==========================================================================
   دیزاین‌سیستم شیشه‌ای و معماری اصیل روضه نیوز (مطابق تصویر ارسالی در تمام صفحات)
   ========================================================================== */

:root {
  --glass-bg: rgba(255, 255, 255, 0.44);
  --glass-bg-hover: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(255, 255, 255, 0.68);
  --glass-border-hover: rgba(255, 255, 255, 0.92);
  --glass-shadow: 0 8px 24px -4px rgba(40, 30, 20, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 0.90);
  --glass-shadow-hover: 0 14px 34px -5px rgba(40, 30, 20, 0.13), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  --glass-blur: blur(10px) saturate(135%);
  --card-title: #18181b;
  --card-meta: #47474f;
}

:root[data-theme="dark"] {
  --glass-bg: rgba(22, 17, 15, 0.42);
  --glass-bg-hover: rgba(34, 27, 24, 0.58);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-hover: rgba(255, 255, 255, 0.26);
  --glass-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.16);
  --glass-shadow-hover: 0 18px 42px -6px rgba(0, 0, 0, 0.65), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  --glass-blur: blur(10px) saturate(135%);
  --card-title: #ffffff;
  --card-meta: rgba(255, 255, 255, 0.72);
}

/* کارت‌های خبری */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 13px 13px 16px;
  box-shadow: var(--glass-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  background: var(--glass-bg-hover);
}
.card .frame {
  margin-bottom: 12px;
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.card h3 {
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 6px;
}
.card h3 a {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s var(--ease);
}
.card h3 a:hover {
  color: var(--red);
}
.card .meta {
  color: var(--card-meta);
  font-size: 11.5px;
  margin-bottom: 7px;
  gap: 8px;
}
.card .meta a {
  color: var(--red) !important;
  font-weight: 700;
}
:root[data-theme="dark"] .card .meta a {
  color: #ef4444 !important;
}

/* سرستون بخش‌ها (طراحی گلس‌مورفیسم کامل کپسولی با حاشیه ظریف شیشه‌ای) */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 12px 22px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  box-shadow: var(--glass-shadow);
  flex-wrap: wrap;
  transition: all .25s var(--ease);
}
.sec-head:hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}
.sec-head h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--card-title);
}
.sec-head h2::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--red);
  display: inline-block;
}
.sec-head .sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--card-meta);
  margin-inline-start: 6px;
}
.sec-head .all {
  font-size: 12.5px;
  font-weight: 700;
  color: #ff6b6b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(181, 29, 34, 0.22);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 9999px;
  padding: 6px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .2s var(--ease);
}
.sec-head .all:hover {
  background: rgba(181, 29, 34, 0.42);
  color: #ffffff;
  border-color: rgba(255, 107, 107, 0.6);
  transform: translateX(-2px);
}
:root[data-theme="light"] .sec-head .all {
  color: var(--red);
  background: rgba(181, 29, 34, 0.08);
  border-color: rgba(181, 29, 34, 0.22);
}
:root[data-theme="light"] .sec-head .all:hover {
  background: var(--red);
  color: #ffffff;
}

/* ردیف‌های خبری به شکل کارت‌های کانتینری تفکیک‌شده */
.rows {
  border-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 16px 20px;
  box-shadow: var(--glass-shadow);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.row:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

/* کارت‌های کامپکت و افقی */
.compact-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.compact-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

/* باکس‌های کنار خبر اصلی (Hero Side) */
.hero-side {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all .25s var(--ease);
}
.hero-side:hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}
.hero-side .hd {
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--card-title);
}
:root[data-theme="dark"] .hero-side .hd {
  background: rgba(255, 255, 255, 0.06);
}
.side-item {
  border-bottom: 1px solid var(--glass-border);
  transition: background .2s var(--ease);
}
.side-item:hover {
  background: rgba(255, 255, 255, 0.22);
}
:root[data-theme="dark"] .side-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.side-item h3 {
  color: var(--card-title);
}
.side-item .meta {
  color: var(--card-meta);
}

/* ستون دو باکس کناری خبر اصلی (هم‌اندازه و هم‌طول دقیق با باکس خبر اصلی) */
.hero-side-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
  min-width: 0;
}
.hero-side {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  margin: 0;
  transition: all .25s var(--ease);
}
.hero-side:hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}
.hero-side .side-item {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--glass-border);
  align-items: center;
}
.hero-side .side-item:last-child {
  border-bottom: 0;
}
.hero-side .side-item .frame {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 8px;
}
.hero-side .side-item h3 {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* باکس جدیدترین اخبار زیر باکس در کنار خبر اصلی (۷ خبر، فقط تیتر، بدون عکس و بدون لید) */
.hero-latest-box {
  flex: 1.45 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all .25s var(--ease);
}
.hero-latest-box:hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}
.hero-latest-box .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--card-title);
}
:root[data-theme="dark"] .hero-latest-box .hd {
  background: rgba(255, 255, 255, 0.06);
}
.hero-latest-box .hd-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-latest-box .hd-title svg {
  color: var(--red);
}
.hero-latest-box .hd-more {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .18s;
}
.hero-latest-box .hd-more:hover {
  gap: 7px;
}
.hero-latest-list {
  padding: 6px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
}
.hero-latest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-bottom: 1px dashed var(--glass-border);
  transition: transform .18s var(--ease), background .18s var(--ease);
  border-radius: 8px;
}
.hero-latest-item:last-child {
  border-bottom: 0;
}
.hero-latest-item:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.22);
}
:root[data-theme="dark"] .hero-latest-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.hero-latest-item .bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 0;
  box-shadow: 0 0 6px var(--red);
}
.hero-latest-title {
  font-size: 12.8px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--card-title);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
  flex: 1;
}
.hero-latest-title:hover {
  color: var(--red);
}

/* پرخواننده‌ترین‌ها */
.most-read {
  margin-top: 18px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all .25s var(--ease);
}
.most-read:hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}
.most-read .hd {
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.16);
  color: var(--card-title);
}
:root[data-theme="dark"] .most-read .hd {
  background: rgba(255, 255, 255, 0.06);
}
.most-read li {
  border-bottom: 1px dashed var(--glass-border);
}
.most-read a {
  color: var(--card-title);
}
.most-read a:hover {
  color: var(--red);
}
.most-read .meta {
  color: var(--card-meta);
}

/* باکس‌های سرصفحه، فیلترها و کانتینرهای تکمیلی */
.page-head {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 24px 28px;
  margin-bottom: 26px;
  box-shadow: var(--glass-shadow);
}

/* باکس بدنه خبر در صفحه تکی خبر */
.article-main-col {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px 34px;
  box-shadow: var(--glass-shadow);
}

.article-head {
  text-align: right;
  max-width: 100%;
  margin-inline: 0;
}
.article-head h1 {
  color: var(--card-title);
  font-size: var(--article-title-size, clamp(18px, 1.8vw, 22.5px));
  line-height: 1.5;
  margin: 10px 0 14px;
  font-weight: 800;
  letter-spacing: -.3px;
  word-break: normal;
  overflow-wrap: break-word;
  text-align: right;
  width: 100%;
}
:root[data-theme="dark"] .article-head h1 {
  color: #ffffff;
}
.article-head .lead {
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-2);
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: right;
  border-inline-start: 0;
}
:root[data-theme="dark"] .article-head .lead {
  color: var(--muted);
}
.article-head .kicker {
  justify-content: flex-start;
}
.article-head .meta {
  justify-content: flex-start;
}
.byline {
  justify-content: flex-start;
}
.article-rule {
  margin: 18px 0 24px;
}
.article-body {
  max-width: 100%;
  margin: 22px 0 0;
  color: var(--ink);
}
.article-foot {
  max-width: 100%;
}
.comments {
  max-width: 100%;
}

/* باکس دیدگاه‌ها */
.comment-form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 24px;
}
.comment-form h3 {
  color: var(--card-title);
}

/* باکس پیام‌های خالی */
.empty {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
}

/* پنجره جستجوی شیشه‌ای */
.search-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-hover);
}

/* فوتر سایت متناسب با معماری شیشه‌ای */
.site-footer {
  margin: 50px auto 30px;
  max-width: var(--container);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 32px 36px 20px;
}
:root[data-theme="dark"] .site-footer {
  background: rgba(18, 15, 14, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ---------- ساید‌منوی کشویی گوشه‌ای فیکس‌شده ---------- */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 100;
  width: min(340px, 86vw);
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
html[dir="rtl"] .drawer {
  right: 0;
  left: auto;
  border-left: 1px solid var(--glass-border);
  transform: translateX(105%);
}
html[dir="ltr"] .drawer {
  left: 0;
  right: auto;
  border-right: 1px solid var(--glass-border);
  transform: translateX(-105%);
}
.drawer.open {
  transform: translateX(0) !important;
}

/* ---------- اسلایدر خبر منتخب سردبیر (ابعاد ثابت و پایدار هنگام تعویض اسلاید) ---------- */
.hero-slider-wrap {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.hero-slides-container {
  position: relative;
  flex: 1;
  min-height: 540px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .35s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 2;
}
.hero-slide.hero-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero-slide .frame {
  aspect-ratio: 16 / 9;
  height: 290px;
  max-height: 290px;
  width: 100%;
  flex-shrink: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: 12px;
}
.hero-slide .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide .over {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  min-height: 0;
  margin-top: 4px;
}
.hero-slide .kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-slide h1 {
  font-size: clamp(18px, 2.05vw, 24px);
  line-height: 1.45;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
  margin: 6px 0 8px;
  color: var(--card-title);
}
.hero-slide .lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.6em;
  margin-bottom: 8px;
  text-align: justify;
}
:root[data-theme="dark"] .hero-slide .lead {
  color: rgba(255, 255, 255, 0.94);
}
.hero-slide .stamp {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--card-meta);
  flex-wrap: wrap;
}
.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid var(--glass-border);
}
.hero-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--card-title);
  display: grid;
  place-items: center;
  transition: .15s;
}
.hero-nav-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: var(--line-2);
  padding: 0;
  cursor: pointer;
  transition: all .2s;
}
.hero-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--red);
}

/* ---------- استایل سایدبار هوشمند با تیترهای متنی ---------- */
.widget {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--glass-shadow);
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.widget-head h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  color: var(--card-title);
}
.widget-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: var(--red);
}
.widget-icon.hot { background: var(--red-soft); color: var(--red); }
.widget-icon.trend { background: var(--amber-soft); color: var(--amber); }
.widget-icon.clock { background: rgba(255, 255, 255, 0.15); color: var(--card-title); }

.text-headlines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.headline-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--glass-border);
}
.headline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.headline-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 8px;
  flex: none;
}
.headline-rank {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  min-width: 20px;
  line-height: 1.6;
  text-align: center;
  flex: none;
}
.headline-content {
  min-width: 0;
  flex: 1;
}
.headline-title {
  font-size: 13.2px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--card-title);
  transition: color .15s;
}
.headline-title:hover {
  color: var(--red);
}
.headline-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.8px;
  color: var(--card-meta);
  margin-top: 3px;
}
.headline-meta .cat {
  color: var(--red);
  font-weight: 600;
}

/* بهینه‌سازی ریسپانسیو و گوشی‌های موبایل */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .hero-slides-container {
    height: 480px;
    min-height: 480px;
  }
  .hero-side-col {
    height: auto;
  }
  .hero-side, .hero-latest-box {
    flex: none;
    height: auto;
  }
  .layout-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .article-main-col {
    padding: 20px 18px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 8px 0 4px;
  }
  .header-in {
    padding: 0 12px;
    height: 54px;
  }
  .site-footer {
    margin: 30px 12px 20px;
    padding: 20px 16px;
    border-radius: 18px;
  }
  .page-head {
    padding: 16px;
  }
  .article-main-col {
    padding: 16px 14px;
    border-radius: var(--radius);
  }
  .card {
    padding: 12px;
    border-radius: var(--radius);
  }
  .row {
    padding: 14px;
    border-radius: var(--radius);
  }
  .widget {
    padding: 14px 16px;
    border-radius: var(--radius);
  }
  .sec-head {
    border-radius: 18px;
    padding: 10px 14px;
    gap: 10px;
  }
  .hero-side, .hero-latest-box, .most-read {
    border-radius: var(--radius);
  }
  .headline-title {
    font-size: 13px;
  }
}
