/* ============================================================
   تیتانو گیم — شبکهٔ تیتانو (کامیونیتی)
   پردهٔ سوم سایت: جایی که بازیکن‌ها سیگنال می‌فرستند.
   زبان بصری: شیشهٔ تیره + خطوط فرکانس + هاله‌های رنگی
   ============================================================ */

.net {
  --net-line: rgba(255, 255, 255, 0.09);
  --net-card: rgba(11, 8, 22, 0.56);
  --net-card-2: rgba(9, 6, 19, 0.78);
  --net-hot: var(--accent);

  position: fixed;
  inset: 0;
  z-index: 34;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(1.02);
  transition: opacity 0.65s ease, transform 0.9s cubic-bezier(0.22, 1, 0.28, 1), visibility 0.65s;
  overflow: hidden;
}
.net.is-in { opacity: 1; visibility: visible; transform: none; }

/* بوم را با width/height صریح تمام‌صفحه می‌کنیم؛ canvas یک عنصر جایگزین‌شده است
   و inset: 0 تنهایی اندازهٔ ذاتی ۳۰۰×۱۵۰ را نگه می‌دارد. */
.net__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.net__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 4%, color-mix(in srgb, var(--net-hot) 16%, transparent), transparent 58%),
    radial-gradient(100% 80% at 8% 92%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 62%),
    linear-gradient(to bottom, rgba(4, 2, 10, 0.72), rgba(4, 2, 10, 0.9));
}
.net__aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 62%;
  pointer-events: none; opacity: 0.5; filter: blur(40px);
  background:
    conic-gradient(from 210deg at 30% 0%, transparent, color-mix(in srgb, var(--accent) 30%, transparent), transparent 40%),
    conic-gradient(from 20deg at 72% 0%, transparent, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 44%);
  animation: netAurora 26s ease-in-out infinite alternate;
}
@keyframes netAurora {
  0% { transform: translate3d(-3%, 0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate3d(4%, 3%, 0) scale(1.12); opacity: 0.62; }
}

/* ------------------------- نوار بالا ------------- */
.net__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(10px, 1.4vw, 18px) clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--net-line);
  background: linear-gradient(to bottom, rgba(6, 3, 14, 0.86), rgba(6, 3, 14, 0.32));
  backdrop-filter: blur(14px);
}
.net__back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font: inherit; font-size: 13.5px; color: var(--ink-dim);
  border: 1px solid var(--net-line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.net__back:hover { color: var(--ink); border-color: var(--edge-hot); background: rgba(255, 255, 255, 0.07); transform: translateX(3px); }

.net__title {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; letter-spacing: -0.2px;
  margin-inline-end: auto;
}
.net__title small {
  font-size: 11.5px; font-weight: 400; color: var(--ink-faint);
  padding-inline-start: 10px; border-inline-start: 1px solid var(--net-line);
}
.net__mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.net__mark span {
  width: 3px; border-radius: 3px; background: var(--net-hot);
  box-shadow: 0 0 12px var(--net-hot);
  animation: netBars 1.4s ease-in-out infinite;
}
.net__mark span:nth-child(1) { height: 8px; animation-delay: 0s; }
.net__mark span:nth-child(2) { height: 17px; animation-delay: 0.18s; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.net__mark span:nth-child(3) { height: 11px; animation-delay: 0.34s; }
@keyframes netBars { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

.net__pulse { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-dim); }
.net__pulse b { color: var(--ink); }
.net__beacon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--net-line); background: rgba(255, 255, 255, 0.03);
}
.net__beacon i {
  width: 7px; height: 7px; border-radius: 50%; background: #38e08a;
  box-shadow: 0 0 10px #38e08a; animation: netBeacon 2.2s ease-in-out infinite;
}
@keyframes netBeacon { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ------------------------- نوار خبرها ------------- */
.net__ticker {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 16px;
  padding: 8px clamp(16px, 2.2vw, 30px);
  border-bottom: 1px solid var(--net-line);
  background: rgba(8, 5, 18, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
  font-size: 12.5px; color: var(--ink-dim);
  white-space: nowrap;
}
.net__ticker::before {
  content: "زنده";
  flex: 0 0 auto;
  padding: 3px 9px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; color: #12030a;
  background: var(--net-hot);
  box-shadow: 0 0 16px color-mix(in srgb, var(--net-hot) 60%, transparent);
}
.ticker__track {
  display: inline-flex; gap: 34px; white-space: nowrap; width: max-content;
  animation: netTicker 46s linear infinite; will-change: transform;
}
.net__ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 7px; }
.ticker__item b { color: var(--ink); font-weight: 600; }
.ticker__item span[aria-hidden] { color: var(--net-hot); }
@keyframes netTicker { from { transform: translateX(0); } to { transform: translateX(var(--shift, 50%)); } }

/* ------------------------- شبکهٔ سه‌ستونی ------------- */
.net__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(252px, 282px) minmax(0, 1fr) minmax(268px, 306px);
  gap: clamp(14px, 1.6vw, 24px);
  align-items: start;
  padding: clamp(14px, 1.8vw, 26px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.net__main { height: 100%; overflow-y: auto; overflow-x: hidden; padding-inline-end: 4px; scrollbar-width: thin; }
.net__rail { height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }

/* فید و ریل کنار، همان طراحی اسکرول‌بار سراسری در style.css را می‌گیرند. */

/* ------------------------- کارت شیشه‌ای ------------- */
.glass {
  position: relative;
  border: 1px solid var(--net-line);
  border-radius: var(--r-lg);
  background: var(--net-card);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 22px 60px -34px rgba(0, 0, 0, 0.9);
}
.glass--pad { padding: 16px; }

.railcard__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-dim);
  letter-spacing: 0.2px;
}
.railcard__title span[aria-hidden] { color: var(--net-hot); }

