/* ── Layout fix: header stays fixed, only scene-list scrolls ── */
.app {
  height: 100dvh;
  max-height: 100dvh;
}

/* ── Scene list ── */
.scene-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 32px;
}

.scene-section {
  padding: 20px 16px 0;
}

.scene-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.scene-chapter {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--bg-3);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.scene-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.2px;
}

/* ── Images inside a scene ── */
.scene-strip-wrap {
  margin-bottom: 24px;
}

.scene-images {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scene-images::-webkit-scrollbar {
  display: none;
}

.scene-img {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  background: var(--bg-3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ── Dot indicator ── */
.scene-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.scene-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.scene-dot.active {
  background: var(--text-2);
  transform: scale(1.25);
}

.scene-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

/* ── Empty state ── */
.ref-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3);
  padding: 64px 24px;
  text-align: center;
}

.ref-empty-icon {
  font-size: 36px;
  opacity: 0.35;
}

.ref-empty-text {
  font-size: 14px;
  line-height: 1.6;
}

