/* ==========================================================================
   Chida (چی‌دا) – ظاهر مدرن (Material)
   تمام رنگ‌ها از --min-color و --second-color ساخته می‌شوند (پالت‌ها در inc/options.php)
   ========================================================================== */
:root {
	--cd-surface: #ffffff;
	--cd-surface-2: #f4f5f9;
	--cd-line: #e3e5ec;
	--cd-text: #1b1d24;
	--cd-muted: #646a78;
	--cd-tonal: color-mix(in srgb, var(--min-color) 10%, #ffffff);
	--cd-tonal-2: color-mix(in srgb, var(--min-color) 18%, #ffffff);
	--cd-on-tonal: color-mix(in srgb, var(--min-color) 85%, #000000);
	--cd-radius: 18px;
	--cd-e1: 0 1px 2px rgba(16, 24, 40, .10), 0 1px 3px 1px rgba(16, 24, 40, .06);
	--cd-e2: 0 2px 4px rgba(16, 24, 40, .10), 0 6px 14px 2px rgba(16, 24, 40, .08);
	--cd-ease: cubic-bezier(.2, 0, 0, 1);
}
html[data-theme="dark"] {
	--cd-surface: #1b1d24;
	--cd-surface-2: #23262f;
	--cd-line: #30343e;
	--cd-text: #e7e9ef;
	--cd-muted: #a5abb9;
	--cd-tonal: color-mix(in srgb, var(--min-color) 22%, #1b1d24);
	--cd-tonal-2: color-mix(in srgb, var(--min-color) 32%, #1b1d24);
	--cd-on-tonal: color-mix(in srgb, var(--min-color) 35%, #ffffff);
	--cd-e1: 0 1px 2px rgba(0, 0, 0, .5);
	--cd-e2: 0 4px 14px rgba(0, 0, 0, .55);
	color-scheme: dark;
}

/* ---------- کارت‌ها و ابزارک‌های سایدبار (ظاهر Material) ---------- */
.ui-modern .widget,
.ui-modern .post-current,
.ui-modern #comments,
.ui-modern .main-content > .blog-section,
.ui-modern .hero-slider { border-radius: var(--cd-radius); }
.ui-modern .widget { box-shadow: var(--cd-e1); padding: 16px; transition: box-shadow .3s var(--cd-ease); }
.ui-modern .widget:hover { box-shadow: var(--cd-e2); }
.ui-modern .hero-slider .slide-media,
.ui-modern .hero-slider .slide { border-radius: var(--cd-radius); overflow: hidden; }
.ui-modern .widget img { border-radius: 12px; }
.ui-modern .pb-pagination a, .ui-modern .pb-pagination span { border-radius: 12px; }
.ui-modern input[type="text"], .ui-modern input[type="email"], .ui-modern input[type="password"], .ui-modern textarea, .ui-modern select { border-radius: 12px; }
.ui-modern button, .ui-modern input[type="submit"], .ui-modern input[type="button"] { border-radius: 12px; }

/* ---------- استایل ابزارک‌ها ---------- */
.ui-widget-card .widget { border: 0; background: var(--cd-surface); box-shadow: var(--cd-e2); }
.ui-widget-card .widget:hover { box-shadow: 0 4px 8px rgba(16, 24, 40, .12), 0 12px 24px 2px rgba(16, 24, 40, .10); }
.ui-widget-outline .widget { background: transparent; box-shadow: none; border: 2px solid color-mix(in srgb, var(--min-color) 30%, transparent); }
.ui-widget-outline .widget:hover { border-color: var(--min-color); box-shadow: none; }
.ui-widget-tonal .widget { background: var(--cd-tonal); box-shadow: none; border: 0; }
.ui-widget-tonal .widget .header .widget-title { color: var(--cd-on-tonal); }

/* ---------- استایل باکس‌های صفحه اول ---------- */
.ui-box-card .ng-item, .ui-box-card .feature-grid-card, .ui-box-card .category-news-box,
.ui-box-card .qaleb-newsbox-main, .ui-box-card .qaleb-newsbox-featured,
.ui-box-card .imag-news-grid-items > *, .ui-box-card .box-unit [class*="-item"] {
	border-radius: var(--cd-radius); overflow: hidden; box-shadow: var(--cd-e2);
	transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease);
}
.ui-box-card .ng-item:hover, .ui-box-card .feature-grid-card:hover, .ui-box-card .imag-news-grid-items > *:hover { transform: translateY(-3px); }
.ui-box-flat .ng-item, .ui-box-flat .feature-grid-card, .ui-box-flat .category-news-box,
.ui-box-flat .qaleb-newsbox-main, .ui-box-flat .qaleb-newsbox-featured,
.ui-box-flat .imag-news-grid-items > * { box-shadow: none !important; border: 1px solid var(--cd-line); border-radius: 12px; overflow: hidden; }
.ui-modern .box-headline, .ui-modern .video-headline, .ui-modern .category-news-main-header, .ui-modern .imag-news-grid-header { margin-bottom: 14px; }

/* ---------- استایل اسلایدر ---------- */
.ui-slider-overlay .hero-slider .slide-content {
	padding: 40px 28px 26px;
	background: linear-gradient(to top, rgba(8, 10, 18, .92) 0%, rgba(8, 10, 18, .45) 55%, rgba(8, 10, 18, 0) 100%);
}
.ui-slider-overlay .hero-slider .slide-title { font-size: clamp(18px, 2.4vw, 26px); }
.ui-slider-overlay .slider-dots { background: rgba(0, 0, 0, .35); border-radius: 999px; padding: 6px 10px; bottom: 14px; left: 18px; backdrop-filter: blur(6px); }
.ui-slider-overlay .dot.active { width: 26px; }
.ui-slider-card .hero-slider { background: var(--cd-surface); box-shadow: var(--cd-e1); border-radius: var(--cd-radius); overflow: hidden; padding-bottom: 6px; }
.ui-slider-card .hero-slider .slide-content { position: static; background: transparent; color: var(--cd-text); padding: 14px 18px 24px; }
.ui-slider-card .hero-slider .slide-title a, .ui-slider-card .hero-slider .slide-title { color: var(--cd-text); text-shadow: none; }
.ui-slider-card .hero-slider .slide-subtitle { color: var(--min-color); }
.ui-slider-card .hero-slider .slider-wrapper { height: 400px; border-radius: 0; background: transparent; }
.ui-slider-card .hero-slider .slide { display: flex; flex-direction: column; border-radius: 0; }
.ui-slider-card .hero-slider .slide-media { flex: 1 1 auto; min-height: 0; position: relative; border-radius: var(--cd-radius) var(--cd-radius) 0 0; }
.ui-slider-card .hero-slider .slide-media > a { display: block; height: 100%; }
.ui-slider-card .hero-slider .slide-content { flex: none; width: auto; }
.ui-slider-card .slider-dots { bottom: 8px; }
@media (max-width: 640px) { .ui-slider-card .hero-slider .slider-wrapper { height: 330px; } }

/* ---------- ردیف استوری ---------- */
.cd-stories { display: flex; gap: 16px; overflow-x: auto; padding: 14px 4px 10px; margin-top: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cd-stories::-webkit-scrollbar { display: none; }
.cd-story { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--cd-text); font: inherit; }
.cd-story-ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--min-color), var(--second-color), var(--min-color)); display: block; transition: transform .25s var(--cd-ease); }
.cd-story:hover .cd-story-ring { transform: scale(1.06); }
.cd-story.seen .cd-story-ring { background: var(--cd-line); }
.cd-story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--cd-surface); display: block; background: var(--cd-surface-2); }
.cd-story-title { font-size: 11px; line-height: 1.5; text-align: center; color: var(--cd-muted); display: block; max-height: 3em; overflow: hidden; }

