/* =========================================================
   Christian Central Network — design system
   Self-hosted fonts, Bootstrap 5 as base, custom visual layer
   ========================================================= */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Palette sourced directly from the live site's Elementor CSS
     (post-1641.css / post-830.css): cyan #1caedb/#42b8dc/#6ec1e4/#8fd5ec,
     navy #001444/#383c4b/#3b4656, green CTA #23a455/#61ce70. */
  --ink: #1b2230;
  --ink-soft: #4c5666;
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --line: #e3e8ef;

  --navy-900: #0e1420;
  --navy-800: #182233;
  --navy-700: #2a3346;
  --navy-600: #3b4656;

  --cyan-700: #0f7ea8;
  --cyan-600: #1caedb;
  --cyan-500: #42b8dc;
  --cyan-300: #8fd5ec;
  --cyan-100: #eaf8fd;

  --green-600: #1a8f47;
  --green-500: #23a455;
  --green-400: #61ce70;
  --green-100: #e3f7ea;

  /* warm accent pulled from the flame in the site mark, used for highlights only */
  --flame-500: #f7941d;
  --flame-100: #fff4e0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(14, 20, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 20, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 20, 32, 0.16);

  --header-h: 108px; /* two-row header: 64px logo/icons row + ~44px nav row */
}

:root[data-theme="dark"] {
  --ink: #eef3f7;
  --ink-soft: #a9b7c6;
  --paper: #0d1119;
  --paper-raised: #161c27;
  --line: #232b3a;
}
:root[data-theme="light"] {
  --ink: #1b2230;
  --ink-soft: #4c5666;
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --line: #e3e8ef;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

#page-loading-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--cyan-500), var(--green-500), var(--flame-500));
  background-size: 200% 100%;
  z-index: 4000; pointer-events: none;
  transition: width .35s ease, opacity .4s ease .1s;
  box-shadow: 0 0 10px color-mix(in srgb, var(--cyan-500) 55%, transparent);
  animation: page-loading-shimmer 1.4s linear infinite;
}
#page-loading-bar.is-done { opacity: 0; }
@keyframes page-loading-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--cyan-600); text-decoration: none; }
a:hover { color: var(--cyan-700); }

::selection { background: var(--flame-100); color: var(--navy-900); }

/* ---------- Header / Nav ----------
   Two stacked rows so the nav gets its own full-width lane instead of
   fighting the logo/brand/icons for space (that's what forced wrapping
   with 15 nav items before). --header-h covers both rows combined so every
   sticky-offset elsewhere (scroll-padding, bible toolbar, etc.) stays correct. */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header-top {
  height: 64px; display: flex; align-items: center; flex-shrink: 0;
}
.site-header-top .container { display: flex; align-items: center; justify-content: space-between; }
.site-header-nav {
  padding: 0; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--cyan-100) 55%, transparent);
}
.site-header-nav .container { padding-left: 0; padding-right: 0; }
.site-header-nav .navbar-collapse { flex-basis: 100%; }
/* Nav is split into exactly two <ul class="navbar-nav-row"> rows (see
   navHtml() in templates/base-layout.mjs, which divides NAV_SECTIONS into two
   equal-count halves). Each row is a nowrap flex line with its own scroll as
   a fallback, so the header is always exactly 2 rows on desktop — never 1,
   never 3+ — regardless of viewport width or label lengths. */
.site-header-nav .navbar-nav-row {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: .15rem; padding: .3rem 1rem;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.site-header-nav .navbar-nav-row::-webkit-scrollbar { display: none; }
@media (min-width: 992px) {
  .site-header-nav .navbar-collapse { display: flex; flex-direction: column; }
  .site-header-nav .navbar-nav-row .nav-link { padding: .4rem .55rem !important; font-size: .74rem; }
}
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink) !important;
  display: flex; align-items: center; gap: .5rem;
  white-space: nowrap;
  transition: color .2s ease;
}
.navbar-brand:hover { color: var(--cyan-600) !important; }
.navbar-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark {
  display: inline-block; width: 34px; height: 34px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  object-fit: contain; vertical-align: middle; margin-right: .5rem;
  flex-shrink: 0;
}
.footer-brand .brand-mark { width: 28px; height: 28px; }
.nav-link {
  font-weight: 600; font-size: .86rem; color: var(--ink-soft) !important;
  padding: .6rem .75rem !important; border-radius: 999px; transition: all .2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--cyan-600) !important; background: var(--cyan-100); }
