/* The audio player bar and Listen buttons. Hand-written; see player.js.
   Colours follow the page: the Bible reader's --rd-* when present, otherwise the site's own. */
.au-bar{--au-bg:var(--rd-bg,var(--paper,#fff));--au-fg:var(--rd-fg,var(--ink,#122c40));--au-muted:var(--rd-muted,var(--muted,#52616a));
  --au-line:var(--rd-line,var(--line,#d9e0e5));--au-accent:var(--rd-accent,var(--accent,#9c5a24));
  position:fixed;z-index:65;left:0;right:0;bottom:0;background:var(--au-bg);color:var(--au-fg);border-top:1px solid var(--au-line);
  box-shadow:0 -6px 24px rgba(0,0,0,.12);padding:8px 12px calc(8px + env(safe-area-inset-bottom));font-family:var(--sans,system-ui,sans-serif)}
.au-bar[hidden]{display:none}
html.au-on body{padding-bottom:var(--au-h,0)}
html.au-on .bb-actions{bottom:var(--au-h,0)}
html.au-on .bb-toast{bottom:calc(var(--au-h,0px) + 12px)}
.au-bar :focus-visible,.au-listen:focus-visible{outline:3px solid var(--au-accent,#9c5a24);outline-offset:2px}
.au-r1{display:flex;align-items:center;gap:10px}
.au-r2{display:flex;align-items:center;gap:6px;margin-top:4px}
.au-play{flex:0 0 46px;width:46px;height:46px;border-radius:50%;border:0;background:var(--au-fg);color:var(--au-bg);display:grid;place-items:center;cursor:pointer;padding:0}
.au-play svg{width:24px;height:24px}
.au-fill{fill:currentColor;stroke:none}
.au-info{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.au-title{font:400 1.05rem/1.25 var(--serif,Georgia,serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.au-sub{display:flex;gap:12px;align-items:baseline}
.au-label{border:0;background:none;padding:2px 0;color:var(--au-accent);font:700 10.5px/1.4 var(--sans,system-ui,sans-serif);letter-spacing:.1em;text-transform:uppercase;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.au-open{font-size:13px;color:var(--au-accent)}
.au-btn{flex:0 0 40px;width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;padding:0}
.au-btn:hover{background:var(--rd-surface,var(--tint,#f1f5f7))}
.au-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.au-btn svg text{font:700 6.5px var(--sans,system-ui,sans-serif);fill:currentColor;stroke:none}
.au-close svg{width:22px;height:22px}
.au-time{font:500 12px/1 var(--sans,system-ui,sans-serif);font-variant-numeric:tabular-nums;color:var(--au-muted);min-width:2.6em;text-align:center}
.au-range{flex:1;min-width:60px;accent-color:var(--au-accent);height:28px;margin:0}
.au-rate{flex:0 0 auto;min-width:44px;height:34px;padding:0 8px;border:1px solid var(--au-line);border-radius:999px;background:transparent;color:inherit;font:700 13px var(--sans,system-ui,sans-serif);cursor:pointer}
.au-follow{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 10px;border:1px solid var(--au-line);border-radius:999px;background:transparent;color:inherit;font:600 13px var(--sans,system-ui,sans-serif);cursor:pointer}
.au-follow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.au-follow[aria-pressed="true"]{background:var(--au-fg);color:var(--au-bg);border-color:var(--au-fg)}
.au-follow[hidden]{display:none}
.au-note{font-size:13.5px;line-height:1.5;color:var(--au-fg);padding:6px 4px 8px;border-bottom:1px solid var(--au-line);margin-bottom:6px}
.au-note p{margin:0 0 4px}
.au-engine{color:var(--au-muted)}
@media (max-width:520px){
  .au-r2{flex-wrap:wrap}
  .au-range{order:-1;flex:1 1 100%}
  .au-r2 .au-time:first-of-type{margin-right:auto}
}
@media (min-width:760px){
  .au-bar{left:50%;right:auto;transform:translateX(-50%);width:min(46rem,calc(100% - 32px));bottom:14px;border:1px solid var(--au-line);border-radius:14px;padding-bottom:8px}
}

/* the verse or paragraph being read */
.au-now{background:linear-gradient(90deg,rgba(233,189,118,.32),rgba(233,189,118,.12));border-radius:4px;box-shadow:-6px 0 0 rgba(233,189,118,.32)}
.bb-v.au-now{box-shadow:none}
.bb-v.au-now .bb-t{background-color:rgba(233,189,118,.38)}
html[data-rd-theme="dark"] .bb-v.au-now .bb-t{background-color:rgba(233,189,118,.22)}
@media (prefers-reduced-motion:no-preference){.au-now,.bb-v .bb-t{transition:background-color .35s ease}}

/* Listen buttons */
.au-listen{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 12px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:600 14px var(--sans,system-ui,sans-serif);cursor:pointer}
.au-listen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.au-listen[aria-pressed="true"]{background:var(--rd-fg,var(--ink,#122c40));color:var(--rd-bg,var(--paper,#fff))}
.au-listen-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 22px}
.au-listen-note{font-size:13px;color:var(--rd-muted,var(--muted,#52616a))}
.au-today{display:flex;flex-wrap:wrap;width:100%;justify-content:flex-start;margin:0 0 12px;padding:12px 16px;border-radius:12px;min-height:56px;text-align:left}
.au-today small{flex:1 1 100%;font:400 12.5px var(--sans,system-ui,sans-serif);opacity:.8;padding-left:30px}
@media print{.au-bar,.au-listen,.au-listen-row{display:none!important}}

/* marks on lists, and the small Listen buttons beside exhortations */
.au-has{display:inline-flex;vertical-align:-2px;margin-left:6px;color:var(--rd-accent,var(--accent,#9c5a24))}
.au-has svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.au-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.au-mini{display:inline-grid;place-items:center;width:36px;height:36px;margin-left:6px;vertical-align:middle;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;cursor:pointer;padding:0}
.au-mini svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.au-start{margin:14px 0 0}
/* Continue listening: the saved place in a work */
.au-resume{flex-wrap:wrap;row-gap:0;padding-block:6px;text-align:left}
.au-resume .au-resume-where{flex:1 1 100%;padding-left:30px;font:400 12.5px var(--sans,system-ui,sans-serif);opacity:.8}
.au-start.au-resume{margin-right:10px}
.au-continue{margin:18px 0 0;display:grid;gap:10px;max-width:980px}
.au-continue-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}

/* sleep timer */
.au-sleep{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;height:34px;min-width:36px;padding:0 8px;border:1px solid var(--au-line);border-radius:999px;background:transparent;color:inherit;font:600 12.5px var(--sans,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
.au-sleep svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.au-sleep-t:empty{display:none}
.au-sleep.is-on{background:var(--au-fg);color:var(--au-bg);border-color:var(--au-fg)}
.au-sleep.is-on svg{fill:currentColor}
.au-sleep-menu{padding:4px 2px 10px;margin-bottom:6px;border-bottom:1px solid var(--au-line)}
.au-sleep-menu[hidden]{display:none}
.au-sleep-h{margin:0 0 6px;font:700 11px/1.4 var(--sans,system-ui,sans-serif);letter-spacing:.12em;text-transform:uppercase;color:var(--au-accent)}
.au-sleep-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.au-sleep-opt{min-height:42px;border:1px solid var(--au-line);border-radius:8px;background:transparent;color:inherit;font:500 14px var(--sans,system-ui,sans-serif);cursor:pointer}
.au-sleep-opt[aria-pressed="true"]{border:2px solid var(--au-accent);font-weight:700}
.au-sleep-end{grid-column:span 2}
.au-sleep-note{margin:8px 0 0;font-size:12.5px;color:var(--au-muted)}
@media (min-width:600px){.au-sleep-opts{grid-template-columns:repeat(4,1fr)}.au-sleep-end{grid-column:span 4}}
@media (max-width:420px){.au-follow span{display:none}.au-follow{padding:0 9px}.au-r2{gap:4px}}
