/* ============================================================
   css/router.css  —  Page-level navigation styles
   Song Detail · Bible Page · Setlist Page
   ============================================================ */

/* ── PAGE CONTAINERS ─────────────────────────────────────────── */

/* When any page is active, hide ALL home content */
body[class*="page-"] header,
body[class*="page-"] .toolbar,
body[class*="page-"] .home-features,
body[class*="page-"] .daily-verse-section,
body[class*="page-"] .popular-section,
body[class*="page-"] #popularSection,
body[class*="page-"] .layout,
body[class*="page-"] .info-section,
body[class*="page-"] .admin-panel,
body[class*="page-"] #mobileTabBar,
body[class*="page-"] .mobile-tab-bar,
body[class*="page-"] .alert-banner,
body[class*="page-"] .floating-setlist-btn {
  display: none !important;
}

/* Page containers — full viewport, normal flow (no fixed, no stacking context issues) */
#appSongsPage,
#appSongPage,
#appBiblePage,
#appSetlistPage {
  display: none;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: var(--bg, #f4ede0);
  overflow-x: hidden;
}

@keyframes pageSlideIn {
  from { transform: translateX(100%); opacity: 0.6; }
  to   { transform: translateX(0);    opacity: 1;   }
}

/* ============================================================
   SONG DETAIL PAGE  (#appSongPage)
   ============================================================ */

/* Top bar */
#appSongPage .sp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--panel, #fffdf8);
  border-bottom: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

#appSongPage .sp-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary, #6b3a12);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px 6px 0;
  font-family: inherit;
  line-height: 1;
  min-width: 70px;
}
#appSongPage .sp-back-btn svg {
  width: 20px; height: 20px; flex-shrink: 0;
}
#appSongPage .sp-back-btn:hover { color: var(--primary2, #9a5a22); }

#appSongPage .sp-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

#appSongPage .sp-icon-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--panel2, #faf3e8);
  border: 1px solid var(--border, rgba(107,58,18,.14));
  color: var(--primary, #6b3a12);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s;
}
#appSongPage .sp-icon-btn svg { width: 18px; height: 18px; }
#appSongPage .sp-icon-btn:hover { background: var(--bg, #f4ede0); }

/* Song meta */
#appSongPage .sp-meta {
  padding: 20px 20px 14px;
  background: var(--panel, #fffdf8);
  border-bottom: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
}

#appSongPage .sp-title {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 600;
  color: var(--primary, #6b3a12);
  line-height: 1.35;
  margin-bottom: 8px;
}

#appSongPage .sp-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#appSongPage .sp-category-pill {
  background: var(--panel2, #faf3e8);
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  color: var(--primary2, #9a5a22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

#appSongPage .sp-hymn-num {
  font-size: 13px;
  color: var(--muted, #7a6045);
}

#appSongPage .sp-artist {
  font-size: 13px;
  color: var(--muted, #7a6045);
}

/* Lyrics area */
#appSongPage .sp-lyrics-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 20px;
  background: var(--bg, #f4ede0);
  -webkit-overflow-scrolling: touch;
}

#appSongPage .sp-lyrics-text {
  font-size: 18px;
  line-height: 2.1;
  color: var(--text, #2a1e0f);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Font size states */
#appSongPage.sp-size-sm .sp-lyrics-text { font-size: 15px; }
#appSongPage.sp-size-md .sp-lyrics-text { font-size: 18px; }
#appSongPage.sp-size-lg .sp-lyrics-text { font-size: 22px; }
#appSongPage.sp-size-xl .sp-lyrics-text { font-size: 27px; }

/* Bottom action bar */
#appSongPage .sp-bottom-bar {
  display: flex;
  background: var(--panel, #fffdf8);
  border-top: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
  gap: 0;
}

#appSongPage .sp-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: none;
  border: none;
  color: var(--muted, #7a6045);
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: color .14s, background .14s;
  text-decoration: none;
}
#appSongPage .sp-action-btn svg { width: 22px; height: 22px; }
#appSongPage .sp-action-btn:hover { color: var(--primary, #6b3a12); background: var(--panel2, #faf3e8); }
#appSongPage .sp-action-btn.sp-present { color: var(--primary, #6b3a12); font-weight: 600; }
#appSongPage .sp-action-btn.sp-admin { color: var(--primary2, #9a5a22); }

/* Scrollbar */
#appSongPage .sp-lyrics-area::-webkit-scrollbar { width: 4px; }
#appSongPage .sp-lyrics-area::-webkit-scrollbar-track { background: transparent; }
#appSongPage .sp-lyrics-area::-webkit-scrollbar-thumb { background: var(--border2, rgba(107,58,18,.28)); border-radius: 4px; }

/* ============================================================
   BIBLE PAGE  (#appBiblePage)
   ============================================================ */

#appBiblePage {
  background: var(--bg, #f4ede0);
}

#appBiblePage .bp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--panel, #fffdf8);
  border-bottom: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
}

#appBiblePage .bp-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary, #6b3a12);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px 6px 0;
  font-family: inherit;
  min-width: 70px;
}
#appBiblePage .bp-back-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
#appBiblePage .bp-back-btn:hover { color: var(--primary2, #9a5a22); }

#appBiblePage .bp-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary, #6b3a12);
  font-family: 'Crimson Pro', serif;
}