.nav-link.active { color: var(--cyan-700) !important; background: var(--cyan-100); font-weight: 800; }
/* --cyan-100 is a near-white wash — great on the light theme's white header,
   but on dark it left a pale bar with light-grey text sitting on top of it
   (too low-contrast to read, and visually didn't fit dark surroundings).
   Give the nav bar and its hover/active states dark-appropriate values
   instead of reusing the light-mode token, same pattern as
   .commentary-scripture's dark override below. */
:root[data-theme="dark"] .site-header-nav { background: color-mix(in srgb, var(--cyan-700) 18%, var(--paper)); }
:root[data-theme="dark"] .nav-link:hover { color: var(--cyan-300) !important; background: color-mix(in srgb, var(--cyan-500) 25%, transparent); }
:root[data-theme="dark"] .nav-link.active { color: var(--cyan-300) !important; background: color-mix(in srgb, var(--cyan-600) 30%, transparent); }
:root[data-theme="dark"] .navbar-toggler { background: color-mix(in srgb, var(--cyan-700) 25%, var(--paper-raised)); }
:root[data-theme="dark"] .navbar-toggler:hover { background: color-mix(in srgb, var(--flame-500) 25%, var(--paper-raised)); }

.btn-search-toggle {
  border: none; background: var(--cyan-100); color: var(--cyan-700);
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; margin-left: .5rem; flex-shrink: 0;
  transition: transform .2s ease;
}
.btn-search-toggle:hover { transform: scale(1.08); background: var(--flame-100); color: var(--cyan-700); }
.btn-search-toggle + .btn-search-toggle { margin-left: .4rem; }

/* The toggler button lives in .site-header-top, a sibling of <nav class="navbar">
   — not a descendant — so it never inherits Bootstrap's --bs-navbar-toggler-icon-bg
   custom property (that's set on .navbar itself). Without it the icon is
   background-image: none — the button is there and clickable, just invisible.
   Defining the icon explicitly here, with a dark-theme variant, fixes it. */
.navbar-toggler {
  width: 40px; height: 40px; border: none; border-radius: 50%; padding: 0;
  background: var(--cyan-100); display: inline-flex; align-items: center; justify-content: center;
  margin-left: .5rem; flex-shrink: 0; box-shadow: none;
}
.navbar-toggler:hover { background: var(--flame-100); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--cyan-500) 35%, transparent); }
.navbar-toggler-icon {
  width: 1.3em; height: 1.3em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231b2230' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
:root[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23eef3f7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (min-width: 992px) {
  .navbar-toggler { display: none; }
}

@media (max-width: 991.98px) {
  /* Collapsed by default on mobile — only the 64px top row is actually visible,
     so every sticky/scroll-offset calc that reads --header-h should match that,
     not the full two-row desktop height. */
  :root { --header-h: 64px; }
  .site-header-nav .navbar-collapse { flex-basis: auto; }
  .site-header-nav .navbar-nav-row { flex-direction: column; overflow-x: visible; padding: .35rem 1rem; align-items: stretch; }
  .site-header-nav .navbar-nav-row:last-child { padding-bottom: 1rem; }
  .site-header-nav .nav-link { padding: .65rem .9rem !important; }
}
@media (max-width: 420px) {
  .navbar-brand { font-size: .98rem; }
  .brand-mark { width: 28px; height: 28px; }
  .btn-search-toggle { width: 36px; height: 36px; margin-left: .3rem; }
}

/* Theme toggle: show the icon for the theme you'd switch *to* */
.theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: inline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: linear-gradient(135deg, var(--cyan-500) 0%, var(--cyan-700) 40%, var(--navy-800) 78%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero .container::before {
  content: '';
  position: absolute;
  top: -1.75rem; left: -1.25rem; right: -1.25rem; bottom: -1.75rem;
  background: rgba(14, 20, 32, .38);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.hero-title-brand { font-size: clamp(1.5rem, calc(1.1rem + 2vw), 1.4rem); overflow-wrap: break-word; }
.hero .lede { color: #dceffa; font-size: 1.15rem; max-width: 46rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--cyan-300); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .78rem; margin-bottom: 1rem;
}
.hero-kicker {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  color: var(--cyan-300); font-size: 1.2rem;
}

.verse-of-moment { border-left: 4px solid var(--green-500); }
.verse-of-moment blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem;
  color: var(--ink); margin: 0 0 .75rem;
}

/* ---------- Devotionals ---------- */
.devotional-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem;
}
.devotional-tab {
  border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink-soft);
  font-weight: 700; font-size: .88rem; padding: .55rem 1.1rem; border-radius: 999px;
  cursor: pointer; transition: all .2s ease; display: inline-flex; align-items: center; gap: .4rem;
}
.devotional-tab:hover { border-color: var(--cyan-500); color: var(--cyan-700); }
.devotional-tab.active { background: var(--cyan-600); border-color: var(--cyan-600); color: #fff; }

.devotional-panel { display: none; }
.devotional-panel.active { display: block; animation: devotional-fade .3s ease; }
@keyframes devotional-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.devotional-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-sm); max-width: 44rem;
}
.devotional-verse {
  font-family: var(--font-display); font-style: italic; font-size: 1.4rem; line-height: 1.5;
  color: var(--ink); margin: 1rem 0 .5rem;
}
.devotional-ref {
  display: inline-flex; align-items: center; font-weight: 700; color: var(--cyan-600);
  font-size: .95rem;
}
.devotional-ref:hover { color: var(--cyan-700); }

