:root {
  --smr-gradient: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  --smr-ring-size: 5rem;
  --smr-ring-size-mobile: 4.2rem;
}
.smr-frontend-container {
  width: 100%;
  padding: 1.5rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.smr-frontend-container::-webkit-scrollbar {
  display: none;
}
.smr-stories-wrapper {
  display: flex;
  gap: 1.25rem;
  padding: 0 1.5rem;
}
.smr-story-item {
  flex: 0 0 auto;
  width: var(--smr-ring-size);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.smr-story-item:hover {
  transform: scale(1.05);
}
.smr-story-ring-wrapper {
  position: relative;
  width: var(--smr-ring-size);
  height: var(--smr-ring-size);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.smr-story-ring {
  width: calc(var(--smr-ring-size) - 0.6rem);
  height: calc(var(--smr-ring-size) - 0.6rem);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  z-index: 2;
}
.smr-story-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.smr-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #bc1888;
  stroke-width: 2px;
  transform: rotate(-90deg);
  z-index: 1;
}
.smr-story-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e293b;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smr-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.smr-popup-overlay.active {
  display: flex;
  opacity: 1;
}
.smr-popup-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 90vh;
  background: #000;
  border-radius: 1.25rem;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.smr-popup-overlay.active .smr-popup-container {
  transform: scale(1);
}
.smr-popup-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  z-index: 100;
}
.smr-progress-bar-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.smr-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: #fff;
}
.smr-user-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}
.smr-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #fff;
}
#smr-popup-title {
  font-size: 0.9rem;
  font-weight: bold;
}
.smr-popup-close-btn {
  position: absolute;
  top: 1.5rem;
  left: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 110;
}
.smr-popup-content {
  flex: 1;
  position: relative;
}
.smr-media-holder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#smr-player,
#smr-img-display {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.smr-loader-spinner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: smr-spin 0.8s linear infinite;
}
@keyframes smr-spin {
  to {
    transform: rotate(360deg);
  }
}
.smr-cta-footer {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  padding: 0 2.5rem;
  z-index: 100;
}
.smr-cta-button {
  display: block;
  width: 100%;
  padding: 0.9rem;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
@media (max-width: 576px) {
  .smr-story-item {
    width: var(--smr-ring-size-mobile);
  }
  .smr-story-ring-wrapper {
    width: var(--smr-ring-size-mobile);
    height: var(--smr-ring-size-mobile);
  }
  .smr-popup-container {
    height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }
}
.smr-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.smr-actions-top {
  display: flex;
  align-items: center;
  gap: 15px;
}
.smr-icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 5px;
}
.smr-icon-btn:hover {
  transform: scale(1.1);
}
.smr-icon-btn.liked {
  color: #ff3b3b;
}
.smr-icon-btn.liked i {
  font-weight: 900 !important;
}