.cd-sv { position: fixed; inset: 0; z-index: 100000; background: #000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s var(--cd-ease); }
.cd-sv.open { display: flex; opacity: 1; }
.cd-sv-stage { position: relative; width: min(100vw, 460px); height: 100vh; height: 100dvh; max-height: 860px; background: #111; overflow: hidden; border-radius: 0; }
@media (min-width: 560px) { .cd-sv-stage { border-radius: 24px; height: min(100dvh - 32px, 860px); } }
.cd-sv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-sv-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.92)); }
.cd-sv-bars { position: absolute; top: 12px; right: 12px; left: 12px; display: flex; gap: 4px; z-index: 3; direction: rtl; }
.cd-sv-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.cd-sv-bar i { display: block; height: 100%; width: 0; background: #fff; }
.cd-sv-bar.done i { width: 100%; }
.cd-sv-top { position: absolute; top: 24px; right: 14px; left: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; }
.cd-sv-chip { background: var(--min-color); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: 12px; }
.cd-sv-close { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .4); border: 0; color: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.cd-sv-body { position: absolute; right: 0; left: 0; bottom: 0; z-index: 3; padding: 24px 22px 30px; color: #fff; text-align: right; }
.cd-sv-sub { font-size: 13px; color: var(--second-color); margin: 0 0 6px; }
.cd-sv-title { font-size: 21px; line-height: 1.8; margin: 0 0 18px; font-family: inherit; font-weight: 700; color: #fff; }
.cd-sv-go { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111; border-radius: 999px; padding: 10px 22px; font-weight: 700; text-decoration: none; }
.cd-sv-go:hover { background: var(--second-color); color: #111; }
.cd-sv-hit { position: absolute; top: 70px; bottom: 150px; width: 34%; z-index: 2; background: none; border: 0; cursor: pointer; }
.cd-sv-hit.prev { right: 0; }
.cd-sv-hit.next { left: 0; }
.cd-sv-nav { position: absolute; top: 50%; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 18px; cursor: pointer; display: none; }
@media (min-width: 760px) { .cd-sv-nav { display: block; } }
.cd-sv-nav.prev { left: calc(50% + 246px); }
.cd-sv-nav.next { right: calc(50% + 246px); }

/* ---------- مگامنو آخرین مطالب ---------- */
.main-menu > li.menu-item-mega-posts { position: static !important; }
.main-menu > li.menu-item-mega-posts > ul.sub-menu { display: none !important; }
.mega-posts-panel {
	position: absolute; top: 100%; right: 0; left: 0; width: 100%; box-sizing: border-box; padding: 20px 22px 22px;
	background: var(--cd-surface); border-radius: 0 0 20px 20px; box-shadow: var(--cd-e2); z-index: 999;
	opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s var(--cd-ease), transform .25s var(--cd-ease), visibility .25s;
}
.main-menu > li.menu-item-mega-posts:hover > .mega-posts-panel,
.main-menu > li.menu-item-mega-posts:focus-within > .mega-posts-panel { opacity: 1; visibility: visible; transform: none; }
.mega-posts-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.mega-posts-head .mega-all { font-weight: 700; color: var(--min-color); }
.mega-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mega-chips a { background: var(--cd-tonal); color: var(--cd-on-tonal); border-radius: 10px; padding: 2px 12px; font-size: 12px; }
.mega-chips a:hover { background: var(--cd-tonal-2); }
.mega-posts-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mega-post { display: flex; flex-direction: column; gap: 6px; color: var(--cd-text); }
.mega-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--cd-surface-2); }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--cd-ease); }
.mega-post:hover .mega-thumb img { transform: scale(1.06); }
.mega-title { font-size: 13px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-date { font-size: 11px; color: var(--cd-muted); }
.main-menu > li.menu-item-mega-posts:hover > a { color: var(--second-color); }
@media (max-width: 1100px) { .mega-posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mega-post:nth-child(n+4) { display: none; } }

/* ---------- دکمه‌ی پوسته ---------- */
.cd-theme-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cd-tonal); color: var(--cd-on-tonal); cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.cd-theme-btn:hover { background: var(--cd-tonal-2); }
.cd-theme-btn .sun { display: none; }
html[data-theme="dark"] .cd-theme-btn .sun { display: inline; }
html[data-theme="dark"] .cd-theme-btn .moon { display: none; }