.devotional-widget {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.devotional-widget-side {
  background: var(--paper-raised);
  color: var(--ink); padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line);
}
.devotional-widget-side .hero-eyebrow { color: var(--cyan-600); }
.devotional-widget-body {
  background: var(--paper-raised); padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 767.98px) {
  .devotional-widget-side { border-right: none; border-bottom: 1px solid var(--line); }
}
.devotional-widget-body .devotional-verse { font-size: 1.2rem; margin-top: 0; }

/* ---------- Music (streaming player) ---------- */
.music-page { padding-bottom: 6rem; } /* clears the fixed player bar */
.music-album-header {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--cyan-700) 130%);
  color: #fff;
}
.music-album-art {
  width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.music-eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700;
  color: var(--cyan-300); margin-bottom: .5rem;
}
.music-album-title {
  color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin-bottom: 1rem;
}
.music-artist-line { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; color: #dceffa; font-weight: 600; }
.music-artist-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.music-artist-link {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: none;
  color: #fff; font-weight: 700; padding: 0; cursor: pointer; transition: opacity .15s ease;
}
.music-artist-link:hover { opacity: .8; text-decoration: underline; }
.music-meta-sep { color: #dceffa; } /* explicit light color — not Bootstrap's text-body-secondary, which reads dark-on-dark here */
.music-genre-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--green-100); color: var(--green-600);
}
.music-play-all {
  background: var(--green-500); color: #fff; font-weight: 700; border-radius: 999px;
  padding: .7rem 2rem; border: none;
}
.music-play-all:hover { filter: brightness(1.08); color: #fff; }

.music-clickable-art { position: relative; display: block; border: none; padding: 0; background: none; cursor: pointer; }
.music-clickable-hint {
  position: absolute; right: .6rem; bottom: .6rem; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(14,20,32,.65); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; opacity: 0; transition: opacity .2s ease;
}
.music-clickable-art:hover .music-clickable-hint, .music-clickable-art:focus-visible .music-clickable-hint { opacity: 1; }

/* Category hub cards (/music/) */
.music-category-card {
  display: block; text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--paper-raised); transition: all .2s ease; height: 100%;
}
.music-category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cyan-500); }
.music-category-card i { font-size: 2.2rem; color: var(--cyan-600); }
.music-category-card h3 { color: var(--ink); }