/* من / هویت */
.me__head { display: flex; align-items: center; gap: 12px; }
.me__name { font-weight: 700; font-size: 15px; }
.me__handle { font-size: 12px; color: var(--ink-faint); direction: ltr; text-align: right; }
.me__bio { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-dim); }
.me__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.me__stat {
  border: 1px solid var(--net-line); border-radius: var(--r-md);
  padding: 9px 8px; text-align: center;
  background: rgba(255, 255, 255, 0.03);
}
.me__stat b { display: block; font-size: 16px; }
.me__stat span { font-size: 10.5px; color: var(--ink-faint); }
.me__foot { display: flex; gap: 8px; margin-top: 12px; }

/* ------------------------- سازندهٔ پست ------------- */
.composer {
  position: relative;
  border: 1px solid var(--net-line);
  border-radius: var(--r-lg);
  background: var(--net-card);
  backdrop-filter: blur(18px) saturate(1.25);
  padding: 14px;
  margin-bottom: 14px;
  transition: border-color 0.4s, box-shadow 0.5s, transform 0.4s;
}
.composer.is-focus {
  border-color: color-mix(in srgb, var(--net-hot) 46%, transparent);
  box-shadow: 0 26px 70px -40px color-mix(in srgb, var(--net-hot) 80%, transparent), 0 0 0 1px color-mix(in srgb, var(--net-hot) 22%, transparent) inset;
}
.composer.is-sending { animation: composerSend 0.6s cubic-bezier(0.3, 1.4, 0.4, 1); }
@keyframes composerSend {
  0% { transform: scale(1); }
  35% { transform: scale(0.985); }
  100% { transform: scale(1); }
}
.composer__glow {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, color-mix(in srgb, var(--net-hot) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.5s;
}
.composer.is-focus .composer__glow { opacity: 1; }

.composer__top { display: flex; gap: 12px; align-items: flex-start; }
.composer__input {
  flex: 1; min-height: 46px; max-height: 220px;
  resize: none; border: 0; outline: none; background: none;
  color: var(--ink); font: inherit; font-size: 14.5px; line-height: 2.05;
  padding: 8px 2px;
}
.composer__input::placeholder { color: var(--ink-faint); }

.composer__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--net-line); margin-top: 8px; }
.composer__tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font: inherit; font-size: 12.5px; color: var(--ink-dim);
  border: 1px solid var(--net-line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); cursor: pointer;
  transition: color 0.22s, border-color 0.22s, background 0.22s, transform 0.22s;
}
.composer__tool:hover { color: var(--ink); border-color: var(--edge-hot); transform: translateY(-1px); }
.composer__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.composer__count { margin-inline-start: auto; font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.composer__count.is-near { color: #ffb648; }
.composer__send { padding: 10px 20px; }
.composer__thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb {
  position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--net-line);
  animation: thumbIn 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__x {
  position: absolute; top: 5px; inset-inline-end: 5px;
  width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(8, 4, 16, 0.78); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.thumb__x:hover { background: #ff4d67; transform: scale(1.08); }
@keyframes thumbIn { from { opacity: 0; transform: scale(0.7) rotate(-6deg); } to { opacity: 1; transform: none; } }

.composer__pick {
  margin-top: 10px; padding: 10px; border: 1px solid var(--net-line);
  border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03);
  display: flex; gap: 8px; flex-wrap: wrap;
  animation: pickIn 0.3s ease;
}
@keyframes pickIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pickitem {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--net-line); background: rgba(255, 255, 255, 0.04);
  font: inherit; font-size: 12.5px; color: var(--ink-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.pickitem:hover { color: var(--ink); transform: translateY(-1px); border-color: color-mix(in srgb, var(--net-hot) 50%, transparent); background: rgba(255, 255, 255, 0.08); }

/* ------------------------- زبانه‌های فید ------------- */
.net__tabs {
  position: relative;
  display: flex; gap: 4px; padding: 5px;
  border: 1px solid var(--net-line); border-radius: 999px;
  background: rgba(10, 6, 20, 0.55); backdrop-filter: blur(12px);
  margin-bottom: 14px;
  width: fit-content;
}
.nettab {
  position: relative; z-index: 1;
  padding: 8px 16px; font: inherit; font-size: 12.5px; color: var(--ink-dim);
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  transition: color 0.25s;
}
.nettab:hover { color: var(--ink); }
.nettab.is-on { color: #10040a; }
.nettab.is-on::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: linear-gradient(120deg, var(--net-hot), color-mix(in srgb, var(--accent-2) 70%, var(--net-hot)));
  box-shadow: 0 8px 26px -12px color-mix(in srgb, var(--net-hot) 90%, transparent);
}
.nettab__n { font-size: 10.5px; opacity: 0.7; margin-inline-start: 5px; }

/* ------------------------- کارت سیگنال ------------- */
.signal {
  position: relative;
  border: 1px solid var(--net-line);
  border-radius: var(--r-lg);
  background: var(--net-card);
  backdrop-filter: blur(14px);
  padding: 15px 17px 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transform: translateY(14px);
  opacity: 0;
  animation: signalIn 0.62s cubic-bezier(0.2, 1, 0.3, 1) forwards;
  transition: border-color 0.3s, box-shadow 0.4s, transform 0.3s;
}
.signal:hover {
  border-color: color-mix(in srgb, var(--sig) 40%, transparent);
  box-shadow: 0 30px 70px -44px var(--sig);
  transform: translateY(-2px);
}
.signal.is-mine { border-color: color-mix(in srgb, var(--sig) 30%, transparent); }
.signal::before {
  content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--sig), transparent);
  opacity: 0.7;
}
@keyframes signalIn { to { opacity: 1; transform: none; } }
.signal.is-new { animation: signalPop 0.85s cubic-bezier(0.2, 1.4, 0.3, 1) forwards, signalIn 0.5s ease forwards; }
@keyframes signalPop {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sig) 70%, transparent); }
  70% { box-shadow: 0 0 0 22px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.signal__head { display: flex; align-items: center; gap: 11px; }
.signal__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.signal__name { font-size: 14px; font-weight: 700; }
.signal__meta { font-size: 11.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; }
.signal__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.signal__handle { direction: ltr; }
.signal__follow {
  margin-inline-start: auto;
  padding: 5px 12px; font: inherit; font-size: 11.5px; cursor: pointer;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sig) 46%, transparent);
  color: color-mix(in srgb, var(--sig) 80%, #fff); background: color-mix(in srgb, var(--sig) 12%, transparent);
  transition: background 0.24s, color 0.24s, transform 0.24s;
}
.signal__follow:hover { transform: translateY(-1px); }
.signal__follow.is-on { background: color-mix(in srgb, var(--sig) 62%, transparent); color: #0d0410; }
.signal__menu {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--net-line);
  background: rgba(255, 255, 255, 0.03); color: var(--ink-dim); font: inherit;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.signal__menu:hover { color: #ff8fa0; background: rgba(255, 90, 110, 0.12); }

.signal__body { margin: 11px 0 4px; }
.signal__text { font-size: 14.2px; line-height: 2.15; color: #ece7fb; white-space: pre-wrap; word-break: break-word; }
.rt__tag, .rt__who {
  font: inherit; border: 0; background: none; cursor: pointer; padding: 0 1px;
  color: color-mix(in srgb, var(--sig) 78%, #fff);
  border-bottom: 1px dashed color-mix(in srgb, var(--sig) 40%, transparent);
  transition: color 0.2s, border-color 0.2s;
}
.rt__tag:hover, .rt__who:hover { color: #fff; border-color: #fff; }
.rt__link { color: #8fd0ff; text-decoration: none; border-bottom: 1px solid rgba(143, 208, 255, 0.35); }
.rt__link:hover { border-color: #8fd0ff; }

/* کارت سیارهٔ پیوست‌شده */
.attach {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin-top: 11px; padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--g) 34%, transparent);
  border-radius: var(--r-md);
  background: linear-gradient(100deg, color-mix(in srgb, var(--g) 16%, transparent), rgba(255, 255, 255, 0.02));
  cursor: pointer; text-align: start;
  font: inherit; color: var(--ink); width: 100%;
  overflow: hidden;
  transition: transform 0.28s, border-color 0.28s;
}
.attach:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--g) 70%, transparent); }
.attach__orb {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--g) 92%, #fff), color-mix(in srgb, var(--g) 55%, #05030d) 70%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--g) 60%, transparent), inset -6px -6px 14px rgba(0, 0, 0, 0.5);
}
.attach__body { min-width: 0; }
.attach__title { font-size: 13.5px; font-weight: 700; }
.attach__sub { font-size: 11.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach__go { margin-inline-start: auto; font-size: 11.5px; color: color-mix(in srgb, var(--g) 80%, #fff); }

/* تصویرها */
.media { display: grid; gap: 6px; margin-top: 11px; border-radius: var(--r-md); overflow: hidden; }
.media--1 { grid-template-columns: 1fr; }
.media--2 { grid-template-columns: 1fr 1fr; }
.media--3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.media--3 .media__cell:first-child { grid-row: span 2; }
.media--4 { grid-template-columns: 1fr 1fr; }
.media__cell {
  position: relative; border: 0; padding: 0; cursor: zoom-in; background: #0a0614;
  aspect-ratio: 16 / 10; overflow: hidden; display: block;
}
.media--3 .media__cell:first-child, .media--1 .media__cell { aspect-ratio: 16 / 9; }
.media__cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1), filter 0.4s; }
.media__cell:hover img { transform: scale(1.05); filter: brightness(1.06); }
.media__cell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 2, 10, 0.4), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.media__cell:hover::after { opacity: 1; }

/* موج فرکانس هر پست */
.signal__wave { position: absolute; inset-inline: 0; bottom: 34px; height: 46px; pointer-events: none; opacity: 0.22; }
.signal__wave svg { width: 100%; height: 100%; display: block; }
.signal__wave path {
  fill: none; stroke: var(--sig); stroke-width: 1.3; stroke-linecap: round;
  stroke-dasharray: 6 5;
}
.signal:hover .signal__wave path { animation: waveFlow 6s linear infinite; }
@keyframes waveFlow { to { stroke-dashoffset: -220; } }

/* دکمه‌های کار */
.signal__acts { display: flex; align-items: center; gap: 4px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--net-line); }
.act {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; font: inherit; font-size: 12.3px; color: var(--ink-dim);
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  transition: color 0.22s, background 0.22s, transform 0.22s;
}
.act:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.act__ic { font-size: 14.5px; line-height: 1; transition: transform 0.3s; }
.act.is-on { color: color-mix(in srgb, var(--sig) 90%, #fff); }
.act--like.is-on { color: #ff6b8b; }
.act--like.is-on .act__ic { animation: heartPop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }
.act--boost.is-on { color: #52e0a4; }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }
.act__burst {
  position: absolute; inset: 0; pointer-events: none; overflow: visible;
}
.act__burst i {
  position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: #ff6b8b; opacity: 0;
}
.act.is-burst .act__burst i { animation: burst 0.62s ease-out forwards; }
.act__burst i:nth-child(1) { --bx: 16px; --by: -14px; }
.act__burst i:nth-child(2) { --bx: -15px; --by: -12px; }
.act__burst i:nth-child(3) { --bx: 13px; --by: 14px; }
.act__burst i:nth-child(4) { --bx: -13px; --by: 12px; }
.act__burst i:nth-child(5) { --bx: 0px; --by: -20px; }
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1.5); }
}
.act--share { margin-inline-start: auto; }

.signal__tagline {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-faint); margin-top: 6px;
}
.signal__tagline b { color: var(--ink-dim); font-weight: 600; }

