/* ══════════════════════════════════════════════════════════════════
   فلومووی — استایل سایت
   زبان طراحی اپ فلو: تم تیره #101828، گلس‌مورفیسم بدون استروک،
   دکمه‌های سفید، امتیاز زرد، تأکید فیروزه‌ای، فونت IRANYekanX
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #101828;
  --bg-deep: #0C1322;
  --fg: #F9FAFB;
  --fg-2: #D1D5DC;
  --fg-3: #98A2B3;
  --glass-1: rgba(249, 250, 251, 0.05);
  --glass-2: rgba(249, 250, 251, 0.08);
  --glass-3: rgba(249, 250, 251, 0.12);
  --accent: #FFFFFF;
  --accent-ink: #101828;
  --gold: #D08700;
  --gold-2: #FDC700;
  --gold-3: #FFF085;
  --teal: #009689;
  --teal-2: #00D5BE;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --font: 'IRANYekanX', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@font-face {
  font-family: 'IRANYekanX';
  src: url('../font/IRANYekanX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('../font/IRANYekanX-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('../font/IRANYekanX-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('../font/IRANYekanX-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--glass-3); color: var(--fg); }

/* هاله‌های محیطی مثل پس‌زمینه اپ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 85% -8%, rgba(249, 250, 251, 0.05), transparent 62%),
    radial-gradient(640px 480px at -10% 30%, rgba(0, 150, 137, 0.05), transparent 60%),
    radial-gradient(520px 420px at 60% 110%, rgba(249, 250, 251, 0.03), transparent 60%);
}

.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

/* ═══ هدر ═══ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 24, 40, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  transition: background 0.25s ease;
}
.topbar.is-scrolled { background: rgba(12, 19, 34, 0.9); }

.topbar__in {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { display: grid; width: 38px; height: 38px; }
.brand__mark svg { width: 38px; height: 38px; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 700;
  font-size: 18px;
}
.brand__text small {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 3.5px;
  color: var(--fg-3);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--fg); background: var(--glass-1); }

.topbar__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

/* جستجو */
.searchbox { position: relative; width: min(320px, 46vw); }
.searchbox input {
  width: 100%;
  height: 44px;                    /* هم‌قد چیپ حساب کاربری */
  background: var(--glass-1);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 0 44px 0 16px;
  border: 0;
  border-radius: 999px;
  outline: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.searchbox input::placeholder { color: var(--fg-3); }
.searchbox input:focus { background: var(--glass-2); box-shadow: 0 0 0 3px rgba(249, 250, 251, 0.08); }
.searchbox button {
  position: absolute;
  inset-inline-end: 5px;
  top: 50%;
  translate: 0 -50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--fg-2);
  border: 0;
  border-radius: 999px;
}
.searchbox button svg { width: 17px; height: 17px; }

/* پیشنهادهای زنده */
.suggest {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  background: rgba(12, 19, 34, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: var(--shadow);
  max-height: 65vh;
  overflow: auto;
}
.suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
}
.suggest__item:hover, .suggest__item.is-hi { background: var(--glass-1); }
.suggest__item img { width: 38px; height: 56px; object-fit: cover; border-radius: 7px; background: var(--glass-1); }
.suggest__t { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.suggest__s { font-size: 11.5px; color: var(--fg-3); line-height: 1.5; }
.suggest__badge {
  margin-inline-start: auto;
  font-size: 10.5px;
  color: var(--fg-3);
  background: var(--glass-1);
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* همبرگر */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--glass-1);
  border: 0;
  border-radius: 999px;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.burger span + span { margin-top: 4px; width: 12px; margin-inline-start: auto; margin-inline-end: 3px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 17px; margin: 0; }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 17px; margin: 0; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(12, 19, 34, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
}
.drawer[hidden] { display: none; }
.drawer__nav { display: grid; gap: 8px; text-align: center; }
.drawer__nav a { font-size: 21px; font-weight: 600; padding: 12px 28px; border-radius: 999px; }
.drawer__nav a:hover { background: var(--glass-1); }

/* ═══ دکمه‌ها ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(249, 250, 251, 0.35); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: var(--glass-2); color: var(--fg); }
.btn--ghost:hover { background: var(--glass-3); box-shadow: none; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
/* ردیف دکمه‌ی عمومی (watch/404 — نام تاریخی) */
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* چیپ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-1);
  color: var(--fg-2);
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--imdb { color: var(--gold-3); background: rgba(208, 135, 0, 0.14); font-weight: 600; }
.chip--q { color: var(--teal-2); background: rgba(0, 150, 137, 0.14); }
.chip--air { color: var(--teal-2); background: rgba(0, 150, 137, 0.14); font-weight: 600; }
.chip--link:hover { background: var(--glass-3); color: var(--fg); }

/* ═══ اسلایدر قهرمان خانه — کپی ویندوز ۱۱ (محوِ نرم + نویز) ═══
 * پس‌زمینه مثلِ Spotlight/آکریلیکِ ویندوز: بلورِ سنگین + اشباع،
 * دانه‌ی نویز (feTurbulence) و ماسکِ شعاعی — هیچ لبه‌ی کات‌خورده‌ای
 * در هیچ‌یک از چهار سمت دیده نمی‌شود؛ محو به پس‌زمینه‌ی سایت.
 * چیدمان RTL: پنل متن (راست) + ستون کارت‌های بندانگشتی ۱۶:۹ و
 * نوار پیشرفت عمودی (چپِ کارت‌ها). */
