/* ساخته شده در مرحله صفر — پایه مشترک */

@font-face {
  font-family: 'PajooheMediaTitle';
  src: url('/static/fonts/iransansx/IRANSansXFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PajooheMediaTitle';
  src: url('/static/fonts/iransansx/IRANSansXFaNum-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PajooheMediaTitle';
  src: url('/static/fonts/iransansx/IRANSansXFaNum-ExtraBold.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PajooheTextTitle';
  src: url('/static/fonts/modam/ModamFaNumWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PajooheTextTitle';
  src: url('/static/fonts/modam/ModamFaNumWeb-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PajooheTextTitle';
  src: url('/static/fonts/modam/ModamFaNumWeb-ExtraBold.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════
   متغیرها — تم تیره (پیش‌فرض)
═══════════════════════════════════════════════ */
:root {
  --bg:        #0f0f0f;
  --bg-card:   #1a1a1a;
  --bg-card2:  #222222;
  --bg-alt:    #0a0a0a;
  --bg-input:  rgba(255,255,255,0.06);
  --accent:    #f5a623;
  --accent2:   #e09410;
  --text:      #ffffff;
  --text-sub:  #b0b0b0;
  --text-muted:#666666;
  --border:    rgba(255,255,255,0.08);
  --shadow:    rgba(0,0,0,0.4);
  --radius:    12px;
  --radius-lg: 18px;
  --font:      'Vazirmatn', 'Tahoma', sans-serif;
  --font-media-title: 'PajooheMediaTitle', 'Vazirmatn', 'Tahoma', sans-serif;
  --font-text-title:  'PajooheTextTitle', 'Vazirmatn', 'Tahoma', sans-serif;
  --trans:     0.25s ease;
}

/* ═══════════════════════════════════════════════
   تم روشن
═══════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:        #f5f5f5;
  --bg-card:   #ffffff;
  --bg-card2:  #f0f0f0;
  --bg-alt:    #ebebeb;
  --bg-input:  rgba(0,0,0,0.04);
  --accent:    #d4880a;
  --accent2:   #b87208;
  --text:      #111111;
  --text-sub:  #444444;
  --text-muted:#888888;
  --border:    rgba(0,0,0,0.1);
  --shadow:    rgba(0,0,0,0.12);
}

/* transition نرم هنگام تغییر تم */
body, .navbar, .footer, .hero, .author-card,
.dossier-card, .book-card, .podcast-player-wrap,
.video-mini-card, .featured-video-section,
.dossiers-section, .books-section, .authors-section,
.latest-videos-section, .podcast-banner, .cta-section,
.hero-search-bar, .btn, .search-tab, .section-more {
  transition: background var(--trans), color var(--trans),
              border-color var(--trans), box-shadow var(--trans);
}

/* ═══════════════════════════════════════════════
   ریست
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

/* پایه سه‌بعدی همه کارت‌ها */
.dos-card, .vbox-card, .pbox-card,
.book-card, .author-card, .nar-card,
.ticker-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }

.hero-title,
.section-title,
.ticker-title,
.featured-title,
.dos-feat-title,
.dos-card-title,
.book-card__title,
.cta-title,
.footer-col-title,
.content-card__title,
.result-item__title,
.art-title,
.sidebar-box-title,
.sb-related-title {
  font-family: var(--font-text-title);
}

.vbox-featured-title,
.vbox-card-title,
.pbox-title,
.podcast-title,
.podcast-ep-title,
.vid-full-card__title,
.vid-tall__title,
.vid-card__title,
.vdetail-title,
.vrel-title,
.pd-hero-title,
.pd-side-ep-title,
.rel-title {
  font-family: var(--font-media-title);
}

/* ═══════════════════════════════════════════════
   دکمه‌ها
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--trans);
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0f0f0f;
}
.btn-primary:hover { background: var(--accent2); color: #0f0f0f; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #0f0f0f; }

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
/* هدر drawer — فقط موبایل نمایش داده می‌شه */
.nav-menu-header { display: none; }

.nav-logo-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
  opacity: 0.6;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--trans);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active {
  color: var(--accent);
  font-weight: 700;
  background: rgba(245,166,35,0.08);
}
/* سمت چپ navbar */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.nav-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}
.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.nav-icon-btn:hover { color: var(--accent); background: var(--bg-input); }

/* بج زنده */
.nav-live {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 10px 5px 6px;
  cursor: pointer;
  transition: var(--trans);
}
.nav-live:hover { border-color: #e53935; }
.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(229,57,53,0.15);
  border: 1px solid rgba(229,57,53,0.3);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #e53935;
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
  animation: pulse-live 1.4s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.live-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.live-time {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.live-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  flex-shrink: 0;
  overflow: hidden;
}
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* نوار جستجو کشویی */
.navbar { flex-direction: column; height: auto; }
.navbar > .container { height: 64px; }
.nav-search-bar {
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 10px 24px;
}
.search-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  transition: var(--trans);
}
.search-bar-inner:focus-within { border-color: var(--accent); }
.search-bar-inner svg { color: var(--text-muted); flex-shrink: 0; }
.search-bar-inner input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.search-bar-inner input::placeholder { color: var(--text-muted); }
.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: var(--trans);
}
.search-close:hover { color: var(--text); background: var(--bg-input); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 6px;
}

[data-theme="light"] .navbar > .container { background: transparent; }
[data-theme="light"] .nav-search-bar { background: var(--bg-alt); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
/* ── Hero Slider ── */
.hero {
  position: relative;
  height: clamp(520px, 64vh, 720px);
  overflow: hidden;
  background: #080808;
  display: flex;
  align-items: center;
}

/* اسلایدها */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: default;
  display: block;
}
.hero-slide[data-href] { cursor: pointer; }
.hero-slide--active { opacity: 1; }
.hero-slide-media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-slide-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.32) 54%, rgba(0,0,0,0.5) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.08) 48%, rgba(0,0,0,0.42) 100%),
    linear-gradient(to left, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.24) 48%, rgba(0,0,0,0.08) 100%);
}

/* لینک شفاف — زیر محتوا، روی اسلاید */
.hero-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.hero-link-overlay[href="#"],
.hero-link-overlay:not([href]) { pointer-events: none; cursor: default; }
.hero-link-overlay[href]:not([href="#"]) { cursor: pointer; }

/* badge مشاهده */
.hero-link-badge {
  position: absolute;
  top: 20px;
  left: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* متن */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}
.hero-text {
  position: absolute;
  right: clamp(26px, 5.5vw, 96px);
  bottom: clamp(64px, 8vh, 88px);
  width: min(38vw, 430px);
  text-align: right;
  padding: 12px 18px 14px 0;
  border-right: 2px solid rgba(245,166,35,0.82);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.28));
}
.hero-logo-img {
  height: 44px; width: auto;
  margin-bottom: 16px; display: block;
}
.hero-title {
  font-size: clamp(24px, 2.15vw, 34px);
  font-weight: 900;
  line-height: 1.32;
  color: #fff;
  margin-bottom: 8px;
  max-width: 11.5em;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,0.52), 0 1px 2px rgba(0,0,0,0.45);
}
.hero-desc {
  max-width: 34em;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.86);
  line-height: 1.9;
  text-wrap: pretty;
  text-shadow: 0 2px 10px rgba(0,0,0,0.46);
}