/* آواتار گوی */
.orb {
  position: relative; flex: 0 0 auto;
  width: var(--orb, 42px); height: var(--orb, 42px);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: calc(var(--orb, 42px) * 0.44);
  background: var(--orb-bg);
  box-shadow: inset -5px -6px 12px rgba(0, 0, 0, 0.5), 0 0 22px var(--orb-glow);
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.orb::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--orb-core) 40%, transparent);
  opacity: 0; transition: opacity 0.35s, transform 0.35s;
}
.signal:hover .orb, .me:hover .orb { transform: scale(1.06); }
.signal:hover .orb::after, .me:hover .orb::after { opacity: 1; }

/* ------------------------- ریل کنار ------------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat {
  padding: 10px; border-radius: var(--r-md);
  border: 1px solid var(--net-line); background: rgba(255, 255, 255, 0.03);
}
.stat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; color: var(--ink-faint); }
.stat--wide { grid-column: span 2; }

.trend {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: var(--r-md); background: none;
  font: inherit; color: var(--ink-dim); cursor: pointer; text-align: start;
  transition: background 0.22s, color 0.22s, transform 0.22s;
}
.trend:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); transform: translateX(-3px); }
.trend__rank { font-size: 11px; color: var(--ink-faint); width: 16px; }
.trend__tag { font-size: 13.5px; font-weight: 600; }
.trend__n { font-size: 11px; color: var(--ink-faint); margin-inline-start: auto; }

.voice { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); transition: background 0.22s; }
.voice:hover { background: rgba(255, 255, 255, 0.05); }
.voice__body { min-width: 0; flex: 1; }
.voice__name { font-size: 13px; font-weight: 600; }
.voice__sub { font-size: 11px; color: var(--ink-faint); }
.voice__go {
  padding: 4px 10px; font: inherit; font-size: 11px; cursor: pointer;
  border: 1px solid var(--net-line); border-radius: 999px; background: none; color: var(--ink-dim);
  transition: color 0.2s, border-color 0.2s;
}
.voice__go:hover { color: var(--ink); border-color: var(--edge-hot); }

.beacons { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.beacons .orb { --orb: 30px; font-size: 12px; box-shadow: inset -3px -4px 8px rgba(0, 0, 0, 0.5), 0 0 12px var(--orb-glow); }
.beacons__more { font-size: 11px; color: var(--ink-faint); }

/* ------------------------- حالت خالی ------------- */
.empty { text-align: center; padding: 46px 20px; }
.empty__orb {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--net-hot) 85%, #fff), transparent 62%), rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 60px -12px var(--net-hot); animation: emptyPulse 4s ease-in-out infinite;
}
@keyframes emptyPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }
.empty__title { font-size: 16px; font-weight: 700; }
.empty__lead { font-size: 13px; color: var(--ink-dim); margin-top: 8px; line-height: 2; }