/* ---------- نوار مطالعه و زمان مطالعه ---------- */
.cd-progress { position: fixed; top: 0; right: 0; left: 0; height: 4px; z-index: 100001; background: transparent; pointer-events: none; }
.cd-progress span { display: block; height: 100%; width: 0; background: linear-gradient(to left, var(--min-color), var(--second-color)); border-radius: 0 4px 4px 0; }
.cd-readtime { display: inline-flex; align-items: center; gap: 4px; background: var(--cd-tonal); color: var(--cd-on-tonal); border-radius: 10px; padding: 0 10px; margin-inline-start: 10px; font-size: 12px; }

/* ---------- نوار پایین موبایل ---------- */
.cd-mbar { display: none; }
@media (max-width: 767px) {
	.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.cd-mbar {
		position: fixed; right: 0; left: 0; bottom: 0; z-index: 9990; display: flex; justify-content: space-around; align-items: stretch;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--cd-surface); box-shadow: 0 -2px 14px rgba(16, 24, 40, .12); border-radius: 22px 22px 0 0;
	}
	.cd-mbar a, .cd-mbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; background: none; border: 0; color: var(--cd-muted); font: inherit; font-size: 11px; cursor: pointer; border-radius: 16px; }
	.cd-mbar i { width: 56px; height: 30px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background .2s; }
	.cd-mbar .is-active, .cd-mbar a:active i, .cd-mbar button:active i { color: var(--cd-on-tonal); }
	.cd-mbar .is-active i, .cd-mbar a:active i, .cd-mbar button:active i { background: var(--cd-tonal-2); }
	#topcontrol { bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (prefers-reduced-motion: reduce) { .cd-sv, .cd-story-ring, .mega-posts-panel { transition: none; } }