/* ناوبری پایین */
.hero-nav {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-nav-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.hero-nav-arrow:hover { background: var(--accent); border-color: var(--accent); color: #0f0f0f; }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.42);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s ease;
}
.hero-dot--active {
  background: var(--accent);
  width: 24px;
  border-radius: 3px;
}

.home-search-section {
  position: relative;
  z-index: 12;
  padding: 0 24px 42px;
  margin-top: -52px;
  background: linear-gradient(to bottom, transparent 0 52px, #000000 52px 100%);
}

/* ── باکس جستجوی صفحه اصلی ── */
.hero-search-bar {
  position: relative;
  z-index: 14;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.hero-search-bar .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 2vw;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.search-label {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  color: var(--text);
  flex-shrink: 0;
}
.hero-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.hero-search-row2 {
  display: contents; /* روی دسکتاپ inline با بقیه — فقط موبایل flex می‌شه */
}
.search-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.hero-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  min-width: 0;
}
.hero-search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 8px 0;
  min-width: 0;
}
.hero-search-input-wrap input::placeholder { color: var(--text-muted); }
.search-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-family: var(--font);
  transition: var(--trans);
  cursor: pointer;
  white-space: nowrap;
}
.search-tab:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.search-tab.active {
  background: var(--accent);
  color: #0f0f0f;
  font-weight: 700;
}
.search-go-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: opacity var(--trans);
}
.search-go-btn:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════
   کانتینر سراسری
═══════════════════════════════════════════════ */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2vw;
}
.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   تیکر اخبار
═══════════════════════════════════════════════ */
.ticker-section {
  background: #111111;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 90px;
}
.ticker-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding: 0 16px 0 0;
  border-left: 1px solid var(--border);
  margin-left: 16px;
}
.ticker-tab {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.ticker-tab.active,
.ticker-tab:hover { color: var(--accent); }
.ticker-tab.active { background: rgba(245,166,35,0.08); }
.ticker-divider { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.ticker-track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 14px 0;
}
.ticker-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 260px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  border-left: 1px solid var(--border);
  padding-left: 16px;
  transition: var(--trans);
}
.ticker-card:first-child { border-left: none; padding-left: 0; }
.ticker-card:hover .ticker-title { color: var(--accent); }
.ticker-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.ticker-thumb-ph {
  background: linear-gradient(135deg, #1a1a2e, #2a2a1a);
}
.ticker-body { flex: 1; min-width: 0; }
.ticker-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  padding: 1px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}
.ticker-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}
.ticker-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  margin-right: 0;
}
.ticker-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans);
}
.ticker-nav-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════
   عنوان بخش
═══════════════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  position: relative;
  padding-right: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  transition: var(--trans);
}
.section-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════
   یادداشت‌های ماندگار (Authors)
