/* ===========================================================
   نمایشگر استوری اینستاگرامی
   =========================================================== */
.rey-story-viewer { position: fixed; inset: 0; z-index: 200; display: none; }
.rey-story-viewer.open { display: block; }
.rey-story-viewer .rsv-backdrop { position: absolute; inset: 0; background: rgba(10,14,18,.92); backdrop-filter: blur(4px); }

.rey-story-viewer .rsv-stage { position: absolute; top: 50%; right: 50%; transform: translate(50%, -50%);
  width: min(420px, 100vw); height: min(90vh, 760px); background: #000; border-radius: calc(16px * var(--rey-r)); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
@media (max-width: 480px) { .rey-story-viewer .rsv-stage { width: 100vw; height: 100vh; border-radius: 0; } }

/* نوارهای پیشرفت */
.rey-story-viewer .rsv-bars { position: absolute; top: 10px; right: 10px; left: 10px; z-index: 4; display: flex; gap: 4px; }
.rey-story-viewer .rsv-bar { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.35); overflow: hidden; }
.rey-story-viewer .rsv-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; }

/* سربرگ */
.rey-story-viewer .rsv-head { position: absolute; top: 22px; right: 12px; left: 12px; z-index: 4; display: flex; align-items: center; gap: 10px; }
.rey-story-viewer .rsv-ava { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; flex: 0 0 34px; background: #333; }
.rey-story-viewer .rsv-ava img { width: 100%; height: 100%; object-fit: cover; }
.rey-story-viewer .rsv-name { font: 700 13px var(--rey-font); color: #fff; flex: 1; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.rey-story-viewer .rsv-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .9; }

/* رسانه */
.rey-story-viewer .rsv-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.rey-story-viewer .rsv-media img,
.rey-story-viewer .rsv-media video { width: 100%; height: 100%; object-fit: contain; }

/* دکمه‌ی لینک اسلاید */
.rey-story-viewer .rsv-cta { position: absolute; bottom: 20px; right: 50%; transform: translateX(50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #12303f;
  font: 700 13px var(--rey-font); padding: 11px 24px; border-radius: 99px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.rey-story-viewer .rsv-cta svg { width: 16px; height: 16px; }

/* نواحی لمسی چپ/راست */
.rey-story-viewer .rsv-tap { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 3; background: none; border: none; cursor: pointer; }
.rey-story-viewer .rsv-prev { right: 0; }   /* RTL: سمت راست = قبلی */
.rey-story-viewer .rsv-next { left: 0; }
