/* HPS header player: all four options. Scoped under .hps-hp so it can sit inside the theme header. */
.hps-hp { --gold: #f1c319; --ink: #000036; --stage: #04142a; --line: rgba(255,255,255,.16); --muted: #a9b6c9; --wave: rgba(255,255,255,.28);
  position: relative; display: inline-flex; align-items: center; color: #fff; font-family: "Libre Franklin", Arial, sans-serif; line-height: 1.2; }
.hps-hp *, .hps-hp *::before, .hps-hp *::after { box-sizing: border-box; }
.hps-hp button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; line-height: 1.2; text-transform: none; box-shadow: none; border-radius: 0; min-width: 0; }
.hps-hp button * { color: inherit; }   /* the theme colours button descendants black */
.hps-hp :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.hps-hp svg { display: block; }

/* ---------- A: trumpet ---------- */
.hps-hp .hero-btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; white-space: nowrap; }
.hps-hp .hero-wrap { position: relative; width: 42px; height: 42px; flex: none; color: var(--gold); }
.hps-hp .hero-wrap svg { width: 42px; height: 42px; transform-origin: 15% 85%; transition: transform .2s; }
.hps-hp .hero-text { font-size: 15px; font-weight: 500; min-width: 134px; text-align: left; }
.hps-hp .hero-text small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.hps-hp .hero-btn:hover .hero-wrap svg, .hps-hp .hero-btn:focus-visible .hero-wrap svg, .hps-hp.intro .hero-wrap svg { animation: hp-rock .7s ease-in-out infinite alternate; }
.hps-hp.playing .hero-wrap svg { animation: hp-rock .9s ease-in-out infinite alternate; }
@keyframes hp-rock { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* notes float out of the bell */
.hps-hp .note { position: absolute; left: 30px; top: 0; width: 12px; height: 12px; color: var(--gold); opacity: 0; pointer-events: none; }
.hps-hp .note svg { width: 12px; height: 12px; animation: none; }
.hps-hp .hero-btn:hover .note, .hps-hp .hero-btn:focus-visible .note, .hps-hp.intro .note, .hps-hp.playing .note { animation: hp-float 1.5s ease-out infinite; }
.hps-hp .note:nth-of-type(2) { animation-delay: .5s !important; left: 36px; }
.hps-hp .note:nth-of-type(3) { animation-delay: 1s !important; left: 25px; }
@keyframes hp-float {
  0% { opacity: 0; transform: translate(0, 0) scale(.6) rotate(-10deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(8px, -22px) scale(1.15) rotate(14deg); }
}

/* ---------- B: four ensembles ---------- */
.hps-hp .ens-row { display: flex; gap: 4px; }
.hps-hp .ens { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .18s, color .18s, background .18s; }
.hps-hp .ens svg { width: 28px; height: 28px; }
.hps-hp .ens:hover, .hps-hp .ens:focus-visible { color: var(--gold); transform: translateY(-4px) rotate(-6deg); }
.hps-hp .ens.on { background: var(--gold); color: var(--ink); }
.hps-hp.playing .ens.on { animation: hp-bob .6s ease-in-out infinite alternate; }
@keyframes hp-bob { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-3px) rotate(5deg); } }
.hps-hp.intro .ens { animation: hp-wave 1.1s ease-in-out both; }
.hps-hp.intro .ens:nth-child(2) { animation-delay: .12s; } .hps-hp.intro .ens:nth-child(3) { animation-delay: .24s; } .hps-hp.intro .ens:nth-child(4) { animation-delay: .36s; }
@keyframes hp-wave { 0%, 100% { transform: none; color: #fff; } 40% { transform: translateY(-5px); color: var(--gold); } }
.hps-hp .ens::after { content: attr(data-label); position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px;
  background: var(--stage); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 2; }
.hps-hp .ens:hover::after, .hps-hp .ens:focus-visible::after { opacity: 1; }
.hps-hp.open .ens::after { display: none; }

/* ---------- C: waveform pill ---------- */
.hps-hp .wave-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 5px; border-radius: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.07); transition: background .15s, border-color .15s; white-space: nowrap; }
.hps-hp .wave-pill:hover, .hps-hp .wave-pill:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(241,195,25,.7); }
.hps-hp .wave-pill .round { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: none; }
.hps-hp .wave-pill canvas { width: 52px; height: 26px; }
.hps-hp .wave-pill span { font-size: 14px; font-weight: 500; }

/* ---------- D: plain link ---------- */
.hps-hp .link-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 160px; height: 34px; border-radius: 30px; background: transparent; border: 1.5px solid var(--gold); color: #fff; font-size: 18px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.hps-hp .link-pill svg { width: 24px; height: 24px; transform-origin: 50% 90%; color: var(--gold); }
.hps-hp .link-pill:hover svg, .hps-hp .link-pill:focus-visible svg { color: var(--ink); }
.hps-hp .link-pill:hover, .hps-hp .link-pill:focus-visible { background: var(--gold); color: var(--ink); }
.hps-hp .link-pill:hover svg, .hps-hp .link-pill:focus-visible svg, .hps-hp.intro .link-pill svg { animation: hp-rock .35s ease-in-out infinite alternate; }