═══════════════════════════════════════════════ */
.authors-section {
  padding: 56px 5vw;
}
.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.author-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform var(--trans);
}
.author-card:hover,
.author-card:focus-visible {
  color: inherit;
  text-decoration: none;
}
.author-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: var(--radius-lg);
}
/* wrapper بیرونی — overflow:hidden نداره تا فلش نشون داده بشه */
.author-card__photo-wrap {
  position: relative;
  width: 100%;
  display: block;
}
/* باکس داخلی */
.author-card__photo-inner {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  position: relative;
  border: none;
  box-shadow: none;
  background: url('/static/images/author-frame.png') center / contain no-repeat;
}
.author-card__img {
  position: absolute;
  top: 1%;
  left: 50%;
  width: 80%;
  height: 80.5%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 8px;
  transform: translate(-50%, -14px) scale(1.05);
  transform-origin: center top;
  transition: transform 0.4s ease;
}
.author-card:hover .author-card__img,
.author-card:focus-visible .author-card__img {
  transform: translate(-50%, -14px) scale(1.08);
}
.author-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: transparent;
}
.author-card__photo-fade { display: none; }
/* اطلاعات زیر عکس */
.author-card__body {
  position: relative;
  margin-top: -24px;
  padding: 8px 4px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.author-card__body::after {
  content: '';
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.85;
  margin-top: 2px;
  transition: width var(--trans), opacity var(--trans);
}
.author-card__name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.author-card__name {
  font-size: 17px;
  font-weight: 800;
  transition: color var(--trans);
}
.author-role-badge {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.author-card__bio {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-card:hover { transform: translateY(-2px); }
.author-card:hover .author-card__name { color: var(--accent); }
.author-card:hover .author-card__body::after {
  width: 64px;
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   ویدیو featured
═══════════════════════════════════════════════ */
.featured-video-section {
  padding: 56px 0;
  background: #0a0a0a;
}
.featured-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: #1a1a1a;
}
.featured-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.play-btn:hover { transform: translate(-50%,-50%) scale(1.1); background: var(--accent2); }
.play-btn svg { color: #0f0f0f; margin-right: -3px; }

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #0f0f0f;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
}
.featured-info {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.featured-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.featured-meta {
  font-size: 13px;
  color: var(--text-sub);
}

/* ═══════════════════════════════════════════════
   پرونده‌ها
═══════════════════════════════════════════════ */
/* ══════════════════════ پرونده‌ها — طراحی جدید ══════════════════════ */
.dossiers-section {
  padding: 64px 0;
  background: #0a0a0a;
}

/* wrapper اصلی: راست=متن، چپ=اسلایدر */
.dos-wrap {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* میرور — فقط HTML order فرق داره، flex در RTL خودش برعکسش می‌کنه */
.dos-wrap--mirror { }

/* section روایت‌ها — رنگ پس‌زمینه متفاوت برای تمایز */
.narratives-section {
  background: #0d0d0d;
}

/* ── ستون راست: معرفی ── */
.dos-intro {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dos-intro .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  display: block;
}
.dos-intro h2 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
}
.dos-intro p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.9;
  margin: 0;
}
.dos-feat-title,
.dos-feat-summary {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dos-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  margin-right: auto;
}
.dos-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.dos-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

/* ── ستون چپ: spotlight ── */
.dos-slider {
  flex: 1;
  min-width: 0;
}
.dos-spot-row {
  display: flex;
  gap: 12px;
  direction: rtl;
  align-items: stretch;
}

/* کارت پرونده */
.dos-card {
  flex: 1 1 0;
  min-width: 0;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: #fff;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dos-card {
  transition: opacity 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.dos-card--active {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 32px rgba(0,0,0,0.7);
}
.dos-card:not(.dos-card--active) {
  opacity: 0.55;
  filter: brightness(0.75);
}
.dos-card:hover { transform: translateY(-3px); }

.dos-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dos-card-ph {
  background: linear-gradient(160deg, #1a1620 0%, #2a1508 50%, #1a1620 100%);
}
.dos-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    transparent 40%
  );
}

/* دکمه مشاهده — بالای کارت */
.dos-card-head {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  inset-inline-end: 12px;
}
.dos-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  width: fit-content;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dos-card:hover .dos-view-btn {
  background: rgba(245,166,35,0.25);
  border-color: rgba(245,166,35,0.5);
  color: var(--accent);
}

/* عنوان + تگ — پایین کارت */
.dos-card-foot {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 60%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.dos-card-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  align-self: stretch;
}
.dos-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.dos-tag {
  font-size: 9px;
  font-weight: 600;
  background: rgba(245,166,35,0.14);
  border: 1px solid rgba(245,166,35,0.28);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: nowrap;
}
.dos-tag--sm {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════
   آخرین ویدیوها — اسلایدر
═══════════════════════════════════════════════ */
.latest-videos-section {
  padding: 56px 0 48px;
}

/* ═══ wrapper — برای badge که از بالا بزنه بیرون ═══ */
.vbox-wrap {
  margin: 0 24px;
  position: relative;
}

/* badge — وسط بالای باکس */
.vbox-badge {
  position: absolute;
  top: -14px;
  left: 50%; transform: translateX(-50%);
  z-index: 10;
  background: var(--accent);
  color: #0f0f0f;
  font-size: 12px; font-weight: 800;
  padding: 5px 18px;
  border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245,166,35,0.35);
}

/* ═══ جعبه اصلی ═══ */
.vbox {
  background: #0a0a0a;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  height: 460px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.vbox::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.16) 25%, rgba(0,0,0,0) 58%),
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 64%);
  opacity: 0.72;
  transition: opacity 0.28s ease;
}
.vbox-wrap--playing .vbox::before { opacity: 0; }

/* ویدیو featured — سمت چپ */
.vbox-featured-wrap {
  flex: 0 0 62%;
  position: relative;
  padding: 14px;
  background: #0a0a0a;
  z-index: 1;
}
.vbox-featured {
  position: absolute;
  inset: 14px; /* فاصله از باکس مشکی از همه طرف */
  border-radius: 14px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: #111;
  cursor: pointer;
}
.vbox-featured:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.vbox-featured-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.vbox-featured:hover .vbox-featured-img { transform: scale(1.03); }
.vbox-ph { background: linear-gradient(135deg, #1a1a1a, #0d0d0d); }
.vbox-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.16) 48%, transparent 70%);
}
.vbox-featured-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 2.5px solid rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all var(--trans);
}
.vbox-featured:hover .vbox-featured-play { background: var(--accent); border-color: var(--accent); color: #0f0f0f; }
.vbox-featured-info {
  position: absolute; bottom: 0; right: 0; left: 0;
  padding: 1.1rem 1.3rem;
}
.vbox-featured-title {
  font-size: clamp(13px,1.4vw,18px);
  font-weight: 800; color: #fff; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vbox-featured-author { font-size: 12px; color: rgba(255,255,255,0.6); }
.vbox-detail-link {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,0.56);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.vbox-detail-link::before {
  content: '↗';
  color: var(--accent);
  font-size: 12px;
}
.vbox-detail-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f0f0f;
}
.vbox-detail-link:hover::before { color: #0f0f0f; }

/* اسلایدر — سمت چپ */
.vbox-slider {
  flex: 0 0 38%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0 20px 18px;
  z-index: 1;
}

/* تراک */
.vbox-track-outer {
  width: 100%;
  overflow: visible;
}
.vbox-track {
  display: flex;
  align-items: center;
  gap: 0;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  direction: rtl; /* کارت اول سمت راست (نزدیک ویدیو بزرگ) */
  padding: 8px 18px 8px 0;
}

/* کارت‌ها — دست‌کارتی */
.vbox-card {
  flex: 0 0 clamp(128px, 10vw, 160px);
  height: min(300px, calc(100vh - 360px));
  min-height: 238px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--trans), transform 0.3s ease;
  margin-right: clamp(-88px, -5.4vw, -64px); /* کارت‌های بعدی نیمه‌نمایان بمانند */
  box-shadow: 8px 0 22px rgba(0,0,0,0.68);
}
.vbox-card:first-child { margin-right: 0; }
/* اولین کارت بالاترین z-index — روی بقیه */
.vbox-card:nth-child(1) { z-index: 8; }
.vbox-card:nth-child(2) { z-index: 7; }
.vbox-card:nth-child(3) { z-index: 6; }
.vbox-card:nth-child(4) { z-index: 5; }
.vbox-card:nth-child(5) { z-index: 4; }
.vbox-card:nth-child(6) { z-index: 3; }
.vbox-card:nth-child(7) { z-index: 2; }
.vbox-card:nth-child(8) { z-index: 1; }
.vbox-card:hover { transform: translateY(-2px); z-index: 20 !important; }

/* انیمیشن تکان برای وقتی به انتها رسیدیم */
@keyframes slider-bounce {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-14px); }
  60%  { transform: translateX(9px); }
  85%  { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.slider-at-end { animation: slider-bounce 0.38s ease; }
.vbox-card--active {
  border-color: rgba(255,255,255,0.12);
  z-index: 15 !important;
  box-shadow: 8px 0 22px rgba(0,0,0,0.5);
}
.vbox-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vbox-card-ph { width: 100%; height: 100%; background: linear-gradient(135deg,#1a1a1a,#0d0d0d); }
.vbox-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.12) 48%, transparent 72%);
}
.vbox-card-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1.5px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all var(--trans);
}
.vbox-card:hover .vbox-card-play { background: var(--accent); border-color: var(--accent); color: #0f0f0f; }
.vbox-card-info {
  position: absolute; bottom: 0; right: 0; left: 0;
  padding: 6px 8px;
  direction: rtl;
  text-align: right;
}
.vbox-card-title {
  font-size: 10px; font-weight: 700; color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.vbox-card-author { font-size: 9px; color: rgba(255,255,255,0.5); }

/* ═══ پادکست featured panel ═══ */
.pbox-featured-wrap {
  flex: 0 0 62%;
  display: flex;
  flex-direction: row; /* اسلایدر چپ، متن وسط، تصویر راست */
  align-items: stretch;
  gap: 18px;
  padding: 16px 22px 16px 0;
  background: #0b0b0b;
  overflow: hidden;
}

/* تصویر پادکست */
.pbox-thumb-wrap {
  flex: 0 0 36%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #101010;
}
.pbox-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}
.pbox-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
  border-radius: inherit;
}
.pbox-thumb-link:hover .pbox-thumb { transform: scale(1.035); }
.pbox-thumb-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  border-radius: inherit;
}
.pbox-thumb--hidden { display: none; }
.pbox-thumb-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(15,15,15,0.18) 0%, transparent 52%);
  pointer-events: none;
}

/* متن + پلیر */
.pbox-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 0;
  gap: 12px;
  direction: rtl;
  text-align: right;
}
.pbox-eyebrow {
  font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.pbox-copy-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.pbox-title {
  font-size: clamp(24px, 1.8vw, 34px);
  font-weight: 900; color: #fff;
  line-height: 1.2;
  transition: color var(--trans);
  margin-bottom: 6px;
}
.pbox-copy-link:hover .pbox-title { color: var(--accent); }
.pbox-desc {
  font-size: 13px; color: rgba(255,255,255,0.7);
  line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
  max-width: 40ch;
}
.pbox-author {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.82);
}