.fhx { position: relative; overflow: hidden; padding: 64px 0 56px; }
.fhx__amb {
  position: absolute; inset: 0;
  z-index: 0;
  /* ماسک شعاعی داخلِ خود بخش: هاله کاملاً محو می‌شود پیش از رسیدن
   * به لبه‌ها — هیچ خط کاتی در هیچ سمت دیده نمی‌شود (سبک ویندوز ۱۱) */
  -webkit-mask-image: radial-gradient(ellipse 52% 46% at 50% 46%, #000 40%, rgba(0, 0, 0, .5) 65%, transparent 92%);
  mask-image: radial-gradient(ellipse 52% 46% at 50% 46%, #000 40%, rgba(0, 0, 0, .5) 65%, transparent 92%);
}
.fhx__amb::after {
  content: ""; position: absolute; inset: 0;
  background: var(--bg);
  opacity: .18;
}
.fhx__amb::before {
  /* دانه‌ی نویز ویندوزی — روی همه‌ی لایه‌های هاله */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: .06;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.fhx__amb-l { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(90px) brightness(.58) saturate(1.35); transition: opacity 1.1s ease; }
.fhx__in {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 36px;
  min-height: 410px;
}
.fhx__panel { flex: 1 1 auto; min-width: 0; max-width: 640px; }
.fhx__slide { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fhx__slide[hidden] { display: none; }
.fhx__slide.is-active { animation: fhxFlyIn 675ms cubic-bezier(0.34, 1.46, 0.64, 1) both; }
@keyframes fhxFlyIn {
  from { opacity: 0; transform: translateY(var(--fhx-dir, 48px)); }
  to   { opacity: 1; transform: translateY(0); }
}
.fhx__ttl { margin: 0; font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; line-height: 1.15; }
.fhx__ttl a { color: var(--fg); text-decoration: none; }
.fhx__meta { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 14px; flex-wrap: wrap; }
.fhx__mi { display: inline-flex; align-items: center; gap: 6px; }
.fhx__mi svg { width: 16px; height: 16px; flex: 0 0 auto; }
.fhx__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); opacity: .6; }
.fhx__genres { display: flex; flex-wrap: wrap; gap: 6px; }
.fhx__chip {
  padding: 8px 12px; border-radius: 999px;
  background: var(--glass-2); color: var(--fg);
  font-size: 12px; line-height: 1; transition: background 0.2s;
}
.fhx__chip:hover { background: var(--glass-3); }
.fhx__dsc {
  margin: 0; max-width: 60ch;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--fg-2); font-size: 14px; line-height: 1.7;
}
.fhx__actions { display: flex; gap: 10px; margin-top: 4px; }
.fhx__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 800; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s, background 0.2s;
}
.fhx__btn:hover { border-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22); }
.fhx__btn:active { transform: scale(0.95); }
.fhx__btn-ico {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-ink); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.fhx__btn-ico svg { width: 11px; height: 11px; margin-inline-start: 1px; }
/* ── ستون کارت‌های بندانگشتی (راست) + نوار پیشرفت (چپِ کارت‌ها) ── */
.fhx__thumbs { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; direction: ltr; }
.fhx__stack { position: relative; width: 160px; height: 410px; touch-action: pan-x; }
.fhx__thumb {
  position: absolute; left: 0;
  width: 160px; height: 90px; padding: 0; border: 0;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--glass-2);
  opacity: 0.5;
  transition: none;
  will-change: top, height, opacity;
}
.fhx.is-ready .fhx__thumb {
  transition: height 450ms cubic-bezier(0.34, 1.56, 0.64, 1), top 450ms cubic-bezier(0.34, 1.46, 0.64, 1), width 450ms cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 450ms, opacity 450ms;
}
.fhx__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fhx__thumb:hover { opacity: 1; }
.fhx__thumb.is-active { opacity: 1; border-radius: 16px; cursor: default; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
/* ── نوار پیشرفت عمودی ── */
.fhx__track { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fhx__num { font-size: 12px; color: var(--fg-2); line-height: 1; direction: ltr; }
.fhx__rail { position: relative; width: 4px; height: 304px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.fhx__thumbbar { position: absolute; left: 0; right: 0; top: 0; border-radius: 999px; background: var(--fg); transition: top 450ms cubic-bezier(0.34, 1.36, 0.64, 1), height 450ms cubic-bezier(0.34, 1.36, 0.64, 1); }
@media (max-width: 900px) {
  .fhx { padding: 44px 0 40px; }
  .fhx__in { flex-direction: column-reverse; align-items: stretch; gap: 28px; min-height: 0; }
  .fhx__panel { max-width: none; }
  .fhx__thumbs { justify-content: flex-end; }
  .fhx__rail { height: 260px; }
}
@media (max-width: 560px) {
  .fhx { padding: 30px 0 30px; }
  .fhx__dsc { -webkit-line-clamp: 3; }
  .fhx__track { display: none; }
  .fhx__stack { width: 139px; height: 366px; }
  .fhx__thumb { border-radius: 10px; }
  .fhx__rail { height: 170px; }
}

/* ═══ ریل‌ها ═══ */
.rail { margin: 34px 0 0; }
.rail__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rail__title { margin: 0; font-size: 19px; font-weight: 700; }
.rail__more {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-2);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-1);
  transition: background 0.18s ease, color 0.18s ease;
}
.rail__more svg { width: 15px; height: 15px; }
.rail__more:hover { background: var(--accent); color: var(--accent-ink); }

.rail__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  margin-inline: -2px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 4px), transparent);
  mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 4px), transparent);
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; flex-shrink: 0; }
.rail__track--people > * { flex-shrink: 0; }

/* ═══ کارت پوستر ═══ */
.card { width: 148px; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--glass-1);
  box-shadow: var(--shadow);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease; opacity: 0; }
.card__media img.is-loaded, .card__media img[loading='eager'] { opacity: 1; }

/* نقطه‌های اسلایدر (پیشنهاد امروز) — ۵×۵ / فعال ۱۸×۵ */
.dots { display: flex; align-items: center; gap: 6px; }
.dot {
  width: 5px; height: 5px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s;
}
.dot.is-active { width: 18px; background: #fff; }
.card:hover .card__media img { transform: scale(1.05); }
.card__rating {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(12, 19, 34, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gold-3);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.card__eps {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  background: rgba(12, 19, 34, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--fg-2);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
}
.card__body { display: block; padding: 9px 2px 0; }
.card__title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.card__sub {
  display: block;
  font-size: 11.5px;
  color: var(--fg-3);
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
}
.card:hover .card__title { color: var(--accent); }

/* ═══ گرید ═══ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 20px 14px;
  margin-top: 8px;
}
.grid .card { width: 100%; }

/* ═══ معرفی صفحه اصلی ═══ */
.intro { margin: 46px 0 10px; background: var(--glass-1); border-radius: var(--r-lg); padding: 26px 28px; }
.intro h1 { margin: 0 0 10px; font-size: 21px; font-weight: 700; }
.intro p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.intro__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.intro__chips .chip { font-size: 13px; padding: 6px 15px; }

/* ═══ سربرگ صفحات ═══ */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 22px 0 4px; font-size: 12.5px; color: var(--fg-3); }
.crumbs a:hover { color: var(--fg); }
.crumbs__sep { width: 13px; height: 13px; opacity: 0.55; }
.crumbs [aria-current='page'] { color: var(--fg-2); }

.pagehead { padding: 10px 0 6px; }
.pagehead h1 { margin: 0 0 6px; font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; }
.pagehead p { margin: 0; color: var(--fg-2); font-size: 14.5px; }

/* فیلترها */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.filters label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.filters select {
  font: inherit;
  font-size: 13.5px;
  color: var(--fg);
  background: var(--glass-1);
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.filters select:focus { box-shadow: 0 0 0 3px rgba(249, 250, 251, 0.08); }
.filters option { background: var(--bg-deep); color: var(--fg); }

/* صفحه‌بندی */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 10px; }
.pager__btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  background: var(--glass-1);
  color: var(--fg-2);
  border-radius: 999px;
  font-size: 13.5px;
  transition: background 0.16s ease, color 0.16s ease;
}
.pager__btn:hover { background: var(--glass-3); color: var(--fg); }
.pager__btn.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pager__dots { align-self: center; color: var(--fg-3); }

/* ═══ صفحه جزئیات ═══ */
.detail__hero { position: relative; overflow: clip; }
.detail__bg { position: absolute; inset: 0; }
.detail__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.12); filter: blur(26px) saturate(1.15) brightness(0.62); }
.detail__bgveil { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(16, 24, 40, 0.62) 46%, rgba(16, 24, 40, 0.44)); }
.detail__top { position: relative; padding-top: 8px; }
.detail__main { display: flex; gap: 26px; align-items: flex-end; padding: 26px 0 30px; }
.detail__poster {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.7);
}
.detail__poster img { width: 100%; height: 100%; object-fit: cover; }
.detail__info { padding-bottom: 4px; }
.detail__title { margin: 0; font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; line-height: 1.4; }
.detail__orig { margin: 2px 0 12px; color: var(--fg-2); font-size: 15px; direction: ltr; text-align: right; }
.detail__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail__genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.detail__body { padding-bottom: 20px; }

