@charset "UTF-8";
.pstories {
  margin-bottom: 14px;
}
.pstories__row {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 6px 4px 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pstories__row::-webkit-scrollbar {
  display: none;
}
.pstories__item {
  flex: 0 0 auto;
}
.pstories--auto {
  margin-top: 2px;
}

.pstories__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 78px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-color);
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pstories__btn:focus-visible {
  outline: none;
}
.pstories__btn:focus-visible .pstories__ring {
  outline: 2px solid var(--brand-primary, #5b7cfa);
  outline-offset: 3px;
}
.pstories__btn:active .pstories__ring {
  transform: scale(0.94);
}
.pstories__btn:hover .pstories__ring {
  transform: translateY(-2px);
}
.pstories__btn.is-seen .pstories__ring {
  background: rgba(142, 148, 168, 0.5);
  box-shadow: none;
}
.pstories__btn.is-seen .pstories__label {
  opacity: 0.65;
  font-weight: 500;
}

.pstories__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 3.5px;
  border-radius: 50%;
  background: var(--ring, linear-gradient(45deg, #feda75 0%, #fa7e1e 24%, #d62976 52%, #962fbf 78%, #4f5bd5 100%));
  box-shadow: 0 6px 18px -8px rgba(214, 41, 118, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pstories__gap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 50%;
  background: var(--pst-gap, var(--body-bg, var(--background-color, #fff)));
}

.pstories__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, 0.35), transparent 55%), linear-gradient(145deg, var(--st-c1, #6d28d9), var(--st-c2, #ec4899));
}
.pstories__disc svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.pstories__disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}
.pstories__disc .pst-emoji {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.pstories__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.pstories__btn.is-draft .pstories__ring {
  background: repeating-conic-gradient(rgba(142, 148, 168, 0.85) 0 12deg, transparent 12deg 24deg);
  box-shadow: none;
}
.pstories__btn.is-draft .pstories__disc {
  opacity: 0.85;
}

.pstories__draft {
  margin-top: -4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #f59e0b;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.7;
}

.pst-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  direction: rtl;
  color: #fff;
}
.pst-stage__bg, .pst-stage__media, .pst-stage__scrim, .pst-stage__layers {
  position: absolute;
  inset: 0;
}
.pst-stage__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.pst-stage__scrim {
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.pst-l {
  position: absolute;
  left: calc(var(--x, 50) * 1%);
  top: calc(var(--y, 50) * 1%);
  width: max-content;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transform-origin: center;
  line-height: 1.5;
}
.pst-l.is-hidden {
  opacity: 0.28;
}
.pst-l__in {
  transform-origin: center;
}

.pst-l-text {
  width: var(--w, 80cqw);
  color: var(--c, #fff);
  font-size: var(--fs, 6cqw);
  font-weight: var(--fw, 700);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pst-l-text.has-shadow {
  text-shadow: 0 0.06em 0.34em rgba(0, 0, 0, 0.4);
}
.pst-l-text.pst-bg-solid .pst-l-text__s {
  display: inline-block;
  max-width: 100%;
  padding: 0.25em 0.6em;
  border-radius: 0.35em;
  background: var(--bgc, #000);
  text-shadow: none;
}
.pst-l-text.pst-bg-marker .pst-l-text__s {
  padding: 0.04em 0.45em;
  border-radius: 0.3em;
  background: var(--bgc, #000);
  line-height: 1.95;
  text-shadow: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.pst-l-text.pst-bg-soft .pst-l-text__s {
  display: inline-block;
  max-width: 100%;
  padding: 0.28em 0.7em;
  border-radius: 0.5em;
  background: rgba(0, 0, 0, 0.42);
}

.pst-l-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: var(--w, 80cqw);
  padding: 0.72em 1.5em;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 4.2cqw;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: #14162a;
  background: #fff;
  box-shadow: 0 1.8cqw 4cqw -1.4cqw rgba(0, 0, 0, 0.55);
}
.pst-l-link svg {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
}
.pst-l-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.pst-l-link.pst-ls-gradient {
  color: #fff;
  background: linear-gradient(100deg, #f472b6, #a855f7 55%, #6366f1);
}
.pst-l-link.pst-ls-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.5), 0 1.8cqw 4cqw -1.4cqw rgba(0, 0, 0, 0.5);
}
.pst-l-link.pst-ls-outline {
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 0.6cqw #fff;
}

.pst-l--badge .pst-l__in {
  filter: drop-shadow(0 1.2cqw 2.6cqw rgba(0, 0, 0, 0.35));
}

.pst-badge {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.pst-l--image .pst-l__in img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.pst-l--image .pst-l__in.has-shadow {
  filter: drop-shadow(0 1.6cqw 3.4cqw rgba(0, 0, 0, 0.5));
}
.pst-l--image .pst-l__in.is-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 0.5cqw dashed rgba(255, 255, 255, 0.7);
  border-radius: 4cqw;
  font-size: 4cqw;
}

.pst-l--video .pst-l__in {
  overflow: hidden;
}
.pst-l--video .pst-l__in video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 8cqw;
  background: #000;
  object-fit: cover;
  user-select: none;
}
.pst-l--video .pst-l__in.has-shadow {
  filter: drop-shadow(0 1.6cqw 3.4cqw rgba(0, 0, 0, 0.5));
}
.pst-l--video .pst-l__in.is-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 9/16;
  border: 0.5cqw dashed rgba(255, 255, 255, 0.7);
  border-radius: 4cqw;
  font-size: 4cqw;
}

.pst-l__in[data-anim=pop] {
  animation: pst-a-pop 0.55s cubic-bezier(0.2, 1.5, 0.3, 1) var(--d, 0s) both;
}

.pst-l__in[data-anim=fade] {
  animation: pst-a-fade 0.6s ease var(--d, 0s) both;
}

.pst-l__in[data-anim=rise] {
  animation: pst-a-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both;
}

.pst-l__in[data-anim=pulse] {
  animation: pst-a-pop 0.5s cubic-bezier(0.2, 1.5, 0.3, 1) var(--d, 0s) both, pst-a-pulse 1.8s ease-in-out calc(var(--d, 0s) + 0.5s) infinite;
}

.pst-l__in[data-anim=shake] {
  animation: pst-a-fade 0.4s ease var(--d, 0s) both, pst-a-shake 2.4s ease-in-out calc(var(--d, 0s) + 0.5s) infinite;
}

@keyframes pst-a-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pst-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pst-a-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pst-a-rise {
  from {
    opacity: 0;
    transform: translateY(5cqw);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pst-a-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes pst-a-shake {
  0%, 86%, 100% {
    transform: rotate(0);
  }
  90% {
    transform: rotate(-4deg);
  }
  94% {
    transform: rotate(4deg);
  }
  97% {
    transform: rotate(-2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pst-l__in[data-anim] {
    animation: none !important;
  }
}
.pst-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 16, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  direction: rtl;
}
.pst-viewer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease;
}
.pst-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pst-viewer__nav:hover {
  background: rgba(255, 255, 255, 0.26);
}
.pst-viewer__nav:active {
  transform: scale(0.92);
}
.pst-viewer__nav[hidden] {
  display: none !important;
}
.pst-viewer__nav svg {
  width: 22px;
  height: 22px;
}
.pst-viewer__nav--next {
  right: calc(50% + 250px);
}
.pst-viewer__nav--prev {
  left: calc(50% + 250px);
}
.pst-viewer__card {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  background: #0b0d18;
  transform: scale(0.94);
  transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  cursor: pointer;
}
.pst-viewer.is-open .pst-viewer__card {
  transform: none;
}
.pst-viewer__stage {
  position: absolute;
  inset: 0;
}
.pst-viewer__shade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}
.pst-viewer__bars {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 12px 12px 0;
}
.pst-viewer__bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.pst-viewer__bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right center;
}
.pst-viewer__bar.is-done i {
  transform: scaleX(1);
}
.pst-viewer__head {
  position: absolute;
  inset: 14px 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 0;
}
.pst-viewer__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.pst-viewer__avatar svg {
  width: 20px;
  height: 20px;
}
.pst-viewer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pst-viewer__avatar .pst-emoji {
  font-size: 20px;
  line-height: 1;
}
.pst-viewer__who {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.pst-viewer__name {
  font-size: 14px;
  font-weight: 800;
}
.pst-viewer__time {
  margin-inline-start: 8px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}
.pst-viewer__ctl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pst-viewer__ctl:hover {
  background: rgba(255, 255, 255, 0.18);
}
.pst-viewer__ctl[hidden] {
  display: none;
}
.pst-viewer__ctl svg {
  width: 22px;
  height: 22px;
}
.pst-viewer.is-loading .pst-viewer__stage::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pst-spin 0.8s linear infinite;
}
.pst-viewer.is-error .pst-viewer__stage::after {
  content: "بارگذاری نشد؛ استوری دیگری را امتحان کنید";
  position: absolute;
  inset: 50% 16px auto;
  transform: translateY(-50%);
  text-align: center;
  font-size: 14px;
  opacity: 0.85;
}
@media (min-width: 640px) {
  .pst-viewer__nav {
    display: grid;
  }
  .pst-viewer__card {
    width: min(440px, (100vh - 48px) * 0.5625);
    height: min(100vh - 48px, 782px);
    border-radius: 22px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pst-viewer, .pst-viewer__card {
    transition: none;
  }
}

body.pst-lock {
  overflow: hidden;
}