/* All states inherit light/dark color-scheme through semantic tokens. */
/* Sidebar player proposals. Media stays 224 × 126; controls occupy their own 32px rail. */
.player-space { width:224px; max-width:100%; overflow:hidden; border-radius:var(--r-xs); background:var(--c-surface-secondary); }
.player-space[hidden], .player-space [hidden] { display:none !important; }
.player-space__viewport { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:16 / 9; background:var(--c-surface-cta); }
.player-space__media { position:absolute; inset:0; width:100%; height:100%; }
.player-space__pending { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--sp-3); }
.player-space__ring { width:32px; height:32px; border:3px solid var(--c-border-secondary); border-top-color:var(--c-button-dark-green); border-radius:50%; animation:player-space-turn 1.1s linear infinite; }
.player-space__face { width:40px; height:40px; object-fit:contain; animation:player-space-breathe 1.8s ease-in-out infinite; }
.player-space__dots { display:flex; align-items:center; gap:var(--sp-2); }
.player-space__dots i { width:7px; height:7px; border-radius:50%; background:var(--c-button-dark-green); animation:player-space-dot 1.4s ease-in-out infinite; }
.player-space__dots i:nth-child(2) { animation-delay:.16s; }
.player-space__dots i:nth-child(3) { animation-delay:.32s; }
.player-space__sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.player-space__rail { display:flex; align-items:center; justify-content:space-between; gap:var(--sp-2); min-height:32px; padding:0 var(--sp-2); background:var(--c-surface-secondary); }
.player-space__actions { display:flex; align-items:center; gap:var(--sp-1); }
.player-space__icon { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; flex:none; padding:0; border:0; border-radius:var(--r-xs); background:transparent; color:var(--c-text-primary); cursor:pointer; }
.player-space__icon svg, .player-space__icon .icon { display:block; width:18px; height:18px; font-size:18px; }
.player-space__icon:hover { background:var(--c-surface-explore-hover); }
.player-space__icon:disabled { color:var(--c-text-disabled); cursor:default; background:transparent; }
.player-space__icon:focus-visible, .player-space__start:focus-visible, .player-space__pro:focus-visible { outline:2px solid var(--c-button-dark-green); outline-offset:-2px; }
.player-space__start { display:flex; flex-direction:column; align-items:center; gap:var(--sp-2); min-height:44px; padding:var(--sp-2); border:0; border-radius:var(--r-sm); background:transparent; color:var(--c-text-primary); cursor:pointer; }
.player-space__start svg, .player-space__start .icon { width:28px; height:28px; font-size:28px; }
.player-space__fallback { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--sp-2); min-height:126px; box-sizing:border-box; padding:var(--sp-4); text-align:center; background:var(--c-surface-cta); }
.player-space__fallback img { width:28px; height:28px; }
.player-space__fallback[data-kind="pro"] { background:var(--c-surface-highlight); }
.player-space__pro { min-height:28px; padding:0 var(--sp-3); border:1px solid var(--c-button-dark-green); border-radius:var(--r-pill); background:var(--c-surface-secondary); cursor:pointer; }
.player-space__label { display:flex; align-items:center; gap:var(--sp-2); }
.player-space__buffer { display:inline-flex; align-items:center; justify-content:center; }
.player-space__buffer .player-space__ring { width:14px; height:14px; border-width:2px; }
/* Review-only sample creative: never substitute this illustration for a provider ad. */
.player-space__sample { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:var(--sp-2); background:var(--c-surface-tertiary); }
.player-space__sample-row { display:flex; gap:var(--sp-2); align-items:center; }
.player-space__sample img { width:32px; height:32px; animation:player-space-breathe 2.4s ease-in-out infinite; }
.player-space__sample img:nth-child(2) { animation-delay:.2s; }
.player-space__sample img:nth-child(3) { animation-delay:.4s; }
.player-space[data-state="paused"] .player-space__sample img { animation-play-state:paused; }
@keyframes player-space-turn { to { transform:rotate(360deg); } }
@keyframes player-space-breathe { 0%,100% { transform:scale(.94); opacity:.72; } 50% { transform:scale(1); opacity:1; } }
@keyframes player-space-dot { 0%,80%,100% { opacity:.3; } 40% { opacity:1; } }
@media (prefers-reduced-motion:reduce) {
    .player-space__ring, .player-space__face, .player-space__dots i, .player-space__sample img { animation:none; }
    .player-space__dots i { opacity:.7; }
}
