/*
Theme Name: Cinemagik
Theme URI: https://cinemagik.ir/
Author: Vaxi
Author URI: https://vaxi.ir/
Description: قالب اختصاصی، سبک و سئو شده برای سایت خبری سینماجیک — آخرین اخبار هالیوود. طراحی مدرن، ریسپانسیو، راست‌چین، با حالت شب و بدون وابستگی به هیچ افزونه یا صفحه‌سازی.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cinemagik
Tags: news, magazine, rtl-language-support, custom-colors, translation-ready, seo-friendly
*/

/* ============================================================
   1. فونت‌ها
   ابتدا از پوشه assets/fonts خوانده می‌شود (اگر فایل‌ها را قرار دهید)،
   در غیر این صورت از CDN جی‌اس‌دلیور بارگذاری می‌شود.
   ============================================================ */

/* Estedad — متن و رابط کاربری */
@font-face {
  font-family: 'Cinemagik Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Estedad-Regular.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/aminabedi68/Estedad@v10.0.0/dist/Estedad-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinemagik Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Estedad-Medium.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/aminabedi68/Estedad@v10.0.0/dist/Estedad-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinemagik Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Estedad-Bold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/aminabedi68/Estedad@v10.0.0/dist/Estedad-Bold.woff2') format('woff2');
}

/* Morabba — تیترها */
@font-face {
  font-family: 'Cinemagik Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Morabba-Bold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/morabba-font@v1.0.0/dist/Morabba-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinemagik Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/Morabba-ExtraBold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/rastikerdar/morabba-font@v1.0.0/dist/Morabba-ExtraBold.woff2') format('woff2');
}

/* ============================================================
   2. توکن‌های طراحی
   ============================================================ */
:root {
  --paper: #ffffff;
  --soft: #f2f6f7;
  --ink: #0c1a22;
  --ink-2: #4d6874;
  --line: #e2e9ec;
  --flare: #ff5a36;   /* نارنجی — رنگ اصلی */
  --grade: #0e7c86;   /* فیروزه‌ای — رنگ مکمل */
  --gold: #ffc247;
  --on-flare: #ffffff;

  --font-sans: 'Cinemagik Sans', 'Vazirmatn', 'IRANSans', Tahoma, system-ui, sans-serif;
  --font-display: 'Cinemagik Display', 'Cinemagik Sans', 'Vazirmatn', Tahoma, sans-serif;

  --maxw: 1180px;
  --gap: 28px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --header-h: 68px;
  --t: .18s ease;
}

html[data-theme="dark"] {
  --paper: #0b141a;
  --soft: #111f27;
  --ink: #eaf2f5;
  --ink-2: #8fa8b3;
  --line: #1d3039;
  --flare: #ff6b4a;
  --grade: #37c2ce;
  --on-flare: #10202a;
}

/* ============================================================
   3. پایه
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

/* آیکون‌های خطی قالب — اندازه و رنگ پیش‌فرض */
svg[viewBox="0 0 24 24"] {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 .6em;
  letter-spacing: 0;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.35; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--flare); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -60px;
  transform: translateX(50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 200;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* ============================================================
   4. هدر
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #cfe0e6;
  font-size: .8rem;
}
html[data-theme="dark"] .topbar { background: #071015; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar__date { display: flex; align-items: center; gap: 8px; opacity: .85; white-space: nowrap; }
.topbar__date svg { width: 16px; height: 16px; }
.topbar__links ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
.topbar__links a { opacity: .85; transition: opacity var(--t); }
.topbar__links a:hover { opacity: 1; color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__logo img { max-height: 46px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}
.brand__name span { color: var(--flare); }
.brand__tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1;
}

/* منوی اصلی */
.nav { margin-inline-end: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a {
  display: block;
  padding: 9px 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--flare); background: var(--soft); }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--flare); }

.nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  display: block;
  box-shadow: 0 14px 34px rgba(12,26,34,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { padding: 8px 10px; font-size: .9rem; }

.header__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.icon-btn:hover { background: var(--soft); border-color: var(--line); color: var(--flare); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }

/* جستجوی کشویی */
.search-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
  border-top: 0 solid var(--line);
  background: var(--soft);
}
.search-panel.is-open { grid-template-rows: 1fr; border-top-width: 1px; }
.search-panel > div { overflow: hidden; }
.search-panel form { display: flex; gap: 10px; padding: 18px 0; }
.search-panel input[type="search"] {
  flex: 1;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.search-panel button { flex-shrink: 0; }

/* منوی موبایل */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 500; }
.mobile-nav .sub-menu { padding-inline-start: 16px; }
.mobile-nav .sub-menu a { font-weight: 400; color: var(--ink-2); font-size: .92rem; }

/* ============================================================
   5. دکمه‌ها و ریزکامپوننت‌ها
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--flare);
  color: var(--on-flare);
  font-weight: 500;
  font-size: .95rem;
  cursor: pointer;
  transition: filter var(--t), transform var(--t);
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--flare); color: var(--flare); }

.chip {
  display: inline-block;
  padding: 4px 11px;
  background: var(--flare);
  color: var(--on-flare);
  font-size: .75rem;
  font-weight: 500;
  border-radius: 100px;
  transition: filter var(--t);
}
.chip:hover { filter: brightness(1.1); }
.chip--soft {
  background: var(--soft);
  background: color-mix(in srgb, var(--grade) 12%, transparent);
  color: var(--grade);
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .8rem;
  color: var(--ink-2);
}
.meta > span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* عنوان بخش‌ها */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
}
.section-head h2 {
  margin: 0 0 -2px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--flare);
  font-size: 1.32rem;
}
.section-head .more {
  font-size: .85rem;
  color: var(--ink-2);
  padding-bottom: 13px;
  transition: color var(--t);
}
.section-head .more:hover { color: var(--flare); }

/* ============================================================
   6. قاب تصویر سینمایی
   ============================================================ */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--soft);
  aspect-ratio: 16 / 9;
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.frame--wide { aspect-ratio: 2.39 / 1; border-radius: var(--r-lg); }
.frame--square { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
a.frame:hover img, .card:hover .frame img { transform: scale(1.04); }
.frame__empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-2); opacity: .35;
}
.frame__empty svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ============================================================
   7. هیرو
   ============================================================ */
.hero { padding: 34px 0 10px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.hero__lead { position: relative; }
.hero__lead .frame { position: relative; }
.hero__lead .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,16,21,.92) 0%, rgba(6,16,21,.45) 42%, rgba(6,16,21,0) 72%);
}
.hero__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px;
  color: #fff;
  z-index: 2;
}
.hero__caption h2 {
  color: #fff;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem);
  margin: 12px 0 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero__caption .meta { color: rgba(255,255,255,.78); }
.hero__caption .meta svg { opacity: .8; }

.hero__side { display: flex; flex-direction: column; gap: 4px; }
.hero__side .post-row:first-child { padding-top: 0; }

/* ردیف خبر (لیستی) */
.post-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.post-row:last-child { border-bottom: 0; }
.post-row h3 {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 7px;
  transition: color var(--t);
}
.post-row:hover h3 { color: var(--flare); }
.post-row .frame { aspect-ratio: 4 / 3; }

/* ============================================================
   8. کارت خبر
   ============================================================ */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card { display: flex; flex-direction: column; }
.card__media { position: relative; margin-bottom: 14px; }
.card__media .chip { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.card h3 {
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 9px;
  transition: color var(--t);
}
.card:hover h3 { color: var(--flare); }
.card p {
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.85;
  margin: 0 0 12px;
}
.card .meta { margin-top: auto; }

/* لیست شماره‌دار پربازدید — ترتیب واقعی دارد */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list .num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--flare);
  opacity: .65;
}
.rank-list a { font-size: .94rem; line-height: 1.75; font-weight: 500; transition: color var(--t); }
.rank-list a:hover { color: var(--flare); }
.rank-list .meta { margin-top: 4px; font-size: .74rem; }