#appBiblePage .bp-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

#appBiblePage .bp-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

#appBiblePage .bp-select {
  flex: 1;
  min-width: 90px;
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  background: var(--panel, #fffdf8);
  color: var(--text, #2a1e0f);
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
#appBiblePage .bp-select:focus { border-color: var(--gold, #c49040); }

#appBiblePage .bp-open-btn,
#appBiblePage .bp-chapter-btn {
  padding: 10px 16px;
  border-radius: 9px;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
#appBiblePage .bp-open-btn    { background: var(--gold, #c49040); color: #fff; }
#appBiblePage .bp-chapter-btn { background: var(--primary, #6b3a12); color: #fff; }

#appBiblePage .bp-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

#appBiblePage .bp-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted, #7a6045);
  pointer-events: none;
}

#appBiblePage .bp-search-input {
  width: 100%;
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  background: var(--panel, #fffdf8);
  color: var(--text, #2a1e0f);
  border-radius: 9px;
  padding: 11px 14px 11px 38px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
#appBiblePage .bp-search-input:focus { border-color: var(--gold, #c49040); }

#appBiblePage .bp-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#appBiblePage .bp-empty,
#appBiblePage .bp-loading {
  text-align: center;
  color: var(--muted, #7a6045);
  padding: 32px 16px;
  font-size: 14px;
  line-height: 1.7;
}

#appBiblePage .bp-chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  color: var(--primary, #6b3a12);
  font-weight: 600;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

#appBiblePage .bp-project-chapter-btn {
  background: var(--gold, #c49040);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#appBiblePage .bp-verse-card {
  background: var(--panel, #fffdf8);
  border: 1px solid var(--border, rgba(107,58,18,.14));
  border-radius: 14px;
  padding: 16px;
}

#appBiblePage .bp-verse-ref {
  font-weight: 700;
  color: var(--primary, #6b3a12);
  font-size: 14px;
  margin-bottom: 8px;
}

#appBiblePage .bp-verse-text {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text, #2a1e0f);
  margin-bottom: 6px;
}

#appBiblePage .bp-verse-english {
  font-size: 13px;
  color: var(--muted, #7a6045);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
}

#appBiblePage .bp-verse-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

#appBiblePage .bp-action-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  background: var(--panel2, #faf3e8);
  color: var(--primary, #6b3a12);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .13s;
}
#appBiblePage .bp-action-btn:hover { background: var(--bg, #f4ede0); }
#appBiblePage .bp-project-btn { background: var(--gold, #c49040); color: #fff; border-color: var(--gold, #c49040); }
#appBiblePage .bp-project-btn:hover { background: var(--gold2, #e8b860); }

#appBiblePage .bp-nav-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border, rgba(107,58,18,.14));
  padding-top: 12px;
}

#appBiblePage .bp-nav-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  background: transparent;
  color: var(--primary, #6b3a12);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
#appBiblePage .bp-nav-btn:hover { background: var(--panel2, #faf3e8); }

#appBiblePage .bp-content::-webkit-scrollbar { width: 4px; }
#appBiblePage .bp-content::-webkit-scrollbar-thumb { background: var(--border2, rgba(107,58,18,.28)); border-radius: 4px; }

/* ============================================================
   SETLIST PAGE  (#appSetlistPage)
   ============================================================ */

#appSetlistPage {
  background: var(--bg, #f4ede0);
}

#appSetlistPage .slp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--panel, #fffdf8);
  border-bottom: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
}

#appSetlistPage .slp-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary, #6b3a12);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px 6px 0;
  font-family: inherit;
  min-width: 70px;
}
#appSetlistPage .slp-back-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

#appSetlistPage .slp-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary, #6b3a12);
  font-family: 'Crimson Pro', serif;
}