/* پلیر */
.pbox-player {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 460px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* نوار waveform */
.pbox-wave-wrap {
  cursor: pointer;
  background: #f1f1f1;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 8px 12px;
  direction: ltr;
  position: relative;
}
.pbox-wave-svg {
  width: 100%; height: 40px; display: block;
}
.pbox-wave-bg rect  { fill: rgba(30,30,30,0.24); }
.pbox-wave-fg rect  { fill: #1d1d1d; }
.pbox-wave-wrap:hover .pbox-wave-bg rect { fill: rgba(30,30,30,0.34); }

.pbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: row;
  padding: 0;
}
.pbox-time {
  font-size: 11px;
  color: rgba(255,255,255,0.58);
  min-width: 42px;
  text-align: center;
}
.pbox-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}
.pbox-btn-skip {
  height: 30px; padding: 0 8px;
  border-radius: 20px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6); cursor: pointer;
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  transition: all var(--trans);
}
.pbox-btn-skip:hover { color: #fff; }
.pbox-btn-icon,
.pbox-btn-play {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: none;
  -webkit-appearance: none; appearance: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans);
  box-shadow: none;
}
.pbox-btn-play {
  background: var(--accent);
  color: #0f0f0f;
}
#pbox-stop-btn {
  background: #c53b32;
  color: #fff;
}
.pbox-btn-play:hover {
  background: #f0ab2b;
  color: #0f0f0f;
}
#pbox-stop-btn:hover {
  background: #dd4a40;
  color: #fff;
}
.pbox-btn-icon:hover,
.pbox-btn-play:hover { transform: scale(1.08); background: var(--accent); color: #0f0f0f; }
.pbox-btn-icon.is-active,
.pbox-btn-play.is-active {
  background: var(--accent);
  color: #0f0f0f;
}
.pbox-full-link {
  margin-right: 0;
  font-size: 12px; font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background var(--trans), color var(--trans), opacity var(--trans);
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
}
.pbox-full-link:hover { background: rgba(255,255,255,0.2); opacity: 1; }

/* کارت همه ویدیوها */
.vbox-card--all {
  background: transparent;
  border: 2px dashed rgba(255,255,255,0.15);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--trans), background var(--trans);
}
.vbox-card--all:hover {
  border-color: var(--accent);
  background: rgba(245,166,35,0.06);
}
.vbox-card-all-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  transition: color var(--trans);
  direction: rtl;
  text-align: center;
  padding: 0 10px;
}
.vbox-card--all:hover .vbox-card-all-inner { color: var(--accent); }
.vbox-card-all-inner span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

/* دکمه‌های ناوبری — گوشه چپ پایین vbox-wrap */
.vbox-nav-btns {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; align-items: center; gap: 8px;
  z-index: 30;
}
.vbox-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.vbox-arrow:hover { background: var(--accent); border-color: var(--accent); color: #0f0f0f; }
.vbox-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
  transition: all var(--trans);
  letter-spacing: 0.2px;
}
.vbox-all-link::after {
  content: '←';
  font-size: 13px;
  color: var(--accent);
  transition: transform var(--trans);
  display: inline-block;
}
.vbox-all-link:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(245,166,35,0.08);
}
.vbox-all-link:hover::after { transform: translateX(-3px); }

/* چیدمان فیگما: پیش‌نمایش‌های بی‌سلکتور کنار کارت اصلی */
#vbox-wrap .vbox,
#doss-vbox-wrap .vbox {
  height: clamp(510px, calc(33vw + 100px), 620px);
  min-height: 0;
}
#vbox-wrap .vbox-featured-wrap,
#doss-vbox-wrap .vbox-featured-wrap {
  flex-basis: 61.5%;
  padding: 14px 14px 14px 0;
}
#vbox-wrap .vbox-slider,
#doss-vbox-wrap .vbox-slider {
  flex-basis: 38.5%;
  padding: 50px 18px 82px 16px;
  overflow: hidden;
  align-items: flex-start;
  background:
    radial-gradient(ellipse at 68% 46%, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0) 58%),
    #090909;
}
#vbox-wrap .vbox-track-outer,
#doss-vbox-wrap .vbox-track-outer {
  width: min(100%, 660px);
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
}
#vbox-wrap .vbox-track,
#doss-vbox-wrap .vbox-track {
  width: 100%;
  min-height: 0;
  padding: 6px 0;
  box-sizing: border-box;
  align-items: center;
  gap: 16px;
  transform-style: flat;
}
#vbox-wrap .vbox-card,
#doss-vbox-wrap .vbox-card {
  flex: 0 0 clamp(236px, 17.5vw, 316px);
  height: clamp(316px, 24vw, 404px);
  min-height: 0;
  margin-right: 0;
  border-radius: 12px;
  transform: none !important;
  box-shadow: 7px 0 18px rgba(0,0,0,0.36);
  filter: brightness(0.82) saturate(0.92);
}
#vbox-wrap .vbox-card:hover,
#doss-vbox-wrap .vbox-card:hover {
  transform: translateY(-3px) !important;
  filter: brightness(0.94) saturate(1);
}
#vbox-wrap .vbox-card--active,
#doss-vbox-wrap .vbox-card--active {
  display: none;
}

/* چیدمان فیگما برای پادکست */
#pbox-wrap .vbox,
#doss-pbox-wrap .vbox {
  height: clamp(470px, calc(31vw + 80px), 580px);
  min-height: 0;
}
#pbox-wrap .pbox-featured-wrap,
#doss-pbox-wrap .pbox-featured-wrap {
  flex-basis: 71%;
}
#pbox-wrap .vbox-slider,
#doss-pbox-wrap .vbox-slider {
  flex-basis: 29%;
  padding: 34px 10px 74px 12px;
  overflow: hidden;
  align-items: flex-start;
  background:
    radial-gradient(ellipse at 68% 46%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 58%),
    #090909;
}
#pbox-wrap .vbox-track-outer,
#doss-pbox-wrap .vbox-track-outer {
  width: min(100%, 470px);
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
}
#pbox-wrap .vbox-track,
#doss-pbox-wrap .vbox-track {
  width: 100%;
  min-height: 0;
  padding: 8px 0;
  box-sizing: border-box;
  align-items: center;
  gap: 16px;
  transform-style: flat;
}
#pbox-wrap .vbox-card,
#doss-pbox-wrap .vbox-card {
  flex: 0 0 clamp(184px, 13.4vw, 238px);
  height: clamp(292px, 22vw, 362px);
  min-height: 0;
  margin-right: 0;
  border-radius: 14px;
  transform: none !important;
  box-shadow: 7px 0 18px rgba(0,0,0,0.34);
  filter: brightness(0.88) saturate(0.94);
}
#pbox-wrap .vbox-card:hover,
#doss-pbox-wrap .vbox-card:hover {
  transform: translateY(-3px) !important;
  filter: brightness(0.97) saturate(1);
}
#pbox-wrap .vbox-card--active,
#doss-pbox-wrap .vbox-card--active {
  display: none;
}

/* ═══════════════════════════════════════════════
   بنر پادکست — full-width dark
═══════════════════════════════════════════════ */
.podcast-banner {
  background: linear-gradient(120deg, #0d0d0d 0%, #1a1208 60%, #100e05 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.podcast-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: end;
  min-height: 340px;
}
/* ستون چپ — متن + پلیر */
.podcast-content {
  padding: 56px 24px 48px 40px;
  display: flex;
  flex-direction: column;
}
.podcast-content .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}
.podcast-title {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.podcast-now-playing {
  margin-bottom: 16px;
}
.podcast-ep-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.podcast-ep-meta {
  font-size: 13px;
  color: var(--text-muted);
}
/* waveform جدید */
.waveform-bar {
  height: 44px;
  background: rgba(245,166,35,0.12);
  border-radius: 8px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.waveform-progress {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to left, rgba(245,166,35,0.5), rgba(245,166,35,0.15));
}
.waveform-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to left,
    transparent 0px,
    transparent 2px,
    rgba(245,166,35,0.25) 2px,
    rgba(245,166,35,0.25) 4px,
    transparent 4px,
    transparent 8px
  );
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.player-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: none;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  cursor: pointer;
}
.player-btn:hover { border-color: var(--accent); color: var(--accent); }
.player-btn-main {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  cursor: pointer;
  flex-shrink: 0;
}
.player-btn-main:hover { background: var(--accent2); transform: scale(1.05); }
.player-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
/* ستون راست — تصویر شخص */
.podcast-person {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}
.podcast-person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 90%);
}
.podcast-person-ph {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(160deg, #1a1208 0%, #2a1e08 50%, #1a1208 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 90%);
}

/* ═══════════════════════════════════════════════
   کتاب‌های برتر
═══════════════════════════════════════════════ */
/* ══════════════════════ کتاب‌ها ══════════════════════ */
.books-section {
  padding: 56px 5vw;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* کارت کتاب — همان ساختار author-card */
.book-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--trans);
}