/* ------------------------- رشته (thread) ------------- */
.net__thread {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: start center;
  padding: clamp(14px, 3vw, 40px);
  background: rgba(4, 2, 10, 0.74);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  /* pointer-events بلافاصله قطع می‌شود تا لایهٔ بسته، کلیک‌ها را نخورد */
  pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
  overflow-y: auto;
}
.net__thread.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.thread {
  width: min(720px, 100%);
  border: 1px solid var(--net-line); border-radius: var(--r-lg);
  background: var(--net-card-2); backdrop-filter: blur(18px);
  padding: 18px; transform: translateY(16px) scale(0.985);
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
.net__thread.is-open .thread { transform: none; }
.thread__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.thread__title { font-size: 15px; font-weight: 700; }
.thread__close {
  margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--net-line); background: rgba(255, 255, 255, 0.04);
  color: var(--ink); font-size: 17px; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.thread__close:hover { background: rgba(255, 90, 110, 0.16); transform: rotate(90deg); }
.thread__replies { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.thread__reply {
  display: flex; gap: 11px; padding: 12px;
  border: 1px solid var(--net-line); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  animation: signalIn 0.5s ease forwards; opacity: 0; transform: translateY(10px);
}
.thread__replybody { min-width: 0; flex: 1; }
.thread__reptext { font-size: 13.4px; line-height: 2.05; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.thread__repmedia { display: flex; gap: 6px; margin-top: 8px; }
.thread__repmedia img { width: 104px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--net-line); }
.thread__form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.thread__formrow { display: flex; align-items: center; gap: 10px; }

/* ------------------------- دروازهٔ هویت ------------- */
.net__gate {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-items: center;
  padding: 20px; background: rgba(4, 2, 10, 0.8); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s, visibility 0.45s;
}
.net__gate.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.gate {
  width: min(520px, 100%);
  border: 1px solid var(--net-line); border-radius: var(--r-lg);
  background: var(--net-card-2); padding: 24px;
  text-align: center;
  transform: translateY(14px) scale(0.97); transition: transform 0.5s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.net__gate.is-open .gate { transform: none; }
.gate__preview { display: flex; justify-content: center; margin-bottom: 14px; }
.gate__preview .orb { --orb: 84px; font-size: 38px; }
.gate__title { font-size: 18px; font-weight: 700; }
.gate__lead { font-size: 13px; color: var(--ink-dim); margin-top: 8px; line-height: 2; }
.gate__fields { display: grid; gap: 10px; margin-top: 18px; text-align: start; }
.gate__row { display: grid; gap: 6px; }
.gate__row label { font-size: 12px; color: var(--ink-dim); }
.gate__colors { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.24s, border-color 0.24s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-on { border-color: #fff; transform: scale(1.14); }
.gate__glyphs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.glyphbtn {
  width: 34px; height: 34px; border-radius: 12px; font-size: 17px; cursor: pointer;
  border: 1px solid var(--net-line); background: rgba(255, 255, 255, 0.04);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.glyphbtn:hover { transform: translateY(-2px); }
.glyphbtn.is-on { border-color: var(--net-hot); background: color-mix(in srgb, var(--net-hot) 20%, transparent); }
.gate__foot { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* دو راه ورود: ورود · ساخت حساب */
.gate__tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  margin-top: 16px;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}
.gate__tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
}
.gate__tab:hover { color: var(--ink); }
.gate__tab.is-on {
  color: #0c0718;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  font-weight: 700;
}
.gate__pane { margin-top: 4px; }
.gate__alt { font-size: 12px; color: var(--ink-faint); line-height: 2; margin: 12px 0 0; text-align: center; }
.gate__alt a { color: color-mix(in srgb, var(--accent) 70%, #cfe4ff 30%); }
/* تلهٔ ربات: نامرئی برای آدم، دیدنی برای ربات‌ها */
.gate__trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------- تکه‌های کوچک ------------- */
.composer__avatar { --orb: 42px; margin-top: 4px; }
.signal__mine { color: color-mix(in srgb, var(--sig) 85%, #fff); }
.media--big .media__cell { aspect-ratio: 16 / 9; }

.net__scope {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 12.5px; color: var(--ink-dim);
  animation: pickIn 0.32s ease;
}
.net__scope b { color: var(--ink); }
.net__scope > span[aria-hidden] { color: var(--net-hot); }
.net__scopex {
  margin-inline-start: auto; padding: 5px 12px; font: inherit; font-size: 11.5px; cursor: pointer;
  border: 1px solid var(--net-line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--ink-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.net__scopex:hover { color: var(--ink); border-color: var(--edge-hot); background: rgba(255, 255, 255, 0.08); }

.railcard__empty { font-size: 12px; color: var(--ink-faint); line-height: 2; padding: 8px 2px; }
.me__hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 10px; line-height: 1.9; }

.pickitem--wide { width: 100%; justify-content: flex-start; }
.pickitem--wide .pickitem__go { margin-inline-start: auto; opacity: 0.5; }
.pickitem.is-on { background: color-mix(in srgb, var(--net-hot) 22%, transparent); color: var(--ink); }

.thread__rep-title { margin-top: 18px; }
.thread__hint { font-size: 11.5px; color: var(--ink-faint); }

/* ------------------------- واکنش‌گرا ------------- */
@media (max-width: 1180px) {
  .net__grid { grid-template-columns: minmax(0, 1fr) minmax(258px, 292px); }
  .net__rail--me { display: none; }
  .net__mebar { display: flex; }
}
@media (min-width: 1181px) { .net__mebar { display: none; } }
@media (max-width: 860px) {
  .net__grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .net__rail--side { display: none; }
  .net__bar { flex-wrap: wrap; gap: 10px; }
  .net__title { font-size: 15px; }
  .net__title small { display: none; }
  .net__pulse { order: 3; width: 100%; }
  .net__tabs { width: 100%; justify-content: space-between; overflow-x: auto; }
  .nettab { padding: 8px 12px; font-size: 12px; }
  .signal { padding: 13px 14px 10px; }
  .composer__send { width: 100%; justify-content: center; }
  .composer__count { order: 3; }
}

/* نوار من در موبایل */
.net__mebar {
  align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 10px 12px; border: 1px solid var(--net-line); border-radius: var(--r-md);
  background: var(--net-card); backdrop-filter: blur(14px);
}
.net__mebar .me__name { font-size: 13.5px; }
.net__mebar__stats { margin-inline-start: auto; display: flex; gap: 10px; font-size: 11px; color: var(--ink-faint); }

/* لایت‌باکس شبکه */
.netbox {
  position: absolute; inset: 0; z-index: 12;
  display: grid; place-items: center; padding: 24px;
  background: rgba(3, 1, 8, 0.9); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.netbox.is-open { opacity: 1; visibility: visible; }
.netbox img {
  max-width: min(1100px, 94vw); max-height: 82vh; border-radius: var(--r-md);
  border: 1px solid var(--net-line); box-shadow: 0 40px 120px -50px #000;
  transform: scale(0.96); transition: transform 0.45s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.netbox.is-open img { transform: none; }
.netbox__close {
  position: absolute; top: 20px; inset-inline-end: 22px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--net-line); background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 19px; cursor: pointer;
}

/* ------------------------- وضعیت‌ها ------------- */
body.is-net #galaxy { filter: blur(22px) brightness(0.36) saturate(0.9); transform: scale(1.16); }
body.is-net .hud, body.is-net .halo, body.is-net .fx--vignette { opacity: 0; pointer-events: none; }
body.is-net .panel { transform: translateX(-104%); }

/* ============================================================
   واکنش‌های ایموجی، دروازهٔ شناسه و نشانه‌های تازه
   ============================================================ */

.signal__acts--rx { flex-wrap: wrap; row-gap: 6px; }
.rxbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-inline-start: 4px; }
.rx {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px;
  font: inherit; font-size: 12.5px; line-height: 1;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--net-line);
  border-radius: 99px;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.2s, color 0.2s, background 0.2s;
}
.rx:hover { color: var(--ink); border-color: var(--edge-hot); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.rx:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx__e { font-size: 15px; filter: grayscale(0.6) opacity(0.72); transition: filter 0.2s ease, transform 0.2s ease; }
.rx:hover .rx__e { filter: none; }
.rx__n { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.rx.is-on {
  color: #fff;
  border-color: color-mix(in srgb, var(--sig) 55%, transparent);
  background: color-mix(in srgb, var(--sig) 20%, rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 18px -6px color-mix(in srgb, var(--sig) 70%, transparent);
}
.rx.is-on .rx__e { filter: none; }
.rx.is-on .rx__n { color: var(--ink); }
.rx.is-pop { animation: rxPop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes rxPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.24) rotate(-6deg); }
  100% { transform: scale(1); }
}

/* نشان «سنجاق» روی سیگنال‌های ثابت‌شده */
.signal__pin { color: var(--net-hot); font-size: 11px; letter-spacing: 0.2px; }

/* دکمهٔ بارگذاری صفحهٔ بعد فید */
.net__more { display: flex; justify-content: center; padding: 6px 0 22px; }

/* کارت توضیح برای مهمان‌ها — جای سازندهٔ پست */
.net__notice {
  position: relative;
  display: flex; align-items: flex-start; gap: 11px;
  margin: 0 0 12px;
  padding: 13px 16px;
  font-size: 12.5px; line-height: 1.85; color: var(--ink-dim);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--net-line);
  border-inline-start: 2px solid var(--accent);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: noticeIn 0.5s cubic-bezier(0.2, 1.1, 0.3, 1);
}
.net__notice b { color: var(--ink); }
.net__notice__ic { font-size: 17px; line-height: 1.4; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
.net__notice .voice__go { flex: none; margin-inline-start: auto; }
@keyframes noticeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* سازندهٔ قفل‌شده (عضو بدون نقش مدیر) */
.composer.is-locked { opacity: 0.72; filter: saturate(0.75); }
.composer.is-locked:hover { opacity: 0.88; }
.composer.is-locked .composer__input { cursor: not-allowed; }
.composer.is-locked .composer__row { display: none; }
.composer.is-locked .composer__avatar { opacity: 0.6; }

/* تیک رضایت ایمیل در دروازه */
.gate__consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 4px; padding: 11px 13px;
  font-size: 11.8px; line-height: 1.8; color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--net-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gate__consent:hover { border-color: var(--edge-hot); background: rgba(255, 255, 255, 0.05); }
.gate__consent input {
  flex: none; width: 17px; height: 17px; margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* پانویس پنجرهٔ سیگنال */
.thread__note {
  margin: 12px 0 0; padding-top: 10px;
  font-size: 11.5px; color: var(--ink-faint);
  border-top: 1px dashed var(--net-line);
}
.thread__note span[aria-hidden] { color: #ff6b8b; }

/* وضعیت زنده/آفلاین در ستون کنار */
.net__live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-faint); }
.net__live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-faint); box-shadow: none;
}
.net__live.is-on i { background: #52e0a4; box-shadow: 0 0 10px #52e0a4; animation: netBeacon 2.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .net, .net__thread, .net__gate, .thread, .gate { transition-duration: 0.01ms !important; }
  .rx, .rx__e, .net__notice { animation: none !important; }
  .net__aurora, .net__mark span, .net__beacon i, .ticker__track, .empty__orb { animation: none !important; }
  .signal { animation-duration: 0.01ms !important; }
}

/* ============================================================
   ریل یوتوب — @kiatitano
   ------------------------------------------------------------
   ویدیوی سنجاق‌شده درشت و کشیده می‌آید و بقیه به‌شکل نوار افقی
   کنار هم می‌چینند. کارت‌ها با تصویر پیش‌نمایش، مدت، نوع (ویدیو/
   شورتز/لایو) و شمار بازدید — همه از سرور و کش‌شده تا سهمیهٔ
   یوتوب هدر نرود.
   ============================================================ */

.ytrail {
  position: relative;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ytrail::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 150%;
  background: radial-gradient(46% 60% at 12% 0%, rgba(255, 60, 60, .16), transparent 62%),
              radial-gradient(40% 60% at 92% 20%, rgba(139, 92, 255, .14), transparent 64%);
  pointer-events: none;
}
.ytrail__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.ytrail__logo {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, #ff3b3b, #ff7b7b);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 59, 59, .34);
  flex: none;
}
.ytrail__titles { display: grid; gap: 2px; min-width: 0; }
.ytrail__titles b { font-size: 13.5px; }
.ytrail__titles span { font-size: 11px; color: var(--ink-faint); }
.ytrail__all {
  margin-inline-start: auto;
  font-size: 11.5px;
  color: var(--ink-dim);
  text-decoration: none;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.ytrail__all:hover { color: #ff8b8b; border-color: rgba(255, 60, 60, .4); background: rgba(255, 60, 60, .1); }

.ytrail__hero { position: relative; margin-bottom: 10px; }
.ytrail__card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, .035);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.ytrail__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 60, 60, .45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.ytrail__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0b0616;
  overflow: hidden;
}
.ytrail__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytrail__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 6, 22, .62);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .22s ease, background .22s ease;
}
.ytrail__card:hover .ytrail__play { transform: scale(1.08); background: rgba(255, 59, 59, .82); }
.ytrail__time {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(8, 4, 16, .78);
  border: 1px solid rgba(255, 255, 255, .14);
}
.ytrail__kind {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 4, 16, .78);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #d7cff2;
}
.ytrail__kind.is-live { background: rgba(255, 59, 59, .9); color: #fff; border-color: transparent; }
.ytrail__kind.is-short { background: rgba(139, 92, 255, .86); color: #fff; border-color: transparent; }
.ytrail__txt { display: grid; gap: 3px; padding: 10px 12px 12px; }
.ytrail__title {
  font-size: 12.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ytrail__meta { font-size: 11px; color: var(--ink-faint); }

.ytrail__strip {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 42%);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.ytrail__strip .ytrail__card { scroll-snap-align: start; }
.ytrail__strip .ytrail__title { -webkit-line-clamp: 2; font-size: 12px; }

@media (max-width: 700px) {
  .ytrail { padding: 12px; }
  .ytrail__titles span { display: none; }
  .ytrail__strip { grid-auto-columns: minmax(165px, 62%); }
}

/* تصویر پیش‌نمایش یوتوب نبود → کارت شکسته نشود، پس‌زمینهٔ برند بیاید.
   (روی سروری که به یوتوب دسترسی ندارد یا CDN قطع است) */
.ytrail__thumb.is-nothumb {
  background:
    radial-gradient(58% 70% at 24% 18%, rgba(255, 59, 59, .34), transparent 62%),
    radial-gradient(60% 76% at 84% 88%, rgba(139, 92, 255, .30), transparent 64%),
    linear-gradient(150deg, #1a0b24, #0a0616);
}
.ytrail__thumb.is-nothumb img { visibility: hidden; }
.ytrail__thumb.is-nothumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: rgba(255, 255, 255, .22);
}

/* ============================================================
   بهینه‌سازی موبایل — شبکهٔ تیتانو
   ------------------------------------------------------------
   این جا پر از شیشهٔ مات روی یک بومِ متحرک است؛ روی گوشی هر شیشه
   یعنی یک بار محوکردنِ پس‌زمینه در هر فریم. شعاع محو کم می‌شود
   (پشتِ این کارت‌ها پردهٔ تیره است، پس ظاهر عوض نمی‌شود) و هالهٔ
   اورورا هم که با محو ۴۰ پیکسلی تمام‌عرض بود سبک می‌شود.
   ============================================================ */
@media (max-width: 900px) {
  /* کهکشانِ پشت شبکه در همین حالت متوقف است؛ محوشدنِ کمتر، همان حسِ
     پشت‌زمینهٔ تار را می‌دهد بدون بارِ سنگینِ محو ۲۲ پیکسلی. */
  body.is-net #galaxy { filter: blur(10px) brightness(0.36) saturate(0.9); }

  .net__bar,
  .net__ticker,
  .net__tabs,
  .signal,
  .thread,
  .net__gate,
  .net__mebar,
  .net__notice {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .glass { backdrop-filter: blur(9px) saturate(1.15); -webkit-backdrop-filter: blur(9px) saturate(1.15); }
  .composer { backdrop-filter: blur(9px) saturate(1.15); -webkit-backdrop-filter: blur(9px) saturate(1.15); }
  .net__thread { backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
  .netbox { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

  /* اورورا: لایهٔ ۶۲٪-ارتفاع که هر فریم با محو ۴۰ پیکسلی دوباره ساخته
     می‌شد؛ با ۱۴ پیکسل همان نرمی دیده می‌شود ولی چند برابر ارزان‌تر. */
  .net__aurora { filter: blur(14px); }
}