#appSetlistPage .slp-clear-btn {
  background: none;
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  color: var(--muted, #7a6045);
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
#appSetlistPage .slp-clear-btn:hover { color: var(--danger, #8b2020); border-color: var(--danger, #8b2020); }

#appSetlistPage .slp-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}

#appSetlistPage .slp-empty {
  text-align: center;
  color: var(--muted, #7a6045);
  padding: 48px 24px;
  font-size: 14px;
  line-height: 1.7;
}

#appSetlistPage .slp-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#appSetlistPage .slp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel, #fffdf8);
  border: 1px solid var(--border, rgba(107,58,18,.14));
  border-radius: 12px;
  padding: 12px 14px;
  cursor: grab;
}
#appSetlistPage .slp-item:active { cursor: grabbing; }

#appSetlistPage .slp-drag {
  color: var(--muted, #7a6045);
  font-size: 16px;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}

#appSetlistPage .slp-info {
  flex: 1;
  min-width: 0;
}

#appSetlistPage .slp-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary, #6b3a12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#appSetlistPage .slp-meta {
  font-size: 12px;
  color: var(--muted, #7a6045);
  margin-top: 2px;
}

#appSetlistPage .slp-remove {
  background: none;
  border: none;
  color: var(--muted, #7a6045);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 14px;
  flex-shrink: 0;
}
#appSetlistPage .slp-remove:hover { color: var(--danger, #8b2020); background: var(--danger-bg, #fff0f0); }

#appSetlistPage .slp-bottom-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel, #fffdf8);
  border-top: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

#appSetlistPage .slp-present-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary, #6b3a12);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s;
}
#appSetlistPage .slp-present-btn svg { width: 20px; height: 20px; }
#appSetlistPage .slp-present-btn:disabled { opacity: .45; cursor: not-allowed; }
#appSetlistPage .slp-present-btn:not(:disabled):hover { background: var(--primary2, #9a5a22); }

#appSetlistPage .slp-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold, #c49040);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
#appSetlistPage .slp-save-btn svg { width: 20px; height: 20px; }
#appSetlistPage .slp-save-btn:hover { background: var(--gold2, #e8b860); }

/* ============================================================
   TABLET / DESKTOP ADJUSTMENTS
   ============================================================ */
@media (min-width: 768px) {
  #appSongPage .sp-topbar,
  #appBiblePage .bp-topbar,
  #appSetlistPage .slp-topbar { padding: 14px 28px; }

  #appSongPage .sp-meta { padding: 24px 28px 16px; }
  #appSongPage .sp-lyrics-area { padding: 28px 28px 32px; }
  #appSongPage .sp-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }

  #appBiblePage .bp-content { padding: 20px 28px; max-width: 860px; margin: 0 auto; width: 100%; }
  #appSetlistPage .slp-content { padding: 16px 28px; max-width: 720px; margin: 0 auto; width: 100%; }
  #appSetlistPage .slp-bottom-bar { padding: 14px 28px; }

  #appSongPage.sp-size-md .sp-lyrics-text { font-size: 20px; }
  #appSongPage.sp-size-lg .sp-lyrics-text { font-size: 24px; }
  #appSongPage.sp-size-xl .sp-lyrics-text { font-size: 30px; }

  /* On desktop, song page can show as side panel instead of full screen */
  /* Uncomment the lines below if you prefer a split view on wide screens:
  @media (min-width: 1100px) {
  }
  */
}

