:root {
  --story-ring: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.stories-grid::-webkit-scrollbar {
  display: none;
}
.story-circle {
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease;
}
.story-circle:hover {
  transform: scale(1.05);
}
.story-circle:active {
  transform: scale(0.95);
}
.story-circle__ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  margin-bottom: 8px;
}
.story-circle__image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  background-size: cover;
  background-position: center;
}
.story-circle__name {
  font-size: 12px;
  font-weight: 400;
  color: #262626;
}
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  opacity: 0;
  overflow: hidden;
}
.story-modal.is-active {
  display: flex;
}
.story-modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}
.story-modal__close {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1100;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  transition: transform 0.3s ease;
}
.story-modal__close:hover {
  transform: scale(1.1);
}
.close-icon {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.close-icon::before, .close-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}
.close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}
.profile-swiper {
  width: 100%;
  height: 90vh;
  padding-top: 20px;
  overflow: visible !important;
}
.profile-slide {
  width: 340px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  opacity: 0.2;
}
.profile-slide.swiper-slide-active {
  opacity: 1;
}
.story-card {
  width: 100%;
  height: 100%;
  max-height: 600px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #111;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.story-card__progress-bars {
  position: absolute;
  top: 15px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
}
.progress-segment {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  overflow: hidden;
}
.progress-segment__fill {
  width: 0%;
  height: 100%;
  background: #fff;
  transition: none;
}
.story-card__header {
  position: absolute;
  top: 35px;
  left: 15px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.story-card__username {
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
}
.story-card__content {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}