/* Brewer Evolution glass player */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #f2ce6b; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #e0a92b; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #fff1c4; }
:root { transition: --c1 1.4s ease, --c2 1.4s ease, --c3 1.4s ease; }

/* WebGL scene: soft behind the page while music plays (desktop), full behind Now Playing */
.bp-viz { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; display: block; }
.bp-viz.on { opacity: .42; }
.bp-viz.immersive { z-index: 60; opacity: 1; transition: opacity .45s ease; }
html.bp-has-player body { background: transparent; }
html.bp-has-player { background: var(--bg, #0b0b0b); }
html.bp-has-player main, html.bp-has-player #site-footer, html.bp-has-player body.embed > :not(.bp-viz):not(#player):not(.sp) { position: relative; z-index: 1; }
html.bp-lock, html.bp-lock body { overflow: hidden; }

.bp { --lvl: 0; font-family: "Open Sans", system-ui, sans-serif; color: #fff; }
.bp button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bp svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.bp audio { display: none; }

/* Glass */
.bp-glass {
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 42%, rgba(255,255,255,.07)),
    color-mix(in srgb, var(--c2) 6%, rgba(12,11,9,.6));
  -webkit-backdrop-filter: blur(24px) saturate(175%); backdrop-filter: blur(24px) saturate(175%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(255,255,255,.05), inset 0 0 30px rgba(255,255,255,.03),
    0 24px 60px rgba(0,0,0,.55), 0 0 calc(30px + var(--lvl) * 50px) color-mix(in srgb, var(--c1) calc(14% + var(--lvl) * 30%), transparent);
}
.bp-glass::before { /* light sweep across the glass while music plays */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.13) 48%, transparent 60%) -150% 0 / 60% 100% no-repeat;
}
.bp.is-playing .bp-glass::before { animation: bp-sweep 6s ease-in-out infinite; }
@keyframes bp-sweep { 0% { background-position: -150% 0; } 55%, 100% { background-position: 260% 0; } }

/* Buttons */
.bp-ic { background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.82); position: relative; transition: color .2s, background .2s, transform .15s; }
.bp-ic:hover { color: #fff; background: rgba(255,255,255,.08); }
.bp-ic:active { transform: scale(.92); }
.bp-ic.on { color: var(--c1); }
.bp-ic.on::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 8px var(--c1); }
.bp-one { display: none; position: absolute; top: 6px; right: 5px; font: 800 9px/1 Montserrat, sans-serif; font-style: normal; background: var(--c1); color: #000; border-radius: 6px; padding: 2px 3px; }
.bp-ic.one .bp-one { display: block; }
.bp-ic-lg svg { width: 30px; height: 30px; }
.bp-ic-lg { width: 54px; height: 54px; }
.bp-play {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #0b0b0b; flex: none;
  background: radial-gradient(circle at 30% 25%, #fff, color-mix(in srgb, var(--c1) 85%, #fff) 45%, var(--c1));
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 6px 22px color-mix(in srgb, var(--c1) 55%, transparent), 0 0 calc(10px + var(--lvl) * 30px) color-mix(in srgb, var(--c1) 60%, transparent);
  transition: transform .15s;
}
.bp-play:hover { transform: scale(1.06); }
.bp-play:active { transform: scale(.94); }
.bp-play-lg { width: 76px; height: 76px; }
.bp-play-lg svg { width: 32px; height: 32px; }
.bp :focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; }

/* Mini player */
.bp-mini {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); width: min(1100px, calc(100vw - 24px)); z-index: 40;
  transform: translate(-50%, 140%); opacity: 0; transition: transform .55s cubic-bezier(.2,.9,.25,1.15), opacity .35s;
  border-radius: 22px; padding: 10px 14px; overflow: hidden;
  display: grid; grid-template-columns: 56px minmax(140px, 300px) auto 1fr auto auto; grid-template-areas: "art meta ctrls scrub react extra" "note note note note note note";
  align-items: center; column-gap: 14px;
}
.bp.show .bp-mini { transform: translate(-50%, 0); opacity: 1; }
/* home-page box that grows with its content: keep the mini player at the visible bottom of the box (be-time.js reports how much is below the screen) */
html.be-autoh .bp-mini { bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--be-host-below, 0px)); }
html.be-autoh, html.be-autoh body { overflow-y: hidden; }
.bp-mini-spec { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; opacity: .35; mix-blend-mode: screen; }
.bp-mini > :not(canvas) { position: relative; }
.bp-art { grid-area: art; width: 56px; height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); padding: 0; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #2a2112, #0e0d0b);
  box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 calc(var(--lvl) * 26px) color-mix(in srgb, var(--c1) 70%, transparent); }