/* ---------- عنوان بخش‌ها (جایگزین خط دو رنگ) ----------
   یک مربع گرد رنگی با نقطه + خط محو که تا انتهای ردیف می‌رود؛ رنگ‌ها از پالت */
.widget .header .widget-title, .blog-title, .box-heading, .category-news-main-title, .video-heading, .imag-news-grid-heading {
	position: relative; display: flex; align-items: center; gap: 10px; padding-right: 0; flex: 1 1 auto; line-height: 1.8;
}
.widget-title::before, .blog-title::before, .box-heading::before, .category-news-main-title::before, .video-heading::before, .imag-news-grid-heading::before {
	content: ''; position: static; flex: none; width: 30px; height: 30px; border-radius: 11px 11px 11px 4px; top: auto; right: auto;
	background: radial-gradient(circle at center, var(--min-color) 0 5px, transparent 5.5px), var(--cd-tonal-2);
	transition: transform .3s var(--cd-ease);
}
.widget-title::after, .blog-title::after, .box-heading::after, .category-news-main-title::after, .video-heading::after, .imag-news-grid-heading::after {
	content: ''; position: static; flex: 1 1 24px; min-width: 24px; height: 2px; border-radius: 2px; top: auto; right: auto;
	background: linear-gradient(to left, color-mix(in srgb, currentColor 22%, transparent), transparent);
}
.widget:hover .widget-title::before, .box-headline:hover .box-heading::before { transform: rotate(-8deg) scale(1.06); }
.video-heading::before, .imag-news-grid-heading::before { background: radial-gradient(circle at center, #fff 0 5px, transparent 5.5px), color-mix(in srgb, var(--min-color) 70%, #fff 0%); }
.category-news-heading-line { width: 26px; height: 26px; border-radius: 10px 10px 10px 4px; background: radial-gradient(circle at center, var(--min-color) 0 4.5px, transparent 5px), var(--cd-tonal-2); overflow: visible; }
.category-news-heading-line::after { display: none; }
.box-headline { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
.widget .header { margin-bottom: 12px; }

/* ---------- استوری بدون عنوان ---------- */
.cd-stories.no-titles { gap: 12px; }
.cd-stories.no-titles .cd-story { width: 70px; }

/* ---------- دکمه‌ی پوسته: فاصله از تاریخ و رفتار موبایل ---------- */
.cd-theme-btn { margin-inline-start: 14px; }
@media (max-width: 767px) {
	.cd-theme-btn { display: none; }
	body:not(.has-mbar) .cd-theme-btn { display: inline-flex; position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); margin: 0; z-index: 9990; box-shadow: var(--cd-e2); background: var(--cd-surface); }
}

.blog-title { width: 100%; }

/* ==========================================================================
   باکس‌های جدید صفحه اول (طرح ۷ تا ۱۲)
   ========================================================================== */
.box-heading-cat { position: relative; display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
.box-heading-cat::before { content: ''; flex: none; width: 30px; height: 30px; border-radius: 11px 11px 11px 4px; background: radial-gradient(circle at center, var(--min-color) 0 5px, transparent 5.5px), var(--cd-tonal-2); }
.box-heading-cat::after { content: ''; flex: 1 1 24px; min-width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(to left, color-mix(in srgb, currentColor 22%, transparent), transparent); }
.box-heading-cat .box-symbol-menu { order: 0; }

.cb-box { margin: 26px 0; }
.cb-box a { color: inherit; text-decoration: none; }
.cb-title { margin: 0; font-size: 15px; line-height: 1.9; font-weight: 700; color: var(--cd-text); }
.cb-sub { display: block; font-size: 12px; color: var(--min-color); line-height: 1.8; }
.cb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11.5px; color: var(--cd-muted); margin-top: 2px; }
.cb-cat { background: var(--cd-tonal); color: var(--cd-on-tonal); border-radius: 8px; padding: 0 9px; font-weight: 600; }
.cb-date i { margin-inline-end: 3px; }
.cb-img { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--cd-surface-2); }
.cb-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--cd-ease); }
a:hover > .cb-img img, a:hover .cb-img img { transform: scale(1.05); }
.cb-mark { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 14px; backdrop-filter: blur(4px); }
.cb-chip { align-self: flex-start; background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); border-radius: 9px; padding: 0 10px; font-size: 11.5px; font-weight: 600; }