/* باکس‌های محتوا */
.box { margin-top: 26px; background: var(--glass-1); border-radius: var(--r-lg); padding: 22px 24px; }
.box h2 { margin: 0 0 12px; font-size: 17.5px; font-weight: 700; }
.box .note { margin: 14px 0 0; font-size: 13px; color: var(--fg-3); }
.detail__desc { margin: 0; color: var(--fg-2); font-size: 15px; }

.spec { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 26px; }
.spec__row { display: flex; gap: 12px; padding: 7px 0; }
.spec__row dt { color: var(--fg-3); font-size: 13.5px; flex-shrink: 0; min-width: 78px; }
.spec__row dd { margin: 0; font-size: 14px; }

/* لینک‌های دانلود */
.dlinks { display: flex; flex-wrap: wrap; gap: 10px; }
.dlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-2);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.dlink:hover { background: var(--glass-3); transform: translateY(-1px); }
.dlink b { font-size: 14px; font-weight: 700; color: var(--fg); }
.dlink span { font-size: 12px; color: var(--fg-3); }
.dlink svg { width: 16px; height: 16px; color: var(--teal-2); }
.dlink--4k { background: rgba(0, 150, 137, 0.16); }
.dlink--4k:hover { background: rgba(0, 150, 137, 0.26); }
.dlink--4k b { color: var(--teal-2); }

/* قسمت‌ها */
.seasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.seasons__btn {
  background: var(--glass-1);
  color: var(--fg-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}
.seasons__btn:hover { background: var(--glass-2); }
.seasons__btn.is-active { background: var(--accent); color: var(--accent-ink); }
.episodes { display: none; }
.episodes.is-active { display: grid; gap: 10px; }
.ep { background: var(--glass-1); border-radius: var(--r-md); padding: 14px 16px; }
.ep:hover { background: var(--glass-2); }
.ep__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ep__title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--gold-3); }
.ep__name { font-size: 13px; color: var(--fg-3); }

/* ═══ کارت افراد ═══ */
.person { width: 108px; display: block; text-align: center; }
.person__media {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-inline: auto;
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass-2);
}
.person__media img { width: 100%; height: 100%; object-fit: cover; }
.person__initial { font-size: 26px; font-weight: 700; color: var(--fg-2); }
.person__name {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person__role { display: block; font-size: 11px; color: var(--fg-3); }
.person:hover .person__name { color: var(--accent); }

/* ═══ صفحه شخص ═══ */
.person-hero { background: linear-gradient(to bottom, rgba(249, 250, 251, 0.03), transparent 320px); }
.person-hero__in { padding-top: 8px; }
.person-hero__ava {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass-2);
  margin-bottom: 16px;
}
.person-hero__ava img { width: 100%; height: 100%; object-fit: cover; }
.person-hero__ava .person__initial { font-size: 34px; }
.person-hero__in header { display: flex; gap: 26px; align-items: center; margin-bottom: 10px; }
.person-hero__name { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.person-hero__en { margin: 2px 0 10px; color: var(--fg-2); direction: ltr; text-align: right; }
.person-hero .box { margin-top: 22px; }
.person-bio { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.person-hero .rail { margin-top: 30px; }
.person-hero .grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }

/* ═══ ژانرها ═══ */
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.genre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--glass-1);
  border-radius: var(--r-md);
  padding: 20px 14px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.genre:hover { background: var(--glass-2); transform: translateY(-2px); }
.genre__name { font-size: 15.5px; font-weight: 700; }
.genre__count { font-size: 12px; color: var(--fg-3); }

/* ═══ جستجو ═══ */
.searchform { display: flex; gap: 10px; margin: 18px 0 10px; }
.searchform input {
  flex: 1;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--glass-1);
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  outline: none;
}
.searchform input:focus { background: var(--glass-2); box-shadow: 0 0 0 3px rgba(249, 250, 251, 0.08); }

/* ═══ خالی / ۴۰۴ ═══ */
.empty { text-align: center; padding: 60px 20px; }
.empty p { color: var(--fg-2); margin: 0 0 20px; }
.empty .btn { margin-inline: 4px; }
.empty--big { padding: 90px 20px; }
.nf-code { font-size: 72px; font-weight: 700; color: var(--glass-2); margin: 0; line-height: 1.2; }

/* ═══ درباره ═══ */
.about .btn { margin-top: 6px; }
.about__list { margin: 0; padding: 0; list-style: none; color: var(--fg-2); display: grid; gap: 8px; }
.about__list li { padding-inline-start: 20px; position: relative; }
.about__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal-2);
}