.bp-art img, .bp-big img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; }
.bp-art img[hidden], .bp-big img[hidden] { display: none; }
.bp-art-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); }
.bp-art::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 22px no-repeat; opacity: 0; transition: opacity .2s; }
.bp-art:hover::after { opacity: 1; }
.bp-meta { grid-area: meta; min-width: 0; }
.bp-title { font: 700 15px/1.25 Montserrat, sans-serif; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-artist { font-size: 13px; color: rgba(255,255,255,.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-ctrls { grid-area: ctrls; display: flex; align-items: center; gap: 4px; }
.bp-scrub { grid-area: scrub; display: flex; align-items: center; gap: 10px; min-width: 0; font: 600 12px/1 Montserrat, sans-serif; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.bp-wave { flex: 1; height: 34px; position: relative; cursor: pointer; touch-action: none; border-radius: 8px; min-width: 80px; }
.bp-wave canvas { width: 100%; height: 100%; display: block; }
.bp-extra { grid-area: extra; display: flex; align-items: center; gap: 2px; }
.bp-vol { display: flex; align-items: center; }
.bp-vol input { width: 86px; accent-color: var(--c1); background: none; border: 0; padding: 0; }
.bp-note { grid-area: note; font-size: 12px; color: color-mix(in srgb, var(--c1) 80%, #fff); text-align: center; }
.bp-note:empty { display: none; }
.bp-mini .bp-note:not(:empty) { margin-top: 4px; }
.bp-note a { color: #fff; text-decoration: underline; font-weight: 700; }

/* Now Playing */
.bp-full { position: fixed; inset: 0; z-index: 61; opacity: 0; transition: opacity .38s ease; }
.bp-full.in { opacity: 1; }
.bp-full[hidden] { display: none; }
.bp-full::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.55), transparent 60%), linear-gradient(rgba(0,0,0,.25), transparent 30%, rgba(0,0,0,.35)); pointer-events: none; }
.bp-full-ui { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-width: 1100px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); gap: 10px; }
.bp-top { display: flex; align-items: center; justify-content: space-between; }
.bp-glass-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); width: 44px; height: 44px; }
.bp-kicker { font: 700 12px/1 Montserrat, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); text-shadow: 0 0 18px var(--c1); }
.bp-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.bp-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bp-big {
  --glow: .4; position: relative; width: min(46vh, 74vw, 420px); aspect-ratio: 1; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, #2e2412, #0e0d0b);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 calc(40px + var(--glow) * 60px) color-mix(in srgb, var(--c1) calc(var(--glow) * 60%), transparent);
  will-change: transform; transition: transform .08s linear;
}
.bp-big .bp-art-ph svg { width: 34%; height: 34%; opacity: .8; }
.bp-sheen { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.35), rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.12)); mix-blend-mode: overlay; pointer-events: none; }
.bp-panel { position: relative; border-radius: 28px; padding: 18px 22px 14px; width: min(720px, 100%); justify-self: center; }
.bp-fmeta { text-align: center; }
.bp-fmeta .bp-title { font-size: clamp(20px, 3.2vw, 28px); white-space: normal; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.bp-fmeta .bp-artist { font-size: 15px; margin-top: 2px; }
.bp-fmeta .bp-note { margin-top: 6px; font-size: 13px; }
.bp-scrub-lg { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 12px; }
.bp-scrub-lg .bp-wave { height: 52px; flex: none; }
.bp-times { display: flex; justify-content: space-between; }
.bp-fctrls { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 3vw, 22px); margin-top: 8px; }
.bp-queue { position: absolute; right: 18px; top: 70px; bottom: 18px; width: min(340px, calc(100% - 36px)); border-radius: 22px; padding: 14px; overflow: auto; z-index: 2; }
.bp-queue[hidden] { display: none; }
.bp-qhead { font: 700 12px Montserrat, sans-serif; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 4px 6px 10px; }
.bp-queue ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bp-queue li button { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 8px; border-radius: 12px; text-align: left; }
.bp-queue li button:hover { background: rgba(255,255,255,.08); }
.bp-queue img, .bp-queue .bp-art-ph { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; position: relative; background: rgba(255,255,255,.08); }
.bp-queue b { display: block; font: 700 14px Montserrat, sans-serif; }
.bp-queue small { color: rgba(255,255,255,.6); }
.bp-empty { color: rgba(255,255,255,.6); font-size: 14px; padding: 8px; }