/* ۷: شاخص + لیست شماره‌دار */
.cb-ranked-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; background: var(--cd-surface); border-radius: var(--cd-radius); padding: 16px; box-shadow: var(--cd-e1); }
.cb-l-ranked .cb-lead { display: flex; flex-direction: column; gap: 6px; }
.cb-l-ranked .cb-lead .cb-img { aspect-ratio: 16 / 10; }
.cb-l-ranked .cb-lead .cb-title { font-size: 18px; }
.cb-rank { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.cb-rank li + li { border-top: 1px solid var(--cd-line); }
.cb-rank a { display: flex; gap: 12px; align-items: center; padding: 11px 0; }
.cb-rank b { flex: none; width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; background: var(--cd-tonal); color: var(--cd-on-tonal); display: grid; place-items: center; font-size: 15px; font-weight: 800; transition: background .2s, color .2s; }
.cb-rank a:hover b { background: var(--min-color); color: #fff; }
.cb-rank li:first-child a { padding-top: 0; }
.cb-rank > li > a > span { display: flex; flex-direction: column; min-width: 0; }

/* ۸: ردیف افقی */
.cb-track-wrap { position: relative; }
.cb-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cb-track::-webkit-scrollbar { display: none; }
.cb-card { flex: 0 0 calc((100% - 42px) / 4); min-width: 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px; background: var(--cd-surface); border-radius: 18px; padding: 8px 8px 12px; box-shadow: var(--cd-e1); transition: box-shadow .3s var(--cd-ease), transform .3s var(--cd-ease); }
.cb-card:hover { box-shadow: var(--cd-e2); transform: translateY(-3px); }
.cb-card .cb-img { aspect-ratio: 3 / 2; }
.cb-card > .cb-title, .cb-card > .cb-meta, .cb-card > .cb-sub { padding-inline: 6px; }
.cb-nav { position: absolute; top: 38%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cd-surface); color: var(--cd-text); box-shadow: var(--cd-e2); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.cb-nav[disabled] { opacity: 0; pointer-events: none; }
.cb-prev { right: -12px; } .cb-next { left: -12px; }
@media (max-width: 767px) { .cb-nav { display: none; } .cb-card { flex-basis: 72%; } }

/* ۹: مجله دو ستونی */
.cb-mag-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.cb-l-mag .cb-lead { display: flex; flex-direction: column; gap: 6px; background: var(--cd-surface); border-radius: var(--cd-radius); padding: 10px 10px 16px; box-shadow: var(--cd-e1); }
.cb-l-mag .cb-lead .cb-img { aspect-ratio: 16 / 10; }
.cb-l-mag .cb-lead > .cb-title, .cb-l-mag .cb-lead > .cb-meta, .cb-l-mag .cb-lead > .cb-sub { padding-inline: 8px; }
.cb-l-mag .cb-lead .cb-title { font-size: 18px; }
.cb-side { display: flex; flex-direction: column; gap: 12px; }
.cb-row { display: flex; gap: 12px; align-items: center; background: var(--cd-surface); border-radius: 16px; padding: 8px; box-shadow: var(--cd-e1); flex: 1; transition: box-shadow .3s var(--cd-ease); }
.cb-row:hover { box-shadow: var(--cd-e2); }
.cb-row .cb-img { flex: none; width: 36%; aspect-ratio: 4 / 3; border-radius: 12px; }
.cb-row .cb-txt { min-width: 0; display: flex; flex-direction: column; }
.cb-row .cb-title { font-size: 14px; }

/* ۱۰: تایم‌لاین */
.cb-tl { margin: 0; padding: 14px 16px; list-style: none; background: var(--cd-surface); border-radius: var(--cd-radius); box-shadow: var(--cd-e1); }
.cb-tl li { display: grid; grid-template-columns: 52px 16px minmax(0, 1fr); gap: 10px; position: relative; padding: 4px 0 14px; }
.cb-tl li::before { content: ''; position: absolute; top: 20px; bottom: -4px; right: calc(52px + 10px + 7px); width: 2px; background: var(--cd-line); }
.cb-tl li:last-child::before { display: none; }
.cb-tl li:last-child { padding-bottom: 4px; }
.cb-time { font-size: 12px; font-weight: 700; color: var(--min-color); direction: ltr; text-align: left; padding-top: 6px; }
.cb-dot { width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: var(--min-color); outline: 4px solid var(--cd-tonal-2); position: relative; z-index: 1; }
.cb-tl-body { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; border-radius: 14px; padding: 4px 6px; transition: background .2s; }
.cb-tl-body:hover { background: var(--cd-tonal); }
.cb-tl-body .cb-txt { min-width: 0; display: flex; flex-direction: column; }
.cb-tl-body .cb-img { flex: none; width: 92px; height: 66px; border-radius: 12px; }

/* ۱۱: کارت‌های پوستری */
.cb-poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.cb-poster { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px; background: var(--cd-surface-2); box-shadow: var(--cd-e1); }
.cb-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cd-ease); }
.cb-poster:hover > img { transform: scale(1.06); }
.cb-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 18, .92), rgba(8, 10, 18, .1) 62%); }
.cb-poster-body { position: absolute; right: 0; left: 0; bottom: 0; z-index: 2; padding: 16px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.cb-poster .cb-title, .cb-spot .cb-title { color: #fff; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.cb-poster .cb-sub, .cb-spot .cb-sub { color: var(--second-color); }
.cb-poster .cb-date, .cb-spot .cb-date { font-size: 11.5px; opacity: .85; }

/* ۱۲: اسپاتلایت */
.cb-spot { position: relative; display: block; aspect-ratio: 21 / 9; min-height: 240px; overflow: hidden; border-radius: 24px; background: var(--cd-surface-2); box-shadow: var(--cd-e2); }
.cb-spot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cd-ease); }
.cb-spot:hover > img { transform: scale(1.04); }
.cb-spot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 18, .9), rgba(8, 10, 18, .05) 65%); }
.cb-spot-body { position: absolute; right: 0; left: 0; bottom: 0; z-index: 2; padding: clamp(16px, 3vw, 30px); display: flex; flex-direction: column; gap: 8px; color: #fff; max-width: 78ch; }
.cb-spot .cb-title { font-size: clamp(18px, 2.6vw, 28px); }
.cb-spot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 12px; }
.cb-note { display: flex; flex-direction: column; gap: 4px; background: var(--cd-surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--cd-e1); border-top: 3px solid var(--min-color); transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease); }
.cb-note:hover { transform: translateY(-3px); box-shadow: var(--cd-e2); }