/* ═══ فوتر ═══ */
.footer { margin-top: 60px; background: var(--bg-deep); }
.footer__in {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0 30px;
}
.footer__brand .brand__mark { margin-bottom: 14px; }
.footer__brand p { margin: 0; color: var(--fg-3); font-size: 13.5px; line-height: 2.1; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.footer__col a { color: var(--fg-3); font-size: 13.5px; width: fit-content; transition: color 0.16s ease; }
.footer__col a:hover { color: var(--fg); }
.footer__bar { border-top: 1px solid var(--glass-1); }
.footer__bar p { width: min(1240px, 100% - 32px); margin: 0 auto; padding: 18px 0; color: var(--fg-3); font-size: 12.5px; }

/* ═══ ریسپانسیو ═══ */
@media (max-width: 960px) {
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .searchbox { width: min(300px, 52vw); }
  .detail__main { flex-direction: column; align-items: flex-start; gap: 18px; }
  .detail__poster { width: 160px; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .topbar__in { min-height: 58px; gap: 10px; }
  .brand__text { font-size: 16px; }
  .topbar__end { flex: 1; min-width: 0; gap: 8px; }
  .searchbox { flex: 1; min-width: 0; width: auto; }
  .acctchip { padding: 0 10px; }
  .acctchip b { display: none; }   /* موبایل: فقط آواتار/آیکون — جا برای جستجو */
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .card { width: 100%; }
  .card__title { font-size: 12.5px; }
  .footer__in { grid-template-columns: 1fr; gap: 26px; }
  .intro { padding: 20px; }
  .person { width: 92px; }
  .spec__row { flex-direction: column; gap: 2px; }
  .spec__row dd { font-size: 13px; }
}

/* حرکت کاهش‌یافته */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card__media img { opacity: 1; }
}

/* فوکوس قابل‌مشاهده */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid rgba(249, 250, 251, 0.7);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ═══ صفحه واچ‌پارتی ═══ */
.watchpage { text-align: center; padding: 70px 24px; margin-top: 40px; }
.watchpage__mark { display: inline-grid; margin-bottom: 18px; }
.watchpage__mark svg { width: 74px; height: 74px; }
.watchpage h1 { margin: 0 0 10px; font-size: 24px; }
.watchpage p { color: var(--fg-2); margin: 0 0 8px; }
.watchpage__code { font-size: 15px; }
.watchpage__code b { color: var(--gold-3); letter-spacing: 2px; font-size: 18px; }
.watchpage .hero__actions { justify-content: center; margin-top: 20px; }

/* ════════════════════════════════════════════════════════════════
   جدول پخش هفتگی (wsd) — سبک فلو
   ════════════════════════════════════════════════════════════════ */
.wsd { max-width: 1240px; margin: 44px auto 0; padding: 0 16px; }
.wsd__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.wsd__title { margin: 0; font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; }
.wsd__sub { margin: 4px 0 0; color: var(--fg-3); font-size: 13.5px; }
.wsd__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.wsd__tabs::-webkit-scrollbar { display: none; }
.wsd__tab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 18px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--glass-1); color: var(--fg-2); font-family: inherit; font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.wsd__tab:hover { background: var(--glass-2); color: var(--fg); }
.wsd__tab.is-active { background: var(--accent); color: var(--accent-ink); }
.wsd__tab.is-active .wsd__count { background: rgba(16, 24, 40, 0.14); color: var(--accent-ink); }
.wsd__count { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--glass-2); color: var(--fg-3); }
.wsd__panel { margin-top: 12px; }
/* ریل افقی کارت‌های پوستر — ۱۰ کارت اول در دید، ادامه با اسکرول */
.wsd__track, .wsd__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 4px), transparent);
  mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 4px), transparent);
}
.wsd__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); overflow: visible; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; }
.wsd__track::-webkit-scrollbar { display: none; }
.wsd__card {
  flex: 0 0 140px;                 /* همه کارت‌ها دقیقاً هم‌اندازه */
  min-width: 0;                    /* نام‌های طولاه nowrap کارت را پهن نمی‌کنند */
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  scroll-snap-align: start;
}
@media (max-width: 560px) { .wsd__card { flex-basis: 120px; } }
.wsd__grid .wsd__card { flex: none; min-width: 0; }
.wsd__poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-2);
}
.wsd__poster img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wsd__card:hover .wsd__poster img { transform: scale(1.06); }
.wsd__timebadge {
  position: absolute;
  bottom: 7px;
  inset-inline-start: 7px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(12, 19, 34, 0.86);
  color: var(--gold-3);
  padding: 2px 9px;
  border-radius: 999px;
  direction: ltr;
}
.wsd__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wsd__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wsd__sub { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsd__rate { font-size: 11px; color: var(--gold-3); font-weight: 600; }
.wsd--full .wsd__tabs { flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════
   امشب چی ببینیم؟ — تیکت «سانسِ امشب»
   (کپی مو‌به‌مو nx-ticket--wide با رنگ فلو: بدنه فیروزه‌ای)
   ════════════════════════════════════════════════════════════════ */
.tkt-sec { margin: 46px 0 0; }
.tkt {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  --tkt-ac: var(--teal);
  --tkt-ink: #0C1322;
}
.tkt--wide { grid-template-rows: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.tkt__strip { display: grid; gap: 10px; padding: 18px 0; background: #121212; align-content: center; }
.tkt__row { display: block; overflow: hidden; }
.tkt__track { display: flex; gap: 10px; width: max-content; animation: tktMarquee 46s linear infinite; }
.tkt__row--1 .tkt__track { animation-direction: reverse; animation-duration: 54s; }
.tkt__track img { width: 200px; height: 118px; object-fit: cover; border-radius: 10px; display: block; flex: none; }
.tkt:hover .tkt__track { animation-play-state: paused; }
@keyframes tktMarquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
.tkt__body {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 30px 30px 26px;
  background-color: var(--tkt-ac);
  background-image: radial-gradient(rgb(0 0 0 / .09) 1px, transparent 1.3px);
  background-size: 12px 12px;
}
.tkt__body::before {
  content: "";
  position: absolute;
  top: 22px; bottom: 22px;
  inset-inline: auto;
  inset-inline-end: 0;
  border-top: 0;
  border-inline-end: 3px dotted rgb(0 0 0 / .45);
}
.tkt__body::after {
  content: "";
  position: absolute;
  top: -14px;
  inset-inline: -14px;
  height: 28px;
  background: radial-gradient(circle at 14px 14px, var(--tkt-ink) 13px, transparent 14px) left / 100% 100% no-repeat,
              radial-gradient(circle at calc(100% - 14px) 14px, var(--tkt-ink) 13px, transparent 14px);
  pointer-events: none;
}
.tkt__stamp {
  position: absolute;
  top: 26px;
  inset-inline-end: 20px;
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 2.5px solid rgb(0 0 0 / .55);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: .75;
  transform: rotate(-12deg);
}
.tkt__h { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1.25; padding-inline-end: 96px; }
.tkt__sub { font-weight: 700; font-size: .92rem; opacity: .75; padding-inline-end: 96px; }
.tkt__ex { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 800; }
.tkt__ex i {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--tkt-ink);
  color: var(--tkt-ac);
  font-style: normal;
  font-weight: 900;
  transform: rotate(-2deg);
  transition: opacity .3s, transform .3s;
}
.tkt__ex i.is-out { opacity: 0; transform: rotate(-2deg) translateY(6px); }
.tkt__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--tkt-ink);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  transition: background .15s;
}
.tkt:hover .tkt__go { background: #000; }
.tkt__go svg { width: 18px; height: 18px; }
.tkt__n { margin-top: 12px; text-align: center; font-weight: 800; opacity: .7; font-size: .86rem; }
@media (max-width: 580px) {
  .tkt__track img, .tkt--wide .tkt__track img { width: 132px; height: 78px; }
  .tkt__body { padding: 26px 18px 18px; }
  .tkt__stamp { width: 70px; height: 70px; font-size: .7rem; top: 22px; inset-inline-end: 14px; }
  .tkt__h, .tkt__sub { padding-inline-end: 78px; }
}

/* ════════════════════════════════════════════════════════════════
   پیشنهادِ امروزِ ما (daily) — هم‌عرض بقیه بخش‌ها؛
   بک‌دراپِ بلور، پس‌زمینه‌ی خودِ کارت است و بیرون نمی‌زند.
   ════════════════════════════════════════════════════════════════ */
.daily { margin: 44px 0 0; }
.daily__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.daily__title { margin: 0; font-size: clamp(20px, 2.6vw, 27px); font-weight: 700; }
.daily__dots { display: flex; gap: 7px; }
.daily__slide[hidden] { display: none; }
.daily__slide.is-active { animation: dailyFade .7s ease both; }
@keyframes dailyFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.daily__card {
  position: relative;
  overflow: hidden;                 /* بک‌دراپ هرگز از کارت بیرون نمی‌زند */
  display: flex; gap: 26px; align-items: stretch;
  border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow);
}
.daily__bgwrap { position: absolute; inset: -70px; pointer-events: none; }
.daily__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(34px) brightness(0.5) saturate(1.25);
}
.daily__poster, .daily__info, .daily__chips, .daily__name, .daily__genres, .daily__desc, .daily__actions { position: relative; z-index: 1; }
.daily__poster { flex: 0 0 auto; width: 170px; border-radius: 14px; overflow: hidden; align-self: center; }
.daily__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily__info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.daily__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.daily__name { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.4; }
.daily__name a { color: var(--fg); text-decoration: none; }
.daily__genres { margin: 0 0 10px; color: var(--fg-3); font-size: 13px; }
.daily__desc { margin: 0 0 18px; color: var(--fg-2); font-size: 14.5px; line-height: 2; }
.daily__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ════════════════════════════════════════════════════════════════
   حساب کاربری / ورود / ثبت‌نام
   ════════════════════════════════════════════════════════════════ */