/* Song cards: playing state */
.track.bp-now { border-color: color-mix(in srgb, var(--c1) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c1) 50%, transparent), 0 12px 40px color-mix(in srgb, var(--c1) 22%, transparent); }
.playbtn { background: radial-gradient(circle at 30% 25%, #fff, var(--accent) 50%) !important; border: 1px solid rgba(255,255,255,.6) !important; transition: transform .15s; display: grid; place-items: center; }
.playbtn:hover { transform: scale(1.08); }
.bp-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.bp-eq i { width: 3px; background: currentColor; border-radius: 2px; animation: bp-eq .9s ease-in-out infinite; }
.bp-eq i:nth-child(2) { animation-delay: -.3s; } .bp-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes bp-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.bp-paused .bp-eq i { animation-play-state: paused; }

@media (max-width: 760px) {
  .bp-mini { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "art meta ctrls" "scrub scrub scrub" "react react react" "note note note"; row-gap: 6px; padding: 10px 12px 8px; border-radius: 20px; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); }
  .bp-art { width: 48px; height: 48px; border-radius: 12px; }
  .bp-extra, .bp-hide-sm { display: none; }
  .bp-wave { height: 26px; }
  .bp-panel { padding: 14px 14px 10px; border-radius: 24px; }
  .bp-queue { top: 64px; }
}
@media (max-height: 640px) and (min-width: 761px) { .bp-big { width: min(38vh, 300px); } }
@media (prefers-reduced-motion: reduce) {
  .bp.is-playing .bp-glass::before { animation: none; }
  .bp-eq i { animation: none; height: 60%; }
  .bp-mini { transition: opacity .2s; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .bp-glass { background: rgba(18,18,24,.94); } }

/* Home-page embed list */
body.embed .item { transition: border-color .3s, box-shadow .3s, background .3s; }
body.embed .item .bp-eq { display: none; color: var(--c1); margin-left: 4px; vertical-align: -1px; }
body.embed .item.bp-now { border-color: color-mix(in srgb, var(--c1) 65%, transparent); background: color-mix(in srgb, var(--c1) 8%, var(--panel)); box-shadow: 0 0 24px color-mix(in srgb, var(--c1) 20%, transparent); }
body.embed .item.bp-now .bp-eq { display: inline-flex; }
.playbtn-sm { width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; background: radial-gradient(circle at 30% 25%, #fff, var(--accent) 50%) !important; }

/* Full-screen mode */
.bp-full .bp-ring { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; }
.bp-topr { display: flex; gap: 8px; }
.bp-mini { cursor: pointer; }
.bp-mini button, .bp-mini input, .bp-mini a, .bp-mini .bp-wave { cursor: pointer; }
.bp-full .bp-top, .bp-full .bp-panel, .bp-full .bp-queue { transition: opacity .7s ease, transform .7s ease; }
.bp-full.cinema { cursor: none; }
.bp-full.cinema .bp-top, .bp-full.cinema .bp-panel { opacity: 0; pointer-events: none; }
.bp-full.cinema .bp-top { transform: translateY(-14px); }
.bp-full.cinema .bp-panel { transform: translateY(24px); }
.bp-full.cinema .bp-big { box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 calc(60px + var(--glow) * 110px) color-mix(in srgb, var(--c1) calc(var(--glow) * 70%), transparent); }
.bp-hint { position: fixed; left: 50%; bottom: 3vh; transform: translateX(-50%); font: 600 11px Montserrat, sans-serif; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,.55); opacity: 0; transition: opacity .8s ease 1.2s; pointer-events: none; white-space: nowrap; z-index: 1; }
.bp-full.cinema .bp-hint { opacity: 1; animation: bp-hint 4s ease-in-out 2s forwards; }
@keyframes bp-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bp-full .bp-top, .bp-full .bp-panel { transition: none; } }

/* Layers */
.bp-full .bp-top, .bp-full .bp-panel { position: relative; z-index: 2; }
.bp-full .bp-queue, .bp-fshelp { z-index: 4; }

/* iPhone full-screen help */
.bp-fshelp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100% - 32px)); border-radius: 22px; padding: 20px 22px; font-size: 14px; line-height: 1.5; }
.bp-fshelp[hidden] { display: none; }
.bp-fshelp b:first-child { font: 700 16px Montserrat, sans-serif; color: var(--c1); }
.bp-fshelp ol { margin: 6px 0 8px; padding-left: 20px; }
.bp-fshelp .bp-fine { font-size: 12px; color: rgba(255,255,255,.6); }
.bp-okbtn { width: auto; height: auto; border-radius: 999px; padding: 9px 26px; font: 800 13px Montserrat, sans-serif; margin-top: 6px; }