/* Info modal (album/artist "more info") */
.music-modal {
  position: fixed; inset: 0; z-index: 3200; background: rgba(8,11,17,.7);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.music-modal[hidden] { display: none; }
.music-modal-inner {
  position: relative; background: var(--paper-raised); border-radius: var(--radius-lg);
  max-width: 420px; width: 100%; padding: 2rem; box-shadow: var(--shadow-lg); text-align: center;
}
.music-modal-art { width: 160px; height: 160px; border-radius: var(--radius-md); object-fit: cover; margin: 0 auto 1.25rem; display: block; box-shadow: var(--shadow-md); }
.music-modal-close {
  position: absolute; top: .85rem; right: .85rem; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--cyan-100); color: var(--cyan-700); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.music-modal-close:hover { background: var(--flame-100); }

.track-list { list-style: none; margin: 0; padding: 0; }
.track-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 1rem;
  padding: .7rem .75rem; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s ease;
}
.track-row:hover { background: var(--cyan-100); }
.track-row.is-current .track-row-title { color: var(--cyan-700); }
.track-row-num { position: relative; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-weight: 600; }
.track-row-index, .track-row-play, .track-row-pause, .track-row-bars { grid-area: 1 / 1; }
.track-row-play, .track-row-pause { display: none; color: var(--cyan-600); }
.track-row-bars { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.track-row-bars span { width: 3px; background: var(--cyan-600); animation: track-bars 1s ease-in-out infinite; }
.track-row-bars span:nth-child(1) { height: 40%; animation-delay: -.2s; }
.track-row-bars span:nth-child(2) { height: 100%; animation-delay: -.6s; }
.track-row-bars span:nth-child(3) { height: 65%; animation-delay: -.1s; }
@keyframes track-bars { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.track-row:hover .track-row-index { display: none; }
.track-row:hover .track-row-play { display: block; }
.track-row.is-playing .track-row-index,
.track-row.is-playing .track-row-play { display: none; }
.track-row.is-playing .track-row-bars { display: flex; }
.track-row.is-playing:hover .track-row-bars { display: none; }
.track-row.is-playing:hover .track-row-pause { display: block; }
.track-row-info { display: flex; flex-direction: column; min-width: 0; }
.track-row-title { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row-artist { font-size: .82rem; color: var(--ink-soft); }
.track-row-duration { color: var(--ink-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }

.music-player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500;
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 1rem;
  padding: .75rem 1.5rem; background: color-mix(in srgb, var(--paper-raised) 96%, transparent);
  backdrop-filter: blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.08);
}
.music-player-track { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.music-player-art { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.music-player-meta { display: flex; flex-direction: column; min-width: 0; }
.music-player-title { font-weight: 700; font-size: .88rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-player-artist { font-size: .78rem; color: var(--ink-soft); }
.music-player-center { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.music-player-controls { display: flex; align-items: center; gap: 1rem; }
.music-ctrl-btn {
  background: none; border: none; color: var(--ink-soft); font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s ease;
}
.music-ctrl-btn:hover { color: var(--ink); }
.music-ctrl-btn.is-active { color: var(--cyan-600); }
.music-ctrl-play {
  background: var(--ink); color: var(--paper); width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem;
}
.music-ctrl-play:hover { color: var(--paper); transform: scale(1.06); }
.music-player-volume .music-ctrl-btn { font-size: 1.05rem; }
.music-player-progress { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 480px; }
.music-time { font-size: .72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; width: 2.4rem; text-align: center; flex-shrink: 0; }
.music-seek, .music-volume {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px;
  background: var(--line); outline: none; cursor: pointer;
}
.music-seek::-webkit-slider-thumb, .music-volume::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan-600);
}
.music-seek::-moz-range-thumb, .music-volume::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--cyan-600); border: none;
}
.music-player-volume { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; color: var(--ink-soft); }
.music-player-volume .music-volume { width: 90px; }

@media (max-width: 767.98px) {
  .music-page { padding-bottom: 5.5rem; }
  .music-album-header { padding: 2rem 0 1.75rem; text-align: center; }
  .music-album-header .row { justify-content: center; }
  .music-album-art { width: 140px; height: 140px; }
  .music-artist-line { justify-content: center; }
  .music-play-all { width: 100%; }
  .track-row { grid-template-columns: 32px 1fr auto; gap: .6rem; padding: .55rem; }
  .music-player-bar { grid-template-columns: 1fr auto; padding: .6rem .6rem; gap: .5rem; }
  .music-player-track { gap: .5rem; }
  .music-player-art { width: 40px; height: 40px; }
  .music-player-volume { display: none; }
  .music-player-center { grid-column: 2; }
  .music-player-controls { gap: .35rem; }
  .music-ctrl-btn { font-size: 1.1rem; }
  .music-ctrl-play { width: 32px; height: 32px; font-size: 1rem; }
  .music-player-progress { max-width: 130px; }
  .music-time { display: none; }
}

@media (max-width: 420px) {
  .music-player-title, .music-player-artist { max-width: 34vw; }
  .music-player-progress { max-width: 96px; }
  .contact-panel { padding: 1.25rem; }
}

/* ---------- Bible Maps ---------- */
.map-thumb-trigger {
  position: relative; display: block; width: 100%; border: none; padding: 0;
  background: none; cursor: zoom-in; margin-bottom: 2rem;
}
.map-thumb-trigger .article-hero-img { margin-bottom: 0; display: block; }
.map-zoom-hint {
  position: absolute; right: 1rem; bottom: 1rem; background: rgba(14,20,32,.75);
  color: #fff; font-size: .8rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .35rem;
}
.map-zoom-overlay {
  position: fixed; inset: 0; z-index: 3000; background: rgba(8, 11, 17, .96);
  display: flex; flex-direction: column;
}
.map-zoom-overlay[hidden] { display: none; }
.map-zoom-toolbar {
  display: flex; justify-content: center; gap: .5rem; padding: 1rem; flex-shrink: 0;
}
.map-zoom-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.12);
  color: #fff; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s ease;
}
.map-zoom-btn:hover { background: rgba(255,255,255,.24); }
.map-zoom-close { background: var(--flame-500); margin-left: 1rem; }
.map-zoom-close:hover { filter: brightness(1.1); }
.map-zoom-viewport {
  flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.map-zoom-viewport img {
  max-width: 92vw; max-height: 82vh; cursor: grab; transition: transform .05s linear;
  user-select: none; -webkit-user-drag: none;
}

/* ---------- External news (Yahoo-style headline list) ---------- */
.external-news-list { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.external-news-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.external-news-row:last-child { border-bottom: none; }
.external-news-row:hover { background: var(--cyan-100); }
.external-news-title { color: var(--ink); font-weight: 600; font-size: .95rem; }
.external-news-meta { color: var(--ink-soft); font-size: .78rem; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 575.98px) {
  .external-news-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
}
@media (max-width: 767.98px) {
  .devotional-widget-side, .devotional-widget-body { padding: 1.75rem; }
}

/* ---------- Cards ---------- */
.card-tile {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--cyan-500) 40%, var(--line));
}
.card-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cyan-600);
}
.card-tile h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; }
.card-tile p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card-thumb {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; border-radius: var(--radius-sm);
  margin-bottom: 1rem; background: var(--cyan-100);
}
.tag-chip {
  display: inline-block; font-size: .74rem; font-weight: 600; color: var(--cyan-700);
  background: var(--cyan-100); padding: .25rem .65rem; border-radius: 999px;
  margin: 0 .35rem .35rem 0; transition: background .2s ease, color .2s ease;
}
.tag-chip:hover { background: var(--cyan-600); color: #fff; }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Article ---------- */
.article-shell { max-width: 780px; margin: 0 auto; padding: 3rem 1rem 5rem; }
.article-hero-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 2rem; }
.article-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1rem; }
.article-body { font-size: 1.08rem; }
.article-body p { margin-bottom: 1.3rem; }
.article-body blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem;
  border-left: 4px solid var(--green-500); padding: .3rem 0 .3rem 1.4rem; margin: 2rem 0; color: var(--ink);
}
.article-tags { margin: 2rem 0; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; }
.post-nav a { max-width: 45%; }