/* ── Safe area for notched phones ── */
#appSongPage .sp-bottom-bar {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
#appBiblePage .bp-content {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* ============================================================
   SONGS LIBRARY PAGE  (#appSongsPage)
   ============================================================ */

#appSongsPage {
  background: var(--bg, #f4ede0);
}

#appSongsPage .lp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--panel, #fffdf8);
  border-bottom: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
}

#appSongsPage .lp-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary, #6b3a12);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px 6px 0;
  font-family: inherit;
  min-width: 70px;
}
#appSongsPage .lp-back-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
#appSongsPage .lp-back-btn:hover { color: var(--primary2, #9a5a22); }

#appSongsPage .lp-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary, #6b3a12);
  font-family: 'Crimson Pro', serif;
}

#appSongsPage .lp-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel2, #faf3e8);
  border-bottom: 1px solid var(--border, rgba(107,58,18,.14));
  flex-shrink: 0;
}

#appSongsPage .lp-search-wrap {
  flex: 1;
  position: relative;
}

#appSongsPage .lp-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted, #7a6045);
  pointer-events: none;
}

#appSongsPage .lp-search-input {
  width: 100%;
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  background: var(--panel, #fffdf8);
  color: var(--text, #2a1e0f);
  border-radius: 9px;
  padding: 10px 12px 10px 34px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
#appSongsPage .lp-search-input:focus { border-color: var(--gold, #c49040); }

#appSongsPage .lp-category-select {
  border: 1px solid var(--border2, rgba(107,58,18,.28));
  background: var(--panel, #fffdf8);
  color: var(--text, #2a1e0f);
  border-radius: 9px;
  padding: 10px 6px;
  font: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 90px;
  min-width: 70px;
  max-width: 90px;
}
#appSongsPage .lp-category-select:focus { border-color: var(--gold, #c49040); }

#appSongsPage .lp-count {
  font-size: 12px;
  color: var(--muted, #7a6045);
  white-space: nowrap;
  flex-shrink: 0;
}

#appSongsPage .lp-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── SONGS LIBRARY — OPTION B : alphabetical flat list ── */

#appSongsPage .lp-empty,
#appSongsPage .lp-loading {
  text-align: center;
  color: var(--muted, #7a6045);
  padding: 48px 20px;
  font-size: 14px;
}

/* Flat list container */
#appSongsPage .lp-list {
  background: var(--panel, #fffdf8);
}

/* Each song row */
#appSongsPage .lp-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(107,58,18,.08);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .12s;
}
#appSongsPage .lp-row:last-child { border-bottom: none; }
#appSongsPage .lp-row:hover { background: var(--panel2, #faf3e8); }

/* Number */
#appSongsPage .lp-row-num {
  font-size: 12px;
  color: var(--muted, #9a7060);
  min-width: 32px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Title + artist */
#appSongsPage .lp-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#appSongsPage .lp-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #2a1e0f);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

#appSongsPage .lp-row-artist {
  font-size: 12px;
  color: var(--muted, #9a7060);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category pill */
#appSongsPage .lp-row-pill {
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Chevron */
#appSongsPage .lp-row-chevron {
  width: 14px;
  height: 14px;
  color: rgba(107,58,18,.2);
  flex-shrink: 0;
}

#appSongsPage .lp-list::-webkit-scrollbar { width: 4px; }
#appSongsPage .lp-list::-webkit-scrollbar-thumb {
  background: var(--border2, rgba(107,58,18,.22));
  border-radius: 4px;
}

@media (min-width: 768px) {
  #appSongsPage .lp-topbar  { padding: 14px 28px; }
  #appSongsPage .lp-search-bar { padding: 14px 28px; gap: 14px; }
  #appSongsPage .lp-row { padding: 14px 28px; gap: 14px; }
  #appSongsPage .lp-row-title { font-size: 15px; }
  #appSongsPage .lp-row-num { min-width: 38px; font-size: 13px; }
  #appSongsPage .lp-search-input { font-size: 15px; }
}
#appSongsPage .lp-view-all:hover {
  background: rgba(107,58,18,.05);
}
@media (min-width: 768px) {
  #appSongsPage .lp-view-all {
    width: calc(100% - 56px);
    margin: 4px 28px 14px;
  }
}

