.ztSpotifyLibrary{box-sizing:border-box;position:fixed;inset:12px 12px 12px auto;margin:0;width:min(510px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);max-width:calc(100vw - 24px);padding:22px;border:1px solid #966170;border-top:3px solid #ff3757;border-radius:16px;background:#12151c;color:#f6f6f8;box-shadow:0 12px 60px #000b;font:14px/1.6 Arial,sans-serif;overflow:hidden}.ztSpotifyLibrary[open]{display:flex;flex-direction:column;gap:10px}.ztSpotifyLibrary:not([open]){display:none}.ztSpotifyLibrary::backdrop{background:#0008}.ztLibraryHeading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-shrink:0}.ztLibraryHeading>div{min-width:0}.ztLibraryEyebrow{font-size:10px;letter-spacing:.14em;color:#f0a5b8;margin:0 0 6px}.ztLibraryHeading h2{font-size:24px;line-height:1.2;overflow-wrap:anywhere;margin:0}.ztSpotifyLibrary button,.ztSpotifyLibrary a{box-sizing:border-box;min-height:44px;font:600 12px/1.4 Arial,sans-serif;border:1px solid #8a6676;border-radius:7px;padding:10px 12px;color:#fff;background:#35232d;cursor:pointer}.ztSpotifyLibrary a{display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:3px}.ztSpotifyLibrary button:disabled{opacity:.5;cursor:default}.ztSpotifyLibrary :focus-visible{outline:3px solid #ff9bb1;outline-offset:3px}.ztLibraryActions{display:flex;flex-wrap:wrap;gap:7px}.ztSpotifyLibrary>p{font-size:12px;color:#c4c8d3;margin:0;line-height:1.6}.ztSpotifyLibrary>p[data-library-status],.ztSpotifyLibrary>p[data-library-playback]{color:#ffd0db;overflow-wrap:anywhere}.ztLibraryScroll{overflow:auto;min-height:0;flex:1;padding:3px 5px 16px 3px;overscroll-behavior:contain;scrollbar-gutter:stable}.ztLibraryLists,.ztLibrarySongs{list-style:none;padding:0;margin:0}.ztLibraryLists li{padding:13px 0;border-bottom:1px solid #483b48}.ztLibraryLists small{display:block;font-size:11px;color:#b7bdcd;margin-top:6px}.ztLibraryPlaylistTitle{width:100%;text-align:left;font-size:15px!important;background:#1e2029!important;overflow-wrap:anywhere}.ztLibrarySongs{counter-reset:item}.ztLibrarySongs li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;border-bottom:1px solid #483b48;padding:14px 0;align-items:start}.ztLibrarySongs li>div{min-width:0}.ztLibrarySongs strong{display:block;font-size:14px;overflow-wrap:anywhere}.ztLibrarySongs small{display:block;font-size:11px;color:#b9c0cf;margin-top:5px}.ztLibrarySongs a{background:transparent;padding:8px 0;border:0;color:#ffb0c5;font-weight:normal}.ztSpotifyLibrary [hidden]{display:none!important}.spotifyAccountPlaylist .ztPlaylistTitleButton{min-height:44px;text-align:left;color:#fff;background:#27202a;border:1px solid #76576a;border-radius:8px;padding:10px;font:700 16px/1.5 Arial,sans-serif;cursor:pointer;overflow-wrap:anywhere}.ztLibraryHeading>button{flex-shrink:0}@media(max-width:600px){.ztSpotifyLibrary{inset:6px;width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:17px;border-radius:12px}.ztLibraryHeading h2{font-size:22px}.ztLibraryActions>*{flex:1}.ztLibrarySongs li{gap:8px}.ztLibrarySongs button{padding:9px;font-size:11px}}@media(forced-colors:active){.ztSpotifyLibrary{border:2px solid CanvasText}.ztSpotifyLibrary button,.ztSpotifyLibrary a{forced-color-adjust:auto}}

.ztBar .ztVolumeControl{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%;min-width:0}.ztBar .ztVolumeControl input[type=range]{flex:1 1 120px;width:auto;max-width:none;min-width:0}.ztBar .ztVolumeControl output{font:12px monospace;min-width:4ch}.ztBar .ztVolumeControl button{min-height:44px}.ztSpotifyLibrary .ztLibraryScroll button:focus-visible{outline-offset:-3px}

/* Playlist browser expands from the existing player; no full-screen modal. */
.ztBar>.ztSpotifyLibrary{position:absolute;inset:auto 0 calc(100% + 10px) auto;z-index:10002;margin:0;width:min(580px,100%);max-width:100%;height:430px;max-height:70dvh;padding:18px;border-radius:14px;overflow:auto;box-shadow:0 8px 30px #000a;font-family:Arial,sans-serif}
.ztBar>.ztSpotifyLibrary::backdrop{background:transparent}
.ztBar>.ztSpotifyLibrary .ztLibraryScroll{min-height:90px;flex:1 1 auto}
.ztBar>.ztSpotifyLibrary .ztLibraryHeading h2{font-size:21px}
.ztBar>.ztSpotifyLibrary .ztLibraryHeading,.ztBar>.ztSpotifyLibrary .ztLibraryActions{flex-shrink:0}
@media(max-width:650px){.ztBar>.ztSpotifyLibrary{inset:auto 0 calc(100% + 8px) 0;width:100%;max-width:100%;padding:14px;border-radius:12px}.ztBar>.ztSpotifyLibrary .ztLibraryHeading h2{font-size:19px}.ztBar>.ztSpotifyLibrary .ztLibraryActions{gap:5px}.ztBar>.ztSpotifyLibrary .ztLibraryActions>*{flex:1 1 auto;font-size:11px;padding:7px}.ztBar>.ztSpotifyLibrary .ztLibraryHeading>button{font-size:11px}}

.ztLibraryLinkForm{display:flex;gap:7px;align-items:center;margin:0;flex-shrink:0}.ztLibraryLinkForm input{box-sizing:border-box;min-height:44px;min-width:0;flex:1;padding:9px;border:1px solid #896675;border-radius:7px;background:#0a0d13;color:#fff;font:13px Arial,sans-serif}.ztLibraryPreview{margin:10px 0}.ztLibraryPreview iframe{display:block;width:100%;height:352px;border:0;border-radius:12px;background:#121212}.ztLibraryLinkForm button{flex-shrink:0}

.ztLibraryScroll>[data-library-filter-wrap]{margin:8px 0 12px}.ztLibraryScroll label{display:block;font-size:12px;margin-bottom:7px;color:#d2d8e4}.ztLibraryScroll input[type=search]{width:100%;box-sizing:border-box;min-height:44px;padding:10px;border:1px solid #8d6677;border-radius:7px;background:#090c12;color:white;font:13px Arial,sans-serif}.ztLibrarySavedActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.ztLibrarySavedActions a,.ztLibrarySavedActions button{font-size:11px!important;min-height:44px}

/* Reserve most of the expanded player for the songs themselves. */
.ztBar>.ztSpotifyLibrary{overflow:hidden;height:560px}.ztBar>.ztSpotifyLibrary .ztLibraryScroll{min-height:0;overflow:auto}.ztSpotifyLibrary[data-view=songs] .ztLibraryActions{gap:5px}.ztSpotifyLibrary[data-view=songs] .ztLibraryActions>*{min-height:36px;padding:7px 9px;font-size:11px}.ztSpotifyLibrary [data-library-status]:empty,.ztSpotifyLibrary [data-library-playback]:empty{display:none}.ztLibrarySongs li>div>button{display:block;margin-top:8px}.ztLibrarySongs li>div>a{min-height:28px;font-size:11px;padding:3px 0}.ztLibrarySongs strong{font-size:16px}.ztLibrarySongs small{font-size:13px}

.ztBar>.ztSpotifyLibrary[data-compact=true]{overflow:auto}.ztBar>.ztSpotifyLibrary[data-compact=true] .ztLibraryScroll{flex:0 0 auto;min-height:140px;max-height:300px}

/* ZTime floating library: a quiet metal frame with clear song rows. */
.ztBar>.ztSpotifyLibrary{width:min(640px,100%);padding:20px;border:1px solid #646773;border-top:3px solid #ff3757;background:linear-gradient(160deg,#23252d 0,#12151c 90px);box-shadow:0 15px 40px #000b,inset 0 1px 0 #ffffff18;border-radius:18px;gap:12px;font:15px/1.5 Arial,sans-serif}
.ztBar>.ztSpotifyLibrary .ztLibraryEyebrow{font-size:10px;letter-spacing:.16em;color:#ff9aae;margin-bottom:7px}.ztBar>.ztSpotifyLibrary .ztLibraryHeading h2{font-size:24px;line-height:1.2;max-height:3.6em;overflow:auto}.ztBar>.ztSpotifyLibrary .ztLibraryHeading>button{background:#292c35;border-color:#777d8b;font-size:13px;min-height:44px}
.ztBar>.ztSpotifyLibrary .ztLibraryActions{align-items:start;gap:8px}.ztBar>.ztSpotifyLibrary .ztLibraryActions>button{font-size:13px;min-height:44px;padding:10px 14px;background:#282c35;border-color:#626979}.ztBar>.ztSpotifyLibrary [data-library-play]{background:#b81e3b!important;border-color:#ef536e!important}
.ztLibraryMore{position:relative;margin-left:auto;min-width:80px}.ztLibraryMore summary{list-style:none;cursor:pointer;min-height:44px;box-sizing:border-box;border:1px solid #626979;border-radius:8px;background:#242832;padding:10px 14px;text-align:center;font-size:13px;font-weight:bold}.ztLibraryMore summary::-webkit-details-marker{display:none}.ztLibraryMore summary::after{content:' ▾'}.ztLibraryMore[open] summary::after{content:' ▴'}.ztLibraryMoreItems{display:flex;flex-wrap:wrap;gap:7px;padding:10px 0 0}.ztLibraryMore[open]{flex:1 0 100%;margin-left:0}.ztLibraryMore[open] summary{width:90px;margin-left:auto}.ztLibraryMoreItems>*{flex:1 1 160px!important;text-align:center;justify-content:center;font-size:13px!important;min-height:44px!important}
.ztBar>.ztSpotifyLibrary>p{font-size:13px;line-height:1.5;color:#d3d7e1}.ztBar>.ztSpotifyLibrary .ztLibraryScroll{padding:0 6px 8px 0;scrollbar-color:#727886 #191c24}.ztLibrarySongs{counter-reset:ztime-song}.ztLibrarySongs>li{position:relative;counter-increment:ztime-song;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 12px 16px 44px;border:1px solid #343a46;border-radius:12px;background:#1a1e27;margin:0 0 9px;align-items:start}.ztLibrarySongs>li::before{content:attr(value);position:absolute;left:13px;top:18px;font:13px/1.5 monospace;color:#a8b0c1}.ztLibrarySongs>li[data-current=true]{border-color:#ff526f;background:#30202b;box-shadow:inset 3px 0 0 #ff3757}.ztLibrarySongs strong{font-size:16px;line-height:1.45;color:#fff}.ztLibrarySongs small{font-size:13px;line-height:1.45;color:#c7cedd}.ztLibrarySongs li>button{min-height:44px;font-size:13px;background:#353b48;border-color:#697386;padding:10px 14px}.ztLibrarySongs li>div>button{min-height:44px;margin-top:10px;font-size:13px;background:#85243b;border-color:#c95770;padding:9px 13px}.ztLibrarySongs li>div>a{font-size:12px;line-height:1.4;color:#ffb4c4;min-height:32px}.ztLibraryLists li{padding:13px;border:1px solid #343a46;border-radius:12px;background:#1a1e27;margin-bottom:10px}.ztLibraryLists small{font-size:13px;color:#c7cedd}.ztLibraryPlaylistTitle{border:0!important;padding:7px 0!important;font-size:17px!important;background:transparent!important}.ztLibrarySavedActions button,.ztLibrarySavedActions a{font-size:12px!important}.ztLibraryScroll label{font-size:13px}.ztLibraryScroll input[type=search]{font-size:15px;background:#0c1017}.ztSpotifyLibrary [data-library-more]{width:100%;font-size:14px;margin-top:10px;min-height:44px}.ztLibraryMore summary:focus-visible{outline:3px solid #ff9bb1;outline-offset:3px}
@media(max-width:650px){.ztBar>.ztSpotifyLibrary{padding:15px;gap:10px;border-radius:14px}.ztBar>.ztSpotifyLibrary .ztLibraryHeading h2{font-size:21px}.ztBar>.ztSpotifyLibrary .ztLibraryActions>*{flex:0 1 auto}.ztBar>.ztSpotifyLibrary .ztLibraryActions>button{font-size:12px;padding:9px 11px}.ztLibraryMore{margin-left:auto;flex:0 0 auto!important}.ztLibraryMore[open]{flex:1 0 100%!important}.ztLibrarySongs>li{padding:13px 10px 13px 34px;gap:8px}.ztLibrarySongs>li::before{left:10px;top:15px}.ztLibrarySongs strong{font-size:15px}.ztLibrarySongs li>button{font-size:12px;padding:9px 11px}.ztLibrarySongs li>div>button{font-size:12px;padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.ztSpotifyLibrary *{scroll-behavior:auto!important}}
/* Floating discovery shares the dumbbell player's readable charcoal/red palette. */
.ztSpotifyLibrary [data-library-catalog]{font:14px/1.55 Arial,sans-serif}.ztCatalogSearch{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 12px;padding:0;background:transparent!important;border:0}.ztCatalogSearch>label{grid-column:1/-1}.ztCatalogSearch input,.ztCatalogSearch select,.ztCatalogPicker input,.ztCatalogPicker select,.ztSpotifyLibrary .ztArtistBrowser select{box-sizing:border-box;width:100%;min-height:44px;font:14px Arial,sans-serif;border:1px solid #777e90;border-radius:8px;background:#0b1018;color:#fff;padding:10px;color-scheme:dark}.ztCatalogSearch input{margin-top:6px}.ztCatalogSearch select{width:auto}.ztCatalogResults,.ztSpotifyLibrary .ztArtistBrowser ul,.ztSpotifyLibrary .ztArtistBrowser ol{list-style:none;padding:0;margin:0;max-height:none;overflow:visible}.ztCatalogResults>li,.ztSpotifyLibrary .ztArtistBrowser li{border:1px solid #3c4351;border-radius:12px;background:#1a1e27;padding:14px;margin:10px 0}.ztCatalogResults strong,.ztSpotifyLibrary .ztArtistBrowser li>strong{display:block;font-size:16px;overflow-wrap:anywhere}.ztCatalogResults small,.ztSpotifyLibrary .ztArtistBrowser small{display:block;font-size:13px;color:#c9d0df;margin-top:5px}.ztCatalogActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.ztCatalogActions button,.ztCatalogActions a{font-size:12px!important;min-height:44px}.ztCatalogActions button{background:#73233a}.ztCatalogPicker:empty{display:none}.ztCatalogPicker{padding:14px;border:1px solid #e65a79;border-radius:12px;background:#281e2b;margin:12px 0}.ztCatalogPicker label{display:block;margin:10px 0}.ztCatalogPicker h3,.ztSpotifyLibrary .ztArtistBrowser h3{font-size:20px;margin:8px 0}.ztCatalogPicker p{overflow-wrap:anywhere}.ztSpotifyLibrary .ztArtistBrowser{margin-top:16px;padding-top:16px;border-top:2px solid #ff3757}.ztSpotifyLibrary .ztArtistEyebrow{color:#ffa8bb;font-size:11px;letter-spacing:.12em}.ztSpotifyLibrary .ztArtistBrowser img{width:90px;height:90px;object-fit:contain;border-radius:8px}.ztSpotifyLibrary .ztArtistBrowser .ztArtistReleases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ztSpotifyLibrary .ztArtistReleases li{min-width:0;margin:0;padding:12px}.ztSpotifyLibrary .ztArtistReleases li>a,.ztSpotifyLibrary .ztArtistReleases li>button{display:block;margin-top:8px;font-size:12px;min-height:44px}.ztSpotifyLibrary .ztArtistBrowser h4{font-size:18px}.ztSpotifyLibrary .ztArtistBrowser p[role=status]{color:#ffd1dd}.ztSpotifyLibrary .ztArtistSummary p{color:#d0d6e3}.ztSpotifyLibrary select option{background:#111721;color:#fff}@media(max-width:420px){.ztSpotifyLibrary .ztArtistBrowser .ztArtistReleases{grid-template-columns:1fr}.ztCatalogActions>*{flex:1 1 auto;text-align:center;justify-content:center}}.ztSpotifyLibrary .ztArtistBrowser [hidden]{display:none!important}

.ztLibraryScroll [data-library-song-filter]{padding:4px 0 12px}.ztLibraryScroll [data-library-song-count]{font-size:12px;color:#cbd3e2;margin:8px 0}.ztSpotifyLibrary [data-library-load-stop]{font-size:12px;min-height:44px}
