/* story.css — Story page: title bar, full timeline, month/new dividers, unread highlight. (split from design3.css) */

/* ===== Story Page — Title Bar ===== */
.story-title-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  position: sticky;
  top: 57px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.story-title-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.story-title-text {
  flex: 1;
  min-width: 0;
}

.story-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.story-title-right {
  flex-shrink: 0;
}

/* ===== Story Page — Full Timeline ===== */
.story-timeline-full {
  max-width: var(--max-width);
  padding: 8px 16px 32px;
}

.story-timeline-full .mini-timeline {
  padding-left: 0;
}

.story-timeline-full .mini-event {
  padding-bottom: 10px;
}

.story-timeline-full .mini-event-text {
  white-space: normal;
  overflow: visible;
  font-size: 14px;
  line-height: 1.45;
}

.story-timeline-full .mini-event-date {
  min-width: 88px;
}

.story-timeline-full .month-divider {
  padding: 12px 0 8px 16px;
}

/* ===== Month divider ===== */
.month-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  max-width: var(--max-width);
}

.month-divider span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.month-divider::before,
.month-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ===== New / unread divider (old/new boundary) ===== */
.story-timeline-full .new-divider {
  padding: 12px 0 8px 16px;
}

.new-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  max-width: var(--max-width);
}

.new-divider span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--unread);
  border-radius: 10px;
  padding: 3px 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.new-divider::before,
.new-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--unread);
  opacity: 0.5;
}

/* ===== Unread (new) events highlight ===== */
.mini-event.unread::before {
  background: var(--unread);
}

.mini-event.unread::after {
  background: var(--unread);
  opacity: 0.4;
}

.mini-event.unread .mini-event-date {
  color: var(--unread);
  font-weight: 600;
}

.mini-event.unread .mini-event-text {
  color: var(--text-primary);
  font-weight: 600;
}

