/* ThuOS Spotify — laid out after the Spotify desktop client */
.win-spotify,.win-spotify .win-titlebar,.win-spotify .win-body{background:#000}
.win-spotify .win-title{color:rgba(255,255,255,.7)}
/* The size container is the window body: container queries only style descendants, never the container itself. */
.win-spotify .win-body{container:sx/inline-size}

.sx{--g:#1ed760;--g-hi:#3be477;--sub:#b3b3b3;--dim:#7c7c7c;--panel:#121212;--elev:#1f1f1f;--hi:#2a2a2a;--lib-w:300px;--right-w:320px;
  position:absolute;inset:0;display:grid;grid-template-columns:var(--lib-w) minmax(0,1fr);grid-template-rows:56px minmax(0,1fr) 72px auto;
  grid-template-areas:"top top" "lib main" "bar bar" "remote remote";column-gap:8px;padding:0 8px;background:#000;color:#fff;font-size:14px;
  user-select:none;-webkit-user-select:none;cursor:default}
.sx.has-right{grid-template-columns:var(--lib-w) minmax(0,1fr) var(--right-w);grid-template-areas:"top top top" "lib main right" "bar bar bar" "remote remote remote"}
.sx[hidden]{display:none}
.sx svg{display:block;width:16px;height:16px;fill:currentColor;flex:none}
.sx svg.st{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sx ::-webkit-scrollbar{width:12px}
.sx ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border:3px solid transparent;border-radius:6px;background-clip:padding-box}
.sx ::-webkit-scrollbar-thumb:hover{background-color:rgba(255,255,255,.5)}
.sx *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}
.sx-link{cursor:pointer}
.sx-link:hover{text-decoration:underline;color:#fff}
.sx-ib{position:relative;flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--sub);cursor:pointer;transition:color .12s,transform .1s}
.sx-ib:not(:disabled):hover{color:#fff}
.sx-ib:not(:disabled):active{transform:scale(.95)}
.sx-ib:disabled{color:#4d4d4d;cursor:default}
.sx-ib.on{color:var(--g)}
.sx-ib.on:not(:disabled):hover{color:var(--g-hi)}
.sx-ib.dot:after{content:"";position:absolute;left:50%;bottom:0;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:currentColor}
.sx-ib.rep1:before{content:"1";position:absolute;left:50%;top:50%;margin:-4px 0 0 1px;font:700 7px/8px var(--font);background:#000;padding:0 1px;border-radius:2px}
.sx-ib:focus-visible,.sx button:focus-visible{outline:2px solid #fff;outline-offset:1px}
.sx-img{display:block;background:#282828 center/cover no-repeat;border-radius:4px;flex:none;overflow:hidden;position:relative}
.sx-img.round{border-radius:50%}
.sx-img.ph{display:grid;place-items:center;color:var(--dim)}
.sx-img.ph svg{width:40%;height:40%}
.sx-img.liked{background:linear-gradient(135deg,#450af5,#8e8ee5);color:#fff;display:grid;place-items:center}
.sx-img.liked svg{width:42%;height:42%}

/* Top bar */
.sx-top{grid-area:top;display:grid;grid-template-columns:1fr minmax(0,474px) 1fr;align-items:center;gap:8px;min-width:0}
.sx-top-l{display:flex;gap:8px}
.sx-top-c{display:flex;align-items:center;gap:8px;min-width:0}
.sx-top-r{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.sx-arrow{width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.7);color:#fff}
.sx-arrow:disabled{color:#555}
.sx-home{width:48px;height:48px;border-radius:50%;background:var(--elev);color:var(--sub)}
.sx-home svg{width:22px;height:22px}
.sx-home.on{color:#fff}
.sx-search{flex:1;min-width:0;height:48px;display:flex;align-items:center;gap:10px;padding:0 14px;border-radius:24px;background:var(--elev);color:var(--sub);border:2px solid transparent;transition:background .15s,border-color .15s}
.sx-search:hover{background:#2a2a2a;border-color:#2a2a2a}
.sx-search:focus-within{border-color:#fff;background:#2a2a2a}
.sx-search svg{width:22px;height:22px}
.sx-search input{flex:1;min-width:0;height:100%;border:0;background:none;color:#fff;font:inherit;font-size:16px;outline:none}
.sx-search input::placeholder{color:#8a8a8a}
.sx-search .clear{display:none;color:var(--sub)}
.sx-search.has-q .clear{display:grid}
.sx-avatar{width:48px;height:48px;border-radius:50%;background:var(--elev);display:grid;place-items:center}
.sx-avatar span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f573a0 center/cover;color:#000;font-weight:700;font-size:14px}

/* Library */
.sx-lib{grid-area:lib;display:flex;flex-direction:column;min-height:0;background:var(--panel);border-radius:8px;overflow:hidden}
.sx-lib-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px 0 16px;height:56px}
.sx-lib-title{display:flex;align-items:center;gap:12px;height:40px;font-size:16px;font-weight:700;color:#fff;cursor:pointer}
.sx-lib-title svg{width:24px;height:24px;color:var(--sub);transition:color .12s}
.sx-lib-title:hover svg{color:#fff}
.sx-create{height:32px;padding:0 16px 0 12px;border-radius:16px;background:var(--elev);display:flex;align-items:center;gap:6px;font-weight:700;color:#fff}
.sx-create:hover{background:var(--hi)}
.sx-chips{display:flex;gap:8px;padding:8px 16px;overflow:hidden}
.sx-chip{height:32px;padding:0 12px;border-radius:16px;background:rgba(255,255,255,.07);font-size:14px;color:#fff;white-space:nowrap}
.sx-chip:hover{background:rgba(255,255,255,.1)}
.sx-chip.on{background:#fff;color:#000}
.sx-lib-tools{display:flex;justify-content:space-between;align-items:center;padding:2px 16px 4px 8px;min-height:36px}
.sx-libq{display:flex;align-items:center;gap:6px;height:32px;border-radius:4px;color:var(--sub)}
.sx-libq input{width:0;padding:0;border:0;background:none;color:#fff;font:inherit;outline:none;transition:width .2s}
.sx-libq.open{background:var(--hi);padding-right:8px}
.sx-libq.open input{width:140px}
.sx-sort{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--sub);cursor:pointer}
.sx-sort:hover{color:#fff}
.sx-lib-list{flex:1;min-height:0;overflow-y:auto;padding:0 8px 8px}
.sx-lib-row{display:flex;align-items:center;gap:12px;width:100%;padding:8px;border-radius:6px;text-align:left;cursor:pointer}
.sx-lib-row:hover{background:#1a1a1a}
.sx-lib-row.sel{background:var(--hi)}
.sx-lib-row.sel:hover{background:#393939}
.sx-lib-row .sx-img{width:48px;height:48px}
.sx-lib-meta{flex:1;min-width:0}
.sx-lib-name{font-size:16px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-lib-row.playing .sx-lib-name{color:var(--g)}
.sx-lib-sub{margin-top:2px;font-size:14px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-lib-sub .pin{display:inline-block;color:var(--g);margin-right:6px;vertical-align:-1px}
.sx-lib-sub .pin svg{display:inline-block;width:12px;height:12px}
.sx-lib-row .spk{color:var(--g)}
.sx-lib-msg{margin:0;padding:12px 16px;font-size:14px;line-height:1.45;color:var(--sub)}
.sx-lib-msg:empty{display:none}

/* Main view */
.sx-main{grid-area:main;position:relative;min-height:0;background:var(--panel);border-radius:8px;overflow:hidden;container:sxmain/inline-size}
.sx-scroll{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden}
.sx-sticky{position:absolute;z-index:3;inset:0 0 auto;height:64px;display:flex;align-items:center;gap:8px;padding:0 24px;background:var(--c,#535353);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;box-shadow:0 1px 0 rgba(0,0,0,.2)}
.sx-sticky:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.5);z-index:-1}
.sx-sticky.show{opacity:1;visibility:visible}
.sx-sticky b{font-size:24px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-empty-note{padding:48px 32px;text-align:center;color:var(--sub);font-size:14px;line-height:1.5}
.sx-empty-note h3{margin:0 0 8px;color:#fff;font-size:24px}

.sx-hero{--c:#535353;display:flex;align-items:flex-end;gap:24px;padding:84px 24px 24px;background:linear-gradient(transparent,rgba(0,0,0,.5)),var(--c);min-height:300px}
.sx-hero .sx-img{width:232px;height:232px;box-shadow:0 4px 60px rgba(0,0,0,.5)}
.sx-hero .sx-img.round{box-shadow:0 4px 60px rgba(0,0,0,.5)}
.sx-hero-info{min-width:0;flex:1}
.sx-hero-type{font-size:14px;font-weight:500}
.sx-hero h1{margin:4px 0 12px;font-size:clamp(28px,7cqi,96px);font-weight:900;line-height:1;letter-spacing:-.04em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
.sx-hero-desc{margin:0 0 8px;font-size:14px;color:rgba(255,255,255,.7);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sx-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:14px;color:rgba(255,255,255,.7)}
.sx-hero-meta b{color:#fff;font-weight:700}
.sx-hero-meta i{font-style:normal}
.sx-hero.artist{min-height:340px;align-items:flex-end;background:linear-gradient(transparent 30%,rgba(0,0,0,.6)),var(--img,none) center 20%/cover,var(--c)}
.sx-body{background:linear-gradient(color-mix(in srgb,var(--c,#535353) 30%,#121212),#121212 232px);min-height:calc(100% - 300px)}
.sx-actions{display:flex;align-items:center;gap:24px;padding:24px}
.sx-bigplay{width:56px;height:56px;border-radius:50%;background:var(--g);color:#000;display:grid;place-items:center;flex:none;transition:transform .1s,background .1s;cursor:pointer}
.sx-bigplay svg{width:24px;height:24px}
.sx-bigplay:hover{transform:scale(1.04);background:var(--g-hi)}
.sx-bigplay:active{transform:scale(.98)}
.sx-bigplay.sm{width:48px;height:48px}
.sx-bigplay.xs{width:40px;height:40px}
.sx-bigplay.xs svg{width:18px;height:18px}
.sx-actions .sx-ib{width:40px;height:40px}
.sx-actions .sx-ib svg{width:28px;height:28px}

/* Track table */
.sx-tt{padding:0 24px 32px}
.sx-right-body .sx-tt,.sx-col .sx-tt,.sx-np-card .sx-tt{padding:0}
.sx-tr{--cols:16px minmax(120px,6fr) minmax(120px,4fr) minmax(120px,3fr) minmax(96px,1fr);display:grid;grid-template-columns:var(--cols);gap:16px;align-items:center;height:56px;padding:0 16px;border-radius:4px;color:var(--sub);font-size:14px;cursor:default}
.sx-tt.album .sx-tr{--cols:16px minmax(120px,1fr) minmax(96px,120px)}
.sx-tt.short .sx-tr{--cols:16px minmax(120px,6fr) minmax(120px,4fr) minmax(96px,1fr)}
.sx-tr.head{height:36px;margin-bottom:16px;border-bottom:1px solid rgba(255,255,255,.1);border-radius:0;position:sticky;top:64px;z-index:2;background:var(--panel);margin-left:-24px;margin-right:-24px;padding:0 40px}
.sx-tr.head.flat{position:static;background:none;margin-left:0;margin-right:0;padding:0 16px}
.sx-tr.head>*:last-child{justify-self:end;margin-right:32px}
.sx-tr:not(.head):hover{background:rgba(255,255,255,.1);color:#fff}
.sx-tr.sel,.sx-tr.sel:hover{background:rgba(255,255,255,.3);color:#fff}
.sx-tr .n{position:relative;display:grid;place-items:center;justify-self:end;width:16px;font-variant-numeric:tabular-nums;font-size:16px}
.sx-tr .n .rp{position:absolute;display:none;place-items:center;width:24px;height:24px;color:#fff;cursor:pointer}
.sx-tr .n .sx-eq{display:none}
.sx-tr.cur.playing .n .num{display:none}
.sx-tr.cur.playing .n .sx-eq{display:inline-flex}
.sx-tr.off .tn,.sx-tr.off .ta{opacity:.4}
.sx-tr:not(.head):hover .n .num,.sx-tr.sel .n .num,.sx-tr:not(.head):hover .n .sx-eq,.sx-tr.sel .n .sx-eq{display:none}
.sx-tr:not(.head):hover .n .rp,.sx-tr.sel .n .rp{display:grid}
.sx-tr .t{display:flex;align-items:center;gap:12px;min-width:0}
.sx-tr .t .sx-img{width:40px;height:40px}
.sx-tr .tm{min-width:0}
.sx-tr .tn{font-size:16px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-tr.cur .tn,.sx-tr.cur .n .num{color:var(--g)}
.sx-tr .ta{display:flex;align-items:center;gap:6px;margin-top:2px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-tr .ta>span:last-child{overflow:hidden;text-overflow:ellipsis}
.sx-e{flex:none;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:2px;background:rgba(255,255,255,.6);color:#121212;font-size:10px;font-weight:700}
.sx-tr .al,.sx-tr .ad{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-tr .d{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-variant-numeric:tabular-nums}
.sx-tr .d .like,.sx-tr .d .more{visibility:hidden;width:24px;height:24px}
.sx-tr .d .like.on{visibility:visible}
.sx-tr:hover .d .like,.sx-tr.sel .d .like,.sx-tr:hover .d .more,.sx-tr.sel .d .more{visibility:visible}
.sx-tr .d .dur{min-width:40px;text-align:right}
.sx-eq{display:inline-flex;align-items:flex-end;gap:2px;width:14px;height:14px}
.sx-eq i{width:2px;height:100%;background:var(--g);animation:sxeq .8s ease-in-out infinite alternate;transform-origin:bottom}
.sx-eq i:nth-child(2){animation-delay:-.3s}.sx-eq i:nth-child(3){animation-delay:-.55s}.sx-eq i:nth-child(4){animation-delay:-.15s}
.sx-eq.paused i{animation-play-state:paused}
@keyframes sxeq{0%{transform:scaleY(.2)}100%{transform:scaleY(1)}}
@container sxmain (max-width:760px){.sx-tt:not(.album):not(.short):not(.mix) .sx-tr{--cols:16px minmax(120px,6fr) minmax(120px,4fr) minmax(96px,1fr)}.sx-tt .ad{display:none}}
@container sxmain (max-width:560px){.sx-tt .sx-tr{--cols:16px minmax(120px,1fr) minmax(88px,auto)!important}.sx-tt .al{display:none}.sx-hero{flex-direction:column;align-items:flex-start;padding-top:48px}.sx-hero .sx-img{width:160px;height:160px}.sx-tr .d .like{display:none}}

/* Cards / sections */
.sx-sec{padding:0 24px 24px}
.sx-sec h2{margin:0 0 8px;padding-top:16px;font-size:24px;font-weight:700}
.sx-sec h2 .sx-link{color:#fff}
.sx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(164px,1fr));grid-auto-rows:auto;gap:0 4px}
.sx-grid.one-row{grid-template-rows:auto;grid-auto-rows:0;overflow:hidden}
.sx-card{position:relative;padding:12px;border-radius:6px;cursor:pointer;min-width:0;text-align:left}
.sx-card:hover{background:var(--elev)}
.sx-card .cw{position:relative;margin-bottom:8px}
.sx-card .sx-img{width:100%;height:auto;aspect-ratio:1;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.sx-card .cn{font-size:16px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-card .cs{margin-top:4px;font-size:14px;color:var(--sub);line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sx-card .cp{position:absolute;right:8px;bottom:8px;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;box-shadow:0 8px 8px rgba(0,0,0,.3)}
.sx-card:hover .cp,.sx-card .cp.on{opacity:1;transform:none}
.sx-greet{margin:0;padding:24px 24px 16px;font-size:32px;font-weight:700}

/* Search */
.sx-srch-chips{display:flex;gap:8px;padding:16px 24px 8px;position:sticky;top:0;z-index:2;background:var(--panel)}
.sx-topres{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:24px;padding:0 24px 24px}
.sx-topcard{position:relative;padding:20px;border-radius:8px;background:#181818;cursor:pointer;min-width:0}
.sx-topcard:hover{background:#282828}
.sx-topcard .sx-img{width:92px;height:92px;margin-bottom:20px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.sx-topcard b{display:block;font-size:32px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}
.sx-topcard span{font-size:14px;color:var(--sub)}
.sx-topcard .sx-bigplay{position:absolute;right:20px;bottom:20px;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}
.sx-topcard:hover .sx-bigplay{opacity:1;transform:none}
.sx-topres h2,.sx-col h2{margin:0 0 8px;font-size:24px;font-weight:700}
.sx-col{min-width:0}
.sx-col .sx-tr{--cols:minmax(0,1fr) auto;height:56px;padding:0 8px}
@container sxmain (max-width:700px){.sx-topres{grid-template-columns:1fr}}

/* Lyrics (main view) */
.sx-lyrics{position:absolute;inset:0;overflow-y:auto;background:var(--lc,#535353);transition:background .4s}
.sx-lyrics-in{max-width:1000px;padding:64px clamp(24px,7cqi,72px) 45%}
.sx-lyr-line{margin:0 0 12px;font-size:clamp(22px,3.6cqi,32px);font-weight:700;line-height:1.35;letter-spacing:-.01em;color:rgba(255,255,255,.75);transition:color .3s}
.sx-lyr-line.past{color:rgba(255,255,255,.45)}
.sx-lyr-line.active{color:#fff}
.sx-lyr-line:empty{height:.5em}
.sx-lyrics.synced .sx-lyr-line{cursor:pointer}
.sx-lyrics.synced .sx-lyr-line:hover{color:#fff;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.sx-lyrics.plain .sx-lyr-line{color:#fff}
.sx-lyr-foot{margin-top:40px;font-size:14px;color:rgba(255,255,255,.7);display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.sx-lyr-foot button{font-size:14px;font-weight:700;color:#fff;text-decoration:underline}
.sx-lyr-none{min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:32px;text-align:center}
.sx-lyr-none h3{margin:0;font-size:clamp(22px,3.6cqi,32px);font-weight:700}
.sx-lyr-none p{margin:0;max-width:440px;font-size:14px;color:rgba(255,255,255,.75);line-height:1.5}
.sx-lyr-edit{width:min(560px,100%);display:flex;flex-direction:column;gap:12px}
.sx-lyr-edit textarea{height:240px;resize:vertical;padding:12px;border:0;border-radius:8px;background:rgba(0,0,0,.35);color:#fff;font:14px/1.5 ui-monospace,Consolas,monospace;outline:none}
.sx-lyr-edit textarea:focus{box-shadow:0 0 0 2px #fff}
.sx-lyr-edit .row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.sx-pill{height:40px;padding:0 24px;border-radius:20px;background:#fff;color:#000!important;font-weight:700;font-size:14px;transition:transform .1s}
.sx-pill:hover{transform:scale(1.04)}
.sx-pill.ghost{background:none;color:#fff!important;border:1px solid rgba(255,255,255,.6)}
.sx-pill.green{background:var(--g)}

/* Right panel: Now playing view / Queue */
.sx-right{grid-area:right;display:none;flex-direction:column;min-height:0;background:var(--panel);border-radius:8px;overflow:hidden}
.sx.has-right .sx-right{display:flex}
.sx-right-head{display:flex;align-items:center;gap:8px;min-height:64px;padding:0 8px 0 16px}
.sx-right-head b{flex:1;min-width:0;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-tabs{display:flex;gap:24px;flex:1}
.sx-tab{height:64px;font-size:16px;font-weight:700;color:var(--sub);position:relative}
.sx-tab:hover{color:#fff}
.sx-tab.on{color:#fff}
.sx-tab.on:after{content:"";position:absolute;left:0;right:0;bottom:12px;height:2px;background:var(--g)}
.sx-right-body{flex:1;min-height:0;overflow-y:auto;padding:0 16px 16px}
.sx-right-body h3{margin:16px 0 8px;font-size:16px;font-weight:700}
.sx-right-body h3 small{font-weight:400;color:var(--sub);font-size:14px}
.sx-right-body .sx-tr{--cols:minmax(0,1fr) auto;height:64px;padding:0 8px}
.sx-np-art{width:100%;aspect-ratio:1;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.5);margin:0 0 16px;cursor:pointer}
.sx-np-row{display:flex;align-items:center;gap:8px}
.sx-np-row .m{flex:1;min-width:0}
.sx-np-title{font-size:24px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-np-artists{font-size:16px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-np-card{margin-top:16px;border-radius:8px;background:var(--elev);overflow:hidden}
.sx-np-card .ab{height:200px;background:#333 center/cover no-repeat;position:relative}
.sx-np-card .ab span{position:absolute;left:16px;top:16px;font-weight:700;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.sx-np-card .bd{padding:16px}
.sx-np-card .bd b{display:block;font-size:16px;margin-bottom:4px}
.sx-np-card .bd p{margin:0;color:var(--sub);font-size:14px;line-height:1.5}
.sx-np-card .hd{display:flex;justify-content:space-between;align-items:center;padding:16px 16px 4px;font-weight:700}
.sx-np-card .sx-tr{--cols:minmax(0,1fr) auto;padding:0 8px;margin:0 8px 8px}

/* Now-playing bar */
.sx-bar{grid-area:bar;display:grid;grid-template-columns:minmax(0,30%) minmax(0,40%) minmax(0,30%);align-items:center;gap:8px;padding:0 8px}
.sx-now{display:flex;align-items:center;gap:14px;min-width:0}
.sx-now .art{width:56px;height:56px;border-radius:4px;cursor:pointer}
.sx-now .art:hover{filter:brightness(1.1)}
.sx-now-meta{min-width:0}
.sx-now-title{display:block;font-size:14px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-now-artists{display:block;margin-top:2px;font-size:12px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-bar.idle .sx-now>*{visibility:hidden}
.sx-center{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.sx-ctrls{display:flex;align-items:center;gap:8px}
.sx-ctrls .l,.sx-ctrls .r{display:flex;gap:8px;flex:1}
.sx-ctrls .l{justify-content:flex-end}
.sx-play{width:32px;height:32px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center;margin:0 8px;transition:transform .1s;cursor:pointer}
.sx-play:not(:disabled):hover{transform:scale(1.06)}
.sx-play:disabled{background:#4d4d4d;color:#121212;cursor:default}
.sx-prog{display:flex;align-items:center;gap:8px;width:100%}
.sx-time{flex:none;min-width:40px;font-size:12px;color:#a7a7a7;font-variant-numeric:tabular-nums;text-align:right}
.sx-time.r{text-align:left}
.sx-rightctl{display:flex;justify-content:flex-end;align-items:center;gap:2px;min-width:0}
.sx-vol{display:flex;align-items:center;width:125px;min-width:60px}
.sx-vol .sx-slider{flex:1}

/* Slider (progress/volume) */
.sx-slider{position:relative;flex:1;height:12px;display:flex;align-items:center;touch-action:none;cursor:pointer}
.sx-slider:before{content:"";position:absolute;left:0;right:0;height:4px;border-radius:2px;background:#4d4d4d}
.sx-slider .fill{position:relative;height:4px;border-radius:2px;background:#fff;width:0}
.sx-slider .fill:after{content:"";position:absolute;right:-6px;top:-4px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.5);opacity:0}
.sx-slider:hover .fill,.sx-slider.drag .fill,.sx-slider:focus-visible .fill{background:var(--g)}
.sx-slider:hover .fill:after,.sx-slider.drag .fill:after,.sx-slider:focus-visible .fill:after{opacity:1}
.sx-slider:focus-visible{outline:none}
.sx-slider[aria-disabled="true"]{pointer-events:none;cursor:default}
.sx-slider[aria-disabled="true"] .fill{background:#4d4d4d}

.sx-remote{grid-area:remote;display:flex;align-items:center;justify-content:flex-end;gap:6px;height:24px;margin:0 -8px;padding:0 24px;background:var(--g);color:#000;font-size:14px;font-weight:700}
.sx-remote[hidden]{display:none}
.sx-banner{grid-area:remote;margin:0 -8px;padding:6px 24px;background:#e22134;color:#fff;font-size:13px;font-weight:600;text-align:center}
.sx-banner[hidden]{display:none}

/* Menus, popovers, toasts */
.sx-menu{position:fixed;z-index:70;min-width:196px;max-width:350px;max-height:calc(100vh - 16px);overflow-y:auto;padding:4px;border-radius:4px;background:#282828;box-shadow:0 16px 24px rgba(0,0,0,.3),0 6px 8px rgba(0,0,0,.2);color:rgba(255,255,255,.9);font:14px var(--font);user-select:none;-webkit-user-select:none}
.sx-menu button{display:flex;align-items:center;gap:12px;width:100%;height:40px;padding:0 8px 0 12px;border-radius:2px;text-align:left;color:inherit;cursor:default;white-space:nowrap}
.sx-menu button span{flex:1;overflow:hidden;text-overflow:ellipsis}
.sx-menu button:not(:disabled):hover,.sx-menu button:focus-visible,.sx-menu button.open{background:rgba(255,255,255,.1);outline:none}
.sx-menu button:disabled{color:rgba(255,255,255,.35)}
.sx-menu button.on{color:var(--g)}
.sx-menu svg{width:16px;height:16px;fill:currentColor;flex:none}
.sx-menu svg.st{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sx-menu hr{border:0;height:1px;margin:0;background:rgba(255,255,255,.1)}
.sx-menu .hdr{padding:12px 12px 8px;font-size:12px;font-weight:700;color:var(--sub,#b3b3b3)}
.sx-dev{position:fixed;z-index:70;width:320px;padding:8px;border-radius:8px;background:#282828;box-shadow:0 16px 24px rgba(0,0,0,.3);font:14px var(--font);color:#fff}
.sx-dev h4{margin:8px 12px 12px;font-size:18px}
.sx-dev .cur{display:flex;align-items:center;gap:12px;padding:12px;border-radius:6px;background:rgba(255,255,255,.07);color:#1ed760;margin-bottom:8px}
.sx-dev .cur b{display:block}
.sx-dev .cur small{color:#b3b3b3}
.sx-dev .lbl{padding:8px 12px;font-size:14px;font-weight:700}
.sx-dev button{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:6px;text-align:left;color:#fff}
.sx-dev button:hover{background:rgba(255,255,255,.1)}
.sx-dev svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
.sx-dev p{margin:4px 12px 8px;color:#b3b3b3;font-size:13px;line-height:1.45}
.sx-toasts{position:absolute;left:50%;bottom:96px;z-index:40;display:flex;flex-direction:column;align-items:center;gap:8px;transform:translateX(-50%);pointer-events:none}
.sx-toast{padding:12px 16px;border-radius:8px;background:#fff;color:#000;font-size:14px;font-weight:500;box-shadow:0 4px 12px rgba(0,0,0,.4);animation:sxtoast .25s ease-out;max-width:420px;text-align:center}
@keyframes sxtoast{from{opacity:0;transform:translateY(8px)}}

.sx-modal-ov{position:absolute;inset:0;z-index:50;display:grid;place-items:center;background:rgba(0,0,0,.7)}
.sx-modal{width:min(524px,calc(100% - 32px));display:flex;flex-direction:column;gap:12px;padding:24px;border-radius:8px;background:#282828;box-shadow:0 4px 60px rgba(0,0,0,.5);outline:none}
.sx-modal .hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.sx-modal .hd b{font-size:24px;font-weight:700}
.sx-modal input,.sx-modal textarea{width:100%;padding:10px 12px;border:1px solid transparent;border-radius:4px;background:#3e3e3e;color:#fff;font:14px var(--font);outline:none}
.sx-modal textarea{height:120px;resize:none}
.sx-modal input:focus,.sx-modal textarea:focus{border-color:#535353;background:#333}
.sx-modal .ft{display:flex;justify-content:flex-end;margin-top:4px}
.sx-lyr-edit h3{margin:0 0 4px;font-size:24px}

/* Full screen (immersive now playing) */
.sx-fs{position:absolute;inset:0;z-index:30;display:none;flex-direction:column;justify-content:flex-end;padding:40px 56px 32px;background:#000;overflow:hidden}
.sx.immersive .sx-fs{display:flex}
.sx-fs-bg{position:absolute;inset:-80px;background:center/cover no-repeat;filter:blur(80px) brightness(.45) saturate(1.3);transform:scale(1.2)}
.sx-fs>*:not(.sx-fs-bg){position:relative}
.sx-fs-top{position:absolute!important;top:24px;left:56px;right:40px;display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700}
.sx-fs-main{display:flex;align-items:flex-end;gap:32px;margin-bottom:32px;min-height:0}
.sx-fs-main .sx-img{width:min(300px,38vh);height:min(300px,38vh);box-shadow:0 8px 40px rgba(0,0,0,.6)}
.sx-fs-main b{display:block;font-size:clamp(28px,5cqi,64px);font-weight:900;letter-spacing:-.03em;line-height:1.05}
.sx-fs-main span{display:block;margin-top:8px;font-size:clamp(16px,2cqi,24px);color:rgba(255,255,255,.8)}
.sx-fs .sx-prog{margin-bottom:12px}
.sx-fs .sx-ctrls{justify-content:center}
.sx-fs .sx-play{width:56px;height:56px}
.sx-fs .sx-play svg{width:24px;height:24px}

/* Miniplayer window */
.sxm{position:absolute;inset:0;background:#121212 center/cover no-repeat;color:#fff;overflow:hidden;user-select:none;-webkit-user-select:none;container:sxm/size}
.sxm-ov{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;padding:16px;background:linear-gradient(transparent 30%,rgba(0,0,0,.85));opacity:0;transition:opacity .2s}
.sxm:hover .sxm-ov,.sxm.idle .sxm-ov,.sxm:focus-within .sxm-ov{opacity:1}
.sxm-ov b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sxm-ov small{font-size:13px;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:-6px}
.sxm .sx-ctrls{justify-content:center}
.sxm .sx-ib svg{width:16px;height:16px}
.sxm .sx-slider:before{background:rgba(255,255,255,.3)}
.sxm svg{display:block;width:16px;height:16px;fill:currentColor}
.sxm svg.st{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Theme: glass panels over a photo, matched to the owner's Spicetify setup ---------- */
/* Background exactly as the Hazy theme draws it: the photo at 55% over black, contrast 50%, saturation 70%, brightness 120% */
.win-spotify{background:#000;-webkit-backdrop-filter:none;backdrop-filter:none}
.win-spotify .win-body{overflow:hidden}
.sx-bgimg{position:absolute;inset:0;background:var(--sx-bg,none) center/cover no-repeat;filter:contrast(50%) saturate(70%) brightness(120%);opacity:.55;pointer-events:none;transition:background-image .6s ease}
/* Traffic lights sit over the app's own top bar, like a macOS unified toolbar; empty top-bar space still drags the window. */
.win-spotify .win-titlebar{position:absolute;z-index:3;inset:0 0 auto;height:64px;padding:0 16px;background:none}
.win-spotify .win-title{display:none}
.win-spotify .rz{z-index:6}
.win-spotify .win-body,.win-spotify .win-body.sx-root{background:none;border-radius:12px}
.win-spotify.fullscreen .win-body{border-radius:0}
.win-spotify .spotify-connect{border-radius:12px;padding-top:64px}
.sx{--g:#30bf63;--g-hi:#3fd276;--sub:rgba(240,240,240,.78);--panel:rgba(0,0,0,.3);--elev:rgba(0,0,0,.3);--hi:rgba(255,255,255,.1);background:none;grid-template-rows:64px minmax(0,1fr) 98px auto;padding:0 8px 8px}
.sx-top{position:relative;z-index:4;pointer-events:none;grid-template-columns:1fr minmax(0,560px) 1fr;padding-left:64px}
.sx-top button,.sx-top label{pointer-events:auto}
.sx-tb{width:40px;height:40px;border-radius:8px;display:grid;place-items:center;color:#fff}
.sx-tb:hover{background:rgba(0,0,0,.3)}
.sx-navgrp{display:flex;align-items:center;height:32px;border-radius:8px;background:rgba(0,0,0,.3)}
.sx-navgrp .sx-arrow{width:32px!important;height:32px!important}
.sx .sx-arrow{width:36px;height:36px;border-radius:6px;background:none;color:#fff}
.sx .sx-arrow:not(:disabled):hover{background:rgba(255,255,255,.1)}
.sx .sx-arrow:disabled{color:rgba(255,255,255,.35)}
.sx .sx-home{width:48px;height:48px;border-radius:8px;background:rgba(0,0,0,.3);color:#fff}
.sx .sx-home:hover{background:rgba(0,0,0,.55)}
.sx .sx-search{border-radius:8px;background:rgba(0,0,0,.3);padding:0 6px 0 14px}
.sx .sx-search:hover{background:rgba(0,0,0,.5);border-color:transparent}
.sx .sx-search:focus-within{background:rgba(0,0,0,.55);border-color:rgba(255,255,255,.85)}
.sx .sx-search input::placeholder{color:rgba(255,255,255,.7)}
.sx .sx-search svg{color:#fff}
.sx-browse{margin-left:4px;border-radius:0;border-left:1px solid rgba(255,255,255,.35);padding-left:10px;width:42px}
.sx-browse svg{width:22px;height:22px}
.sx .sx-avatar{width:48px;height:48px;border-radius:6px;background:rgba(0,0,0,.3);overflow:hidden;transition:background-color .2s ease-in-out,transform .15s cubic-bezier(.3,0,0,1)}
.sx .sx-avatar:hover{background:rgba(0,0,0,.4)}
.sx .sx-avatar span{width:32px;height:32px;border-radius:4px}

.sx .sx-lib{background:rgba(0,0,0,.3);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.sx .sx-lib-row{transition:background-color .2s ease}
.sx .sx-lib-row .sx-img{box-shadow:-2px 4px 6px 2px rgb(0 0 0 / 14%)}
.sx .sx-lib-row:hover{background:rgba(255,255,255,.08)}
.sx .sx-lib-row.sel{background:rgba(255,255,255,.14)}
.sx .sx-lib-row .sx-img:not(.round){border-radius:6px}
.sx .sx-main{background:var(--panel)}
.sx .sx-right{background:none}
.sx .sx-right-body .sx-tr:hover{background:rgba(255,255,255,.08)}
.sx .sx-tr:not(.head):hover{background:rgba(255,255,255,.08)}
.sx .sx-tr.sel,.sx .sx-tr.sel:hover{background:rgba(255,255,255,.2)}
/* Pages sit straight on the glass: no cover-colour wash, header row not pinned */
.sx .sx-tr.head{position:static;margin:0 0 8px;padding:0 16px;background:none}
.sx .sx-srch-chips{background:rgba(20,20,22,.8);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sx .sx-hero{background:none;min-height:0;padding:72px 24px 24px}
.sx .sx-hero.artist{min-height:340px;background:linear-gradient(transparent 30%,rgba(0,0,0,.6)),var(--img,none) center 20%/cover}
.sx .sx-body{background:none}
.sx .sx-sticky{background:rgba(24,24,26,.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.sx .sx-sticky:before{display:none}
.sx .sx-hero-meta{gap:6px}
.sx .sx-hero h1{font-size:clamp(28px,5.5cqi,88px);margin:6px 0 14px}
.sx .sx-hero h1.long{font-size:clamp(24px,3.8cqi,60px)}
.sx-pps{display:inline-flex;margin-right:2px}
.sx-pp{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#535353 center/cover;color:#fff;font-size:11px;font-weight:700;box-shadow:0 0 0 2px rgba(0,0,0,.35)}
.sx-pps .sx-pp+.sx-pp{margin-left:-8px}
.sx-pp.sm{width:20px;height:20px;font-size:10px;box-shadow:none}
.sx-tr .ab{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden}
.sx-tr .ab span:last-child{overflow:hidden;text-overflow:ellipsis}

/* Action bar: plain white play, tools on the right, "+ Add" below */
.sx .sx-bigplay.plain{width:48px;height:48px;background:none;color:#fff;box-shadow:none}
.sx .sx-bigplay.plain svg{width:30px;height:30px}
.sx .sx-bigplay.plain:hover{background:none;transform:scale(1.04)}
.sx-actions-r{margin-left:auto;display:flex;align-items:center;gap:8px}
/* Mix: green-ringed play button, pill row, BPM / Key columns, transition chips between songs */
.sx .sx-bigplay.plain.mixing{background:radial-gradient(circle,#3a3a3a 0 30%,#141414 31% 100%);box-shadow:0 0 0 2px var(--g),0 0 0 4px rgba(0,0,0,.4)}
.sx .sx-bigplay.plain.mixing svg{width:22px;height:22px}
.sx-pills{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 16px}
.sx-pills .sx-addpill{margin:0}
.sx-addpill.on{background:#2a2a2a;box-shadow:inset 0 0 0 2px rgba(255,255,255,.75)}
.sx-tt.mix .sx-tr{--cols:16px minmax(140px,6fr) minmax(120px,4fr) minmax(110px,3fr) 64px 48px minmax(88px,1fr)}
.sx-tr .n .num.ico{display:grid;place-items:center;color:var(--sub)}
.sx-tr .n .num.ico svg{width:15px;height:15px}
.sx-tr.cur .n .num.ico{color:var(--g)}
.sx-tr .bpm{font-variant-numeric:tabular-nums}
.sx-tr .key .sw{display:block;width:24px;height:16px;border-radius:3px}
/* Transition chip under each song (aligned with the cover), white while it's open in the editor */
.sx-trans-row{height:40px;display:flex;align-items:center;padding-left:48px;margin:-4px 0}
.sx-trans{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px 0 10px;border-radius:6px;background:rgba(0,0,0,.35);font-size:14px;font-weight:600;color:#fff;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.sx-trans:hover{background:rgba(0,0,0,.55)}
.sx-trans i{display:grid;place-items:center}
.sx-trans i svg{width:13px;height:13px}
.sx-trans.off{background:none;color:rgba(255,255,255,.45);padding-left:12px}
.sx-trans.off i{display:none}
.sx-trans.sel,.sx-trans.sel:hover{background:#fff;color:#000}
.sx-trans-none{padding-left:12px;font-size:14px;font-weight:600;color:rgba(255,255,255,.45)}
.sx-tt.mix.compact .sx-trans-row{height:30px}
@container sxmain (max-width:960px){.sx-tt.mix .sx-tr{--cols:16px minmax(140px,6fr) minmax(120px,4fr) 64px 48px minmax(88px,1fr)}.sx-tt.mix .ad{display:none}}
@container sxmain (max-width:700px){.sx-tt.mix .sx-tr{--cols:16px minmax(120px,1fr) 44px 32px minmax(80px,auto)!important}.sx-tt.mix .al{display:none}}

/* Edit transition panel */
.sx.right-wide{--right-w:460px}
.sx-savebtn{flex:none;height:32px;padding:0 16px;border-radius:16px;background:var(--g);color:#000;font-size:14px;font-weight:700;cursor:pointer}
.sx-te{display:flex;flex-direction:column;gap:12px}
.sx-te-track{display:flex;align-items:center;gap:8px;min-height:28px;font-size:14px;font-weight:700}
.sx-te-track .sx-img{width:24px;height:24px;border-radius:3px}
.sx-te-track .nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-te-track .bpm{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#fff}
.sx-te-track .bpm.warn{color:#f5a623}
.sx-te-track .bpm i{display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#f5a623;color:#000;font:900 10px/1 var(--font);font-style:normal}
.sx-te-track .sw{flex:none;width:24px;height:16px;border-radius:3px}
.sx-te-viz{position:relative;height:240px;border-radius:12px;background:rgba(0,0,0,.45);overflow:hidden}
.sx svg.sx-viz{position:absolute;inset:0;width:100%;height:100%;filter:none}
.sx-te-prev{position:absolute;left:50%;top:50%;width:48px;height:32px;margin:-16px 0 0 -24px;border-radius:8px;background:rgba(40,40,40,.92);display:grid;place-items:center;color:#fff;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.4)}
.sx-te-lbl{text-align:center;font-size:12px;color:var(--sub);border-top:1px solid rgba(255,255,255,.1);padding-top:8px}
.sx-te-presets{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.sx-te-presets::-webkit-scrollbar{display:none}
.sx .sx-te-presets .sx-chip{flex:none;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 16px;border-radius:8px;background:rgba(0,0,0,.35);font-weight:700}
.sx .sx-te-presets .sx-chip.on{background:#fff;color:#000}
.sx-te-presets .sx-chip svg{width:14px;height:14px}
.sx-te-row{display:flex;align-items:center;justify-content:space-between;gap:12px;height:52px;padding:0 14px;border-radius:8px;background:rgba(0,0,0,.35);font-size:14px;font-weight:700}
.sx-te-row .lb{padding-left:8px;border-left:3px solid #f5c542}
.sx-te-row select{max-width:62%;border:0;background:none;color:#fff;font:700 14px var(--font);text-align:right;cursor:pointer;outline:none}
.sx-te-row select option{background:#282828;color:#fff}
.sx-modal-txt{margin:0 0 4px;font-size:14px;line-height:1.5;color:rgba(255,255,255,.75)}
.sx-toast{display:flex;align-items:center;gap:16px;pointer-events:auto}
.sx-toast-act{font-weight:700;text-decoration:underline;color:inherit;cursor:pointer}
.sx-plfind{display:flex;align-items:center;height:32px;border-radius:4px;color:var(--sub)}
.sx .sx-actions .sx-plfind .sx-ib{width:32px;height:32px}
.sx .sx-actions .sx-plfind .sx-ib svg{width:16px;height:16px}
.sx-plfind input{width:0;padding:0;border:0;background:none;color:#fff;font:14px var(--font);outline:none;transition:width .2s}
.sx-plfind.open{background:rgba(255,255,255,.1)}
.sx-plfind.open input{width:180px;padding-right:8px}
.sx-sortbtn{display:flex;align-items:center;gap:8px;height:32px;font-size:14px;color:var(--sub);cursor:pointer}
.sx-sortbtn:hover{color:#fff}
.sx-addpill{display:inline-flex;align-items:center;gap:6px;height:32px;margin:0 24px 16px;padding:0 16px 0 12px;border-radius:16px;background:rgba(255,255,255,.1);font-size:14px;font-weight:700;color:#fff;cursor:pointer}
.sx-addpill:hover{background:rgba(255,255,255,.16)}
.sx-addpill svg{width:14px;height:14px}
.sx-addpanel{margin:0 24px 24px;padding:16px;border-radius:8px;background:rgba(0,0,0,.28)}
.sx-addpanel .hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.sx-addpanel .hd b{font-size:20px}
.sx-addpanel .sx-search{max-width:420px;height:40px}
.sx-add-res{margin-top:12px}
.sx-add-row{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(0,.8fr) auto;align-items:center;gap:12px;padding:8px;border-radius:4px}
.sx-add-row:hover{background:rgba(255,255,255,.08)}
.sx-add-row .sx-img{width:40px;height:40px}
.sx-add-row .m{min-width:0}
.sx-add-row b,.sx-add-row .m span,.sx-add-row .al{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-add-row .m span,.sx-add-row .al{font-size:14px;color:var(--sub)}
.sx-add-row .sx-pill{height:32px;padding:0 16px}
.sx-add-row .sx-pill:disabled{opacity:.6}

/* "Added by" column and compact view */
.sx-tt.by .sx-tr{--cols:16px minmax(120px,6fr) minmax(120px,4fr) minmax(110px,3fr) minmax(110px,3fr) minmax(96px,1fr)}
.sx-tt.compact .sx-tr:not(.head){height:36px}
.sx-tt.compact .t .sx-img{display:none}
.sx-tt.compact .tm{display:flex;align-items:baseline;gap:8px}
.sx-tt.compact .tn{font-size:14px;flex:0 1 auto}
.sx-tt.compact .ta{margin:0;flex:1}
@container sxmain (max-width:960px){.sx-tt.by .sx-tr{--cols:16px minmax(120px,6fr) minmax(120px,4fr) minmax(110px,3fr) minmax(96px,1fr)}.sx-tt.by .ab{display:none}}
@container sxmain (max-width:760px){.sx-tt.by .sx-tr{--cols:16px minmax(120px,6fr) minmax(120px,4fr) minmax(96px,1fr)}.sx-actions-r .sx-sortbtn span:first-child{display:none}}
.sx .sx-card:hover{background:rgba(255,255,255,.08)}
.sx .sx-topcard{background:rgba(255,255,255,.06)}
.sx .sx-topcard:hover{background:rgba(255,255,255,.12)}
.sx .sx-chip{background:rgba(255,255,255,.12)}
.sx .sx-chip:hover{background:rgba(255,255,255,.18)}
.sx .sx-chip.on{background:#fff;color:#000}
.sx .sx-bar{margin:8px 0 0;height:90px;padding:0 16px;border-radius:8px;background:rgba(0,0,0,.3)}
.sx .sx-slider .fill{background:var(--g)}
.sx .sx-remote{margin:8px 0 0;border-radius:6px}
.sx .sx-banner{margin:8px 0 0;border-radius:6px}

/* Motion measured from the Spotify app: hover grows 4% in 50ms, settles back over 150ms, cubic-bezier(.3,0,0,1) */
.sx .sx-ib,.sx .sx-play,.sx .sx-tb,.sx .sx-arrow,.sx .sx-bigplay,.sx .sx-rowbtn,.sx-te-prev,.sx .sx-savebtn{transition:transform .15s cubic-bezier(.3,0,0,1),color .15s cubic-bezier(.3,0,0,1),background-color .15s cubic-bezier(.3,0,0,1)}
.sx .sx-ib:not(:disabled):hover,.sx .sx-play:not(:disabled):hover,.sx .sx-tb:hover,.sx .sx-arrow:not(:disabled):hover,.sx .sx-bigplay:hover,.sx .sx-rowbtn:hover,.sx-te-prev:hover,.sx .sx-savebtn:hover,.sx .sx-avatar:hover{transform:scale(1.04);transition-duration:.05s}
.sx .sx-ib:not(:disabled):active,.sx .sx-play:not(:disabled):active,.sx .sx-tb:active,.sx .sx-arrow:not(:disabled):active,.sx .sx-bigplay:active,.sx-te-prev:active,.sx .sx-savebtn:active,.sx .sx-avatar:active{transform:scale(1);opacity:.75;transition-duration:0s}
.sx .sx-home{transition:all .2s cubic-bezier(0,0,.2,1)}
.sx .sx-home:hover{transform:scale(1.04)}
.sx .sx-home:active{transform:scale(1);opacity:.75}
.sx .sx-chip,.sx .sx-addpill{transition:background-color .2s ease,color .2s ease,transform .15s cubic-bezier(.3,0,0,1)}
.sx .sx-chip:active,.sx .sx-addpill:active{transform:scale(.97)}
.sx .sx-card{transition:background-color .3s ease}
.sx .sx-np-card{background:rgba(0,0,0,.3)}

/* Images fade in once loaded (Spotify: 250ms ease-out); a changed image cross-fades over the old one */
.sx-img,.sxm .sx-img{position:relative;overflow:hidden}
.sx-im{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;opacity:0;transition:opacity .25s ease-out;pointer-events:none;-webkit-user-drag:none}
.sx-im.in{opacity:1}
.sx .sx-toast{background:var(--g);color:#000}

/* Home: filter chips, then one-row carousels with "Show all" */
.sx-home-chips{position:sticky;top:0;z-index:2;display:flex;gap:8px;padding:16px 24px 12px;background:linear-gradient(rgba(20,20,22,.75),rgba(20,20,22,.45));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sx-sec-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-top:20px;margin-bottom:8px}
.sx-sec-hd h2{margin:0!important;padding:0!important}
.sx-showall{flex:none;font-size:14px;font-weight:700;color:var(--sub);cursor:pointer}
.sx-showall:hover{text-decoration:underline;color:#fff}
.sx-rowwrap{position:relative;margin:0 -12px}
.sx-row{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(150px,19%,200px);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
.sx-row::-webkit-scrollbar{display:none}
.sx-row .sx-card{scroll-snap-align:start}
.sx-rowbtn{position:absolute;top:calc(50% - 40px);z-index:2;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.7);color:#fff;opacity:0;transition:opacity .15s;cursor:pointer}
.sx-rowbtn.l{left:4px}.sx-rowbtn.r{right:4px}
.sx-rowwrap:hover .sx-rowbtn{opacity:1}
.sx-rowbtn:hover{background:rgba(0,0,0,.85);transform:scale(1.05)}
.sx-homeview .sx-greet{padding-top:20px}

/* Spotify's embed stands in as the song list for playlists apps can't read */
.sx-embed-note{margin:0 24px 32px;font-size:12px;color:var(--sub);line-height:1.5}

/* Collapsed library: click "Your Library" to toggle (like Spotify); forced on small screens below */
.sx.lib-collapsed{--lib-w:72px}
.sx.lib-collapsed .sx-lib .lbl,.sx.lib-collapsed .sx-chips,.sx.lib-collapsed .sx-lib-tools,.sx.lib-collapsed .sx-lib-meta,.sx.lib-collapsed .sx-lib-row .spk{display:none}
.sx.lib-collapsed .sx-lib-head{flex-direction:column;justify-content:center;height:auto;gap:8px;padding:12px 0 8px}
.sx.lib-collapsed .sx-create{width:32px;padding:0;justify-content:center;border-radius:50%}
.sx.lib-collapsed .sx-lib-row{justify-content:center;padding:6px}

/* Narrow windows */
@container sx (max-width:1100px){.sx{--lib-w:260px;--right-w:280px}.sx-vol{width:93px}}
@container sx (max-width:900px){.sx-rightctl .mini,.sx-rightctl .np{display:none}}
@container sx (max-width:760px){
  .sx{--lib-w:72px}
  .sx .sx-lib .lbl,.sx .sx-chips,.sx .sx-lib-tools,.sx .sx-lib-meta,.sx .sx-lib-row .spk{display:none}
  .sx .sx-lib-head{flex-direction:column;justify-content:center;height:auto;gap:8px;padding:12px 0 8px}
  .sx .sx-create{width:32px;padding:0;justify-content:center;border-radius:50%}
  .sx .sx-lib-row{justify-content:center;padding:6px}
  .sx.has-right{grid-template-columns:var(--lib-w) minmax(0,1fr);grid-template-areas:"top top" "lib main" "bar bar" "remote remote"}
  .sx.has-right .sx-right{display:flex;position:absolute;z-index:20;right:8px;top:56px;bottom:72px;width:min(340px,calc(100% - 16px));box-shadow:0 8px 32px rgba(0,0,0,.6)}
  .sx-top{grid-template-columns:auto minmax(0,1fr) auto}
  .sx-bar{grid-template-columns:minmax(0,1fr) auto minmax(0,auto)}
  .sx-prog .sx-time,.sx-vol,.sx-rightctl .full,.sx-rightctl .dev,.sx-now .sx-ib{display:none}
  .sx-ctrls .shuf,.sx-ctrls .rep{display:none}
}
@container sx (max-width:520px){
  .sx,.sx.has-right{--lib-w:0px;grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "main" "bar" "remote";column-gap:0}
  .sx .sx-lib{display:none}
  .sx-top-l{display:none}
  .sx-avatar{width:40px;height:40px}
  .sx-home{width:40px;height:40px}
  .sx-search{height:40px}
  .sx-rightctl .lyr{display:none}
}
