/* ========== STORIES (video reviews — clickable cards + fullscreen viewer) ========== */
.stories {
  padding: 110px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.stories-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 16px;
  scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }

.story-card {
  flex: 0 0 260px;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  background: #050505;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.story-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 45%, rgba(0,0,0,0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.story-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: background 0.2s, border-color 0.2s;
}
.story-card:hover .story-play {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.story-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Fullscreen viewer */
.story-viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.story-viewer.active { display: flex; }
.story-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-progress {
  display: flex;
  flex: 1;
  gap: 4px;
  height: 3px;
}
.story-progress-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  height: 3px;
}
.story-progress-bar .fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.1s linear;
}
.story-progress-bar.done .fill { width: 100%; }
.story-viewer-close {
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  line-height: 1;
  user-select: none;
}
.story-viewer-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.story-viewer-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 5;
  cursor: pointer;
}
.story-viewer-prev { left: 0; }
.story-viewer-next { right: 0; }
.story-viewer-caption {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  z-index: 6;
  padding: 0 60px;
}
.story-viewer-sound {
  position: absolute;
  bottom: 30px;
  right: 18px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 6;
  background: rgba(255, 255, 255, 0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

@media (max-width: 768px) {
  .story-card { flex: 0 0 160px; height: 280px; border-radius: 10px; }
  .story-play { width: 42px; height: 42px; font-size: 1rem; }
  .story-caption { font-size: 12.5px; bottom: 10px; left: 10px; right: 10px; }
}
@media (max-width: 400px) {
  .story-card { flex: 0 0 140px; height: 240px; }
}