/* Continue (handed over from the home-page player) */
.bp-continue { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bp-continue-btn { display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 22px; border: 1px solid rgba(255,255,255,.25); cursor: pointer; color: #fff; text-align: left;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04)), rgba(20,18,12,.8); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px color-mix(in srgb, var(--c1) 30%, transparent); }
.bp-continue-btn img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.bp-continue-btn b { display: block; font: 800 16px Montserrat, sans-serif; color: var(--c1); }
.bp-continue-btn small { color: rgba(255,255,255,.7); font-size: 13px; }
/* small-screen polish for the top bar, help card and tray */
.bp-top { gap: 8px; }
.bp-kicker { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-fshelp { background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.02)), rgba(16,14,10,.94); }
.bp-okbtn, .bp-okbtn:hover { color: #0b0b0b !important; }
@media (max-width: 760px) {
  .bp-kicker { font-size: 10px; letter-spacing: .16em; }
  .bp-topr { gap: 6px; }
  .bp-glass-btn { width: 40px; height: 40px; }
}



/* Mini player: always show that it opens full screen */
.bp-show-sm { display: none; }
.bp-fsicon { color: var(--c1); }
.bp-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 14px; border: 0; background: none; padding: 0; cursor: pointer; z-index: 2; }
.bp-handle span { display: block; width: 38px; height: 4px; margin: 5px auto 0; border-radius: 99px; background: rgba(255,255,255,.45); box-shadow: 0 0 10px color-mix(in srgb, var(--c1) 60%, transparent); }
.bp-handle:hover span { background: var(--c1); }
@media (max-width: 760px) { .bp-show-sm { display: grid; } .bp-mini { padding-top: 14px; } }

/* Full screen: neighbouring covers peek in at the sides; swipe to change song */
.bp-stage { touch-action: pan-y; }
.bp-side { position: absolute; top: 50%; width: min(26vh, 34vw, 230px); aspect-ratio: 1; transform: translateY(-50%) scale(.82); border-radius: 18px; overflow: hidden; padding: 0;
  border: 1px solid rgba(255,255,255,.18); background: linear-gradient(135deg, #2e2412, #0e0d0b); opacity: .38; filter: blur(.5px) saturate(.8); cursor: pointer; z-index: 0; transition: opacity .3s, transform .3s; }
.bp-side[hidden] { display: none; }
.bp-side:hover { opacity: .7; }
.bp-side img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; }
.bp-side img[hidden] { display: none; }
.bp-side-prev { left: 0; transform: translate(-58%, -50%) scale(.82); }
.bp-side-next { right: 0; transform: translate(58%, -50%) scale(.82); }
.bp-big { z-index: 1; }
.bp-full.cinema .bp-side { opacity: .18; }
.bp-swipehint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); z-index: 2; pointer-events: none; white-space: nowrap;
  font: 700 11px Montserrat, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.75); text-shadow: 0 0 12px rgba(0,0,0,.8); transition: opacity .8s; }
.bp-swipehint.gone { opacity: 0; }
@media (min-width: 761px) { .bp-side-prev { transform: translate(-12%, -50%) scale(.78); } .bp-side-next { transform: translate(12%, -50%) scale(.78); } }
.bp-extra [data-a="open"] { color: var(--c1); }
.bp-stage, .bp-stage * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.bp-stage img { -webkit-user-drag: none; pointer-events: none; }
.bp-mini > .bp-handle { position: absolute; grid-area: auto; }