/* ── GLOBAL SVG SIZE CONSTRAINT INSIDE PAGES ── */
#appSongsPage svg,
#appSongPage svg,
#appBiblePage svg,
#appSetlistPage svg {
  max-width: 100%;
  overflow: visible;
}
#appSongsPage .lp-row-chevron,
#appSongsPage .lp-back-btn svg { width: 20px !important; height: 20px !important; }
#appSongsPage .lp-row-chevron  { width: 14px !important; height: 14px !important; }
#appSongsPage .lp-search-icon  { width: 16px !important; height: 16px !important; }

/* ── SONG ROW explicit fix ── */
#appSongsPage .lp-row {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#appSongsPage .lp-row-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
#appSongsPage .lp-row-pill {
  flex-shrink: 0 !important;
}

/* ── SETLIST bottom bar fix ── */
#appSetlistPage .slp-bottom-bar {
  display: flex !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  background: var(--panel, #fffdf8) !important;
  border-top: 1px solid var(--border, rgba(107,58,18,.14)) !important;
  flex-shrink: 0 !important;
}
#appSetlistPage .slp-present-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--primary, #6b3a12) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
#appSetlistPage .slp-present-btn:disabled {
  opacity: .45 !important;
}
#appSetlistPage .slp-save-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: var(--gold, #c49040) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 18px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  cursor: pointer !important;
}

/* ── BIBLE inputs and buttons fix ── */
#appBiblePage .bp-select {
  flex: 1 !important;
  min-width: 80px !important;
  border: 1px solid var(--border2, rgba(107,58,18,.28)) !important;
  background: var(--panel, #fffdf8) !important;
  border-radius: 9px !important;
  padding: 10px 8px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  outline: none !important;
}
#appBiblePage .bp-open-btn,
#appBiblePage .bp-chapter-btn {
  padding: 10px 14px !important;
  border-radius: 9px !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
#appBiblePage .bp-open-btn    { background: var(--gold, #c49040) !important; color: #fff !important; }
#appBiblePage .bp-chapter-btn { background: var(--primary, #6b3a12) !important; color: #fff !important; }
#appBiblePage .bp-search-input {
  width: 100% !important;
  border: 1px solid var(--border2, rgba(107,58,18,.28)) !important;
  background: var(--panel, #fffdf8) !important;
  border-radius: 9px !important;
  padding: 11px 14px 11px 38px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  outline: none !important;
  box-sizing: border-box !important;
}
#appBiblePage .bp-verse-card {
  background: var(--panel, #fffdf8) !important;
  border: 1px solid var(--border, rgba(107,58,18,.14)) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
}
#appBiblePage .bp-action-btn {
  padding: 8px 14px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border2, rgba(107,58,18,.28)) !important;
  background: var(--panel2, #faf3e8) !important;
  color: var(--primary, #6b3a12) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
#appBiblePage .bp-project-btn {
  background: var(--gold, #c49040) !important;
  color: #fff !important;
  border-color: var(--gold, #c49040) !important;
}

/* ── DELETE BUTTON on Song Detail page ── */
#appSongPage .sp-action-btn.sp-delete {
  color: var(--danger, #8b2020);
}
#appSongPage .sp-action-btn.sp-delete:hover {
  background: var(--danger-bg, #fff0f0);
  color: var(--danger, #8b2020);
}
.bp-study-btn {
  background: #6b3a12;
  color: #fff;
  border-color: #6b3a12;
}
.bp-study-btn:hover {
  background: #854f0b;
}
