.qidao-scroll-body {
  background: #000;
  color: #f5f7ff;
}

.qidao-scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.qidao-reel {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 80px; /* top for menu, bottom for nav */
  box-sizing: border-box;
  background: #000;
}

.qidao-reel-inner {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.qidao-header {
  display: flex;
  align-items: center;
  gap: 0rem;
  margin-bottom: 1.25rem;
}

.qidao-header-text {
  flex: 0 0 66.666%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-left: 0rem;
  margin-left: -1.4rem;
}

.qidao-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-weight: 700;
}

.qidao-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.qidao-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5f0ff;
}

.qidao-content p {
  margin-bottom: 0.9rem;
}

/* Hide the first H1 from the markdown content (we show title in header instead) */
.qidao-content h1:first-of-type {
  display: none;
}

/* Ensure nested text (verses, spans, etc.) are bright enough */
.qidao-content * {
  color: inherit;
}
.liandu-verse {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #e5f0ff;
  margin-bottom: 0.9rem;
}
.liandu-paragraphs {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.qidao-meta {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.qidao-open-link {
  color: #ffeb3b;
  text-decoration: none;
}

.qidao-open-link:hover {
  text-decoration: underline;
}

/* Hide in-content navigation buttons from original articles */
.qidao-content .btn,
.qidao-content .read-more {
  display: none !important;
}

/* Hide inline verse reference pill link */
.qidao-content .verse-chip {
  display: none !important;
}

/* Optional: image at top of each reel */
.qidao-thumb {
  flex: 0 0 25%;
  margin-bottom: 1rem;
  text-align: left;
  margin-block-end: 0.5rem;
}

.qidao-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Slightly smaller type for long verse blocks so more fits per screen */
.qidao-content .verse,
.qidao-content .q1 {
  font-size: 0.95rem;
  line-height: 1.6;
}

.qidao-bottom-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px; /* sit just above bottom nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.qidao-reel.is-last .qidao-bottom-hint {
  display: none;
}

.qidao-down-arrow {
  font-size: 1.6rem;
  color: #ffffff;
  opacity: 0.85;
  animation: qidao-bounce 1.5s infinite;
}

@keyframes qidao-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

.qidao-progress {
  width: 60%;
  max-width: 480px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.qidao-progress-bar {
  width: 0%;
  height: 100%;
  background: #ffeb3b;
}

@media (min-width: 768px) {
  .qidao-title { font-size: 2rem; }
  .qidao-content { font-size: 1.1rem; }
}

.qidao-end-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem 1rem;
  animation: qidao-fade-in 0.6s ease-out;
}

.qidao-end-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffeb3b;
  text-align: center;
  margin-bottom: 0.5rem;
}

.qidao-end-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.qidao-end-btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}

.qidao-btn-home {
  background: #ffffff;
  color: #000;
}

.qidao-btn-home:hover {
  background: #ffeb3b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 235, 59, 0.4);
}

.qidao-btn-more {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.qidao-btn-more:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

@keyframes qidao-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}