/* Spectroi Radio — persistent player bar + pop-out */
.sr-bar,.sr-pop{
  --sr-bg:rgba(12,10,38,.92); --sr-line:rgba(255,255,255,.1); --sr-text:#F4F3FF; --sr-muted:#A9A6CF; --sr-accent:#FF5A1F; --accent-color:#FF5A1F; --text-color-muted:rgba(255,255,255,.18);
}
.sr-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:9990; transform:translateY(110%); transition:transform .35s cubic-bezier(.2,.8,.2,1);
  background:var(--sr-bg); -webkit-backdrop-filter:saturate(170%) blur(18px); backdrop-filter:saturate(170%) blur(18px);
  border-top:1px solid var(--sr-line); box-shadow:0 -20px 50px -20px rgba(0,0,0,.7); color:var(--sr-text);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; padding-bottom:env(safe-area-inset-bottom,0);
}
.sr-bar.is-visible{transform:none}
.sr-bar *{box-sizing:border-box}
.sr-bar-inner{max-width:1240px; margin:0 auto; display:flex; align-items:center; gap:16px; padding:10px 20px; min-height:72px}
.sr-logo{width:48px; height:48px; border-radius:12px; object-fit:cover; flex:none; background:#1A1740}
.sr-play{flex:none; width:48px; height:48px; border-radius:50%; border:0; padding:0; cursor:pointer; background:var(--sr-accent); color:#fff; display:grid; place-items:center; box-shadow:0 0 0 6px rgba(255,90,31,.14); transition:transform .15s ease, background .2s ease}
.sr-play:hover{transform:scale(1.06); background:#FF7440}
.sr-play:focus-visible,.sr-icon:focus-visible{outline:2px solid #fff; outline-offset:3px}
.sr-play svg{width:22px; height:22px; fill:currentColor}
.sr-play .sr-i-pause,.sr-play .sr-spin{display:none}
.is-playing .sr-play .sr-i-play{display:none}
.is-playing .sr-play .sr-i-pause{display:block}
.is-loading .sr-play .sr-i-play,.is-loading .sr-play .sr-i-pause{display:none}
.is-loading .sr-play .sr-spin{display:block}
.sr-spin{width:22px; height:22px; border-radius:50%; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; animation:sr-spin .9s linear infinite}
@keyframes sr-spin{to{transform:rotate(360deg)}}
.sr-meta{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px}
.sr-name{font-family:"Sora","Inter",system-ui,sans-serif; font-weight:700; font-size:15px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sr-status{font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--sr-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:7px}
.sr-status::before{content:""; flex:none; width:7px; height:7px; border-radius:50%; background:var(--sr-muted)}
.is-live .sr-status{color:#FF6B6B}
.is-live .sr-status::before{background:#FF4D4D; animation:sr-pulse 1.6s ease-out infinite}
.is-autodj .sr-status::before{background:var(--sr-accent)}
.is-resume .sr-status{color:#fff}
@keyframes sr-pulse{0%{box-shadow:0 0 0 0 rgba(255,77,77,.6)}100%{box-shadow:0 0 0 8px rgba(255,77,77,0)}}
.sr-viz{flex:0 1 220px; width:220px; height:40px; opacity:.9}
.sr-vol{display:flex; align-items:center; gap:8px; color:var(--sr-muted); flex:none}
.sr-vol svg{width:18px; height:18px; fill:currentColor}
.sr-vol input{width:100px; accent-color:var(--sr-accent); cursor:pointer}
.sr-icon{flex:none; width:40px; height:40px; border-radius:10px; border:1px solid var(--sr-line); background:transparent; color:#E7E5FF; display:grid; place-items:center; cursor:pointer; text-decoration:none; transition:background .2s ease,border-color .2s ease}
.sr-icon:hover{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.25); color:#fff}
.sr-icon svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.sr-sr{position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* page gets room for the bar; floating buttons move up */
html.sr-bar-on body{padding-bottom:78px}
html.sr-bar-on #pulse-chat-button-wrapper,html.sr-bar-on .afcb-position-wrapper{transform:translateY(-78px); transition:transform .35s ease}
/* the widget's own floating mini-player is replaced by the bar */
html.sr-bar-on .spectroi-player-minimized{display:none!important}
html.sr-navigating{cursor:progress}
html.sr-navigating .elementor-location-header::after{content:""; position:absolute; left:0; bottom:-2px; height:2px; width:40%; background:#FF5A1F; animation:sr-load 1s ease-in-out infinite}
@keyframes sr-load{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}

@media (max-width:900px){ .sr-viz{display:none} }
@media (max-width:640px){
  .sr-bar-inner{gap:12px; padding:8px 12px; min-height:64px}
  .sr-logo{width:40px; height:40px; border-radius:10px}
  .sr-vol,.sr-link{display:none}
  .sr-name{font-size:14px}
  html.sr-bar-on body{padding-bottom:70px}
  html.sr-bar-on #pulse-chat-button-wrapper,html.sr-bar-on .afcb-position-wrapper{transform:translateY(-70px)}
}
@media (prefers-reduced-motion:reduce){ .sr-bar{transition:none} .is-live .sr-status::before{animation:none} }

/* ---------- pop-out window ---------- */
body.sr-popout{margin:0; min-height:100vh; background:radial-gradient(420px 300px at 90% 0%, rgba(58,43,240,.55), transparent 70%), radial-gradient(360px 260px at 0% 100%, rgba(255,90,31,.22), transparent 70%), #08071C; color:#F4F3FF; font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; display:flex}
.sr-pop{margin:auto; width:100%; max-width:420px; padding:28px 24px; display:flex; flex-direction:column; align-items:center; gap:18px; text-align:center}
.sr-pop .sr-logo{width:132px; height:132px; border-radius:28px; box-shadow:0 30px 60px -20px rgba(58,43,240,.8)}
.sr-pop .sr-name{font-size:22px; white-space:normal}
.sr-pop .sr-status{justify-content:center; font-size:13px; white-space:normal}
.sr-pop .sr-play{width:84px; height:84px; box-shadow:0 0 0 10px rgba(255,90,31,.15), 0 20px 40px -12px rgba(255,90,31,.8)}
.sr-pop .sr-play svg,.sr-pop .sr-spin{width:34px; height:34px}
.sr-pop .sr-viz{width:100%; flex:none; height:64px; display:block; background:rgba(255,255,255,.03); border-radius:14px}
.sr-pop .sr-vol{display:flex!important; width:100%; justify-content:center}
.sr-pop .sr-vol input{width:70%}
.sr-pop-links{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}
.sr-pop-links a{color:#E7E5FF; text-decoration:none; font-size:14px; padding:10px 16px; border:1px solid rgba(255,255,255,.14); border-radius:999px}
.sr-pop-links a:hover{border-color:#FF5A1F; color:#fff}
.sr-pop-note{font-size:12px; color:#8C89B3}