/* ============================================================
   9. چیدمان اصلی
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-block: 40px 60px;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
.sidebar { position: sticky; top: calc(var(--header-h) + 22px); }

.block { padding-block: 38px; }
.block--soft { background: var(--soft); }

/* ابزارک‌ها */
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 22px;
}
.widget:last-child { margin-bottom: 0; }
.widget__title {
  font-size: 1rem;
  margin: 0 0 14px;
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--flare);
  line-height: 1.5;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget > ul > li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}
.widget > ul > li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--flare); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  font-size: .8rem !important;
  padding: 5px 12px;
  background: var(--soft);
  border-radius: 100px;
  transition: background var(--t), color var(--t);
}
.tagcloud a:hover { background: var(--flare); color: #fff; }

/* فرم جستجو */
.searchform { display: flex; gap: 8px; }
.searchform input[type="search"] {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.searchform input[type="search"]:focus { border-color: var(--flare); outline: none; }
.searchform button { padding-inline: 16px; }

/* ============================================================
   10. نوشته تکی
   ============================================================ */
.reading-bar {
  position: fixed;
  top: 0; inset-inline-start: 0;
  height: 3px; width: 0;
  background: var(--flare);
  z-index: 90;
}
.entry-header { padding: 34px 0 6px; }
.entry-header h1 { margin: 14px 0 16px; }
.entry-header .meta { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.entry-lead {
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 1.95;
  margin: 18px 0 0;
  max-width: 68ch;
}
.entry-thumb { margin: 24px 0 30px; }
.entry-thumb figcaption { font-size: .8rem; color: var(--ink-2); padding-top: 8px; }

.entry-content { font-size: 1.05rem; max-width: 72ch; }
.entry-content h2 { margin: 1.7em 0 .6em; font-size: 1.4rem; }
.entry-content h3 { margin: 1.5em 0 .5em; font-size: 1.18rem; }
.entry-content a { color: var(--grade); border-bottom: 1px solid color-mix(in srgb, var(--grade) 40%, transparent); }
.entry-content a:hover { color: var(--flare); border-color: var(--flare); }
.entry-content img, .entry-content figure { border-radius: var(--r-md); margin-block: 1.6em; }
.entry-content figcaption { font-size: .82rem; color: var(--ink-2); text-align: center; padding-top: 8px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.3em; margin-block: 1.2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 4px 20px;
  border-inline-start: 3px solid var(--flare);
  color: var(--ink-2);
  font-size: 1.05rem;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-block: 1.5em; font-size: .92rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; }
.entry-content th { background: var(--soft); font-weight: 500; }
.entry-content code {
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .88em;
  direction: ltr;
  display: inline-block;
}
.entry-content pre { background: var(--soft); padding: 16px; border-radius: var(--r-md); overflow-x: auto; direction: ltr; text-align: left; }
.entry-content .wp-caption, .entry-content .alignwide { max-width: 100%; }

.entry-footer { margin: 34px 0 0; max-width: 72ch; }
.tags-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.tags-line .label { font-size: .85rem; color: var(--ink-2); margin-inline-end: 4px; }
.tags-line a {
  font-size: .8rem; padding: 5px 12px;
  background: var(--soft); border-radius: 100px;
  transition: background var(--t), color var(--t);
}
.tags-line a:hover { background: var(--flare); color: #fff; }

.share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 18px;
  background: var(--soft);
  border-radius: var(--r-md);
}
.share .label { font-size: .88rem; font-weight: 500; margin-inline-end: 4px; }
.share a, .share button {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.share a:hover, .share button:hover { background: var(--flare); color: #fff; border-color: var(--flare); }
.share svg { width: 18px; height: 18px; }

.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 30px; padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box h4 { margin: 0 0 6px; font-size: 1rem; }
.author-box p { margin: 0; font-size: .9rem; color: var(--ink-2); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}
.post-nav a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t);
}
.post-nav a:hover { border-color: var(--flare); }
.post-nav .dir { display: block; font-size: .78rem; color: var(--ink-2); margin-bottom: 6px; }
.post-nav strong { font-weight: 500; font-size: .95rem; line-height: 1.7; }
.post-nav .next { text-align: left; }

.related { margin-top: 46px; }

/* بردکرامب */
.breadcrumb {
  padding-block: 14px 0;
  font-size: .82rem;
  color: var(--ink-2);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "‹"; opacity: .5; }
.breadcrumb a:hover { color: var(--flare); }

/* دیدگاه‌ها */
.comments { margin-top: 46px; max-width: 72ch; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 26px; margin-top: 14px; }
.comment-body {
  padding: 18px;
  background: var(--soft);
  border-radius: var(--r-md);
  margin-bottom: 14px;
}
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .85rem; }
.comment-meta img { border-radius: 50%; }
.comment-author { font-weight: 500; }
.comment-metadata { color: var(--ink-2); font-size: .78rem; }
.comment-content { font-size: .95rem; }
.comment-content p:last-child { margin-bottom: 0; }
.reply a { font-size: .82rem; color: var(--flare); }

.comment-respond { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); }
.comment-respond .comment-reply-title { margin-top: 0; font-size: 1.1rem; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: .87rem; margin-bottom: 6px; color: var(--ink-2); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--flare); outline: none; }
.comment-form .form-submit { margin-bottom: 0; }
.comment-form input[type="submit"] {
  background: var(--flare); color: var(--on-flare);
  border: 0; padding: 12px 26px; border-radius: var(--r-sm); cursor: pointer;
}

