/* ═══════════════════════════════════════
   STORIES  — all breakpoints
   ═══════════════════════════════════════ */
.stories-section { padding: 40px 0 0; }

.stories-wrap {
  position: relative;
  margin: 20px 0 0;
}

.stories-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.stories-scroll::-webkit-scrollbar { display: none; }

/* Arrow buttons + fade */
.stories-arrow {
  display: none;
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  align-items: center;
  border: none;
  cursor: pointer;
  color: var(--icon-color);
  transition: opacity 0.2s;
  z-index: 10;
  pointer-events: none;
}

.stories-arrow--right {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(to right, transparent, var(--bg) 70%);
}

.stories-arrow--left {
  left: 0;
  justify-content: flex-start;
  background: linear-gradient(to left, transparent, var(--bg) 70%);
}

.stories-arrow svg {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--white-14);
  padding: 10px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  pointer-events: all;
}
.stories-arrow:hover svg {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: scale(1.08);
}
.stories-arrow.visible { display: flex; pointer-events: all; }
.stories-arrow.hidden  { opacity: 0; pointer-events: none; }

.stories-row {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 4px 0;
}
.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  width: 76px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.12s, transform 0.2s;
}
.story-item:hover { transform: translateY(-4px); }
.story-item:active { opacity: 0.7; transform: scale(0.95); }

.story-item:hover .story-name { color: var(--white); }

.story-ring {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--lime) 100%);
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}
.story-item:hover .story-ring {
  box-shadow: 0 6px 20px rgba(139, 93, 246, 0.5);
}

.story-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.story-avatar img {
	width: 50px;
	height: 50px;
    border-radius: 60%;
    background: var(--white-14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    flex-shrink: 0;
    transition: background 0.3s;
}

.story-add-ring {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px dashed var(--white-14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}
.story-item:hover .story-add-ring {
  border-color: var(--white-40);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.story-add-plus {
  width: 26px; height: 26px;
  background: var(--purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 400; line-height: 1;
}

.story-name {
  font-size: 11px; font-weight: 400;
  color: var(--white-70); text-align: center;
  line-height: 1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 76px;
  transition: color 0.3s;
}

/* ── Mobile: slightly smaller ── */
@media (max-width: 510px) {
  .stories-section { padding: 28px 0 0; }

  .stories-wrap { margin: 0; }

  .stories-arrow { display: none !important; }

  .stories-scroll {
    margin: 16px -16px 0;
    padding: 4px 16px;
  }

  .story-item { width: 64px; gap: 6px; }
  .story-ring { width: 64px; height: 64px; }
  .story-avatar { width: 57px; height: 57px; font-size: 22px; }
  .story-add-ring { width: 64px; height: 64px; }
  .story-add-plus { width: 22px; height: 22px; font-size: 18px; }
  .story-name { max-width: 64px; }
}