/* wrapper بیرونی */
.book-card__cover-wrap {
  position: relative;
  width: 100%;
  display: block;
}

/* باکس داخلی با فریم book.png */
.book-card__cover-inner {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  position: relative;
  border: none;
  box-shadow: none;
  background: url('/static/images/book-frame.png') center / contain no-repeat;
}

.book-card__cover-img {
  position: absolute;
  top: 0.5%;
  left: 50%;
  width: 72.4%;
  height: 82.8%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
  transform: translate(-50%, -30px) scale(1.04);
  transform-origin: center top;
  transition: transform 0.4s ease;
}
.book-card__cover-wrap:hover .book-card__cover-img {
  transform: translate(-50%, -30px) scale(1.07);
}
.book-card__cover-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f3460 100%);
}

/* اطلاعات زیر جلد */
.book-card__body {
  position: relative;
  margin-top: -24px;
  padding: 8px 4px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-card__body::after {
  content: '';
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.85;
  margin-top: 2px;
  transition: width var(--trans), opacity var(--trans);
}
.book-card__name-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.book-card__cat-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245,166,35,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.book-card__title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--trans);
}
.book-card__author {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-card:hover { transform: translateY(-2px); }
.book-card:hover .book-card__title { color: var(--accent); }
.book-card:hover .book-card__body::after {
  width: 64px;
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   CTA — با ما رسانه‌ای شوید
═══════════════════════════════════════════════ */
.cta-section {
  background: transparent;
  padding: 0 8px;
  position: relative;
  z-index: 6;
  margin-bottom: -54px;
}
.cta-card {
  max-width: 1340px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: none;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  position: relative;
  z-index: 6;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 90px rgba(0,0,0,0.7);
}
.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 220px;
  background: linear-gradient(to bottom, #f5a623 0%, #000000 86%);
}
/* سمت چپ — تصویر */
.cta-img-side {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.cta-img-ph {
  position: absolute;
  inset: 0;
}
/* سمت راست — متن */
.cta-text-side {
  padding: 36px 44px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}
.cta-title {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff !important;
  margin-bottom: 10px;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.cta-img-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cta-img-link:hover .cta-img {
  transform: scale(1.05);
}
.cta-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.cta-img-label {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.cta-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  max-width: 380px;
  line-height: 1.9;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.cta-stat-row {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.cta-pill {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.cta-pill-num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.cta-pill-plus {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.cta-pill-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.cta-pill-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.2);
  align-self: center;
}
.cta-btn {
  align-self: flex-start;
  border-color: rgba(255,255,255,0.6) !important;
  color: #ffffff !important;
}
.cta-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #ffffff !important;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: #000000;
  padding: 108px 0 0;
  border-top: none;
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

/* ستون درباره — لوگو بزرگ دکوراتیو */
.footer-col-about {
  position: relative;
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo-mobile { display: none; }
.footer-logo-img {
  height: 160px;
  width: auto;
  display: block;
}
.footer-about {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text);
}

/* لینک‌ها */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent); padding-right: 4px; }
.footer-links a::before {
  content: '‹';
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

/* اطلاعات تماس */
.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  align-items: flex-start;
  line-height: 1.6;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* شبکه‌های اجتماعی — لیست عمودی */
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--trans);
}
.footer-social-item:hover { color: var(--text); }
.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--trans);
}
.footer-social-icon-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  transition: var(--trans);
}
.footer-social-item:hover .footer-social-icon-img {
  transform: scale(1.1);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border);
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   تیکر — تم روشن
═══════════════════════════════════════════════ */
[data-theme="light"] .ticker-section { background: #f0f0f0; }
[data-theme="light"] .ticker-thumb-ph { background: linear-gradient(135deg, #d0d8f0, #c8c0b0); }
[data-theme="light"] .dossiers-section { background: #ebebeb; }
[data-theme="light"] .dos-card-ph { background: linear-gradient(160deg, #c8d0e0 0%, #c0b090 100%); }
[data-theme="light"] .video-thumb-ph { background: linear-gradient(135deg, #c8d0e8, #a8b8d8); }
[data-theme="light"] .podcast-banner { background: linear-gradient(120deg, #ebebeb 0%, #f0e8d8 60%, #eae8e0 100%); }
[data-theme="light"] .podcast-person-ph { background: linear-gradient(160deg, #e0d8c8, #d8d0b0); }
[data-theme="light"] .cta-section { background: transparent; }
[data-theme="light"] .cta-layout { background: linear-gradient(to bottom, #f5a623 0%, #000000 86%); }

/* ═══════════════════════════════════════════════
   overrideهای تم روشن — رنگ‌های هاردکد
═══════════════════════════════════════════════ */
[data-theme="light"] .navbar {
  background: rgba(245,245,245,0.97);
}
[data-theme="light"] .nav-links a {
  color: #777;
}
[data-theme="light"] .nav-links a:hover {
  color: #111;
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .nav-links a.active {
  color: var(--accent);
  background: rgba(245,166,35,0.1);
}
[data-theme="light"] .nav-search {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .nav-search input { color: #111; }
[data-theme="light"] .nav-icon-btn { color: #555; }
[data-theme="light"] .nav-icon-btn:hover { color: var(--accent); background: rgba(0,0,0,0.06); }
[data-theme="light"] .nav-live {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

/* ── hero در تم روشن ── */
[data-theme="light"] .hero {
  background: #111;
}
[data-theme="light"] .hero-bg {
  background: linear-gradient(to left, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.45) 22%, rgba(10,10,10,0.08) 42%, transparent 55%);
}
[data-theme="light"] .hero-img { opacity: 0.88; }
[data-theme="light"] .hero-img-placeholder {
  background: linear-gradient(to right, #1a1a2e 0%, transparent 100%);
}
[data-theme="light"] .hero-title { color: #fff; }
[data-theme="light"] .hero-desc { color: rgba(255,255,255,0.75); }
[data-theme="light"] .home-search-section {
  background: linear-gradient(to bottom, transparent 0 52px, #000000 52px 100%);
}
[data-theme="light"] .hero-search-bar { background: transparent; }
[data-theme="light"] .hero-search-bar .container {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}
[data-theme="light"] .search-tabs { background: #f5f5f5; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .search-tab { color: #666; }
[data-theme="light"] .search-tab:hover { background: rgba(0,0,0,0.05); color: #222; }
[data-theme="light"] .search-tab.active { background: var(--accent); color: #111; }
[data-theme="light"] .search-label { color: #333; }
[data-theme="light"] .ticker-section { background: #e2e4ea; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .ticker-card { color: #222; }
[data-theme="light"] .ticker-cat { color: var(--accent); }
[data-theme="light"] .authors-section { background: var(--bg); }
[data-theme="light"] .dossiers-section { background: var(--bg); }
[data-theme="light"] .sidebar-box { background: #fff; }
[data-theme="light"] .dos-arrow { border-color: rgba(0,0,0,0.2); color: #333; }
[data-theme="light"] .author-card__img-placeholder {
  background: transparent;
}
[data-theme="light"] .featured-video-section { background: #ebebeb; }
[data-theme="light"] .featured-video-placeholder {
  background: linear-gradient(135deg, #c8d0e8 0%, #a8b8d8 100%);
}
[data-theme="light"] .video-mini-thumb-ph {
  background: linear-gradient(135deg, #c8d0e8, #a8b8d8);
}
[data-theme="light"] .dossier-card__img-ph {
  background: linear-gradient(135deg, #dce1f0, #c8b890);
}
[data-theme="light"] .book-card__cover-ph {
  background: linear-gradient(160deg, #dce1f0 0%, #a8b8d8 100%);
}
[data-theme="light"] .podcast-banner {
  background: linear-gradient(135deg, #ebebeb 0%, #f0e8d8 100%);
}
[data-theme="light"] .podcast-player-img {
  background: linear-gradient(135deg, #c8d0e8, #c8b890);
}
[data-theme="light"] .waveform { background: rgba(212,136,10,0.12); }
[data-theme="light"] .waveform::after { background: rgba(212,136,10,0.25); }
[data-theme="light"] .latest-videos-section { background: #ebebeb; }
[data-theme="light"] .cta-bg {
  background: linear-gradient(135deg, #e0e0e0 0%, #f0e8d0 100%);
}
[data-theme="light"] .cta-title { color: var(--accent); }
[data-theme="light"] .footer { background: #000000; }
[data-theme="light"] .footer-bottom-bar { background: #000000; }
[data-theme="light"] .footer-about,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-contact-item,
[data-theme="light"] .footer-col-title,
[data-theme="light"] .footer-social-item,
[data-theme="light"] .footer-bottom { color: rgba(255,255,255,0.65); }
[data-theme="light"] .footer-col-title { color: #ffffff; }
[data-theme="light"] .footer-bottom-bar { border-top-color: rgba(255,255,255,0.12); }
[data-theme="light"] .footer-links a::before { color: var(--accent); }
[data-theme="light"] .hero-stat-label { color: rgba(255,255,255,0.65); }
[data-theme="light"] .hero .btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
[data-theme="light"] .hero .btn-ghost:hover { background: rgba(255,255,255,0.25); }
[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.06);
  color: #222;
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.1); }

/* دکمه تغییر تم */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ═══════════════════════════════════════════════
   Bottom Navigation — Mobile Only
═══════════════════════════════════════════════ */
.bottom-nav { display: none; }

/* ═══════════════════════════════════════════════
   Responsive — Tablet (≤1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .authors-grid  { grid-template-columns: repeat(3, 1fr); }
  .books-grid    { grid-template-columns: repeat(3, 1fr); }
  .dos-wrap      { flex-direction: column; }
  .dos-intro     { flex: none; width: 100%; }
  .videos-layout { grid-template-columns: 1fr; }
  .podcast-layout{ grid-template-columns: 1fr; }
  .podcast-person{ display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-layout    { grid-template-columns: 1fr; }
  .cta-img-side  { display: none; }
  .cta-section   { margin-bottom: -42px; }
  .ticker-track  { gap: 12px; }
  .ticker-card   { min-width: 180px; }
  .dos-card      { flex: 0 0 200px; height: 200px; }

  /* vbox tablet */
  .vbox { height: auto; flex-direction: column; }
  .vbox-featured-wrap { flex: none; width: 100%; aspect-ratio: 16/9; padding: 10px 10px 0; }
  .vbox-featured { position: absolute; inset: 10px; border-radius: 12px; }
  .vbox-slider { border-right: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0 56px; }
  .vbox-track { padding: 4px 12px; }
  .vbox-card  { flex: 0 0 130px; height: 210px; margin-right: -52px; }
  #vbox-wrap .vbox, #doss-vbox-wrap .vbox { height: auto; }
  #vbox-wrap .vbox-slider, #doss-vbox-wrap .vbox-slider { flex-basis: auto; padding: 18px 16px 62px; align-items: flex-start; overflow: hidden; }
  #vbox-wrap .vbox-track-outer, #doss-vbox-wrap .vbox-track-outer { width: min(520px, calc(100% - 24px)); overflow: hidden; }
  #vbox-wrap .vbox-track, #doss-vbox-wrap .vbox-track { min-height: 0; padding: 6px 0; box-sizing: border-box; gap: 14px; }
  #vbox-wrap .vbox-card, #doss-vbox-wrap .vbox-card { flex-basis: 230px; height: 276px; margin-right: 0; transform: none !important; }
  #vbox-wrap .vbox-card:nth-child(2),
  #vbox-wrap .vbox-card:nth-child(3),
  #doss-vbox-wrap .vbox-card:nth-child(2),
  #doss-vbox-wrap .vbox-card:nth-child(3) { transform: none !important; }
  #pbox-wrap .vbox, #doss-pbox-wrap .vbox { height: auto; }
  #pbox-wrap .vbox-slider, #doss-pbox-wrap .vbox-slider { flex-basis: auto; padding: 18px 10px 62px; align-items: flex-start; overflow: hidden; }
  #pbox-wrap .vbox-track-outer, #doss-pbox-wrap .vbox-track-outer { width: min(360px, calc(100% - 24px)); overflow: hidden; }
  #pbox-wrap .vbox-track, #doss-pbox-wrap .vbox-track { min-height: 0; padding: 6px 0; box-sizing: border-box; gap: 14px; }
  #pbox-wrap .vbox-card, #doss-pbox-wrap .vbox-card { flex-basis: 150px; height: 250px; margin-right: 0; transform: none !important; }
  #pbox-wrap .vbox-card:nth-child(2),
  #pbox-wrap .vbox-card:nth-child(3),
  #doss-pbox-wrap .vbox-card:nth-child(2),
  #doss-pbox-wrap .vbox-card:nth-child(3) { transform: none !important; }

  /* pbox tablet */
  .pbox-featured-wrap { flex-direction: row; flex: none; width: 100%; gap: 12px; padding: 14px 16px 0 0; }
  .pbox-thumb-wrap { flex: 0 0 38%; height: auto; width: auto; }
  .pbox-thumb-wrap::after { background: linear-gradient(to bottom, transparent 0%, rgba(15,15,15,0.95) 100%); }
  .pbox-info { padding: 6px 0 10px; gap: 10px; }
  .pbox-title { font-size: clamp(18px, 2.4vw, 26px); }
  .pbox-desc { max-width: 28ch; }
  .pbox-player { width: min(100%, 380px); }
}

/* ═══════════════════════════════════════════════
   Responsive — Mobile (≤768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* فضا برای bottom nav */
  body { padding-bottom: 68px; }

  /* ── NAVBAR ── */
  .nav-live    { display: none; }
  .nav-divider { display: none; }
  .nav-links   { display: none; }
  .nav-toggle  { display: flex; }

  /* ── Overlay تاریک پشت drawer ── */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
    animation: overlayIn 0.25s ease;
  }
  .nav-overlay.open { display: block; }
  @keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ── Drawer از سمت راست ── */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(290px, 82vw);
    background: #0e0e0e;
    border-left: 1px solid rgba(255,255,255,0.07);
    box-shadow: -24px 0 60px rgba(0,0,0,0.6);
    z-index: 9999;
    padding: 0;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    animation: drawerIn 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  @keyframes drawerIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }

  /* هدر drawer */
  .nav-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }
  .nav-menu-logo-link { display: flex; align-items: center; }
  .nav-menu-logo-img  { height: 34px; width: auto; }
  .nav-menu-close {
    background: rgba(255,255,255,0.06); border: none;
    color: rgba(255,255,255,0.5);
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s, color 0.2s;
  }
  .nav-menu-close:hover { background: rgba(245,166,35,0.15); color: var(--accent); }

  /* آیتم‌های منو */
  .nav-links.open li:not(.nav-menu-header) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.open li:not(.nav-menu-header) a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: color 0.18s, background 0.18s, padding-right 0.18s;
  }
  .nav-links.open li:not(.nav-menu-header) a::after {
    content: '‹';
    font-size: 20px;
    line-height: 1;
    color: rgba(255,255,255,0.15);
    transition: color 0.18s;
    font-weight: 300;
  }
  .nav-links.open li:not(.nav-menu-header) a:hover,
  .nav-links.open li:not(.nav-menu-header) a.active {
    color: #fff;
    background: rgba(245,166,35,0.07);
    padding-right: 28px;
  }
  .nav-links.open li:not(.nav-menu-header) a.active {
    color: var(--accent);
  }
  .nav-links.open li:not(.nav-menu-header) a:hover::after,
  .nav-links.open li:not(.nav-menu-header) a.active::after {
    color: var(--accent);
  }

  /* ── BOTTOM NAV ── */
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 990;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottom-nav__item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; color: rgba(255,255,255,0.4);
    font-size: 10px; font-weight: 700;
    padding: 6px 4px; transition: color 0.18s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav__item svg { width: 21px; height: 21px; flex-shrink: 0; }
  .bottom-nav__item:active { color: var(--accent); }
  .bottom-nav__item.active { color: var(--accent); }
  [data-theme="light"] .bottom-nav { background: rgba(245,245,245,0.97); border-top-color: rgba(0,0,0,0.12); }
  [data-theme="light"] .bottom-nav__item { color: rgba(0,0,0,0.38); }

  /* ── HERO ── */
  .hero {
    height: clamp(390px, 58vh, 540px);
    align-items: flex-end;
  }
  .hero-slide { align-items: flex-end; }
  .hero-slide-media { object-position: center center; }
  .hero-slide-overlay {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.34) 42%, rgba(0,0,0,0.82) 100%),
      linear-gradient(to left, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.38) 48%, rgba(0,0,0,0.18) 100%);
  }
  .hero-content {
    padding: 0;
  }
  .hero-text {
    right: 20px;
    bottom: 76px;
    width: min(82vw, 380px);
    padding: 10px 14px 12px 0;
    border-right-width: 2px;
  }
  .hero-title {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.32;
    margin-bottom: 8px;
    max-width: 12em;
  }
  .hero-desc {
    font-size: 12px;
    line-height: 1.9;
    max-width: 31em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-logo-img { height: 42px; margin-bottom: 10px; }
  .hero-link-badge { top: 12px; left: 12px; font-size: 11px; padding: 4px 10px; }
  .hero-nav {
    bottom: 48px;
    gap: 8px;
    padding: 5px 8px;
  }
  .hero-nav-arrow { width: 30px; height: 30px; }
  .hero-dot--active { width: 20px; }

  /* ── HERO SEARCH BAR ── */
  .home-search-section { padding: 0 0 34px; margin-top: -40px; background: linear-gradient(to bottom, transparent 0 40px, #000000 40px 100%); }
  .hero-search-bar { padding: 0; margin-top: 0; }
  .hero-search-bar .container {
    flex-direction: column; gap: 0;
    padding: 12px 14px 14px;
    border-radius: 16px;
    margin: 0 12px;
  }
  .search-label { display: none; }

  .hero-search-form { flex-direction: column; gap: 8px; width: 100%; }

  /* ردیف ۱: تب‌ها */
  .search-tabs {
    order: 1; overflow-x: auto; gap: 5px;
    -webkit-overflow-scrolling: touch; flex-wrap: nowrap;
    background: none; border: none; border-radius: 0; padding: 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 8px), transparent);
    mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 8px), transparent);
  }
  .search-tabs::-webkit-scrollbar { display: none; }
  .search-tab {
    font-size: 11.5px; padding: 5px 11px;
    border: 1px solid var(--border); border-radius: 20px;
    background: transparent; color: var(--text-muted);
  }
  .search-tab.active { background: var(--accent); border-color: var(--accent); color: #0f0f0f; font-weight: 700; }

  /* ردیف ۲: input + دکمه در یک ردیف */
  .hero-search-input-wrap {
    order: 2; flex: 1;
    border: 1px solid var(--border); border-radius: 10px;
    border-right: 1px solid var(--border); border-left: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    padding: 2px 4px 2px 4px;
  }
  .hero-search-input-wrap input { font-size: 13px; padding: 7px 4px; }
  .search-go-btn {
    order: 2; flex-shrink: 0;
    font-size: 12.5px; padding: 9px 18px; border-radius: 10px;
    align-self: stretch;
  }
  .hero-search-row2 { display: flex; gap: 6px; align-items: stretch; }
  .hero-search-row2 .hero-search-input-wrap { flex: 1; }
  .hero-search-row2 .search-go-btn { align-self: stretch; }

  /* ── CONTAINERS ── */
  .container      { padding: 0 16px; }
  .container-wide { padding: 0; }

  /* ── SECTION HEADS ── */
  .section-head  { margin: 0 16px 0.8rem; }
  .section-title { font-size: 1.05rem; }
  .section-more  { font-size: 0.76rem; }

  /* ── AUTHORS ── */
  .authors-section { padding: 30px 5vw; }
  .authors-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .author-card__bio{ font-size: 0.7rem; -webkit-line-clamp: 1; }

  /* ── VBOX (ویدیو/پادکست) ── */
  .latest-videos-section { padding: 30px 0; }
  .vbox-wrap { margin: 0 12px; }
  .vbox { height: auto; flex-direction: column; border-radius: 14px; }
  .vbox-featured-wrap { flex: none; width: 100%; aspect-ratio: 16/9; padding: 8px 8px 0; }
  .vbox-featured { position: absolute; inset: 8px; border-radius: 10px; }
  .vbox-featured-play { width: 42px; height: 42px; border-width: 2px; }
  .vbox-featured-play svg { width: 18px; height: 18px; }
  .vbox-featured-title { font-size: 13px; }
  .vbox-slider { border-right: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 10px 0 52px; justify-content: flex-start; }
  .vbox-track { gap: 0; padding: 4px 8px; }
  .vbox-card  { flex: 0 0 105px; height: 170px; margin-right: -42px; border-radius: 10px; }
  #vbox-wrap .vbox-slider, #doss-vbox-wrap .vbox-slider { padding: 12px 12px 50px; align-items: flex-start; overflow: hidden; }
  #vbox-wrap .vbox-track-outer, #doss-vbox-wrap .vbox-track-outer { width: min(390px, calc(100% - 16px)); overflow: hidden; }
  #vbox-wrap .vbox-track, #doss-vbox-wrap .vbox-track { min-height: 0; padding: 4px 0; box-sizing: border-box; gap: 12px; }
  #vbox-wrap .vbox-card, #doss-vbox-wrap .vbox-card { flex-basis: 174px; height: 210px; margin-right: 0; border-radius: 10px; transform: none !important; }
  #vbox-wrap .vbox-card:nth-child(2),
  #vbox-wrap .vbox-card:nth-child(3),
  #vbox-wrap .vbox-card:nth-child(n+4),
  #doss-vbox-wrap .vbox-card:nth-child(2),
  #doss-vbox-wrap .vbox-card:nth-child(3),
  #doss-vbox-wrap .vbox-card:nth-child(n+4) { transform: none !important; }
  #pbox-wrap .vbox-slider, #doss-pbox-wrap .vbox-slider { padding: 12px 8px 50px; align-items: flex-start; overflow: hidden; }
  #pbox-wrap .vbox-track-outer, #doss-pbox-wrap .vbox-track-outer { width: min(320px, calc(100% - 16px)); overflow: hidden; }
  #pbox-wrap .vbox-track, #doss-pbox-wrap .vbox-track { min-height: 0; padding: 4px 0; box-sizing: border-box; gap: 12px; }
  #pbox-wrap .vbox-card, #doss-pbox-wrap .vbox-card { flex-basis: 118px; height: 208px; margin-right: 0; border-radius: 10px; transform: none !important; }
  #pbox-wrap .vbox-card:nth-child(2),
  #pbox-wrap .vbox-card:nth-child(3),
  #pbox-wrap .vbox-card:nth-child(n+4),
  #doss-pbox-wrap .vbox-card:nth-child(2),
  #doss-pbox-wrap .vbox-card:nth-child(3),
  #doss-pbox-wrap .vbox-card:nth-child(n+4) { transform: none !important; }
  .vbox-card-title { font-size: 9px; }
  .vbox-nav-btns { position: absolute; bottom: 8px; left: 8px; gap: 6px; }
  .vbox-arrow { width: 30px; height: 30px; }
  .vbox-badge { font-size: 11px; padding: 4px 12px; top: -11px; }
  .vbox-all-link { font-size: 10px; padding: 5px 10px; }

  /* ── PBOX (پادکست) ── */
  .pbox-featured-wrap { flex-direction: row; flex: none; width: 100%; gap: 10px; padding: 12px 12px 0 0; }
  .pbox-thumb-wrap { flex: 0 0 42%; height: auto; width: auto; }
  .pbox-thumb-wrap::after { background: linear-gradient(to bottom, transparent 0%, rgba(15,15,15,0.95) 100%); }
  .pbox-info  { padding: 4px 0 8px; gap: 5px; }
  .pbox-title { font-size: 16px; }
  .pbox-desc  { -webkit-line-clamp: 2; line-clamp: 2; font-size: 11px; }
  .pbox-eyebrow { font-size: 10px; }
  .pbox-player { width: 100%; }
  .pbox-controls { flex-wrap: wrap; }
  .pbox-btns { order: 3; }

  /* ── DOSSIERS ── */
  .dossiers-section { padding: 30px 0; }
  .narratives-section { padding: 30px 0; }
  .dos-wrap { flex-direction: column; gap: 14px; }
  .dos-intro { flex: none; width: 100%; padding: 0 16px; }
  .dos-feat-title { font-size: 1.25rem !important; }
  .dos-feat-summary { font-size: 0.8rem; }
  .dos-spot-row { gap: 8px; padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dos-card   { flex: 0 0 155px; height: 175px; border-radius: 10px; }
  .dos-nav-btns { justify-content: flex-end; gap: 8px; }
  .eyebrow { font-size: 0.7rem; }

  /* ── BOOKS ── */
  .books-section { padding: 30px 5vw; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .book-card__title { font-size: 0.8rem; }

  /* ── STATS ── */
  .stats-section { padding: 28px 0; }
  .hero-stats { flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0 16px; }
  .stats-item { min-width: 105px; flex: 1; }
  .stat-num   { font-size: 1.5rem; }

  /* ── TICKER ── */
  .ticker-inner { padding: 0 12px; }
  .ticker-tabs  { display: none; }
  .ticker-track { gap: 8px; }
  .ticker-card  { min-width: 165px; }

  /* ── CTA ── */
  .cta-layout   { grid-template-columns: 1fr; }
  .cta-img-side { display: none; }
  .cta-text-side{ padding: 34px 18px; }
  .cta-title    { font-size: 22px; }
  .cta-section  { margin-bottom: -34px; }

  /* ── PODCAST BANNER ── */
  .podcast-content{ padding: 32px 18px; }
  .podcast-title  { font-size: 24px; }
  .podcast-person { display: none; }
  .videos-text h2 { font-size: 24px; }
  .videos-2x2 { grid-template-columns: 1fr; }

  /* ── LIST PAGE SHARED ── */
  .dlist-hero-wrap { padding: 14px 12px 0; }
  .dlist-toolbar   { padding: 10px 14px; }
  .dlist-filters   { gap: 6px; }
  .dlist-search input { width: 140px; }
  .dlist-body      { padding: 0 0 48px; }

  /* ── VIDEO FILTER BAR ── */
  .media-filterbar .outer { flex-wrap: nowrap; gap: 6px; padding: 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fb-box { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; flex-shrink: 0; }
  .fb-search input { width: 110px; }
  .page-title-inline { display: none; }

  /* ── FOOTER ── */
  /* ── FOOTER MOBILE ── */
  .footer { padding: 76px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding: 0 18px 36px;
  }
  .footer-col-about {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer-logo-link { display: none; }
  .footer-logo-mobile {
    display: block;
    margin-top: 16px;
    text-align: right;
  }
  .footer-logo-mobile .footer-logo-img { height: 90px; }
  .footer-logo-img { height: 70px; }
  .footer-about { font-size: 12px; line-height: 1.85; }
  .footer-col-title { font-size: 13px; margin-bottom: 12px; }
  .footer-links { gap: 9px; }
  .footer-links a { font-size: 12px; }
  .footer-contact-item { font-size: 11.5px; margin-bottom: 10px; gap: 7px; }
  .footer-socials { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .footer-social-item { font-size: 0; gap: 0; }
  .footer-social-icon-img { width: 38px; height: 38px; border-radius: 10px; }
  .footer-bottom {
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 11px;
    padding: 14px 16px;
  }
}

/* ═══════════════════════════════════════════════
   Responsive — Small Mobile (≤480px)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero { height: clamp(360px, 56vh, 500px); }
  .hero-content { padding: 0; }
  .hero-text    { right: 16px; bottom: 72px; width: min(84vw, 320px); padding: 9px 12px 10px 0; }
  .hero-title   { font-size: 19px; line-height: 1.36; }
  .hero-desc    { font-size: 11.5px; line-height: 1.85; }
  .hero-logo-img{ height: 38px; }
  .hero-nav { bottom: 42px; }
  .section-title{ font-size: 0.95rem; }
  .vbox-card    { flex: 0 0 90px; height: 155px; margin-right: -36px; }
  .vbox-badge   { font-size: 10px; padding: 3px 10px; }
  .dos-card     { flex: 0 0 140px; height: 160px; }
  .pbox-title   { font-size: 14px; }
  .pbox-thumb-wrap { height: 170px; }
  .books-grid   { gap: 8px; }
  .authors-grid { gap: 8px; }
  .book-card__cover { aspect-ratio: 3/4; }
  .stat-num     { font-size: 1.3rem; }
}