@media (max-width: 767px) {
	.cb-ranked-wrap, .cb-mag-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.cb-tl li { grid-template-columns: 44px 14px minmax(0, 1fr); gap: 8px; }
	.cb-tl li::before { right: calc(44px + 8px + 6px); }
	.cb-tl-body .cb-img { width: 72px; height: 56px; }
	.cb-spot { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   شبکه‌های اجتماعی: دسکتاپ شناور، موبایل در نوار پایین (Bottom Sheet)
   ========================================================================== */
.cd-sheet, .cd-sheet-scrim { display: none; }
@media (max-width: 767px) {
	.has-mbar .header-social-float { display: none !important; }
	.cd-sheet-scrim { display: block; position: fixed; inset: 0; z-index: 9994; background: rgba(8, 10, 18, .55); opacity: 0; transition: opacity .3s var(--cd-ease); }
	.cd-sheet-scrim.open { opacity: 1; }
	.cd-sheet { display: block; position: fixed; right: 0; left: 0; bottom: 0; z-index: 9995; background: var(--cd-surface); border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); transform: translateY(105%); transition: transform .35s var(--cd-ease); }
	.cd-sheet.open { transform: none; }
	.cd-sheet[hidden], .cd-sheet-scrim[hidden] { display: none; }
	.cd-sheet-grip { width: 36px; height: 4px; border-radius: 4px; background: var(--cd-line); margin: 0 auto 14px; }
	.cd-sheet h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--cd-text); text-align: center; }
	.cd-sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
	.cd-sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--cd-muted); text-decoration: none; }
	.cd-sheet-grid .header-social-float__icon { width: 54px; height: 54px; border-radius: 18px; background-color: var(--cd-tonal); background-size: 28px; background-position: center; background-repeat: no-repeat; display: block; transition: background-color .2s; }
	.cd-sheet-grid a:active .header-social-float__icon { background-color: var(--cd-tonal-2); }
	.cd-sheet-grid em { font-style: normal; text-align: center; line-height: 1.5; }
}

.cb-box { display: block !important; width: 100%; }
.cb-box .box-headline { width: 100%; }
.box-heading-cat .box-symbol-menu { background: none; color: inherit; padding: 0; height: auto; border-radius: 0; font-size: 18px; }
.cb-tl-body { max-width: 780px; }

/* جلوگیری از اسکرول افقی صفحه (clip برخلاف hidden، position:sticky را خراب نمی‌کند) */
html, body { max-width: 100%; overflow-x: clip; }
.hooo, .neo-header, .top-bar { max-width: 100%; }
.header-container { grid-template-columns: auto minmax(0, 1fr) auto; }
.neo-header__logo img { max-width: 100%; }