/* ---------- shared mini player ---------- */
.hps-hp .pop { position: absolute; top: calc(100% + 12px); left: 0; z-index: 200; width: 340px; max-width: calc(100vw - 24px); padding: 16px; border-radius: 14px; background: var(--stage); border: 1px solid var(--line); box-shadow: 0 14px 44px rgba(0,0,0,.45); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.hps-hp.open .pop { visibility: visible; opacity: 1; transform: none; transition: opacity .16s, transform .16s; }
.hps-hp .pop-head { display: flex; gap: 12px; align-items: center; }
.hps-hp .pop-play { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; transition: transform .15s; }
.hps-hp .pop-play:hover { transform: scale(1.06); }
.hps-hp .pop-title { font-size: 15px; font-weight: 700; color: #fff; }
.hps-hp .pop-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.hps-hp .pop-x { margin-left: auto; align-self: flex-start; width: 32px; height: 32px; flex: none; display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.hps-hp .pop-x:hover { color: #fff; }
.hps-hp .pop canvas { display: block; width: 100%; height: 44px; margin-top: 12px; cursor: pointer; }
.hps-hp .pop-time { display: flex; justify-content: flex-end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.hps-hp .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hps-hp .chip { font-size: 12px; padding: 5px 10px; min-height: 28px; border-radius: 99px; border: 1px solid var(--line); color: #dbe3ee; transition: background .15s, color .15s; }
.hps-hp .chip:hover { border-color: rgba(255,255,255,.5); }
.hps-hp .chip.on { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.hps-hp .pop-room { display: inline-flex; align-items: center; min-height: 32px; margin-top: 10px; color: var(--gold); font-size: 14px; font-weight: 700; text-decoration: none; }
.hps-hp .pop-room:hover { text-decoration: underline; }

/* ---------- narrower headers: compact button, player drops below it ---------- */
@media (max-width: 1024px) {
  .hps-hp .hero-text { display: none; }
  .hps-hp .hero-btn { width: 44px; justify-content: center; padding: 0; }
  .hps-hp .ens-row .ens:not(.keep) { display: none; }   /* one instrument here; the chips cover the rest */
  .hps-hp .wave-pill canvas, .hps-hp .wave-pill span { display: none; }
  .hps-hp .wave-pill { padding: 0 5px; }
  .hps-hp .link-pill { width: auto; height: 44px; padding: 0 12px; font-size: 15px; }
  .hps-hp .pop { position: fixed; top: var(--hp-pop-top, 100px); left: 12px; right: 12px; width: auto; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .hps-hp *, .hps-hp *::before, .hps-hp *::after { animation: none !important; transition: none !important; }
}

/* ---------- theme overrides: bb-theme-child forces colour and 20px on buttons and their descendants ---------- */
.hps-hp button { color: #fff !important; font-size: 15px !important; }
.hps-hp button * { color: inherit !important; }
.hps-hp .hero-wrap, .hps-hp .note { color: var(--gold) !important; }
.hps-hp .hero-text { font-size: 15px !important; }
.hps-hp .hero-text small { color: var(--muted) !important; font-size: 12px !important; }
.hps-hp .ens:hover, .hps-hp .ens:focus-visible { color: var(--gold) !important; }
.hps-hp .ens.on, .hps-hp .ens.on:hover { color: var(--ink) !important; }
.hps-hp .wave-pill span { font-size: 14px !important; }
.hps-hp .wave-pill .round, .hps-hp .pop-play { color: var(--ink) !important; }
.hps-hp .pop-x { color: var(--muted) !important; font-size: 20px !important; }
.hps-hp .pop-x:hover { color: #fff !important; }
.hps-hp .chip { color: #dbe3ee !important; font-size: 12px !important; }
.hps-hp .chip.on { color: var(--ink) !important; }
.hps-hp a.pop-room { color: var(--gold) !important; }
.hps-hp a.link-pill { color: #fff !important; }
.hps-hp a.link-pill:hover, .hps-hp a.link-pill:focus-visible { color: var(--ink) !important; }
.hps-hp .hero-btn:hover, .hps-hp .hero-btn:focus, .hps-hp .pop-x:hover, .hps-hp .pop-x:focus, .hps-hp .ens:not(.on):hover, .hps-hp .ens:not(.on):focus, .hps-hp .chip:not(.on):hover, .hps-hp .chip:not(.on):focus { background: transparent !important; }
.hps-hp .pop-play:hover, .hps-hp .pop-play:focus, .hps-hp .ens.on:hover, .hps-hp .ens.on:focus, .hps-hp .chip.on:hover, .hps-hp .chip.on:focus { background: var(--gold) !important; }
.hps-hp .wave-pill:focus { background: rgba(255,255,255,.14) !important; }
.hps-hp .hero-btn, .hps-hp .hero-btn:hover, .hps-hp .hero-btn:focus, .hps-hp .pop-x, .hps-hp .pop-x:hover, .hps-hp .pop-x:focus, .hps-hp .pop-play, .hps-hp .pop-play:hover, .hps-hp .pop-play:focus, .hps-hp .ens, .hps-hp .ens:hover, .hps-hp .ens:focus, .hps-hp .wave-pill .round { border: 0 !important; }
.hps-hp .ens, .hps-hp .pop-play, .hps-hp .wave-pill .round { border-radius: 50% !important; }
.hps-hp .chip, .hps-hp .chip:hover, .hps-hp .chip:focus { border: 1px solid var(--line) !important; border-radius: 99px !important; }
.hps-hp .chip.on, .hps-hp .chip.on:hover { border-color: var(--gold) !important; }
.hps-hp .wave-pill, .hps-hp .wave-pill:hover, .hps-hp .wave-pill:focus { border: 1px solid var(--line) !important; border-radius: 30px !important; }
.hps-hp a.pop-room, .hps-hp a.link-pill { text-decoration: none !important; }
@media (max-width: 1180px) { .hps-hp .wave-pill canvas { display: none; } }
