/* Droptan Stories — duyuru / haber / blog listeleri */
.lv2-stories {
  --lv2-stories-burgundy: #680202;
  --lv2-stories-cream: #faf2e6;
  --lv2-stories-ring: #a34a4a;
  --lv2-stories-seen: #c4b8a8;
  margin: 0 0 1.75rem;
}

.lv2-stories__rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 2, 2, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
}

.lv2-stories__rail::-webkit-scrollbar {
  height: 4px;
}

.lv2-stories__rail::-webkit-scrollbar-thumb {
  background: rgba(104, 2, 2, 0.25);
  border-radius: 999px;
}

.lv2-stories__item {
  flex: 0 0 auto;
  width: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.lv2-stories__item:focus-visible {
  outline: 2px solid var(--lv2-stories-burgundy);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.lv2-stories__ring {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(
    145deg,
    var(--lv2-stories-burgundy) 0%,
    var(--lv2-stories-ring) 48%,
    #8b3030 100%
  );
  box-shadow: 0 1px 2px rgba(104, 2, 2, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lv2-stories__item:hover .lv2-stories__ring,
.lv2-stories__item:focus-visible .lv2-stories__ring {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(104, 2, 2, 0.18);
}

.lv2-stories__item.is-seen .lv2-stories__ring {
  background: linear-gradient(145deg, #d4c8b8, var(--lv2-stories-seen));
  box-shadow: none;
}

.lv2-stories__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: var(--lv2-stories-cream);
  border: 2.5px solid var(--lv2-stories-cream);
  box-sizing: border-box;
}

.lv2-stories__caption {
  max-width: 4.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #3b1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full-screen viewer */
.lv2-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 4, 4, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lv2-story-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lv2-story-viewer__stage {
  position: relative;
  width: min(100vw, 26.5rem);
  height: min(100dvh, 100vh);
  max-height: 100dvh;
  background: #0a0404;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .lv2-story-viewer__stage {
    height: min(92dvh, 52rem);
    border-radius: 1rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  }
}

.lv2-story-viewer__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 0.3rem;
  padding: max(0.7rem, env(safe-area-inset-top)) 0.75rem 0;
}

.lv2-story-viewer__bar {
  flex: 1;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(250, 242, 230, 0.28);
  overflow: hidden;
}

.lv2-story-viewer__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lv2-stories-cream, #faf2e6);
  border-radius: inherit;
  transform-origin: left center;
}

.lv2-story-viewer__bar.is-done .lv2-story-viewer__bar-fill {
  width: 100%;
}

.lv2-story-viewer__chrome {
  position: absolute;
  top: max(1.35rem, calc(env(safe-area-inset-top) + 0.85rem));
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  pointer-events: none;
}

.lv2-story-viewer__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.lv2-story-viewer__meta-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid rgba(250, 242, 230, 0.55);
  background: #680202;
}

.lv2-story-viewer__meta-text {
  min-width: 0;
  color: #faf2e6;
}

.lv2-story-viewer__meta-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv2-story-viewer__meta-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  opacity: 0.72;
}

.lv2-story-viewer__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}

.lv2-story-viewer__btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 242, 230, 0.12);
  color: #faf2e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.lv2-story-viewer__btn:hover,
.lv2-story-viewer__btn:focus-visible {
  background: rgba(250, 242, 230, 0.22);
  outline: none;
}

.lv2-story-viewer__btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lv2-story-viewer__media {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #0a0404;
}

.lv2-story-viewer__media video,
.lv2-story-viewer__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0404;
}

.lv2-story-viewer__tap {
  position: absolute;
  top: 3.5rem;
  bottom: 0;
  width: 42%;
  z-index: 4;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.lv2-story-viewer__tap--prev {
  left: 0;
}

.lv2-story-viewer__tap--next {
  right: 0;
  width: 58%;
}

.lv2-story-viewer__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 2.5rem 1rem max(1.25rem, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(8, 2, 2, 0.78));
  color: #faf2e6;
  pointer-events: none;
}

.lv2-story-viewer__caption-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.lv2-story-viewer__caption-body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  opacity: 0.88;
}

body.lv2-story-open {
  overflow: hidden;
}