/* ❤️ 🔥 reactions */
.bp-react { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: calc(50% - 40px); z-index: 3; display: flex; flex-direction: column; gap: 12px; transition: opacity .35s; }
.bp-react[hidden] { display: none; }
.bp-rbtn { width: 56px; height: auto; min-height: 64px; padding: 8px 0 6px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bp-remoji { font-size: 26px; line-height: 1; transition: transform .15s; }
.bp-rcount { font: 700 12px Montserrat, sans-serif; color: #fff; letter-spacing: .02em; min-width: 2ch; text-align: center; }
.bp-rbtn:hover .bp-remoji { transform: scale(1.12); }
.bp-rbtn.bp-pop .bp-remoji { animation: bp-rpop .35s cubic-bezier(.2,1.8,.4,1); }
@keyframes bp-rpop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.bp-rsky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.bp-float { position: absolute; line-height: 1; transform: translate(-50%, 0); will-change: transform, opacity; animation: bp-float 2s ease-out forwards; opacity: 0; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
@keyframes bp-float { 0% { opacity: 0; transform: translate(-50%, 0) scale(.4); } 12% { opacity: 1; transform: translate(-50%, -30px) scale(1.1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(var(--rot)) scale(.9); } }
.bp-full.cinema .bp-react { opacity: 0; pointer-events: none; }
.bp-react.bp-react-row { flex-direction: row; right: auto; left: 50%; transform: translateX(-50%); gap: 12px; }
.bp-react-row .bp-rbtn { flex-direction: row; width: auto; min-height: 0; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; gap: 7px; }
.bp-react-row .bp-remoji { font-size: 20px; }
.bp-react-row .bp-rcount { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .bp-float { animation-name: bp-fade; } .bp-rbtn.bp-pop .bp-remoji { animation: none; }
  @keyframes bp-fade { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } } }

/* mini player reactions */
.bp-mini > .bp-react-mini { grid-area: react; position: relative; right: auto; bottom: auto; flex-direction: row; gap: 6px; z-index: 1; }
.bp-react-mini .bp-rbtn { flex-direction: row; width: auto; min-height: 0; height: 34px; padding: 0 10px 0 8px; gap: 5px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.bp-react-mini .bp-rbtn:hover { background: rgba(255,255,255,.14); }
.bp-react-mini .bp-remoji { font-size: 17px; }
.bp-react-mini .bp-rcount { font-size: 12px; }
.bp-rsky-page { position: fixed; inset: 0; z-index: 45; }
@media (max-width: 760px) { .bp-react-mini .bp-rbtn { height: 28px; padding: 0 8px 0 6px; gap: 4px; } .bp-react-mini .bp-remoji { font-size: 15px; } .bp-react-mini .bp-rcount { font-size: 11px; } }

/* the mini player shows the whole song name (wraps instead of cutting off) */
.bp-mini .bp-title { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }
.bp-mini .bp-artist { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .bp-mini > .bp-react-mini { justify-self: start; margin-top: 2px; }
  .bp-mini .bp-title { font-size: 14px; }
}

/* ---- Player pinned to the TOP of the screen (stays put while scrolling up, down or sideways) ---- */
.bp-mini { top: max(10px, env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -140%);
  grid-template-columns: 56px minmax(140px, 300px) auto 1fr auto auto auto; grid-template-areas: "art meta ctrls scrub react extra min" "note note note note note note note"; }
.bp.show .bp-mini { transform: translate(-50%, 0); }
.bp.show.min .bp-mini { transform: translate(-50%, -140%); opacity: 0; pointer-events: none; }
.bp-minbtn { grid-area: min; color: rgba(255,255,255,.75); }
.bp-minbtn svg { transform: rotate(180deg); }
.bp-mini > .bp-handle { top: auto; bottom: 0; }
.bp-mini > .bp-handle span { margin: 5px auto 5px; }
/* page content starts below the player while it's showing */
html.bp-pinned:not(.bp-min) body { padding-top: calc(var(--bp-h, 84px) + 18px); transition: padding-top .35s ease; }
html.bp-pinned:not(.bp-min) #site-header { position: relative; top: auto; }
html.bp-pinned body.embed { padding-top: calc(var(--bp-h, 84px) + 14px); }
html.bp-pinned.bp-min body.embed { padding-top: 0; }
/* small "Now playing" tab that brings the player back */
.bp-tab { position: fixed; top: calc(var(--hdr, 0px) + max(8px, env(safe-area-inset-top))); right: max(10px, env(safe-area-inset-right)); z-index: 41; display: flex; align-items: center; gap: 8px;
  max-width: min(260px, calc(100vw - 20px)); padding: 8px 10px 8px 14px; border-radius: 999px; color: #fff; font: 700 13px Montserrat, sans-serif; cursor: pointer; overflow: hidden; }
.bp-tab[hidden] { display: none; }
.bp-tab .bp-eq { color: var(--c1); flex: none; }
.bp:not(.is-playing) .bp-tab .bp-eq i { animation-play-state: paused; }
.bp-tab-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bp-tab-c { flex: none; display: grid; place-items: center; }
.bp-tab-c svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .bp-mini { top: max(8px, env(safe-area-inset-top)); bottom: auto; padding: 10px 12px 14px;
    grid-template-columns: 48px minmax(0, 1fr) auto auto; grid-template-areas: "art meta ctrls min" "scrub scrub scrub scrub" "react react react react" "note note note note"; }
  .bp-minbtn { width: 36px; height: 36px; }
  html.bp-pinned:not(.bp-min) body { padding-top: calc(var(--bp-h, 150px) + 12px); }
}
@media (prefers-reduced-motion: reduce) { html.bp-pinned:not(.bp-min) body { transition: none; } }
html.bp-noanim body { transition: none !important; }

/* Song finished → suggest the next one (no auto-play) */
.bp-upnext { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; color: #fff; }
.bp-upnext b { color: var(--c1); }
.bp-upnext-a { color: rgba(255,255,255,.65); }
.bp-upnext-btn { border: 0; border-radius: 999px; padding: 5px 12px; font: 800 12px Montserrat, sans-serif !important; color: #0b0b0b !important; cursor: pointer;
  background: radial-gradient(circle at 30% 25%, #fff, var(--c1) 55%); box-shadow: 0 0 14px color-mix(in srgb, var(--c1) 50%, transparent); }
.bp-fmeta .bp-upnext-btn { padding: 8px 18px; font-size: 14px !important; }

/* Phones / narrow embeds: song name gets the full width on its own row; the buttons sit on the row below
   (stops long titles being squeezed into a narrow column, one word per line). */
@media (max-width: 560px) {
  .bp-mini { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 12px;
    grid-template-areas: "art meta min" "ctrls ctrls ctrls" "scrub scrub scrub" "react react react" "note note note"; }
  .bp-mini .bp-meta { align-self: center; }
  .bp-mini .bp-title { font-size: 15px; line-height: 1.25; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .bp-mini .bp-artist { overflow-wrap: normal; }
  .bp-mini .bp-ctrls { justify-content: center; gap: 18px; margin-top: 2px; }
  .bp-minbtn { align-self: start; }
}

/* full-screen hand-off from the home-page player: nothing but black until the full-screen player is up */
html.bp-handoff, html.bp-handoff body { background: #050505 !important; }
html.bp-handoff body > * { visibility: hidden !important; }

/* minimized tab: draggable anywhere */
.bp-tab { touch-action: none; user-select: none; -webkit-user-select: none; }
.bp-tab.bp-moved { right: auto; bottom: auto; z-index: 65; } /* above the music assistant button wherever it is dropped */
.bp-tab.bp-dragging { cursor: grabbing; transform: scale(1.06); box-shadow: 0 16px 40px rgba(0,0,0,.55); transition: none; }
@media (hover: hover) { .bp-tab { cursor: grab; } }

/* Home-page embed (brewerevolution.com, auto-height box): the mini player docks at the bottom of the visible screen only.
   Pinning it to the top as well stretched it between top and bottom (a giant player) and fed the box height in a loop. */
html.be-autoh .bp-mini { top: auto; }
html.be-autoh.bp-pinned body.embed, html.be-autoh.bp-pinned:not(.bp-min) body { padding-top: 0; }
html.be-autoh .bp.show.min .bp-mini { transform: translate(-50%, 140%); }
