/* ARBI.RU — истории: вертикальные карточки и круглый вариант. */
.story-block { margin: 28px 0 8px; }
.story-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

.story-rect-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 196px;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.story-rect {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  min-height: 300px;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: var(--graphite-900);
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 12px 30px rgba(19, 23, 14, .14);
}
.story-rect:hover { transform: translateY(-2px); transition: transform .18s ease; }
.story-rect__media, .story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.story-media--empty { display: flex; align-items: center; justify-content: center; background: var(--graphite-800); color: var(--lime-500); }
.story-rect__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 12, 8, .32) 0%, rgba(10, 12, 8, .02) 35%, rgba(10, 12, 8, .82) 100%);
}
.story-rect__top {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.story-rect__owner {
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.story-rect__city {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 12, 8, .38);
  color: rgba(255, 255, 255, .94);
}
.story-rect__body {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.story-rect__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.story-rect__title {
  color: #fff;
  font-size: 15px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.story-rect__text {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .86);
}
.story-rect__cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--lime-500);
  color: var(--graphite-900);
  font-size: 11px;
  font-weight: 700;
  text-shadow: none;
}
.story-rect--compact { grid-auto-columns: 156px; min-height: 260px; }
.story-rect-grid--compact { grid-auto-columns: 156px; }

.story-bubble-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.story-bubble-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 94px;
  flex: 0 0 94px;
  text-decoration: none;
  color: var(--graphite-900);
  text-align: center;
}
.story-bubble__ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--lime-500), var(--graphite-900), var(--lime-500));
  box-sizing: border-box;
}
.story-bubble__ring img,
.story-bubble__fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 3px solid var(--paper);
  box-sizing: border-box;
}
.story-bubble__fallback { color: var(--graphite-700); }
.story-bubble__label {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-bubble__note {
  font-size: 10px;
  color: var(--graphite-500);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .story-rect-grid { grid-auto-columns: 164px; gap: 10px; }
  .story-rect { border-radius: 14px; min-height: 290px; }
  .story-rect__title { font-size: 14px; }
}
