/* One spacing and interaction system across the entire music hub. */
:root{--music-panel-width:clamp(320px,23vw,420px)}
nav button{gap:13px;min-height:42px;align-items:center}nav .nav-icon{width:20px;flex:0 0 20px;display:grid;place-items:center;line-height:1}
.music-card{transition:background .18s,transform .18s}.music-card:hover{background:#ffffff10;transform:translateY(-2px)}
.music-tabs{overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap;padding-bottom:3px}.music-tabs button{flex-shrink:0;min-height:34px;padding:8px 17px}
.library-hero{padding:38px 26px 30px;min-height:290px;background:linear-gradient(120deg,#136cac,#233f59 58%,#142a3b);gap:28px}.library-heart{width:clamp(150px,15vw,230px);border-radius:4px}.library-hero h1{font-size:clamp(56px,6vw,100px);letter-spacing:-4px;margin:14px 0 20px}.library-hero p{font-size:13px}.library-toolbar{margin:26px 0 24px;gap:20px}.library-toolbar>.library-play{width:58px;height:58px;box-shadow:0 6px 20px #0003;transition:transform .15s}.library-play:hover:not(:disabled){transform:scale(1.05)}
.library-row{min-height:68px;padding:8px 12px;gap:14px;font-size:12px;transition:background .15s;background:transparent;border-radius:5px}.library-row:hover,.library-row:focus-within{background:#ffffff16}.library-title strong{font-size:14px;font-weight:600;margin-bottom:3px}.library-title .artist-link{font-size:12px!important}.library-title .track-art{width:46px;height:46px;border-radius:4px}.library-row .library-album{font-size:12px}.library-number{position:relative;font-size:13px;width:24px;height:30px}.row-play-hint{display:none;position:absolute;inset:0;place-items:center;font-size:14px;color:white}.library-row:hover .library-number,.library-row:focus-within .library-number{color:transparent!important}.library-row:hover .row-play-hint,.library-row:focus-within .row-play-hint{display:grid}.library-row.is-playing .library-title strong{color:#71c2ff}.library-more{opacity:0;transition:opacity .15s}.library-row:hover .library-more,.library-row:focus-within .library-more{opacity:1}.library-table-head{background:#1b252ef5;border-radius:0;font-size:11px;min-height:40px}.library-table-head:hover{background:#1b252ef5}.library-song-menu{padding:6px;border-radius:7px}.library-song-menu>button{padding:12px;font-size:13px}
.library-compact{position:sticky;top:26px;z-index:3;display:flex;align-items:center;gap:14px;height:0;opacity:0;pointer-events:none;overflow:hidden;background:#17384df5;backdrop-filter:blur(16px);margin:0 -22px;padding:0 22px;transition:opacity .18s}.library-compact .library-play{width:40px;height:40px;background:#0092ff;border:0;border-radius:50%;color:white}.library-compact strong{font-size:21px}body[data-view=library] .library-compact.is-visible{height:58px;opacity:1;pointer-events:auto;margin-bottom:-58px}body[data-view=library]:has(.library-compact.is-visible) .library-table-head{top:84px}
.now-video-cover{isolation:isolate;border-radius:10px;aspect-ratio:3/4;background:#152d3e}.now-video-cover>img{transition:filter .3s;transform-origin:center}.now-video-cover.artwork-moving>img:not(.fallback){animation:cover-drift 24s ease-in-out infinite alternate;will-change:transform}.now-video-cover:hover>img{filter:brightness(1.06)}.now-video-cover::after{inset:20% 0 0;background:linear-gradient(transparent 30%,#0006 65%,#000e)}.now-video-cover .side-now-meta{left:18px;right:18px;bottom:20px;gap:14px}.now-video-cover .side-now-meta h2{font-size:clamp(24px,1.9vw,32px);line-height:1.17;letter-spacing:-.8px}.side-now-meta p{font-size:13px!important;line-height:1.5}.side-now-meta button{flex-shrink:0}.artwork-expand{position:absolute;right:12px;top:12px;z-index:2;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#0008;color:white;font-size:23px;opacity:0;transition:opacity .18s}.now-video-cover:hover .artwork-expand,.now-video-cover:focus-within .artwork-expand{opacity:1}.artwork-expand[hidden]{display:none!important}.artwork-dialog{width:min(720px,92vw);border-radius:12px;max-height:92dvh;overflow:auto}.artwork-dialog>img{width:100%;max-height:70dvh;object-fit:contain;display:block;margin-top:20px}.artwork-dialog h2{font-family:inherit;text-transform:none;font-size:22px}
@keyframes cover-drift{0%{transform:scale(1.025) translate(-.4%,-.4%)}50%{transform:scale(1.075) translate(.5%,-.2%)}100%{transform:scale(1.04) translate(-.2%,.5%)}}
.side-info-card{border:0;background:#1e1e1e;border-radius:10px;padding:18px;margin:18px 0}.side-info-card h3{font-size:15px;letter-spacing:-.2px;margin-bottom:16px}.side-card-heading{align-items:center;gap:12px}.side-card-heading>button{white-space:nowrap}.artist-photo-button{display:block;width:100%;padding:0;border:0;background:none;border-radius:7px;overflow:hidden;margin:0 0 16px}.artist-photo-button img{margin:0;transition:transform .25s}.artist-photo-button:hover img{transform:scale(1.025)}.artist-details-dialog{width:min(720px,94vw);max-height:85dvh;overflow:auto;border-radius:12px;padding:24px}.artist-details-dialog h2{font-family:inherit;text-transform:none;font-size:30px}.artist-details-dialog p{color:#c0c6cc;font-size:14px;line-height:1.8;white-space:pre-line}.artist-details-image{display:block;width:100%;max-height:340px;object-fit:cover;border-radius:8px;margin:22px 0}.artist-detail-releases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.artist-detail-releases button{padding:8px;background:#ffffff05;border:0;text-align:left}.artist-detail-releases img{display:block;width:100%;aspect-ratio:1;object-fit:cover;margin-bottom:10px;border-radius:5px}.artist-detail-releases strong{font-size:12px;line-height:1.5}.related-video{display:inline-flex;flex-direction:column;width:calc(50% - 7px);vertical-align:top;gap:8px;margin:0 7px 16px 0}.related-video .track-art{width:100%;height:auto;aspect-ratio:16/10}.related-video strong{font-size:12px;line-height:1.5}.next-recording{gap:13px}.next-recording .track-art{width:48px;height:48px}.next-recording strong{font-size:13px}.next-recording small{line-height:1.6}
.lyrics-card{padding:18px 20px!important}.lyrics-card .lyrics-body{max-height:185px;mask-image:linear-gradient(#000 70%,transparent);overflow:hidden}.lyrics-card.lyrics-expanded .lyrics-body{max-height:400px;overflow-y:auto;mask-image:none}.lyrics-card .lyrics-body p{font-size:21px!important;line-height:1.5!important;letter-spacing:-.4px;margin:16px 0!important}.lyrics-more{border:1px solid #ffffff35;border-radius:20px;background:#0002;padding:7px 15px;font-size:11px;margin-top:10px}.lyrics-more:hover{background:#ffffff10}.lyrics-dialog .lyrics-body p{font-size:30px!important;line-height:1.6!important}
.player-dock{padding:10px 22px;gap:22px;background:#0d0d0d}.player-dock .now-track strong{font-size:13px}.player-dock .transport-buttons{gap:20px}.player-dock .scrubber input{height:4px}.player-dock input[type=range]::-webkit-slider-thumb{opacity:0;transition:opacity .15s}.player-dock input[type=range]:hover::-webkit-slider-thumb,.player-dock input[type=range]:focus-visible::-webkit-slider-thumb{opacity:1}.player-dock .cover{border-radius:4px}.player-dock #save-current{border:0;background:none;padding:0;color:#b7c5cf;font-size:10px;margin-top:3px}
@media(hover:none){.library-more,.artwork-expand{opacity:1}.player-dock input[type=range]::-webkit-slider-thumb{opacity:1}}
@media(max-width:1350px) and (min-width:1100px){.library-row{gap:9px;font-size:11px}.library-hero{min-height:240px}.library-heart{width:145px}.library-hero h1{font-size:64px}.library-title strong{font-size:13px}}
@media(max-width:720px){.library-hero{padding:24px 15px;min-height:195px;gap:17px}.library-heart{width:105px}.library-hero h1{font-size:48px;letter-spacing:-2px}.library-hero p{font-size:10px}.library-toolbar{gap:9px}.library-toolbar>.library-play{width:47px;height:47px}.library-row{gap:8px;padding:8px 0;min-height:62px}.library-more{opacity:1}.library-title .track-art{width:38px;height:38px}.library-title strong{font-size:12px}.library-title .artist-link{font-size:11px!important}.library-compact{display:none!important}.player-dock{padding:10px 16px}.artist-detail-releases{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.now-video-cover.artwork-moving>img{animation:none!important}.music-card,.artwork-expand,.artist-photo-button img{transition:none!important}}
.library-table-head,.library-table-head:hover{background:#1b252e} .library-compact{background:#17384d}
.library-queue{font-size:0!important;position:relative;display:grid;place-items:center;padding:0!important;line-height:1!important}.library-queue::before,.library-queue::after{content:'';position:absolute;left:50%;top:50%;width:12px;height:1.6px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%)}.library-queue::after{transform:translate(-50%,-50%) rotate(90deg)}

/* Keep long catalogue titles inside the flexible center panel. */
.app>main,#content,.tracks,.music-section{min-width:0;max-width:100%}
.tracks{grid-template-columns:minmax(0,1fr)}
.track{min-width:0;max-width:100%;box-sizing:border-box}
.track>.track-info{flex:1 1 0%;min-width:0;overflow:hidden}
.track>.track-actions,.track>.track-length{flex-shrink:0}