/* ---------- Verse spotlight ---------- */
.verse-translation {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.4rem;
  margin-bottom: 1rem; background: var(--paper-raised);
}
.verse-translation .abbr { font-weight: 800; color: var(--cyan-600); font-size: .82rem; letter-spacing: .05em; }
.verse-translation p { font-family: var(--font-display); font-size: 1.15rem; margin: .4rem 0 0; }

/* Generic #hash-target offset so the sticky header never covers a jumped-to
   heading (e.g. /bible/#old-testament from the nav). */
.anchor-target { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Bible reader ---------- */
.bible-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem 0; }
.verse-line { padding: .3rem 0; scroll-margin-top: calc(var(--header-h) + 90px); }
.verse-line:target, .verse-line.is-target { background: var(--flame-100); border-radius: var(--radius-sm); }
.verse-num {
  color: var(--cyan-600); font-weight: 800; text-decoration: none;
  margin-right: .35rem; padding: .15rem .4rem .15rem .1rem; border-radius: 6px;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.verse-num:hover, .verse-num:focus-visible { background: var(--cyan-100); color: var(--cyan-700); }
.book-grid a {
  display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-raised); color: var(--ink); font-weight: 600; text-align: center; transition: all .2s ease;
}
.book-grid a:hover { border-color: var(--cyan-500); color: var(--cyan-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chapter-grid a {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper-raised); color: var(--ink); font-weight: 600;
}
.chapter-grid a:hover { background: var(--cyan-600); color: #fff; border-color: var(--cyan-600); }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: color-mix(in srgb, var(--navy-900) 78%, transparent);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 1rem;
}
.search-overlay[hidden] { display: none; }
.search-overlay-inner {
  width: 100%; max-width: 720px; background: var(--paper-raised);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem;
  max-height: 82vh; display: flex; flex-direction: column;
}
.search-box { display: flex; align-items: center; gap: .75rem; padding: .5rem .25rem; border-bottom: 1px solid var(--line); }
.search-box i { color: var(--ink-soft); font-size: 1.2rem; }
#search-input { flex: 1; border: none; outline: none; background: transparent; font-size: 1.15rem; color: var(--ink); }
.search-filters { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem 0; }
.search-filters button {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; cursor: pointer;
}
.search-filters button.active { background: var(--cyan-600); border-color: var(--cyan-600); color: #fff; }
.search-results { overflow-y: auto; }
.search-result { display: block; padding: .8rem .5rem; border-radius: var(--radius-sm); }
.search-result:hover, .search-result.is-active { background: var(--cyan-100); }
.search-result-ref { border-left: 3px solid var(--green-500); background: var(--flame-100); margin-bottom: .5rem; }
.search-result-ref:hover, .search-result-ref.is-active { background: var(--flame-100); filter: brightness(0.97); }
.search-result-ref .type { color: var(--green-600); }
.search-result-ref .title { font-family: var(--font-display); font-size: 1.1rem; }
.search-result .type { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan-600); font-weight: 700; }
.search-result .title { font-weight: 700; color: var(--ink); }
.search-result mark { background: var(--flame-100); color: inherit; border-radius: 3px; }
.search-empty { padding: 2rem 1rem; text-align: center; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3d3e0; padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: .5rem; }
.footer-tagline { max-width: 26rem; margin-top: .75rem; color: #93a9bc; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-content: flex-start; }
.footer-link { color: #c3d3e0; font-weight: 600; font-size: .92rem; }
.footer-link:hover { color: var(--cyan-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: #7189a0; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--cyan-600); color: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .25s ease;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover { background: var(--cyan-700); }

@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--paper-raised); border-radius: var(--radius-md); margin-top: 1rem; padding: 1rem; box-shadow: var(--shadow-md); }
}

/* ---------- Credits table (About page) ---------- */
.credits-table { background: var(--paper-raised); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.credits-table th { font-family: var(--font-display); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.credits-table td { border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table tr:last-child td { border-bottom: none; }
.badge-pd, .badge-permission {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
}
.badge-pd { background: var(--green-100); color: var(--green-600); }
.badge-permission { background: var(--flame-100); color: var(--flame-500); }

/* ---------- Contact form (About page) ---------- */
.contact-panel {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 2.5rem; display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start;
}
@media (max-width: 767.98px) {
  .contact-panel { grid-template-columns: 1fr; padding: 1.75rem; }
}
.contact-panel-copy h2 { display: flex; align-items: center; gap: .5rem; }
.contact-form .form-label { font-weight: 600; font-size: .88rem; color: var(--ink-soft); }
.contact-form .form-control {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); padding: .65rem .9rem;
}
.contact-form .form-control:focus {
  border-color: var(--cyan-500); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--cyan-500) 22%, transparent);
  background: var(--paper);
}
.contact-form-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.contact-submit {
  background: linear-gradient(120deg, var(--cyan-600), var(--green-500)); color: #fff; border: none;
  border-radius: 999px; padding: .75rem 2.2rem; font-weight: 700; box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-submit:disabled { opacity: .7; transform: none; cursor: progress; }
.contact-form-status {
  border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; font-size: .92rem;
}
.contact-form-status.is-success { background: var(--green-100); color: var(--green-600); }
.contact-form-status.is-error { background: var(--flame-100); color: #b23c1a; }

/* ---------- Bible Commentary ---------- */
.commentary-divider {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: 2.25rem 0 1.25rem; padding-bottom: .4rem; border-bottom: 2px solid var(--cyan-100);
}
.commentary-divider-title { font-family: var(--font-display); font-weight: 700; font-style: italic; color: var(--cyan-700); }
.commentary-divider-date { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.commentary-scripture {
  margin: 0 0 1.3rem; padding: 1rem 1.25rem; background: var(--cyan-100); border-left: 4px solid var(--cyan-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--ink); line-height: 1.7;
}
:root[data-theme="dark"] .commentary-scripture { background: color-mix(in srgb, var(--cyan-700) 22%, transparent); }
.commentary-scripture .v-num { font-size: .7rem; font-weight: 700; color: var(--cyan-700); margin-right: .15rem; }
.commentary-tiein {
  margin-top: 2.5rem; padding: 1.75rem; background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

/* ---------- Strong's Concordance ---------- */
.strongs-jump-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; max-width: 32rem; }
.strongs-jump-form .form-select, .strongs-jump-form .form-control { background: rgba(255,255,255,.95); border: none; }
.strongs-jump-form input[type="number"] { flex: 1; min-width: 8rem; }
.strongs-jump-form .btn { background: var(--green-500); color: #fff; font-weight: 700; border: none; }
.strongs-jump-form .btn:hover { filter: brightness(1.08); color: #fff; }

.strongs-headword { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin-bottom: 1.5rem; }
.strongs-word-main { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.strongs-word-main[lang="he"] { direction: rtl; unicode-bidi: isolate; }
.strongs-translit { font-style: italic; color: var(--cyan-700); font-size: 1.1rem; }
.strongs-pron { font-size: .85rem; color: var(--ink-soft); background: var(--cyan-100); padding: .2rem .6rem; border-radius: 999px; }
.strongs-derivation { color: var(--ink-soft); font-size: .95rem; }
.strongs-def { font-size: 1.08rem; }
.strongs-kjv {
  background: var(--flame-100); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .95rem;
}
.strongs-gloss-list { padding-left: 1.4rem; }
.strongs-gloss-list li { margin-bottom: .4rem; }
.strongs-inline-word { font-weight: 600; color: var(--cyan-700); }
.strongs-inline-word[lang="he"] { direction: rtl; unicode-bidi: isolate; }
.strongs-inline-translit { font-size: .85em; color: var(--ink-soft); font-style: italic; margin-right: .3rem; }
.strongs-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.strongs-chip {
  display: inline-block; font-size: .8rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px;
  background: var(--cyan-100); color: var(--cyan-700); text-decoration: none; transition: background .15s ease;
}
.strongs-chip:hover { background: var(--cyan-600); color: #fff; }

.strongs-pager { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 1.5rem 0; }

.strongs-toc { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

.strongs-entry-stack { display: flex; flex-direction: column; }
.strongs-entry-card {
  padding: 2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px);
  transition: background-color .6s ease;
}
.strongs-entry-card:last-child { border-bottom: none; }
.strongs-entry-card.is-target { background-color: var(--flame-100); border-radius: var(--radius-md); padding-left: 1rem; padding-right: 1rem; margin: 0 -1rem; }
.strongs-entry-anchor-link { display: block; text-decoration: none; color: inherit; }
.strongs-entry-num {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--cyan-700); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .3rem;
}
.strongs-entry-anchor-link .bi-link-45deg { opacity: 0; transition: opacity .15s ease; font-size: 1.1rem; }
.strongs-entry-anchor-link:hover .bi-link-45deg { opacity: .6; }

@media (max-width: 575.98px) {
  .strongs-word-main { font-size: 1.9rem; }
}

/* ---------- Books & Ebooks ---------- */
.book-card {
  display: block; color: inherit; height: 100%;
}
.book-card-body { padding-top: .85rem; }
.book-card-category {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--cyan-600); margin-bottom: .3rem;
}
.book-card-title {
  font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card-author { font-size: .85rem; color: var(--ink-soft); margin-bottom: 0; }

.book-cover {
  position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--paper-raised); transition: transform .2s ease, box-shadow .2s ease;
}
.book-card:hover .book-cover, .book-card:focus-visible .book-cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-flip { perspective: none; }
.book-cover-flip .book-cover-back {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
}
.book-cover-flip:hover .book-cover-back, .book-cover-flip:focus-within .book-cover-back { opacity: 1; }
.book-cover-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem; gap: .75rem; background: linear-gradient(160deg, var(--navy-800), var(--cyan-700));
  color: #fff;
}
.book-cover-placeholder i { font-size: 2.2rem; opacity: .85; }
.book-cover-placeholder-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.3; }

.book-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.book-filters button {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font-size: .8rem; font-weight: 600; padding: .35rem .85rem; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.book-filters button.active { background: var(--cyan-600); border-color: var(--cyan-600); color: #fff; }
.book-filters button:hover:not(.active) { border-color: var(--cyan-500); color: var(--cyan-600); }

.book-detail-hero { padding: 3rem 0; }
.book-detail-hero .book-cover { max-width: 280px; }
.book-read-online {
  background: linear-gradient(120deg, var(--cyan-600), var(--green-500)); color: #fff; border: none; font-weight: 700;
}
.book-read-online:hover { filter: brightness(1.08); color: #fff; }

.book-reader-body { font-size: 1.08rem; line-height: 1.75; }
.book-reader-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1rem 0; }
.book-reader-body h1, .book-reader-body h2, .book-reader-body h3 { margin-top: 2rem; }

@media (max-width: 575.98px) {
  .book-detail-hero .book-cover { max-width: 180px; margin: 0 auto 1.5rem; }
}

/* ---------- Bible Dictionary ---------- */
.dict-def { font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.dict-def p { margin-bottom: .9rem; }
.dict-def p:last-child { margin-bottom: 0; }
.dict-scripref { font-style: normal; color: var(--cyan-700); font-weight: 600; }

/* ---------- Numbered pagination (archive + tag listing pages) ---------- */
.pager-nav { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 3rem 0 1rem; flex-wrap: wrap; }
.pager-arrow, .pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink-soft);
  font-weight: 700; font-size: .9rem; text-decoration: none; transition: all .15s ease;
}
.pager-arrow:hover, .pager-num:hover { border-color: var(--cyan-500); color: var(--cyan-600); transform: translateY(-1px); }
.pager-num.active { background: var(--cyan-600); border-color: var(--cyan-600); color: #fff; }
.pager-num.active:hover { color: #fff; transform: none; }
.pager-arrow.disabled { opacity: .4; pointer-events: none; }
.pager-ellipsis { color: var(--ink-soft); padding: 0 .3rem; user-select: none; }
@media (max-width: 420px) {
  .pager-arrow, .pager-num { min-width: 34px; height: 34px; font-size: .82rem; }
}

/* ---------- Ko-fi floating donate widget vs. the fixed music player bar ----------
   Verified against Ko-fi's actual source (storage.ko-fi.com/cdn/scripts/
   floating-chat-wrapper.css): the button defaults to bottom:16px; left:16px;
   height:65px, and the whole widget sets z-index:99999999 !important — not
   something we can out-stack, and it lands in the same bottom-left corner as
   our player bar's "now playing" info. Only lever we have is repositioning it
   via these two class names (stable across page loads, unlike its injected
   wrapper element's randomized id) with higher selector specificity, scoped
   to only the pages that actually have a player. :has() support is assumed;
   browsers without it just keep Ko-fi's unmodified default position. */
body:has([data-music-app]) .floatingchat-container-wrap,
body:has([data-music-app]) .floatingchat-container-wrap-mobi {
  bottom: 104px !important;
}
body:has([data-music-app]) .floating-chat-kofi-popup-iframe,
body:has([data-music-app]) .floating-chat-kofi-popup-iframe-mobi {
  bottom: 163px !important;
}
