/* فید اجتماعی — سبک اینستاگرام: فشرده، لوکس، نسبت استاندارد */
.bzc-social-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 2rem;
}
.bzc-social-shell.is-wide { max-width: 720px; }

.bzc-feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}
.bzc-feed-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px;
}
.bzc-feed-tabs a,
.bzc-feed-tabs button {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.bzc-feed-tabs a.on,
.bzc-feed-tabs button.on {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.bzc-feed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bzc-feed-controls select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  background: #fff;
  color: #374151;
}
.bzc-view-toggle {
  display: flex;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.bzc-view-toggle button {
  border: 0;
  background: #fff;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  color: #6b7280;
}
.bzc-view-toggle button.on {
  background: #4f46e5;
  color: #fff;
}

/* کارت لیست — عرض محدود مثل اینستا (~470px) */
.bzc-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 470px;
  margin: 0 auto;
}
.bzc-feed-card {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.bzc-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}
.bzc-feed-user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  min-width: 0;
}
.bzc-feed-user img,
.bzc-feed-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}
.bzc-feed-av {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6b7280;
}
.bzc-feed-head-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bzc-chip-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.bzc-chip-btn.on {
  background: #111;
  color: #fff;
  border-color: #111;
}
.bzc-chip-btn.brand {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

/* رسانه: نسبت ۴:۵ اینستا (پست) / ۹:۱۶ برای ریلز در لیست محدود ارتفاع */
.bzc-feed-media {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 4 / 5;
  max-height: 580px;
  overflow: hidden;
  cursor: pointer;
}
.bzc-feed-card[data-type="video"] .bzc-feed-media {
  aspect-ratio: 9 / 16;
  max-height: 520px;
  margin: 0 auto;
  max-width: min(100%, 320px);
  border-radius: 0;
}
.bzc-feed-media img,
.bzc-feed-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.bzc-feed-media .bzc-reel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}
.bzc-heart-pop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  pointer-events: none;
  opacity: 0;
  transform: scale(.6);
  transition: .25s;
  z-index: 3;
}
.bzc-heart-pop.show {
  opacity: 1;
  transform: scale(1.1);
}

.bzc-feed-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 0;
}
.bzc-act {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  color: #111;
  border-radius: 8px;
}
.bzc-act:hover { background: #f9fafb; }
.bzc-act.on { color: #ef4444; }
.bzc-act.bzc-save.on { color: #4f46e5; }
.bzc-feed-actions .spacer { flex: 1; }

.bzc-feed-meta {
  padding: 4px 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.bzc-feed-cap {
  padding: 4px 14px 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #262626;
  word-break: break-word;
}
.bzc-feed-cap a { color: #00376b; text-decoration: none; }
.bzc-comments {
  padding: 0 14px 6px;
  font-size: 13px;
  max-height: 160px;
  overflow: auto;
}
.bzc-comments .c { margin: .25rem 0; }
.bzc-cmt-form {
  display: flex;
  border-top: 1px solid #efefef;
  margin-top: 4px;
}
.bzc-cmt-form input {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  background: transparent;
}
.bzc-cmt-form button {
  border: 0;
  background: none;
  color: #4f46e5;
  font-weight: 700;
  font-size: 13px;
  padding: 0 12px;
  cursor: pointer;
}

/* حالت کاشی (گرید) */
.bzc-feed.is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: 100%;
}
.bzc-feed.is-grid .bzc-feed-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f3f4f6;
}
.bzc-feed.is-grid .bzc-feed-head,
.bzc-feed.is-grid .bzc-feed-actions,
.bzc-feed.is-grid .bzc-feed-meta,
.bzc-feed.is-grid .bzc-feed-cap,
.bzc-feed.is-grid .bzc-comments,
.bzc-feed.is-grid .bzc-cmt-form {
  display: none !important;
}
.bzc-feed.is-grid .bzc-feed-media {
  aspect-ratio: 1 / 1;
  max-height: none;
  max-width: 100%;
  margin: 0;
}
.bzc-feed.is-grid .bzc-feed-card[data-type="video"] .bzc-feed-media {
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: none;
}
.bzc-feed.is-grid .bzc-reel-badge { font-size: 10px; padding: 2px 6px; }

@media (max-width: 520px) {
  .bzc-social-shell { padding-left: 0; padding-right: 0; }
  .bzc-feed { max-width: 100%; gap: 12px; }
  .bzc-feed-card { border-radius: 0; border-left: 0; border-right: 0; }
  .bzc-feed-card[data-type="video"] .bzc-feed-media {
    max-width: 100%;
    max-height: 70vh;
  }
}

/* قفل دانلود / کشیدن / انتخاب */
.bzc-feed-media img,
.bzc-feed-media video,
.bzc-story-viewer img,
.bzc-story-viewer video,
.bzc-sv-media img,
.bzc-sv-media video {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: auto;
}
.bzc-feed-media a,
.bzc-sv-media a { pointer-events: none; }

.bzc-carousel{position:relative;width:100%;height:100%;overflow:hidden}
.bzc-carousel-track{display:flex;height:100%;transition:transform .25s ease;will-change:transform}
.bzc-carousel-slide{min-width:100%;height:100%}
.bzc-carousel-slide img,.bzc-carousel-slide video{width:100%;height:100%;object-fit:cover}
.bzc-carousel-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:5px;z-index:4}
.bzc-carousel-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45)}
.bzc-carousel-dots i.on{background:#fff}
.bzc-carousel-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:4;border:0;background:rgba(0,0,0,.35);color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer}
.bzc-carousel-nav.prev{right:8px}
.bzc-carousel-nav.next{left:8px}

