.eiswp-story-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.eiswp-story-list {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 15px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.eiswp-story-item {
  position: relative;
  flex: 0 0 80px;
  aspect-ratio: 1 / 1;
  border-radius: 50%; /* گرد کردن کامل */
  overflow: hidden;
  box-shadow: 0 0 0 3px #ff0040; /* حلقه قرمز برای استوری جدید */
  cursor: pointer;
  scroll-snap-align: start;
  transition: box-shadow 0.3s ease;
  background: #000;
}

.eiswp-story-item.viewed {
  box-shadow: 0 0 0 3px #999; /* حلقه خاکستری برای استوری دیده شده */
}

.eiswp-story-item img,
.eiswp-story-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* گرد کردن عکس و ویدیو */
  display: block;
}

.eiswp-story-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 3px #ff0040;
  transition: box-shadow 0.3s ease;
}

.eiswp-progress-container {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  justify-content: center;
}

.eiswp-progress-bar {
  flex: 1;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.eiswp-progress-fill {
  height: 100%;
  width: 0%;
  background: #ff0040;
  transition: width linear;
  position: absolute;
  top: 0;
  left: 0;
}

/* استایل پنل فول اسکرین */

#eiswp-fullscreen-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.eiswp-fullscreen-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 720px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

#eiswp-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.eiswp-fullscreen-story-container img,
.eiswp-fullscreen-story-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.eiswp-fullscreen-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: rgba(255,255,255,0.2);
}

.eiswp-fullscreen-progress-fill {
  height: 100%;
  width: 0%;
  background: #ff0040;
  transition: width linear;
}
