/* Abend Radio player bar: the slim "now playing" bar at the foot of every page.
   Made by assets/player-bar.js, so a visitor without JavaScript never sees an empty bar.
   Uses the site's own palette; the values are repeated here so the bar looks the same on every page. */
.abp {
  --abp-night: #141A2E; --abp-dusk: #1F2742; --abp-line: #2C3554; --abp-violet: #4A3F6B;
  --abp-lamp: #E8A84A; --abp-parchment: #F2EADB; --abp-mist: #A9A3B8;
  --abp-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --abp-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(23, 30, 52, 0.96);
  border-top: 1px solid var(--abp-line);
  box-shadow: 0 -10px 30px rgba(8, 10, 20, 0.35);
  color: var(--abp-parchment);
  font: 400 1rem/1.4 var(--abp-body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .abp { background: rgba(23, 30, 52, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}
.abp *, .abp *::before, .abp *::after { box-sizing: border-box; }
.abp-inner {
  max-width: 44rem; margin: 0 auto; height: 4.5rem;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 0.8rem;
}
html.abp-on body { padding-bottom: calc(4.5rem + max(2.5rem, env(safe-area-inset-bottom, 0px))); }

.abp-art {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, var(--abp-violet), var(--abp-night));
  box-shadow: 0 0 0 1px rgba(242, 234, 219, 0.08);
}
.abp-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.abp-text { flex: 1 1 auto; min-width: 0; }
.abp-title, .abp-sub, .abp-next { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abp-title { font-family: var(--abp-display); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.abp-title a { color: var(--abp-parchment); text-decoration: none; background-image: linear-gradient(var(--abp-lamp), var(--abp-lamp)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; }
@media (hover: hover) { .abp-title a:hover { color: var(--abp-lamp); background-size: 100% 1px; } }
.abp-title a:focus-visible { color: var(--abp-lamp); }
.abp-sub { font-size: 0.76rem; line-height: 1.35; color: var(--abp-parchment); opacity: 0.9; }
.abp-next { font-size: 0.72rem; line-height: 1.35; color: var(--abp-mist); }
.abp-next[hidden] { display: none; }
.abp-next b { font-weight: 600; letter-spacing: 0.04em; }
/* The piece's time, quiet at the right of the title line (2026-11-17). Phones: remaining time only. */
.abp-title { display: flex; align-items: baseline; gap: 0.6rem; }
.abp-title > a, .abp-title > .abp-title-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abp-time { flex: none; margin-left: auto; font: 400 0.72rem/1 var(--abp-body); color: var(--abp-mist); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.abp-time[hidden] { display: none; }
.abp-rem::before { content: "\00B7"; margin: 0 0.4em; }
@media (max-width: 30rem) { .abp-el { display: none; } .abp-rem::before { content: none; } }
.abp-live {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--abp-lamp);
  margin-right: 0.5rem;
}
.abp-dot {
  display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; margin-right: 0.4rem;
  background: var(--abp-mist); vertical-align: 0.06rem;
}
.abp[data-state="playing"] .abp-dot { background: var(--abp-lamp); }

.abp button { font: inherit; color: inherit; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.abp a:focus-visible, .abp button:focus-visible, .abp input:focus-visible { outline: 2px solid var(--abp-lamp); outline-offset: 3px; border-radius: 4px; }

.abp .abp-play { /* ".abp" in front so the dark icon colour beats ".abp button { color: inherit }" above */
  position: relative; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: var(--abp-lamp); color: var(--abp-night);
}
@media (hover: hover) { .abp-play:hover { background: var(--abp-parchment); } }
.abp .abp-play:focus-visible { border-radius: 50%; }
.abp-play svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.abp-play .abp-i-play { margin-left: 0.12rem; }
.abp-play .abp-i-stop, .abp[data-state="playing"] .abp-play .abp-i-play, .abp[data-state="connecting"] .abp-play .abp-i-play { display: none; }
.abp[data-state="playing"] .abp-play .abp-i-stop, .abp[data-state="connecting"] .abp-play .abp-i-stop { display: block; }
.abp-play::after { /* the "connecting" ring */
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--abp-lamp); opacity: 0;
}
.abp[data-state="connecting"] .abp-play::after { opacity: 1; }

.abp-vol { display: none; flex: none; align-items: center; gap: 0.35rem; }
.abp-mute { width: 2.25rem; height: 2.25rem; border: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--abp-mist); display: grid; place-items: center; }
.abp-mute:hover { color: var(--abp-parchment); }
.abp-mute svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.abp-mute .abp-i-muted, .abp-mute[aria-pressed="true"] .abp-i-vol { display: none; }
.abp-mute[aria-pressed="true"] .abp-i-muted { display: block; }
.abp-range {
  -webkit-appearance: none; appearance: none; width: 6.5rem; height: 1.5rem; margin: 0; background: transparent; cursor: pointer;
  --abp-v: 80%;
}
.abp-range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--abp-lamp) var(--abp-v), var(--abp-line) var(--abp-v)); }
.abp-range::-moz-range-track { height: 3px; border-radius: 2px; background: var(--abp-line); }
.abp-range::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--abp-lamp); }
.abp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 0.85rem; height: 0.85rem; margin-top: calc(1.5px - 0.425rem); border-radius: 50%; background: var(--abp-parchment); border: 0; }
.abp-range::-moz-range-thumb { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--abp-parchment); border: 0; }