.bzc-feed-user { flex: 1; min-width: 0; }
.bzc-feed-user span.text-truncate { max-width: 100%; }
.bzc-more { position: relative; }
.bzc-more-btn {
  border: 0; background: transparent; padding: 6px; border-radius: 8px; cursor: pointer; color: #111;
  display: inline-flex; align-items: center; justify-content: center;
}
.bzc-more-btn:hover { background: #f3f4f6; }
.bzc-more-menu {
  position: absolute; top: 100%; left: 0; min-width: 160px;
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; z-index: 30;
}
.bzc-more-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; text-align: right; padding: 10px 12px;
  font-size: 13px; color: #111; border-radius: 8px; cursor: pointer;
}
.bzc-more-menu button:hover { background: #f9fafb; }
.bzc-act .dk-ico { display: block; }
.bzc-act.bzc-like.on { color: #ef4444; }
.bzc-act.bzc-save.on { color: #111; }
.bzc-act.bzc-save.on .dk-ico { color: #111; }

/* شیت نظرات — موبایل و دسکتاپ */
.bzc-cmt-backdrop {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.bzc-cmt-backdrop.open { opacity: 1; visibility: visible; }
.bzc-cmt-sheet {
  position: fixed; z-index: 10051;
  left: 0; right: 0; bottom: 0;
  max-height: min(88vh, 720px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  transform: translateY(105%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.bzc-cmt-backdrop.open .bzc-cmt-sheet { transform: translateY(0); }
@media (min-width: 768px) {
  .bzc-cmt-sheet {
    left: 50%; right: auto;
    bottom: auto; top: 50%;
    width: min(480px, 92vw);
    max-height: min(80vh, 640px);
    border-radius: 16px;
    transform: translate(-50%, -45%) scale(.96);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .bzc-cmt-backdrop.open .bzc-cmt-sheet {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.bzc-cmt-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.bzc-cmt-sheet-head strong { font-size: 15px; }
.bzc-cmt-sheet-close {
  border: 0; background: #f3f4f6; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
}
.bzc-cmt-sheet-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 12px 8px; min-height: 120px;
}
.bzc-cmt-sheet-foot {
  border-top: 1px solid #eee; padding: 8px 10px; flex-shrink: 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.bzc-cmt-sheet-foot form { display: flex; gap: 8px; align-items: center; }
.bzc-cmt-sheet-foot input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 999px;
  padding: 10px 14px; font-size: 14px; outline: none;
}
.bzc-cmt-sheet-foot button {
  border: 0; background: var(--dk-red, #ef4050); color: #fff;
  border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer;
}
body.bzc-cmt-open {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: none;
}
html.bzc-cmt-open,
html:has(body.bzc-cmt-open) {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.bzc-cmt-sheet-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.bzc-cmt-backdrop {
  overscroll-behavior: none;
  touch-action: none;
}
.bzc-cmt-sheet {
  overscroll-behavior: contain;
}

/* درخت نظرات با خط اتصال */
.bzc-thread { list-style: none; margin: 0; padding: 0; }
.bzc-thread-item { position: relative; padding: 8px 0 8px 0; }
.bzc-thread-item.is-child {
  margin-right: 18px;
  padding-right: 14px;
  border-right: 2px solid #e5e7eb;
}
.bzc-thread-item.is-child::before {
  content: '';
  position: absolute;
  right: -2px; top: 0;
  width: 12px; height: 18px;
  border-right: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  border-bottom-right-radius: 8px;
}
.bzc-cmt-row { display: flex; gap: 10px; align-items: flex-start; }
.bzc-cmt-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #6b7280; flex-shrink: 0;
}
.bzc-cmt-main { flex: 1; min-width: 0; }
.bzc-cmt-main .name { font-weight: 700; font-size: 13px; }
.bzc-cmt-main .body { font-size: 13px; line-height: 1.5; color: #262626; word-break: break-word; }
.bzc-cmt-actions {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  margin-top: 6px; font-size: 12px; color: #6b7280;
}
.bzc-cmt-actions button {
  border: 0; background: none; color: inherit; cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 2px 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.bzc-cmt-actions button.on-like { color: #ef4444; }
.bzc-cmt-actions button.on-dislike { color: #4f46e5; }
.bzc-cmt-actions button:active { transform: scale(.96); }

/* پروفایل پیج — آواتار */
.bzc-social-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.bzc-social-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  display: block;
}
.bzc-social-avatar-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #6b7280;
  background: #f3f4f6;
}
/* جلوگیری از نمایش حرف جدا بالای عنوان */
.bzc-social-profile > .bzc-social-avatar-fallback:first-child { /* no-op */ }
.bzc-social-header .bzc-social-avatar + .flex-grow-1 h1 {
  margin-top: 0;
}

/* کاشی قابل کلیک */
.bzc-feed.is-grid .bzc-grid-item {
  cursor: pointer;
  position: relative;
  -webkit-touch-callout: none;
  user-select: none;
}
.bzc-feed.is-grid .bzc-grid-item:active {
  opacity: .92;
}

/* مودال نگه‌داشتن روی کاشی */
.bzc-peek-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.bzc-peek-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.bzc-peek-card {
  width: min(400px, 100%);
  max-height: min(90vh, 720px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  transform: scale(.94);
  transition: transform .2s ease;
}
.bzc-peek-backdrop.open .bzc-peek-card { transform: scale(1); }
.bzc-peek-media {
  position: relative;
  background: #000;
  flex: 0 1 auto;
  width: 100%;
  max-height: min(42vh, 360px);
  min-height: 180px;
  overflow: hidden;
}
.bzc-peek-media-inner {
  width: 100%;
  height: 100%;
  max-height: min(42vh, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bzc-peek-media img,
.bzc-peek-media video {
  width: 100%;
  height: 100%;
  max-height: min(42vh, 360px);
  object-fit: contain;
  display: block;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: auto;
}
.bzc-peek-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
  flex: 0 0 auto;
  background: #fff;
  position: relative;
  z-index: 5;
  max-height: 45vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bzc-peek-menu button {
  border: 0;
  background: #fff;
  text-align: right;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bzc-peek-menu button:last-child { border-bottom: 0; }
.bzc-peek-menu button:active { background: #f9fafb; }
.bzc-peek-menu button.danger { color: #dc2626; }
.bzc-peek-close {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
body.bzc-peek-open { overflow: hidden; }

@media (min-width: 768px) {
  .bzc-peek-media, .bzc-peek-media-inner, .bzc-peek-media img, .bzc-peek-media video { max-height: min(48vh, 420px) !important; }
}


/* BZC_PEEK_COMPACT — منوی جمع‌وجور + آیکن خطی */
.bzc-peek-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
}
.bzc-peek-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  transform: scale(.96);
  transition: transform .2s ease;
}
.bzc-peek-backdrop.open .bzc-peek-wrap { transform: scale(1); }
.bzc-peek-card {
  width: min(340px, 90vw) !important;
  max-height: none !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.bzc-peek-media {
  position: relative;
  background: #111;
  width: 100%;
  max-height: min(52vh, 400px) !important;
  min-height: 220px !important;
  aspect-ratio: 1 / 1;
}
.bzc-peek-media-inner {
  width: 100%;
  height: 100%;
  max-height: min(52vh, 400px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bzc-peek-media img,
.bzc-peek-media video {
  width: 100%;
  height: 100%;
  max-height: min(52vh, 400px) !important;
  object-fit: contain;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none !important;
}
/* منو جدا، باریک و شیک زیر کارت */
.bzc-peek-menu {
  width: min(220px, 70vw) !important;
  flex: none !important;
  max-height: none !important;
  overflow: visible !important;
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.14) !important;
  padding: 4px 0 !important;
  border-top: none !important;
  z-index: 6 !important;
}
.bzc-peek-menu button {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  text-align: right;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111 !important;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6 !important;
}
.bzc-peek-menu button:last-child { border-bottom: 0 !important; }
.bzc-peek-menu button:hover,
.bzc-peek-menu button:active { background: #f9fafb !important; }
.bzc-peek-menu button.danger { color: #dc2626 !important; }
.bzc-peek-menu .bzc-peek-ico,
.bzc-peek-menu .dk-ico {
  flex-shrink: 0;
  color: currentColor;
  stroke: currentColor;
}
.bzc-peek-close {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 768px) {
  .bzc-peek-card { width: min(380px, 48vw) !important; }
  .bzc-peek-menu { width: min(230px, 28vw) !important; }
  .bzc-peek-media,
  .bzc-peek-media-inner,
  .bzc-peek-media img,
  .bzc-peek-media video { max-height: min(56vh, 440px) !important; }
}


/* BZC_CMT_KB — کیبورد موبایل + آیکن خطی نظرات */
.bzc-cmt-sheet {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), bottom .2s ease, max-height .2s ease;
}
.bzc-cmt-sheet-foot {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.bzc-cmt-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bzc-cmt-actions .bzc-cmt-ico,
.bzc-cmt-actions .dk-ico {
  flex-shrink: 0;
  color: currentColor;
  stroke: currentColor;
}
.bzc-cmt-actions .bzc-cdel { color: #dc2626; }
.bzc-cmt-actions .bzc-cdel:hover { color: #b91c1c; }
@media (max-width: 767px) {
  .bzc-cmt-sheet {
    /* bottom توسط JS با visualViewport تنظیم می‌شود */
    bottom: 0;
  }
}

.bzc-cmt-emo-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 6px;
  margin-bottom: 2px;
  scrollbar-width: thin;
}
.bzc-cmt-emo-row::-webkit-scrollbar { height: 4px; }
.bzc-cmt-emo {
  flex: 0 0 auto;
  border: 0 !important;
  background: transparent !important;
  width: 36px;
  height: 36px;
  border-radius: 0;
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bzc-cmt-emo:active { transform: scale(.9); background: transparent !important; opacity: .75; }
.bzc-cmt-actions .bzc-cdel {
  color: #dc2626 !important;
  font-weight: 700;
}

.bzc-cdel-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}
.bzc-cdel-timer {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  min-width: 1.5em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  display: inline-block;
  text-align: center;
}
.bzc-cdel-wrap .bzc-cdel { margin: 0; }

/* BZC_FEED_CMT_FIX */
.bzc-cmt-sheet-foot .bzc-cmt-emo-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  max-width: 100%;
}
.bzc-cmt-sheet .bzc-cdel-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.bzc-cmt-sheet .bzc-cdel-timer {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #6b7280 !important;
  min-width: 1.6em;
  direction: ltr;
  unicode-bidi: isolate;
}
.bzc-cmt-sheet .body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.5;
}

/* BZC_EMO_SIZE — ایموجی انتخابگر بزرگ، بدون دایره؛ متن نظر دست‌نخورده */
.bzc-cmt-sheet-foot .bzc-cmt-emo {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 28px !important;
  line-height: 36px !important;
  box-shadow: none !important;
}
.bzc-cmt-sheet .body {
  font-size: 14px; /* ایموجی داخل متن نظر هم‌اندازه متن */
}

.bzc-feed-card.bzc-post-flash {
  outline: 2px solid #ef4050;
  outline-offset: 4px;
  animation: bzcFlash 1.2s ease;
}
@keyframes bzcFlash {
  from { background: rgba(239,64,80,.08); }
  to { background: transparent; }
}


/* —— ناوبری بالای اکسپلور —— */
.bzc-feed-topnav{ align-items:center; }
.bzc-feed-navchip{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:999px; font-size:12.5px; font-weight:700;
  text-decoration:none !important; color:#334155 !important;
  background:#f8fafc; border:1px solid #e2e8f0;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.bzc-feed-navchip:hover{
  background:#fff1f2; border-color:#fecdd3; color:#e11d48 !important;
  transform:translateY(-1px);
}

/* —— هندل پیج —— */
.bzc-page-handle{
  display:inline-flex; align-items:center;
  direction:ltr; unicode-bidi:isolate;
  font-size:13px; font-weight:700; letter-spacing:.2px;
  color:#0f172a; background:linear-gradient(135deg,#f8fafc,#eef2ff);
  border:1px solid #e2e8f0; border-radius:999px;
  padding:4px 12px; margin-inline-start:0;
}
.bzc-page-title-row{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
  justify-content:flex-start; /* در RTL از راست شروع می‌شود */
}

/* —— پیش‌نمایش کاشی دسکتاپ: تصویر بزرگ + منو کنار —— */
@media (min-width: 992px){
  .bzc-peek-wrap{
    display:flex !important;
    flex-direction:row !important;
    align-items:stretch !important;
    gap:14px !important;
    max-width:min(980px, 94vw) !important;
    width:auto !important;
    transform:none !important;
  }
  .bzc-peek-backdrop.open .bzc-peek-wrap{ transform:none !important; }
  .bzc-peek-card{
    width:auto !important;
    flex:1 1 auto !important;
    max-width:min(680px, 72vw) !important;
    max-height:min(88vh, 820px) !important;
    border-radius:18px !important;
  }
  .bzc-peek-media,
  .bzc-peek-media-inner{
    max-height:min(84vh, 780px) !important;
    min-height:min(52vh, 480px) !important;
    height:min(84vh, 780px) !important;
  }
  .bzc-peek-media img,
  .bzc-peek-media video{
    max-height:min(84vh, 780px) !important;
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
  .bzc-peek-menu{
    width:220px !important;
    min-width:200px !important;
    max-width:240px !important;
    flex:0 0 220px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    border-radius:16px !important;
    box-shadow:0 12px 40px rgba(0,0,0,.18) !important;
    background:#fff !important;
    padding:8px 0 !important;
    margin:0 !important;
  }
}


.bzc-feed-navchip.is-active{
  background:#fff1f2 !important;
  border-color:#fecdd3 !important;
  color:#e11d48 !important;
}


/* RDL_ANDROID_EMOJI_CMT — متن زیبا + ایموجی اندروید فقط روی ایموجی‌ها */
.bzc-cmt-sheet,
.bzc-cmt-sheet-head,
.bzc-cmt-sheet-body,
.bzc-cmt-sheet-foot,
.bzc-thread-item .body,
.bzc-cmt-main .body,
.bzc-cmt-main .name,
.bzc-cmt-actions,
.bzc-cmt-actions button,
#bzcCmtInput,
.bzc-cmt-sheet-foot button[type="submit"] {
  font-family: "Vazirmatn", "Vazir", "Tahoma", "Segoe UI", system-ui, -apple-system, sans-serif !important;
  font-variant-emoji: normal;
}
.bzc-cmt-emo,
.bzc-cmt-emo-row button.bzc-cmt-emo,
.bzc-cmt-emo-ico,
.bzc-cvote .bzc-cmt-emo-ico {
  font-family: "Noto Color Emoji", "Noto Color Emoji FF", "Segoe UI Emoji", "Apple Color Emoji", "Android Emoji", sans-serif !important;
  font-variant-emoji: emoji !important;
}
.bzc-cmt-emo {
  font-size: 26px !important;
  line-height: 34px !important;
}
/* ورودی نظر: متن وزیر + ایموجی رنگی */
#bzcCmtInput {
  font-family: "Vazirmatn", "Vazir", "Tahoma", "Noto Color Emoji", "Apple Color Emoji", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.bzc-thread-item .body,
.bzc-cmt-main .body {
  font-size: 14px !important;
  line-height: 1.65 !important;
  letter-spacing: -0.01em;
}


/* bzc-cmt emoji keyboard fix */
.bzc-cmt-sheet-foot {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 5;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.bzc-cmt-emo {
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.bzc-cmt-emo:active {
  transform: scale(0.92);
}

/* bzc-cmt-sheet keyboard v3 */
@media (max-width: 767px) {
  .bzc-cmt-sheet {
    display: flex !important;
    flex-direction: column !important;
  }
  .bzc-cmt-sheet-body {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bzc-cmt-sheet-foot {
    flex: 0 0 auto;
    position: relative;
    bottom: auto;
    box-shadow: 0 -6px 16px rgba(15,23,42,.06);
  }
}


/* bzc-cmt + bottom-nav stack */
@media (max-width: 767px) {
  .bzc-cmt-backdrop {
    z-index: 10040 !important;
  }
  .bzc-cmt-backdrop .bzc-cmt-sheet,
  .bzc-cmt-sheet {
    z-index: 10045 !important;
  }
  body.bzc-cmt-open .dk-bottom-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10055 !important;
    pointer-events: auto !important;
  }
}


/* جلوگیری از پرش اسکرول خودکار (Firefox) در صفحات سوشیال */
body:has(.bzc-feed),
body:has(.bzc-profile),
html:has(.bzc-feed) {
  overflow-anchor: none;
}
