/* BIBLE READER VIEW */
.reader-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #F0E6D8;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.reader-title-box {
  display: flex;
  flex-direction: column;
}

.reader-main-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-crimson);
}

.reader-sub-tag {
  font-size: 12.5px;
  color: #888;
  font-weight: 600;
}

.reader-top-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-btn {
  background: #FFFDF9;
  border: 1.5px solid var(--gold-primary);
  color: var(--primary-crimson);
  font-weight: 900;
  font-size: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
}

.top-nav-btn:hover {
  background: var(--gold-primary);
  color: #2C1802;
  transform: scale(1.06);
}

.top-nav-btn:active {
  transform: scale(0.94);
}

/* TOP SUMMARY ACCORDION */
.chapter-top-summary-box {
  margin-bottom: 14px;
  background: #FFFDF8;
  border: 1.5px solid #E8DCCB;
  border-radius: 12px;
  padding: 10px 14px;
}

/* VERSE ROWS */
.verse-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  line-height: 1.75;
  font-size: 16.5px;
  color: #222;
  transition: background 0.15s;
  cursor: pointer;
}

.verse-row:hover {
  background: #FAF6EF;
}

.verse-row.selected-in-range {
  background: #FFF3CD !important;
  border-left: 4px solid var(--gold-primary);
}

.verse-row.target-highlight {
  animation: pulseTarget 2.5s ease-in-out forwards;
  background: #FFF8E1 !important;
  border-left: 5px solid #D4AF37 !important;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4) !important;
  border-radius: 6px;
}

@keyframes pulseTarget {
  0% { background: #FFE082; transform: scale(1.015); box-shadow: 0 4px 16px rgba(212, 175, 55, 0.6); }
  40% { background: #FFF9C4; transform: scale(1); }
  100% { background: #FFFDF0; border-left-color: #D4AF37; }
}

.v-num {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary-crimson);
  min-width: 28px;
  padding-top: 3px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bm-indicator {
  font-size: 13px;
  margin-left: 2px;
  vertical-align: middle;
  opacity: 0.85;
}

.verse-row.has-bookmark {
  border-left: 3px solid #E65100;
}


/* CHAPTER NAV BUTTONS */
.chapter-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px solid #F0E6D8;
}

/* FLOATING RANGE ACTION BAR */
.floating-range-bar {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #2C1802;
  color: white;
  border-radius: 30px;
  padding: 8px 16px;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1010;
  font-size: 13px;
  font-weight: 700;
  max-width: 95vw;
}

/* CHAPTER LEVEL PILLS */
.chapter-levels-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  margin-top: 8px;
}

.chapter-level-pill {
  background: #FFFDF8;
  border: 1.5px solid var(--gold-primary);
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  color: var(--primary-crimson);
  white-space: nowrap;
  transition: all 0.15s;
}

.chapter-level-pill.locked {
  opacity: 0.6;
  background: #F5F5F5;
  border-color: #DDD;
  color: #888;
}

/* 🎧 FLOATING AUDIO RECITER DOCK */
.audio-reciter-dock {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2C1802 0%, #4A0012 100%);
  color: #FFF;
  border-radius: 28px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 1010;
  border: 1.5px solid var(--gold-primary);
  max-width: 95vw;
  animation: slideUpAudio 0.3s ease-out;
}

@keyframes slideUpAudio {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.audio-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}

.audio-btn:hover {
  background: var(--gold-primary);
  color: #2C1802;
  transform: scale(1.08);
}

.audio-btn.primary {
  background: var(--gold-primary);
  color: #2C1802;
  font-size: 17px;
  width: 38px;
  height: 38px;
  border: none;
  font-weight: 900;
}

.audio-speed-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #FFD54F;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.verse-row.audio-speaking {
  background: #FFF9C4 !important;
  border-left: 5px solid #F57F17 !important;
  box-shadow: 0 0 12px rgba(245, 127, 23, 0.25);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

[data-theme="dark"] .verse-row.audio-speaking, [data-theme="oled"] .verse-row.audio-speaking {
  background: #3E2723 !important;
  border-left: 5px solid #FFD54F !important;
  color: #FFF !important;
}

/* 🎨 THEME TOGGLE BUTTONS IN TOOLBAR */
.theme-switch-group {
  display: flex;
  background: rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 2px;
  border: 1px solid #EAE0D5;
}

.theme-pill-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 16px;
  cursor: pointer;
  color: #666;
  transition: all 0.15s;
}

.theme-pill-btn.active {
  background: white;
  color: var(--primary-crimson);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* 🏷️ FLOATING VERSE SELECTION ACTION DOCK (SAVE, BOOKMARK, HIGHLIGHT, SHARE, COPY) */
.verse-action-dock {
  position: fixed;
  bottom: calc(85px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 560px;
  background: linear-gradient(135deg, #1C0A00 0%, #3B1600 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.35);
  padding: 10px 14px;
  z-index: 1250;
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: dockSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes dockSlideUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (min-width: 769px) {
  .verse-action-dock {
    bottom: 30px;
  }
}

.action-dock-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.action-dock-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.action-dock-btn:active {
  transform: scale(0.95);
}

.action-dock-btn.close-dock-btn {
  background: rgba(255, 82, 82, 0.25);
  border-color: rgba(255, 82, 82, 0.5);
  color: #FF8A80;
  padding: 6px 10px;
}
