/* IJN Bible 1.0.11.3 — floating narration bar (floatplayer.js). Forest / gold / parchment, crisp: whole-pixel sizes,
   13px / 600 type, 1px borders, no transforms or filters. Horizontally centered with left/right + margin:auto
   (no transform). Safe-area bottom. When a centered bar would meet the Back to top button, it sits above that
   button rather than shifting off-center; otherwise it stays on the bottom edge. */
.ijn-fp {
  --ijn-fp-pct: 0%;
  position: fixed; z-index: 59; box-sizing: border-box;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 640px; margin-inline: auto;
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 8px 0 8px;
  border: 1px solid #c9a24a; border-radius: 28px;
  background: linear-gradient(135deg, #1f3a32, #2c4e43); color: #f8f4ec;
  box-shadow: 0 12px 28px -10px rgba(18, 28, 24, 0.6), 0 2px 6px rgba(18, 28, 24, 0.25);
  font: 600 13px/16px "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: auto; text-rendering: optimizeLegibility;
}
.ijn-fp[hidden] { display: none; }
/* 48px circle Back to top at <=600px: raise the 56px bar 12px above it. */
@media (max-width: 600px) {
  .ijn-fp { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 48px + 12px); }
}
/* Pill Back to top (~132px, 44px tall) overlaps a 640px centered bar until ~936px. */
@media (min-width: 601px) and (max-width: 960px) {
  .ijn-fp { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 44px + 12px); }
}
.ijn-fp .ijn-fp-btn {
  box-sizing: border-box; flex: none; display: inline-grid; place-items: center; margin: 0; padding: 0;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid #c9a24a; background: #f8f4ec; color: #1f3a32;
}
.ijn-fp .ijn-fp-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.ijn-fp .ijn-fp-close { width: 32px; height: 32px; background: transparent; color: #f8f4ec; border-color: rgba(248, 244, 236, 0.55); }
.ijn-fp .ijn-fp-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ijn-fp .ijn-fp-btn:hover { background: #fff8e8; }
.ijn-fp .ijn-fp-close:hover { background: #f8f4ec; color: #1f3a32; }
.ijn-fp .ijn-fp-btn:focus-visible, .ijn-fp .ijn-fp-seek:focus-visible { outline: 2px solid #e2c58a; outline-offset: 2px; }
.ijn-fp .ijn-fp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ijn-fp .ijn-fp-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f8f4ec; font-weight: 700; }
.ijn-fp .ijn-fp-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ijn-fp .ijn-fp-time { flex: none; min-width: 66px; text-align: right; color: #e2c58a; font-variant-numeric: tabular-nums; font-weight: 600; }
.ijn-fp .ijn-fp-seek {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 16px; margin: 0; padding: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.ijn-fp .ijn-fp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #e2c58a var(--ijn-fp-pct), rgba(248, 244, 236, 0.3) var(--ijn-fp-pct)); }
.ijn-fp .ijn-fp-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(248, 244, 236, 0.3); }
.ijn-fp .ijn-fp-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #e2c58a; }
.ijn-fp .ijn-fp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; border: 1px solid #1f3a32; background: #fff8e8; }
.ijn-fp .ijn-fp-seek::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #1f3a32; background: #fff8e8; }
@media (max-width: 420px) {
  .ijn-fp { gap: 8px; padding: 0 6px; }
  .ijn-fp .ijn-fp-time { min-width: 60px; font-size: 12px; }
}
