.mini-player-heading{display:flex;align-items:center;width:100%;gap:12px;min-width:0}.listener-player #openNowPlaying{flex:1;min-width:0;padding:0 5px;display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:8px;color:white;touch-action:pan-x;cursor:pointer}.listener-player #listenerName{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.pull-handle{display:block;width:30px;height:3px;border-radius:3px;background:#ac91ba}.expand-hint{font-size:10px;color:#c3accf}.listener-player .player-heart{min-width:48px;min-height:44px;font-size:23px;padding:4px;color:#e7c5ff}.player-heart.is-loved{color:#ff84c5}.player-status:empty{display:none}.player-status{position:absolute;bottom:100%;left:10px;right:10px;padding:9px 12px;border-radius:10px;background:#40224e;font-size:12px;color:white}.listener-player button:focus-visible,#nowPlayingDialog button:focus-visible{outline:2px solid #d9abff;outline-offset:2px}
#nowPlayingDialog{position:fixed;inset:0;box-sizing:border-box;margin:auto;width:min(100%,660px);height:100dvh;max-width:100%;max-height:100dvh;border:1px solid #5d3b75;border-radius:22px 22px 0 0;background:#120b1d;color:#f9f2ff;padding:0;overflow:hidden;overscroll-behavior:contain}#nowPlayingDialog::backdrop,#heartSignIn::backdrop{background:#060309c9;backdrop-filter:blur(8px)}#closeNowPlaying{height:60px;min-height:44px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:0;border-bottom:1px solid #392147;background:#1c1028;color:#dfc7ed;font-size:13px;touch-action:pan-x;cursor:pointer;padding-top:env(safe-area-inset-top)}#nowPlayingContent{height:calc(100% - 60px);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px calc(30px + env(safe-area-inset-bottom));text-align:center}#nowPlayingContent .now-playing-art{display:block;width:100%;max-height:48dvh;aspect-ratio:1;object-fit:contain;background:#1a0f26;border-radius:16px;margin:0 auto 18px}#nowPlayingContent h2{font-size:clamp(24px,5vw,36px);line-height:1.15;margin:14px 0 8px;overflow-wrap:anywhere}#nowPlayingContent>p{color:#c0a2d2;font-size:13px}#nowPlayingContent .waveform-wrap{margin:20px 0 8px}#nowPlayingContent .waveform{height:75px}#nowPlayingContent .community{text-align:left;margin:20px 0 0;padding:18px 0;background:transparent;border:0;border-top:1px solid #49305b}#nowPlayingContent .track-comments{margin-top:12px}.expanded-transport{display:flex;justify-content:center;align-items:center;gap:25px;margin:14px 0}.expanded-transport button{border:0;background:#2a1739;color:white;border-radius:50%;width:48px;height:48px;font-size:22px;cursor:pointer}.expanded-transport #expandedPlay{background:#a43bfa;width:62px;height:62px}#heartSignIn{max-width:360px;width:90%;box-sizing:border-box;background:#20122d;color:white;padding:26px;border:1px solid #7d4b9a;border-radius:18px}#heartSignIn h2{font-size:26px}#heartSignIn p{line-height:1.5;color:#dbc3ec}#heartSignIn a{display:block;text-align:center;text-decoration:none;font-size:14px}#heartSignIn button{margin-top:15px}
@media(max-width:600px){main#feed{height:calc(100dvh - 238px - env(safe-area-inset-bottom))}.listener-player{height:118px;row-gap:5px;padding:7px 12px}.mini-player-heading{height:47px;flex:none}#nowPlayingDialog{border-radius:0;border:0}#nowPlayingContent{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){#nowPlayingDialog,#nowPlayingContent{scroll-behavior:auto;animation:none;transition:none}}

/* Compact player: primary actions render before asynchronous waveform/comments. */
#nowPlayingContent .now-playing-art{width:auto;height:min(29dvh,230px);max-width:100%;max-height:none;margin:0 auto 10px}#nowPlayingContent h2{font-size:clamp(20px,4.6vw,28px);margin:8px 0 4px}#nowPlayingContent .expanded-artist{font-size:12px;line-height:1.35;margin:4px 0 10px}.expanded-actions{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:7px;position:sticky;top:-1px;z-index:2;background:#191e22;padding:6px 0}.expanded-actions button{border:1px solid #53616a;background:#2b343b;color:white;border-radius:12px;min-height:44px;font-size:12px;padding:8px 5px}.expanded-actions .expanded-add{background:#b5ecd7;color:#112d27;border-color:#b5ecd7;font-weight:700}.expanded-actions .is-loved{background:#442b3b;color:#ffb3d5}.expanded-status{font-size:12px;line-height:1.35;min-height:0;margin:3px 0;color:#b5ecd7}.expanded-status:empty{display:none}.expanded-transport{margin:8px 0;gap:24px}.expanded-transport #expandedPlay{width:52px;height:52px}.expanded-transport button{width:44px;height:44px}#nowPlayingContent .waveform-wrap{margin:6px 0}#nowPlayingContent .waveform{height:52px}.expanded-extras{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px}.expanded-extras .song-share{margin:0}#nowPlayingContent .community{margin-top:8px;padding-top:8px}#nowPlayingContent .community-top:empty,.community-status:empty{display:none}#nowPlayingContent .track-comments{margin-top:0}#nowPlayingContent .track-comments summary{min-height:44px;padding:10px 0;box-sizing:border-box}#addToPlaylistDialog,#playlistDialog,#playlistSongsDialog{max-height:85dvh;overflow-y:auto;overscroll-behavior:contain}#playlistSongsDialog{width:min(92vw,520px);box-sizing:border-box}.playlist-song-choice{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #ffffff18}.playlist-song-choice>span{flex:1;min-width:0;overflow-wrap:anywhere}.playlist-song-add,#closePlaylistSongs{min-height:44px;border:1px solid #4a5259;border-radius:12px;padding:8px 12px;background:#2b3238;color:white}.playlist-song-add:disabled{opacity:1;color:#b5ecd7}#closePlaylistSongs{margin-top:12px}#playlistSongsStatus{font-size:13px;color:#b5ecd7}
@media(max-width:600px){#closeNowPlaying{height:46px;padding-top:env(safe-area-inset-top);gap:3px}#nowPlayingContent{height:calc(100% - 46px);padding:10px 16px calc(24px + env(safe-area-inset-bottom))}#nowPlayingContent .now-playing-art{height:min(25dvh,180px);margin-bottom:6px}#nowPlayingContent h2{font-size:21px;line-height:1.15}.expanded-actions{gap:5px}.expanded-actions button{font-size:11px}.expanded-transport{margin:6px 0}}
@media(max-height:700px) and (max-width:600px){#nowPlayingContent .now-playing-art{height:20dvh;max-height:130px}#nowPlayingContent h2{font-size:19px}.expanded-artist{max-height:34px;overflow:hidden}}

.track-row .track-labels,.track-row .track-image,.discovery-card{cursor:pointer}

/* Let artwork fill the extra room on tall phones while keeping actions reachable. */
#nowPlayingContent .now-playing-art{height:min(40dvh,360px);max-width:100%}
@media(max-width:600px){#nowPlayingContent .now-playing-art{height:min(38dvh,calc(100vw - 64px),320px)}}
@media(max-height:700px) and (max-width:600px){#nowPlayingContent .now-playing-art{height:min(28dvh,200px);max-height:none}}
#nowPlayingContent .comment-form{gap:8px;margin-top:12px}#nowPlayingContent .comment-form label{margin:5px 0}#nowPlayingContent .comment-form input,#nowPlayingContent .comment-form textarea{box-sizing:border-box;margin:6px 0 0}#nowPlayingContent .comment-form textarea{min-height:96px}.comment-note{font-size:11px!important;margin:0;line-height:1.4!important}.comment-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.comment-pending{font-size:10px;color:#aaa}.comment-delete{background:none;border:0;color:#c2cbd0;font-size:12px;min-height:44px;text-decoration:underline;padding:6px 0}.comment-result:empty{display:none}
