/* Listening room: shared player, scoped to preserve the site's existing layout. */
.peb-player { width: min(960px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--bg); box-shadow: 0 30px 120px rgba(0,0,0,.6); overflow: auto; }
.peb-player:not([open]), .peb-player [hidden], .peb-mini[hidden] { display: none; }
.peb-player::backdrop { background: var(--player-backdrop); backdrop-filter: blur(8px); }
body.peb-player-modal { overflow: hidden; }
body.peb-player-mini-open { padding-bottom: var(--peb-mini-space, 110px); }
html:has(.peb-mini:not([hidden])) { scroll-padding-bottom: var(--peb-mini-space, 110px); }
.peb-player button, .peb-mini button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.peb-player button:disabled { cursor: default; opacity: .55; }
.peb-player svg, .peb-mini svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.peb-player-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.peb-player-brand { font-size: .88rem; font-weight: 600; line-height: 1.4; }
.peb-player-brand span { display: block; color: var(--gold-light); font-size: .75rem; font-weight: 400; }
.peb-player-window-controls { display: flex; gap: .5rem; }
.peb-icon-button { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 50%; transition: background .18s, border-color .18s; }
.peb-icon-button:hover { background: rgba(255,255,255,.08); border-color: var(--line); }
.peb-player-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem,4vw,3rem); padding: clamp(1.3rem,3vw,2.5rem); }
.peb-player-visual, .peb-player-copy { min-width: 0; }
.peb-art-frame { position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate; background: var(--bg); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.24); }
.peb-art-backdrop { position: absolute; z-index: -1; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(30px); opacity: .28; }
.peb-art-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; opacity: 0; transition: opacity .9s ease; animation: peb-art-drift 18s ease-in-out infinite alternate; animation-play-state: paused; }
.peb-art-layer.is-current { opacity: 1; }
.peb-player[data-motion="true"] .peb-art-layer { animation-play-state: running; }
@keyframes peb-art-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
.peb-slide-count { position: absolute; bottom: .65rem; right: .7rem; padding: .1rem .5rem; border-radius: 999px; color: var(--text); background: var(--badge-background); font-size: .7rem; }
.peb-spectrum { display: block; width: 100%; height: 54px; margin: .6rem auto 0; opacity: .85; }
.peb-player-year { margin: 0 0 .7rem; color: var(--gold-light); font-size: .85rem; }
.peb-player #player-title { margin: 0 0 1rem; font-size: clamp(1.9rem,3.8vw,3.4rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.peb-player-credits { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.peb-player-credits p { margin: 0; }
.peb-player-transport { display: flex; align-items: center; justify-content: center; gap: 1.15rem; margin: 1.5rem 0 1rem; }
.peb-play-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-width: 126px; min-height: 56px; padding: .7rem 1.3rem; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: var(--deep); font-weight: 700; transition: background .18s; }
.peb-play-button:hover { background: var(--gold-light); }
.peb-player input[type="range"] { display: block; width: 100%; min-width: 0; height: 32px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.peb-time { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.peb-player-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .65rem; }
.peb-volume { display: flex; align-items: center; gap: .4rem; max-width: 150px; min-width: 90px; }
.peb-effects-button { min-height: 44px; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); font-size: .78rem; white-space: nowrap; }
.peb-effects-button[aria-pressed="false"] { color: var(--muted); border-color: rgba(255,255,255,.15); }
.peb-player-status { min-height: 1.5em; margin: 1rem 0 .2rem; color: var(--muted); font-size: .8rem; }
.peb-player[data-error="true"] .peb-player-status { color: #ffc5ae; }
.peb-mini { position: fixed; z-index: 70; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; width: min(900px, calc(100% - 2rem)); padding: .7rem; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: var(--player-mini-background); box-shadow: 0 8px 45px rgba(0,0,0,.45); }
.peb-mini-expand { display: flex; align-items: center; gap: .9rem; flex: 1; min-width: 0; min-height: 48px; padding: 0 .3rem 0 0; border: 0; color: inherit; background: transparent; text-align: left; border-radius: 8px; }
.peb-mini-expand img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; border-radius: 6px; background: var(--bg); }
.peb-mini-expand > span { min-width: 0; flex: 1; }
.peb-mini-expand strong, .peb-mini-expand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peb-mini-expand strong { font-size: .9rem; font-weight: 600; }
.peb-mini-expand small { color: var(--gold-light); font-size: .72rem; }
@media (max-width: 650px) {
  .peb-player { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); border-radius: 18px; }
  .peb-player-top { padding: .7rem .9rem; }
  .peb-player-layout { grid-template-columns: 1fr; gap: .4rem; padding: 1rem 1.3rem 1.3rem; }
  .peb-player-visual { width: min(100%, 240px); margin-inline: auto; }
  .peb-spectrum { height: 32px; margin-top: .2rem; }
  .peb-player #player-title { font-size: 1.85rem; margin-bottom: .65rem; }
  .peb-player-year { margin-bottom: .3rem; font-size: .78rem; }
  .peb-player-credits { font-size: .8rem; }
  .peb-player-transport { margin: 1rem 0 .5rem; }
  .peb-player-status { margin-top: .6rem; }
  .peb-mini { gap: .25rem; width: calc(100% - 1rem); bottom: max(.5rem, env(safe-area-inset-bottom)); }
  .peb-mini-expand { gap: .6rem; }
  .peb-mini-expand > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .peb-art-layer { animation: none; transition: none; }
  .peb-spectrum { opacity: .3; }
}
button.tag { background: transparent; cursor: pointer; }
[data-player-track]:disabled { opacity: .55; cursor: default; }