.abp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 48rem) {
  .abp-inner { height: 4.75rem; gap: 1rem; }
  html.abp-on body { padding-bottom: calc(4.75rem + max(2.5rem, env(safe-area-inset-bottom, 0px))); }
  .abp-art { width: 3rem; height: 3rem; }
  .abp-title { font-size: 1.2rem; }
  .abp-vol { display: flex; }
}
@media (hover: none) { .abp-vol { display: none; } } /* phones and tablets: the device's own volume buttons */

/* Page "Listen live" buttons that the bar takes over: show stop while playing (the landing page has the same rules). */
.listen .i-stop, .listen[data-state="playing"] .i-play, .listen[data-state="connecting"] .i-play { display: none; }
.listen[data-state="playing"] .i-stop, .listen[data-state="connecting"] .i-stop { display: block; }

/* A programmatic focus on the new page's heading after a page change: no ring, the reader just starts there. */
[data-abp-focus]:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .abp-play, .abp-mute, .abp-title a { transition: background-color 0.15s ease, color 0.15s ease, background-size 0.2s ease; }
  .abp-art img { animation: abp-fade 0.4s ease both; }
  .abp[data-state="playing"] .abp-dot { animation: abp-breathe 2.4s ease-in-out infinite; }
  .abp[data-state="connecting"] .abp-play::after { animation: abp-spin 0.9s linear infinite; }
  .abp-enter { animation: abp-fade 0.22s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  .abp[data-state="connecting"] .abp-play::after { border-color: var(--abp-lamp); border-style: dotted; }
}
@keyframes abp-spin { to { transform: rotate(360deg); } }
@keyframes abp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes abp-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 74, 0.55); } 50% { box-shadow: 0 0 0 0.3rem rgba(232, 168, 74, 0); } }

/* The small "Listen live" pill on the breadcrumb line of every page but the home page. It works the bar
   (and is a plain link to the full player without JavaScript). Quiet: an outline, amber only for the icon. */
.topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.topline .crumb { margin: 0; }
.listen-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.8rem 0.28rem 0.6rem; border: 1px solid #2C3554; border-radius: 999px;
  color: #F2EADB; background: transparent; text-decoration: none; white-space: nowrap;
  font: 500 0.8rem/1.4 "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.02em;
}
.listen-pill svg { width: 0.85rem; height: 0.85rem; fill: #E8A84A; }
.listen-pill .i-stop, .listen-pill[data-state="playing"] .i-play, .listen-pill[data-state="connecting"] .i-play { display: none; }
.listen-pill[data-state="playing"] .i-stop, .listen-pill[data-state="connecting"] .i-stop { display: block; }
.listen-pill[data-state="playing"], .listen-pill[data-state="connecting"] { border-color: rgba(232, 168, 74, 0.6); }
@media (hover: hover) { .listen-pill:hover { border-color: #E8A84A; color: #E8A84A; } }
.listen-pill:focus-visible { outline: 2px solid #E8A84A; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .listen-pill { transition: border-color 0.15s ease, color 0.15s ease; } }

/* The stream menu: a quiet "⋯" button beside Play, opening a small panel above the bar. */
.abp-inner { position: relative; }
.abp-opts {
  flex: none; width: 2.25rem; height: 2.25rem; border: 0; padding: 0; border-radius: 50%;
  background: transparent; color: var(--abp-mist); display: grid; place-items: center;
}
.abp-opts svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.abp-opts[aria-expanded="true"] { color: var(--abp-lamp); background: rgba(242, 234, 219, 0.06); }
@media (hover: hover) { .abp-opts:hover { color: var(--abp-parchment); } }
.abp .abp-opts:focus-visible { border-radius: 50%; }

.abp-panel {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(100% + 0.6rem);
  width: min(21rem, calc(100vw - 32px)); max-height: calc(100vh - 7rem); overflow-y: auto;
  background: var(--abp-dusk); border: 1px solid var(--abp-line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 10, 20, 0.55); padding: 0.9rem 1rem 1rem;
  font-size: 0.85rem; line-height: 1.4; text-align: left;
}
.abp-panel[hidden] { display: none; }
.abp-panel-h {
  margin: 0 0 0.45rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--abp-lamp);
}
.abp-panel-h + .abp-hint { margin-top: -0.1rem; }
.abp-q { display: grid; gap: 0.15rem; }
.abp-q-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.4rem 0.5rem; margin: 0 -0.5rem; border-radius: 6px; cursor: pointer; }
@media (hover: hover) { .abp-q-item:hover { background: rgba(242, 234, 219, 0.05); } }
.abp-q-item input { margin: 0.2rem 0 0; accent-color: var(--abp-lamp); width: 1rem; height: 1rem; flex: none; }
.abp-q-item input:focus-visible { outline: 2px solid var(--abp-lamp); outline-offset: 2px; }
.abp-q-label { display: block; color: var(--abp-parchment); font-weight: 500; }
.abp-q-detail { display: block; color: var(--abp-mist); font-size: 0.78rem; }
.abp-q-msg { margin: 0.35rem 0 0.9rem; min-height: 1.1em; color: var(--abp-mist); font-size: 0.78rem; }
.abp-hint { margin: 0 0 0.55rem; color: var(--abp-mist); font-size: 0.78rem; }
.abp-copy { display: flex; gap: 0.4rem; }
.abp-copy input {
  flex: 1 1 auto; min-width: 0; padding: 0.4rem 0.55rem; border: 1px solid var(--abp-line); border-radius: 6px;
  background: var(--abp-night); color: var(--abp-parchment); font: 400 0.76rem/1.3 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
.abp-copy-btn {
  flex: none; padding: 0.4rem 0.8rem; border: 1px solid var(--abp-lamp); border-radius: 999px; background: transparent;
  color: var(--abp-lamp); font-weight: 600; font-size: 0.78rem;
}
@media (hover: hover) { .abp-copy-btn:hover { background: var(--abp-lamp); color: var(--abp-night); } }
.abp-links { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--abp-mist); }
.abp-links a { color: var(--abp-lamp); text-underline-offset: 0.18em; }
@media (max-width: 30rem) { .abp-inner { gap: 0.6rem; } }
@media (prefers-reduced-motion: no-preference) {
  .abp-panel:not([hidden]) { animation: abp-rise 0.16s ease-out both; }
  .abp-opts { transition: color 0.15s ease, background-color 0.15s ease; }
}
@keyframes abp-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* The engraving, full size: a tap on a piece page's sheet-music picture (a.zoom) opens it over the page (player-bar.js).
   Full size on a phone, scrolled sideways; fitted to the window on a computer. One Close button; Esc, a tap or a click closes. */
html.abp-zoomed { overflow: hidden; }
.abp-zoom { position: fixed; inset: 0; z-index: 60; background: rgba(12, 15, 28, 0.97); display: flex; flex-direction: column; }
.abp-zoom-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; padding: 4rem 1rem 1rem; text-align: center; cursor: zoom-out; }
.abp-zoom-scroll img { display: inline-block; vertical-align: top; width: 1600px; max-width: none; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
@media (min-width: 48rem) { .abp-zoom-scroll img { width: auto; max-width: 100%; } }
.abp-zoom-close {
  position: absolute; top: max(0.75rem, env(safe-area-inset-top, 0px)); right: max(0.75rem, env(safe-area-inset-right, 0px)); z-index: 1;
  width: 2.75rem; height: 2.75rem; border: 0; padding: 0; border-radius: 50%; background: #F2EADB; color: #141A2E;
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.abp-zoom-close svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
@media (hover: hover) { .abp-zoom-close:hover { background: #E8A84A; } }
.abp-zoom-close:focus-visible { outline: 2px solid #E8A84A; outline-offset: 3px; }
.abp-zoom-hint { flex: none; margin: 0; padding: 0.5rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); text-align: center; color: #A9A3B8; font: 400 0.78rem/1.4 "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* The site menu at the top of every page (2026-11-16, in place of the breadcrumb-looking crumb line): five items set as
   quiet tabs, the current page in amber with an amber underline. On a phone it wraps into two tidy rows. */
.sitenav { display: flex; flex-wrap: wrap; gap: 0.1rem 0.15rem; margin: 0 -0.6rem; max-width: 100%; }
.sitenav a {
  display: inline-block; padding: 0.4rem 0.6rem 0.3rem; color: #F2EADB; text-decoration: none; white-space: nowrap;
  font: 500 0.95rem/1.3 "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.01em;
  border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0;
}
@media (hover: hover) { .sitenav a:hover { color: #E8A84A; } }
.sitenav a[aria-current="page"], .sitenav a[aria-current="true"] { color: #E8A84A; border-bottom-color: #E8A84A; }
.sitenav a:focus-visible { outline: 2px solid #E8A84A; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .sitenav a { transition: color 0.15s ease, border-color 0.15s ease; } }