/* ============================================================
   11. آرشیو، صفحه‌بندی، ۴۰۴
   ============================================================ */
.page-head {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.page-head h1 { margin: 6px 0 8px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 70ch; font-size: .95rem; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .92rem;
  transition: all var(--t);
}
.pagination .page-numbers:hover { border-color: var(--flare); color: var(--flare); }
.pagination .current { background: var(--flare); border-color: var(--flare); color: var(--on-flare); }

.notice {
  padding-block: 40px 70px;
  text-align: center;
}
.notice .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--flare);
  margin-bottom: 10px;
}
.notice p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }
.notice .searchform { max-width: 430px; margin: 24px auto 0; }

/* ============================================================
   12. فوتر
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #b9cdd5;
  margin-top: 10px;
}
html[data-theme="dark"] .site-footer { background: #071015; }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0 34px;
}
.site-footer .brand__name { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.site-footer p { font-size: .9rem; line-height: 1.95; opacity: .8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 6px 0; font-size: .9rem; opacity: .85; }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  transition: background var(--t), color var(--t);
}
.social a:hover { background: var(--flare); color: #fff; }
.social svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .82rem;
  opacity: .75;
}

.to-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--flare);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t);
  z-index: 70;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============================================================
   13. ریسپانسیو
   ============================================================ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
}

@media (max-width: 900px) {
  :root { --gap: 22px; }
  .nav, .topbar__links { display: none; }
  .nav-toggle { display: grid; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__lead .frame { aspect-ratio: 16 / 9; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .entry-content { font-size: 1rem; }
}

@media (max-width: 600px) {
  .header__inner { min-height: 60px; gap: 10px; }
  .brand__name { font-size: 1.25rem; }
  .hero { padding-top: 22px; }
  .hero__caption { padding: 16px; }
  .post-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .post-nav { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .comment-list .children { padding-inline-start: 12px; }
}

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

@media print {
  .site-header, .site-footer, .sidebar, .share, .related, .comments, .to-top, .breadcrumb { display: none !important; }
  body { color: #000; background: #fff; }
}
