.private-collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 15px}.private-collection-heading h2{font-size:clamp(28px,3.2vw,46px);letter-spacing:-1.4px;margin:0}.private-collection-heading p{margin:7px 0 0}.private-collection-heading button{border-radius:24px;padding:12px 23px;white-space:nowrap}#workspace>.section-title:first-of-type{margin-top:24px}#private-browse-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:20px}#private-browse-layout.has-album{grid-template-columns:minmax(0,1fr) minmax(300px,350px)}#private-browse-layout.has-album .cards[data-view=large]{grid-template-columns:repeat(3,minmax(0,1fr))}#private-browse-layout.has-album .cards[data-view=medium]{grid-template-columns:repeat(4,minmax(0,1fr))}
#album-detail{position:sticky;top:16px;max-height:calc(100dvh - 124px);overflow-y:auto;background:#15151a;border:1px solid #ffffff0d;border-radius:16px;padding:20px;scrollbar-width:thin;scrollbar-color:#45434d transparent}#album-detail[hidden]{display:none}.album-panel-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1.6px;color:#b9b3cf;margin-bottom:10px}.album-panel-top .icon-button{width:30px;height:30px}.album-panel-cover{aspect-ratio:1;border-radius:10px;overflow:hidden;background:linear-gradient(145deg,#343047,#1c343c)}.album-panel-cover :is(img,:where(canvas.private-art-canvas)){width:100%;height:100%;object-fit:cover}.album-no-art{display:grid;place-items:center;height:100%}.album-no-art svg{width:70px;height:70px}#album-detail h2{font-size:23px;line-height:1.25;letter-spacing:-.6px;margin:20px 0 7px;overflow-wrap:anywhere}#album-detail>.muted{font-size:12px;line-height:1.5;margin-top:0}.album-panel-actions{display:flex;align-items:center;gap:12px;margin:18px 0}.album-panel-actions .primary{display:flex;align-items:center;gap:8px;border-radius:24px;padding:10px 18px}.album-panel-actions svg{width:18px;height:18px}.private-like{border:0;background:transparent;padding:7px;width:34px;height:34px;display:grid;place-items:center;color:#c8c5d0}.private-like svg{width:20px;height:20px}.private-like[aria-pressed=true]{color:#c2afff}.private-like[aria-pressed=true] svg{fill:currentColor}.private-like:disabled{opacity:.35;cursor:default}.private-card-stats{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-top:4px}.track-play-count{font-size:11px;color:#a4a2b1;font-variant-numeric:tabular-nums}.album-track-list{list-style:none;padding:0;margin:0}.album-track-list li{display:flex;align-items:center;border-top:1px solid #ffffff09;padding:5px 0}.album-track-list li[aria-current=true]{background:#b3a1ff12;border-radius:7px}.album-track-play{display:grid;grid-template-columns:18px minmax(0,1fr) 32px;gap:9px;align-items:center;background:transparent;border:0;text-align:left;padding:8px 0;flex:1;min-width:0;font-size:10px;color:#a8a5b2}.album-track-play:hover{background:#ffffff06}.album-track-name{min-width:0}.album-track-name strong{display:block;font-size:12px;line-height:1.4;color:#eceaf1;font-weight:600}.album-track-name small{display:block;font-size:10px;line-height:1.6}.album-track-list .private-like{width:27px;height:30px;padding:5px}.album-private-note{font-size:10px;line-height:1.6;color:#8e8a9d;margin:18px 0 0}.private-browse-nav .nav-section{font-size:9px;letter-spacing:1.4px;color:#918d9f;margin:22px 12px 10px}.private-browse-nav>button{width:100%}.private-browse-nav>button>span:first-child{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px}.private-browse-nav svg{width:21px;height:21px}.private-sidebar .rail{overflow-y:auto;scrollbar-width:thin}.private-rail-expanded .private-sidebar{width:232px}.private-rail-expanded main{margin-left:248px}.private-rail-expanded .rail a,.private-rail-expanded .rail button{padding:11px 13px;min-height:43px;gap:14px}.private-rail-expanded .rail-label{font-size:13px}.private-rail-expanded .brand .rail-label{font-size:12px;letter-spacing:1.5px}.private-browse-nav>button:disabled{opacity:.4;cursor:default}.private-browse-nav .rail-active{background:#b5a5f51a;color:#e8e2ff}.cards[data-view=list] .private-card-stats{grid-column:auto;align-self:center;margin:0}.cards[data-view=list] .card{grid-template-columns:60px minmax(120px,1.8fr) minmax(85px,1fr) minmax(90px,1fr) auto 95px}
@media(max-width:1250px){#private-browse-layout.has-album .cards[data-view=large]{grid-template-columns:repeat(2,minmax(0,1fr))}#private-browse-layout.has-album .cards[data-view=medium]{grid-template-columns:repeat(3,minmax(0,1fr))}.has-album .cards[data-view=list] .card{display:flex;flex-wrap:wrap}.has-album .cards[data-view=list] .card h3{flex:1}.has-album .cards[data-view=list] .card .art{width:52px;height:52px}.cards[data-view=list] .private-card-stats{grid-column:2/-1;justify-content:flex-end}}
@media(max-width:1000px){#private-browse-layout.has-album{grid-template-columns:minmax(0,1fr)}#album-detail{position:relative;top:auto;max-height:70dvh;grid-row:1;scroll-margin-top:12px}.album-panel-cover{max-width:240px;margin:auto}#private-browse-layout.has-album .cards[data-view=large]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.private-collection-heading h2{font-size:27px;letter-spacing:-.7px}.private-collection-heading button{padding:10px 15px;font-size:12px}.private-rail-expanded .private-sidebar{width:min(232px,80vw);z-index:45;box-shadow:12px 0 35px #000a}.private-rail-expanded main{margin-left:74px}#private-browse-layout.has-album .cards[data-view=large]{grid-template-columns:repeat(2,minmax(0,1fr))}.cards[data-view=list] .card{display:flex;flex-wrap:wrap}.cards[data-view=list] .card .art{height:45px;width:45px}.cards[data-view=list] .card h3{flex:1}.cards[data-view=list] .private-card-stats{margin-left:auto}#album-detail{padding:15px}.private-collection-heading{gap:10px}#private-browse-layout{gap:12px}}
@media(prefers-reduced-motion:reduce){#album-detail{scroll-behavior:auto}}
@media(max-height:800px){.album-panel-cover{max-width:220px!important}.album-track-name small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.album-track-name strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
body:not(.private-rail-expanded) .private-browse-nav>button:is([data-library-nav=liked],[data-library-nav=liked-albums],[data-library-nav=played],[data-library-nav=genres],[data-library-nav=podcast]){display:none}
.private-sidebar .rail{overflow-x:hidden}.private-browse-nav>button{box-sizing:border-box;min-width:0}body:not(.private-rail-expanded) .private-browse-nav>button{padding:8px}
.private-browse-nav>button{display:flex;align-items:center;justify-content:center;gap:14px;min-height:43px;border:0;background:transparent;border-radius:9px;margin:3px 0;padding:10px;color:#b7b4c1}.private-browse-nav>button:hover{background:#ffffff09;color:white}.private-rail-expanded .private-browse-nav>button{justify-content:flex-start}.private-browse-nav .rail-active{background:#b5a5f51a;color:#e8e2ff}.private-browse-nav .rail-label{white-space:nowrap}.private-browse-nav .nav-section{line-height:1.4}.collection-actions{display:flex;align-items:center;gap:18px}.collection-actions>div{white-space:nowrap;font-size:12px;color:#9591a7}.collection-actions>div button{width:30px;height:30px;border-radius:50%;padding:0;background:#141418}.private-rail-expanded .rail a,.private-rail-expanded .rail>button{min-height:43px;height:46px}.private-rail-expanded .rail{gap:7px}.album-panel-cover{max-width:min(100%,300px);margin:0 auto}.album-panel-top .icon-button{flex-shrink:0}@media(max-width:650px){.collection-actions{gap:9px;flex-direction:column-reverse;align-items:flex-end}.collection-actions>div{font-size:10px}.album-panel-cover{max-width:200px}}

/* Album details scroll with the page; only long track collections scroll internally. */
body #album-detail{max-height:none;overflow:visible;position:relative;top:auto}
body #album-detail .album-panel-cover{max-width:clamp(120px,calc(100dvh - 310px - var(--album-rows)*48px),300px)!important}
#album-detail .album-track-list{overflow:visible;max-height:none}
#album-detail .album-track-list.is-scrollable{max-height:576px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#album-detail .album-track-list li{height:48px;box-sizing:border-box;padding:0 10px}
#album-detail .album-track-play{padding:5px 0;height:46px;gap:7px;grid-template-columns:26px minmax(0,1fr) 32px}
.album-track-number{text-align:center;font-variant-numeric:tabular-nums}
#album-detail .album-track-name strong{display:block;line-height:18px;-webkit-line-clamp:unset;white-space:nowrap}
#album-detail .album-track-name small{display:block;line-height:16px;white-space:nowrap}
#album-detail .panel-marquee{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip}
#album-detail .panel-marquee>span{display:inline-block;width:max-content;max-width:none}
#album-detail .panel-marquee.is-overflowing>span{animation:private-text-pan var(--text-time,9s) ease-in-out infinite alternate}
#album-detail .album-track-list>li:not(.private-motion-active) .panel-marquee>span{animation:none!important;transform:none!important}
#album-detail h2.panel-marquee{font-size:20px;margin:14px 0 7px}
#album-detail.tracks-only h2{margin:0 0 6px}#album-detail.tracks-only .album-panel-actions{margin:0 0 8px;justify-content:space-between}
.private-art-fallback{display:grid;place-items:center;position:absolute;inset:0;padding:15px;text-align:center;background:linear-gradient(145deg,#343047,#1c343c);color:#eee;pointer-events:none}
.album-panel-cover,.queue-art,.rail-thumb,#player-art,#expanded-art{position:relative}
@keyframes private-text-pan{0%,20%{transform:translateX(0)}80%,100%{transform:translateX(var(--text-travel,0px))}}
@media(prefers-reduced-motion:reduce){#album-detail .panel-marquee.is-overflowing>span{animation:none}.panel-marquee{ text-overflow:ellipsis!important}}

/* The collection grid bounds the sticky preview before the storage add-ons. */
@media(min-width:1001px){
 body #album-detail{position:sticky;top:16px;align-self:start;box-sizing:border-box;max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain}
}

/* Account totals share the existing navigation rows and native hover labels. */
.private-sidebar .private-navigation-count{display:none;flex:none;margin-left:auto;color:#aaa7b5;font-size:12px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
body.private-rail-expanded:not(.private-nav-slim) .private-sidebar .private-navigation-count,
body.private-nav-open:not(.private-nav-slim) .private-sidebar .private-navigation-count{display:block}
.private-sidebar :is([data-library-nav],a[href="#private-playlists"])>.rail-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.private-sidebar .rail-active>.private-navigation-count{color:#dad7e1}
.private-sidebar .private-navigation-count[data-available=false]{color:#8b8796}