.wrap--narrow { max-width: 480px; }
.authcard { background: var(--glass-1); border-radius: var(--r-lg); padding: 30px 28px; margin: 30px 0 40px; }
.authcard__title { margin: 0 0 6px; font-size: 23px; font-weight: 700; }
.authcard__sub { margin: 0 0 20px; color: var(--fg-3); font-size: 13.5px; }
.authcard__links { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 13px; }
.authcard__links a { color: var(--fg-3); text-decoration: none; }
.authcard__links b { color: var(--fg); }
.authcard__links a:hover b { color: var(--teal-2); }
.authcard__note { margin: 14px 0 0; font-size: 11.5px; color: var(--fg-3); }
.authcard__note a { color: var(--fg-2); }
.authcard__ref { margin: 0 0 10px; font-size: 12.5px; color: var(--teal-2); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form h2 { margin: 0 0 4px; font-size: 16.5px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12.5px; color: var(--fg-2); }
.field input, .field textarea {
  background: var(--glass-2); border: 0; border-radius: 11px; color: var(--fg);
  padding: 12px 14px; font-family: inherit; font-size: 14px; outline: none;
}
.field input:focus, .field textarea:focus { background: var(--glass-3); }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-2); cursor: pointer; }
.check input { accent-color: var(--fg); width: 15px; height: 15px; }
.btn--wide { width: 100%; justify-content: center; }
.btn--danger { background: #B4342E; color: #fff; }
.formerr { background: rgba(180, 52, 46, 0.14); color: #FFB4B0; border-radius: 11px; padding: 11px 14px; font-size: 13px; margin: 0 0 14px; }
.formok { background: rgba(0, 150, 137, 0.14); color: #8FF0E4; border-radius: 11px; padding: 11px 14px; font-size: 13px; margin: 0 0 14px; }
.inlineform { display: inline; }

/* هدر: چیپ حساب */
.acctbtns { display: flex; align-items: center; }
.acctchip {
  display: flex; align-items: center; gap: 9px; padding: 0 12px; border-radius: 999px;
  height: 44px;                    /* هم‌قد باکس جستجو */
  background: var(--glass-1); color: var(--fg); text-decoration: none; font-size: 12.5px;
  transition: background 0.2s; white-space: nowrap; flex: 0 0 auto;
}
.acctchip:hover { background: var(--glass-2); }
.acctchip svg { width: 16px; height: 16px; }
.acctchip b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
/* آواتار داخل چیپ: سمت چپ (row-reverse در RTL) + اندازه ثابت */
.acctchip:not(.acctchip--login) { flex-direction: row-reverse; }
.acctchip .uava { width: 30px; height: 30px; font-size: 13px; }
.uava {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; overflow: hidden; background: var(--glass-3); color: var(--fg);
  font-weight: 700; font-size: 14px; flex: 0 0 auto;
}
.uava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uava--txt { background: linear-gradient(135deg, rgba(0, 213, 190, 0.25), rgba(208, 135, 0, 0.25)); }
.uava--big { width: 74px; height: 74px; font-size: 30px; }

/* پنل کاربر */
.ucheader { display: flex; align-items: center; gap: 20px; padding: 26px 0 8px; flex-wrap: wrap; }
.ucheader__info { flex: 1; min-width: 220px; }
.ucheader__name { margin: 0 0 3px; font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ucheader__user { margin: 0 0 8px; color: var(--fg-3); font-size: 13px; }
.ucheader__bio { margin: 0 0 10px; color: var(--fg-2); font-size: 13.5px; max-width: 640px; }
.ucheader__stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--fg-3); }
.ucheader__stats b { color: var(--fg); font-size: 13.5px; }
.ucheader__since { margin: 8px 0 0; font-size: 11.5px; color: var(--fg-3); }
.ucheader__end { display: flex; gap: 9px; align-items: center; }
.vbadge { color: var(--teal-2); width: 17px; height: 17px; display: inline-flex; }
.vbadge svg { width: 100%; height: 100%; }
.acctabs { display: flex; gap: 7px; overflow-x: auto; border-bottom: 1px solid var(--glass-2); margin: 20px 0 20px; scrollbar-width: none; }
.acctabs::-webkit-scrollbar { display: none; }
.acctabs__tab {
  flex: 0 0 auto; padding: 10px 17px; border-radius: 12px 12px 0 0; text-decoration: none;
  color: var(--fg-3); font-size: 13.5px; border-bottom: 2px solid transparent;
}
.acctabs__tab:hover { color: var(--fg); background: var(--glass-1); }
.acctabs__tab.is-active { color: var(--fg); border-bottom-color: var(--accent); background: var(--glass-1); }
.acctsection { padding-bottom: 30px; }
.sectiontitle { margin: 0 0 14px; font-size: 18px; }
.cwgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cwcard { background: var(--glass-1); border-radius: var(--r-md); overflow: hidden; }
.cwcard__media { position: relative; display: block; aspect-ratio: 16 / 9; }
.cwcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cwcard__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12, 19, 34, 0.42);
}
.cwcard__play svg { width: 44px; height: 44px; color: #fff; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4)); }
.cwcard__body { padding: 12px 14px 14px; }
.cwcard__title { display: block; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.cwcard__title:hover { color: var(--teal-2); }
.cwcard__ep { margin: 0 0 9px; font-size: 11.5px; color: var(--fg-3); }
.cwcard__bar { height: 4px; border-radius: 99px; background: var(--glass-2); overflow: hidden; }
.cwcard__bar span { display: block; height: 100%; background: linear-gradient(to left, var(--teal-2), var(--teal)); }
.plgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.plcard {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; text-decoration: none;
  background: var(--glass-1); border-radius: var(--r-md); color: var(--fg);
}
.plcard:hover { background: var(--glass-2); }
.plcard--div { cursor: default; }
.plcard__cover { width: 46px; height: 46px; border-radius: 12px; background: var(--glass-2); display: grid; place-items: center; overflow: hidden; }
.plcard__cover svg { width: 22px; height: 22px; color: var(--fg-3); }
.plcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.plcard__name { font-size: 14px; }
.plcard__meta { font-size: 11.5px; color: var(--fg-3); }
.plcard__bio { font-size: 11.5px; color: var(--fg-3); line-height: 1.7; }
.notiflist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.notif { display: flex; gap: 13px; padding: 14px 16px; background: var(--glass-1); border-radius: var(--r-md); }
.notif__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--glass-2); }
.notif__icon svg { width: 18px; height: 18px; color: var(--teal-2); }
.notif__body b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.notif__body p { margin: 0 0 5px; font-size: 12.5px; color: var(--fg-2); line-height: 1.8; }
.notif__body time { font-size: 11px; color: var(--fg-3); }
.acctsection--settings { display: grid; gap: 16px; max-width: 720px; }
.form--danger h2 { color: #FFB4B0; }
.pagehead { padding: 20px 0 4px; }
.pagehead h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.pagehead__sub { margin: 0; color: var(--fg-3); font-size: 13.5px; line-height: 2; }

/* ════════════════════════════════════════════════════════════════
   صفحه تماشا — پلیر
   ════════════════════════════════════════════════════════════════ */
.watchpage { padding-bottom: 20px; }
.player { position: relative; }
.player__stage {
  position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%;
  background: #000; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
}
.player__video { width: 100%; height: 100%; display: block; background: #000; }
.player__video::-webkit-media-controls { display: none !important; }
.player:fullscreen .player__stage { border-radius: 0; max-height: none; aspect-ratio: auto; height: 100%; }
.player__bigplay {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 6;
  background: rgba(12, 19, 34, 0.4);
}
.player__bigplay button {
  width: 76px; height: 76px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(249, 250, 251, 0.94); color: #101828; display: grid; place-items: center;
  transition: transform 0.15s;
}
.player__bigplay button:hover { transform: scale(1.06); }
.player__bigplay button svg { width: 32px; height: 32px; }
.player__prep { position: absolute; inset: 0; display: grid; place-items: center; }
.player__prep > div { text-align: center; background: rgba(12, 19, 34, 0.72); padding: 26px 40px; border-radius: 16px; }
.player__prep p { margin: 12px 0 4px; font-size: 14.5px; color: var(--fg); }
.player__prep small { color: var(--fg-3); font-size: 11.5px; }
.spinner {
  width: 36px; height: 36px; border-radius: 999px; margin: 0 auto;
  border: 3px solid var(--glass-3); border-top-color: var(--accent);
  animation: fm-spin 0.9s linear infinite; display: inline-block;
}
@keyframes fm-spin { to { transform: rotate(360deg); } }
.player__error { position: absolute; inset: 0; display: grid; place-items: center; }
.player__error > div { text-align: center; background: rgba(12, 19, 34, 0.8); padding: 26px 40px; border-radius: 16px; }
.player__error p { margin: 0 0 14px; color: #FFB4B0; font-size: 14px; }
.player__ui {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(to top, rgba(12, 19, 34, 0.82), transparent 30%, transparent 68%, rgba(12, 19, 34, 0.55));
  transition: opacity 0.25s;
}
.player.is-idle .player__ui { opacity: 0; pointer-events: none; }
.player__top { display: flex; align-items: center; gap: 10px; }
.player__heading { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.player__heading b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__heading span { font-size: 12px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__center { display: flex; align-items: center; justify-content: center; gap: 34px; }
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; min-width: 38px; padding: 0 9px; border: 0; border-radius: 11px; cursor: pointer;
  background: rgba(12, 19, 34, 0.45); color: var(--fg); font-family: inherit; font-size: 12.5px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.1s;
}
.pbtn:hover { background: rgba(12, 19, 34, 0.75); }
.pbtn:active { transform: scale(0.94); }
.pbtn svg { width: 19px; height: 19px; }
.pbtn--lg svg { width: 27px; height: 27px; }
.pbtn--xl { width: 62px; height: 62px; border-radius: 999px; background: rgba(249, 250, 251, 0.92); color: #101828; }
.pbtn--xl:hover { background: #F9FAFB; }
.pbtn--xl svg { width: 26px; height: 26px; }
.pbtn--next span { font-size: 12px; }
.player__bottom { display: flex; flex-direction: column; gap: 6px; }
.player__seek { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; }
.seek__buf, .seek__fill {
  position: absolute; inset-inline: 0; top: 8px; height: 4px; border-radius: 99px;
}
.seek__buf { background: rgba(249, 250, 251, 0.22); width: 0; }
.seek__fill { background: #F9FAFB; width: 0; }
.seek__knob {
  position: absolute; top: 9px; width: 13px; height: 13px; border-radius: 999px;
  background: #F9FAFB; transform: translate(50%, -50%); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); z-index: 2;
}
[dir='rtl'] .seek__knob { transform: translate(50%, -50%); }
.seek__input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: pointer; -webkit-appearance: none; appearance: none; direction: ltr;
}
.player__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.player__left, .player__right { display: flex; align-items: center; gap: 6px; }
.player__time { font-size: 12px; color: var(--fg-2); direction: ltr; white-space: nowrap; }
.vol { display: flex; align-items: center; gap: 5px; }
.vol input[type='range'] { width: 74px; accent-color: #F9FAFB; direction: ltr; }
.pmenu { position: relative; }
.pmenu__pop {
  position: absolute; bottom: 46px; inset-inline-end: 0; min-width: 150px; max-height: 46vh; overflow-y: auto;
  background: rgba(16, 24, 40, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 14px; padding: 6px; display: grid; gap: 2px; z-index: 10;
  box-shadow: var(--shadow);
}
.pmenu__pop button {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; border: 0; border-radius: 9px;
  background: transparent; color: var(--fg-2); font-family: inherit; font-size: 12.5px; cursor: pointer; text-align: right; width: 100%;
}
.pmenu__pop button:hover { background: var(--glass-2); color: var(--fg); }
.pmenu__pop button.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pmenu__pop--subs { min-width: 220px; }
.pmenu__note { padding: 10px 13px; font-size: 11.5px; color: var(--fg-3); }
.pmenu__delay { border-top: 1px solid var(--glass-2); margin-top: 4px; padding: 9px 13px 6px; display: grid; gap: 7px; }
.pmenu__delay b { font-size: 11px; color: var(--fg-3); font-weight: 500; }
.pmenu__delay div { display: flex; gap: 6px; }
.pmenu__delay button { padding: 6px 11px; font-size: 11px; }
.player__resume {
  position: absolute; inset: 0; z-index: 7; display: grid; place-items: center;
  background: rgba(12, 19, 34, 0.72);
}
.player__resume > div { text-align: center; background: rgba(16, 24, 40, 0.9); padding: 22px 34px; border-radius: 16px; }
.player__resume p { margin: 0 0 14px; font-size: 14.5px; }
.player__resume > div > div { display: flex; gap: 9px; }
.player__queue {
  position: absolute; top: 0; inset-inline-end: 0; height: 100%; width: min(340px, 92vw); z-index: 8;
  background: rgba(16, 24, 40, 0.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.queue__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.queue__head b { font-size: 15px; }
.queue__list { overflow-y: auto; display: grid; gap: 5px; }
.queue__item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  text-decoration: none; color: var(--fg-2); font-size: 12.5px;
}
.queue__item:hover { background: var(--glass-2); color: var(--fg); }
.queue__item.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.queue__num { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--glass-2); font-size: 11px; }
.queue__item.is-active .queue__num { background: rgba(16, 24, 40, 0.15); }
.queue__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue__haslinks { flex: 0 0 auto; font-size: 10px; color: var(--teal-2); }
.player__ripple {
  position: absolute; top: 50%; width: 120px; height: 120px; border-radius: 999px; z-index: 4;
  background: rgba(249, 250, 251, 0.16); transform: translateY(-50%) scale(0.5);
  animation: fm-ripple 0.6s ease-out forwards; pointer-events: none;
}
.player__ripple--right { inset-inline-end: 60px; }
.player__ripple--left { inset-inline-start: 60px; }
@keyframes fm-ripple { to { transform: translateY(-50%) scale(1.5); opacity: 0; } }
.player.is-buffering .player__stage::after {
  content: ''; position: absolute; top: 50%; inset-inline-start: 50%; width: 34px; height: 34px;
  margin: -17px 0 0 -17px; border-radius: 999px; z-index: 5;
  border: 3px solid var(--glass-3); border-top-color: #F9FAFB;
  animation: fm-spin 0.9s linear infinite;
}
.watchmeta { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin: 18px 0 6px; }
.watchmeta__title { margin: 0 0 10px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; }
.watchmeta__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.watchmeta__desc { margin: 0 0 14px; color: var(--fg-2); font-size: 13.5px; line-height: 2; max-width: 760px; }
.watchmeta__actions { display: flex; gap: 9px; flex-wrap: wrap; }
.watchmeta__nav { display: flex; gap: 9px; flex-wrap: wrap; }
.favbtn.is-on { background: rgba(0, 150, 137, 0.16); color: var(--teal-2); border-color: transparent; }
.favbtn.is-on svg path { fill: var(--teal-2); }

@media (max-width: 860px) {
  .daily__card { flex-direction: column; gap: 18px; }
  .daily__poster { width: 130px; }
  .player__center { gap: 22px; }
  .player__stage { border-radius: 13px; }
  .form__row2 { grid-template-columns: 1fr; }
  .ucheader { flex-direction: column; align-items: flex-start; }
  .watchmeta { flex-direction: column; }
}
@media (max-width: 560px) {
  .player__row { gap: 4px; }
  .player__left .pbtn[data-p-back10], .player__time, .vol input[type='range'] { display: none; }
  .player__heading span { display: none; }
}

/* دکمه کوچک + سرِبرگ قسمت با دکمه تماشا */
.btn--sm { height: 32px; padding: 0 13px; font-size: 12px; border-radius: 10px; flex: 0 0 auto; }
.ep__head { align-items: center; }
.player:fullscreen .player__queue { top: auto; bottom: 0; height: 70%; }

/* ════════════════════════════════════════════════════════════════
   امشب چی ببینیم؟ (tonight) — کپی مو‌به‌موی farsanime.ir/tonight
   کلاس‌ها و چیدمان ۱:۱ با nx-tn2 / nx-tnsec / nx-tnb / nx-tns /
   nx-card فارس‌انیمه؛ فقط پالت رنگ با متغیرهای فلو ترجمه شده
   (--ac → teal-2، --gold → زرد IMDb، --s* → glass، --tx* → fg).
   ════════════════════════════════════════════════════════════════ */

/* ── قهرمان: امشب، حالت چیه؟ (nx-tn2) ─────────────────────────── */
.tn2 { position: relative; overflow: hidden; isolation: isolate; padding: 34px 0 46px; }
.tn2__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tn2__bg img { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) saturate(1.05); opacity: 0; transition: opacity .8s; }
.tn2__bg img.is-on { opacity: .26; }
.tn2__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(16, 24, 40, .7) 50%, rgba(16, 24, 40, .82)); }
.tn2__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tn2__kick { display: flex; align-items: center; gap: 10px; color: var(--teal-2); font-weight: 800; font-size: .9rem; margin: 0; }
.tn2__kick i { width: 28px; height: 2px; border-radius: 2px; background: var(--teal-2); flex: none; }
.tn2 h1 { margin-top: 8px; margin-bottom: 0; font-size: clamp(34px, 5vw, 62px); font-weight: 900; line-height: 1.2; color: var(--fg); }
.tn2 h1 em { font-style: normal; color: var(--teal-2); }
.tn2__lead { margin: 8px 0 0; color: var(--fg-2); font-size: 1rem; }
.tn2__search { margin-top: 20px; width: min(560px, 100%); height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 16px; background: var(--glass-1); border: 1px solid rgba(249, 250, 251, .12); color: var(--fg-3); font: inherit; font-size: .92rem; }
.tn2__search svg { color: var(--teal-2); flex: none; width: 18px; height: 18px; }
.tn2__search:hover { border-color: var(--fg-3); }
.tn2__search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font: inherit; font-size: .92rem; }
.tn2__search input::placeholder { color: var(--fg-3); }
.tn2__moods { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
.tn2__moods button { position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 4px 0; background: none; border: 0; font: inherit; text-align: right; cursor: pointer; color: var(--fg-3); transition: color .2s; }
.tn2__moods button span { width: 22px; flex: none; font-size: .78rem; font-weight: 700; color: var(--fg-3); }
.tn2__moods button b { font-size: clamp(20px, 2.3vw, 30px); font-weight: 900; line-height: 1.45; transition: color .2s, transform .25s cubic-bezier(.22, .61, .36, 1); }
.tn2__moods button small { font-size: .84rem; color: var(--fg-2); opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .25s cubic-bezier(.22, .61, .36, 1); }
.tn2__moods button:hover b { color: var(--fg-2); }
.tn2__moods button[aria-selected="true"] b { color: var(--fg); }
.tn2__moods button[aria-selected="true"] small { opacity: 1; transform: none; }
.tn2__moods button[aria-selected="true"]::before { content: ""; position: absolute; inset-inline-start: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--teal-2); }

/* ── صحنه‌ی کارت‌ها (ستون دوم قهرمان) ─────────────────────────── */
.tn2__stage { display: grid; justify-items: center; text-align: center; }
.tn2__stack { position: relative; width: 100%; height: 400px; }
.tn2__card { position: absolute; top: 0; left: 50%; width: 252px; aspect-ratio: 2 / 3; margin-left: -126px; border-radius: 18px; overflow: hidden; background: var(--glass-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .5s; }
.tn2__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn2__card.is-a { z-index: 3; }
.tn2__card.is-b { z-index: 1; transform: translateX(-34%) rotate(-7deg) scale(.86); opacity: .55; pointer-events: none; }
.tn2__card.is-c { z-index: 2; transform: translateX(34%) rotate(7deg) scale(.86); opacity: .55; pointer-events: none; }
.tn2__stack.is-in .is-a { animation: tn2In .55s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes tn2In { from { transform: translateY(26px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.tn2__prog { width: 252px; height: 3px; margin-top: 14px; border-radius: 3px; background: rgba(249, 250, 251, .12); overflow: hidden; }
.tn2__prog i { display: block; width: 0; height: 100%; background: var(--teal-2); }
.tn2__thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tn2__thumbs button { width: 40px; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--glass-2); opacity: .5; cursor: pointer; transition: opacity .2s, transform .2s; }
.tn2__thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn2__thumbs button:hover { opacity: .85; }
.tn2__thumbs button[aria-current="true"] { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--teal-2); }
.tn2__lbl { margin: 16px 0 0; color: var(--teal-2); font-weight: 800; font-size: .82rem; }
.tn2__t { display: block; margin-top: 2px; color: var(--fg); font-size: 1.45rem; font-weight: 900; line-height: 1.4; max-width: 30ch; }
.tn2__t:hover { color: var(--teal-2); }
.tn2__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; color: var(--fg-2); font-size: .86rem; }
.tn2__meta b { color: var(--gold-2); font-weight: 800; direction: ltr; }
.tn2__acts { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.tn2__acts .btn, .tn2__acts .btn--ghost { height: 44px; padding: 0 18px; border-radius: 99px; font-weight: 800; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.tn2__acts .btn--ghost { background: var(--glass-2); border: 0; }
.tn2__rnd { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--teal-2); font: inherit; font-weight: 800; font-size: .86rem; cursor: pointer; }
.tn2__rnd svg { width: 15px; height: 15px; }
.tn2__rnd:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ── سربرگ سکشن‌ها (nx-tnsec) ──────────────────────────────────── */
.tnsec { margin-block: 56px; }
.tnsec__h { display: grid; gap: 6px; margin-bottom: 20px; }
.tnsec__h > span { display: flex; align-items: center; gap: 10px; color: var(--teal-2); font-weight: 800; font-size: .86rem; }
.tnsec__h > span::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--teal-2); }
.tnsec__h h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: var(--fg); line-height: 1.3; }
.tnsec__h p { margin: 0; color: var(--fg-2); font-size: .94rem; }

/* ── ۰۱ جمله را کامل کن (nx-tnb) ───────────────────────────────── */
.tnb { position: relative; padding: clamp(18px, 3vw, 34px); border-radius: 24px; background: var(--glass-1); border: 1px solid rgba(249, 250, 251, .07); }
.tnb__sentence { position: relative; margin: 0; font-size: clamp(19px, 2.4vw, 32px); font-weight: 800; line-height: 2.2; color: var(--fg); }
.tnb__sel { display: inline-block; position: relative; margin: 0 3px; }
.tnb__sel select { -webkit-appearance: none; appearance: none; max-width: 100%; padding: 0 2px 2px; border: 0; border-bottom: 2px dashed rgba(0, 213, 190, .65); border-radius: 0; background: transparent; color: var(--teal-2); font: inherit; line-height: 1.4; cursor: pointer; text-align: center; }
.tnb__sel select:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 4px; border-radius: 4px; }
.tnb__sel.is-set select { border-bottom-style: solid; }
.tnb__sel option { background: #1B2A44; color: var(--fg); font-size: 16px; }
.tnb__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.tnb__chips button { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(249, 250, 251, .12); background: transparent; color: var(--fg-2); font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tnb__chips button:hover { color: var(--fg); border-color: var(--fg-3); }
.tnb__chips button[aria-pressed="true"] { background: rgba(0, 213, 190, .12); color: var(--teal-2); border-color: var(--teal-2); }
.tnb__chips .tnb__reset { border-style: dashed; }
.tnb__count { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 16px; padding-top: 18px; border-top: 1px solid rgba(249, 250, 251, .07); }
.tnb__count b { font-size: clamp(30px, 4vw, 46px); font-weight: 900; color: var(--fg); line-height: 1; }
.tnb__count span { color: var(--fg-2); font-weight: 700; }
.tnb__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 22px 16px; transition: opacity .2s; }
.tnb.is-busy .tnb__grid { opacity: .45; }
.tnb__more { display: flex; margin: 18px auto 0; }
.tnb__empty { margin: 18px 0 0; color: var(--fg-3); font-size: .95rem; text-align: center; }

/* ── ۰۲ از کجا شروع کنم؟ (nx-tns) ──────────────────────────────── */
.tns__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tns__tabs button { height: 42px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--glass-2); color: var(--fg); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
.tns__tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.tns__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.tns__steps::before { content: ""; position: absolute; top: 13px; inset-inline: 8%; border-top: 2px dashed rgba(0, 213, 190, .55); }
.tns__steps a { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--fg); }
.tns__steps em { position: relative; z-index: 1; padding: 2px 12px; border-radius: 99px; background: var(--teal-2); color: #062722; font-style: normal; font-weight: 900; font-size: .78rem; line-height: 1.8; }
.tns__img { width: 100%; margin-top: 10px; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--glass-2); transition: transform .25s cubic-bezier(.22, .61, .36, 1); }
.tns__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tns__steps a:hover .tns__img { transform: translateY(-4px); }
.tns__steps b { margin-top: 6px; color: var(--fg); font-weight: 800; font-size: .95rem; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tns__steps small { color: var(--fg-3); font-size: .78rem; }

/* ── کارت نتیجه (nx-card) ──────────────────────────────────────── */
.tnc { position: relative; min-width: 0; }
.tnc__media { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--glass-3), var(--glass-1)); isolation: isolate; }
.tnc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22, .61, .36, 1), filter .3s; }
.tnc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent 42%); opacity: .9; pointer-events: none; }
.tnc:hover .tnc__media img { transform: scale(1.06); }
.tnc__top { position: absolute; top: 8px; inset-inline: 8px; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tnc__bottom { position: absolute; bottom: 8px; inset-inline: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.tnc__body { padding: 9px 2px 0; }
.tnc__title { margin: 0; font-size: .95rem; font-weight: 800; line-height: 1.6; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tnc__title a:hover { color: var(--teal-2); }
.tnc__meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; color: var(--fg-3); font-size: .78rem; font-weight: 600; line-height: 1.7; }
.tnc__meta span:first-child { color: var(--teal-2); }
.tnc__imdb { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 7px 0 8px; border-radius: 7px; background: rgba(10, 10, 10, .74); color: #fff; font-size: .78rem; font-weight: 900; direction: ltr; }
.tnc__imdb b { background: #F5C518; color: #000; font-size: .62rem; font-weight: 900; padding: 1px 4px; border-radius: 4px; letter-spacing: .3px; }
.tnc__live { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: rgba(10, 10, 10, .72); color: #6ee7a4; font-size: .72rem; font-weight: 800; }
.tnc__live i { width: 6px; height: 6px; border-radius: 50%; background: #3cc97a; box-shadow: 0 0 0 0 rgba(60, 201, 122, .6); animation: tnPing 1.8s infinite; }
@keyframes tnPing { 70% { box-shadow: 0 0 0 8px rgba(60, 201, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 201, 122, 0); } }
.tnc__pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: rgba(12, 12, 12, .78); color: #fff; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.tnc__pill--type { background: var(--teal-2); color: #062722; }
.tnc__pill--ep { background: rgba(249, 250, 251, .92); color: #111; }

/* ── ریسپانسیو — مو‌به‌موی فارس‌انیمه ───────────────────────────── */
@media (max-width: 980px) {
  .tn2 { padding: 24px 0 34px; }
  .tn2__in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tn2__intro { text-align: center; }
  .tn2__kick { justify-content: center; }
  .tn2 h1 { font-size: clamp(30px, 8vw, 42px); }
  .tn2__search { margin-inline: auto; height: 50px; }
  .tn2__moods { display: flex; gap: 8px; margin: 18px -16px 0; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(to left, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to left, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
  .tn2__moods::-webkit-scrollbar { display: none; }
  .tn2__moods li { flex: none; scroll-snap-align: center; }
  .tn2__moods button { height: 40px; padding: 0 16px; border-radius: 99px; background: var(--glass-2); color: var(--fg-2); align-items: center; }
  .tn2__moods button span, .tn2__moods button small { display: none; }
  .tn2__moods button b { font-size: .92rem; font-weight: 800; }
  .tn2__moods button[aria-selected="true"] { background: var(--teal-2); }
  .tn2__moods button[aria-selected="true"] b { color: #062722; }
  .tn2__moods button[aria-selected="true"]::before { display: none; }
  .tn2__stack { height: 312px; }
  .tn2__card { width: 196px; margin-left: -98px; border-radius: 14px; }
  .tn2__prog { width: 196px; }
  .tn2__t { font-size: 1.25rem; }
}
@media (max-width: 900px) {
  .tnsec { margin-block: 38px; }
  .tnb { border-radius: 20px; }
  .tnb__sentence { line-height: 2.3; }
  .tnb__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 0 4px 4px; }
  .tnb__chips::-webkit-scrollbar { display: none; }
  .tnb__chips button { flex: none; }
  .tns__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tns__tabs button { flex: none; }
  .tns__steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .tns__steps::-webkit-scrollbar { display: none; }
  .tns__steps::before { inset-inline: 16px; }
  .tns__steps li { flex: none; width: 150px; scroll-snap-align: start; }
  .tnb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .tnc__title { font-size: .84rem; }
  .tnc__meta span:nth-child(3) { display: none; }
}
