/* HashKafa library and offline listening controls — original black-and-gold UI */
.hk-song-sheet{position:fixed;inset:0;z-index:3900;background:#03070ed1;display:flex;justify-content:center;align-items:flex-end;padding:0 0 env(safe-area-inset-bottom)}
.hk-song-sheet[hidden],#hkPlaylistPicker[hidden],#hkSongMenu[hidden]{display:none!important}
.hk-song-dialog{box-sizing:border-box;width:min(100%,540px);max-height:94dvh;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(160deg,#202c38,#151b23 65%);border:1px solid #e4c58c41;border-bottom:0;border-radius:25px 25px 0 0;box-shadow:0 -20px 80px #000b;color:#f5efe6;padding:12px 22px 25px}
.hk-song-grip{width:42px;height:5px;border-radius:8px;margin:0 auto 14px;background:#9c9388}
.hk-song-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.hk-song-header h2{font-size:17px;letter-spacing:.2px;margin:0}.hk-song-header button{font-size:27px;background:transparent;border:0;color:#f3e8d4;cursor:pointer;min-width:42px;min-height:42px}
.hk-song-summary{display:flex;gap:14px;align-items:center;padding:18px 0;border-bottom:1px solid #f5ebd524}.hk-song-summary img{width:72px;height:72px;object-fit:cover;border-radius:8px}.hk-song-summary>div{min-width:0}.hk-song-summary strong{display:block;font-size:21px;line-height:1.25;overflow-wrap:anywhere}.hk-song-summary small{font-size:12px;color:#afbdca;display:block;margin-top:5px}
.hk-song-menu{padding-top:8px}.hk-song-menu button{width:100%;display:flex;align-items:center;gap:17px;color:#f6f2e9;text-align:left;background:transparent;border:0;padding:12px 5px;min-height:54px;cursor:pointer;font-size:15px}.hk-song-menu button span{display:grid;place-items:center;width:29px;color:#e0bd82;font-size:25px}.hk-song-menu button:hover,.hk-playlist-row:hover{background:#ffffff0c}
.hk-song-status{min-height:18px;font-size:13px;color:#e4c38b;padding-top:8px;margin:5px 0 0}
.hk-song-back{padding:12px 0;margin-top:8px;background:transparent;border:0;color:#e4c38b;font-weight:700;cursor:pointer}.hk-playlist-list{display:grid;max-height:30vh;overflow:auto;margin:6px 0 15px;gap:3px}.hk-playlist-list>p{color:#adbbc8}
.hk-playlist-row{width:100%;display:grid;grid-template-columns:32px 1fr 27px;align-items:center;gap:12px;padding:12px 9px;text-align:left;border:0;border-bottom:1px solid #ffffff16;color:#f0e9dc;background:transparent;cursor:pointer}.hk-playlist-row>span:first-child{font-size:22px;color:#d9b478}.hk-playlist-row strong{display:block;font-size:15px}.hk-playlist-row small{display:block;color:#9caebd;font-size:11px;margin-top:3px}.hk-playlist-row>span:last-child{font-size:23px;color:#dfc08a}.hk-song-signin{color:#e4c38b}
.hk-new-playlist{border-top:1px solid #f5ebd521;padding-top:15px;display:grid;gap:10px}.hk-new-playlist>label:first-child{font-size:14px;font-weight:700}.hk-new-playlist input[type=text]{width:100%;box-sizing:border-box;min-height:43px;border:1px solid #e4c38b88;border-radius:8px;background:#101a24;color:#fff;padding:10px}.hk-playlist-check{display:flex;align-items:center;gap:10px;font-size:12px;color:#c6c9c8}.hk-playlist-check input{width:19px;height:19px;accent-color:#e4c38b}.hk-new-playlist button{border:0;border-radius:25px;padding:12px;background:#e4bc7b;color:#161b22;font-weight:800;cursor:pointer}
.track-actions{flex-wrap:wrap;justify-content:flex-start;column-gap:13px;row-gap:3px}.track-actions .track-offline-icon,.track-actions .track-library-icon,.track-actions .track-menu-icon{min-width:32px;min-height:34px;padding:4px!important;border:1px solid #c8aa7f66!important;border-radius:50%;color:#e7c58b!important;font-size:20px!important;line-height:1;display:inline-grid;place-items:center}.track-actions .track-menu-icon{border-color:transparent!important;font-size:23px!important}.track-actions .offline-saved,.offline-saved{background:#d9b478!important;color:#141b21!important;border-color:#d9b478!important}
.hk-player-action{min-width:31px;min-height:31px;border-radius:50%;border:1px solid #beab8a81;background:transparent;color:#e6c48b;font-size:21px;display:grid;place-items:center;cursor:pointer}
.hk-player-action.offline-saved{font-size:17px}
.hk-now-quick{display:flex;gap:7px;align-items:center}.hk-now-add{font-size:34px;color:#e6be84;border:1px solid #e6be846c;border-radius:50%;min-height:42px;min-width:42px;line-height:1}
.now-foot .hk-now-download{display:grid;place-items:center;border:1px solid #dfbd8580;border-radius:50%;width:44px;height:44px;min-width:44px;padding:0;font-size:26px;color:#efd19c}.now-foot .hk-now-download.offline-saved{font-size:22px}
.now-foot .hk-now-more{white-space:nowrap}.hk-mobile-tabs{display:none}
@media(min-width:761px){.hk-song-sheet{align-items:center;padding:20px}.hk-song-dialog{border:1px solid #e4c58b41;border-radius:23px;max-height:calc(100dvh - 40px)}}
@media(max-width:760px){
 .hk-mobile-tabs{position:fixed;bottom:0;left:0;right:0;z-index:9;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;background:#0b111a;border-top:1px solid #bca37d35}
 .hk-mobile-tabs a{display:flex;align-items:center;justify-content:center;gap:1px;flex-direction:column;text-decoration:none;color:#c8cbd2;min-height:58px}.hk-mobile-tabs a span{font-size:25px;line-height:1.1;color:#e2c18c}.hk-mobile-tabs a small{font-size:10px;color:#d0d1d0}
 .player{bottom:calc(64px + env(safe-area-inset-bottom))!important;min-height:69px;padding:8px 12px}
 .main-area{padding-bottom:170px!important}
 .player-song{gap:7px}.player-song img{width:43px;height:43px}.player-song-text strong{font-size:13px}.player-song-text span{font-size:10px}.player-fav{display:inline-flex}.hk-player-action{font-size:18px;min-width:28px;min-height:28px}
 #nowPlayingOpen{min-width:26px!important}
 .player .player-controls{gap:8px}
 .player .player-control{font-size:17px}
 .player .player-controls #prevBtn{display:inline-flex}
 .now-foot{flex-wrap:wrap}
 .toast{bottom:147px}
 .track-actions .track-offline-icon,.track-actions .track-library-icon{min-width:32px;min-height:32px}
}
@media(max-width:390px){.player-song-text span{display:none}.player-song{gap:5px}.hk-player-action{min-width:25px;min-height:25px}.now-foot button{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.hk-song-dialog *{transition:none!important}}

/* Mobile mini-player: preserve every quick action AND transport button.
   A compact second transport row replaces the impossible one-line squeeze.
   No navigation/header changes are part of this fix. */
@media(max-width:760px){
 :root{--player:122px}
 .player{
   display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:42px 46px;
   align-content:center;align-items:center;row-gap:6px;
   min-height:112px;padding:8px 10px 11px;
   box-sizing:border-box;overflow:hidden
 }
 .player .player-song{
   width:100%;min-width:0;overflow:hidden;display:grid;
   grid-template-columns:40px minmax(0,1fr) repeat(4,32px);
   gap:5px;align-items:center;justify-content:stretch
 }
 .player .player-song>img{width:40px;height:40px;min-width:0}
 .player .player-song-text{width:auto;min-width:0;max-width:100%;overflow:hidden}
 .player .player-title-viewport{width:100%;max-width:100%;overflow:hidden}
 .player .player-song>.player-fav,
 .player .player-song>#playerAddPlaylist,
 .player .player-song>#playerOffline,
 .player .player-song>#nowPlayingOpen{
   display:flex;align-items:center;justify-content:center;
   width:32px;min-width:32px;height:36px;min-height:36px;
   flex:none;padding:0;margin:0;box-sizing:border-box;position:relative
 }
 .player .player-song>#nowPlayingOpen{min-width:32px!important}
 .player .player-song>.player-fav{font-size:23px}
 .player .player-song>#playerAddPlaylist{font-size:23px}
 .player .player-song>#playerOffline{font-size:23px}
 .player .player-middle{
   grid-column:1;grid-row:2;min-width:0;width:100%;
   display:flex;flex-direction:column;justify-content:center;align-items:center
 }
 .player .player-controls{width:100%;display:flex;justify-content:center;align-items:center;gap:18px}
 .player .player-controls #prevBtn{display:inline-flex}
 .player .player-control{min-width:34px;min-height:36px;align-items:center;justify-content:center}
 .player .player-control.play-main{width:40px;height:40px;min-width:40px;min-height:40px}
 .player .timeline{position:absolute;bottom:0}
 .main-area{padding-bottom:216px!important}
 .toast{bottom:198px}
}
@media(max-width:390px){
 .player .player-song{grid-template-columns:37px minmax(0,1fr) repeat(4,30px);gap:4px}
 .player .player-song>img{width:37px;height:37px}
 .player .player-song>.player-fav,
 .player .player-song>#playerAddPlaylist,
 .player .player-song>#playerOffline,
 .player .player-song>#nowPlayingOpen{width:30px;min-width:30px}
 .player .player-song>#nowPlayingOpen{min-width:30px!important}
 .player .player-controls{gap:12px}
}

/* Read-only badge remains visible even when no menu is open. */
.track-offline-badge{display:inline-grid;place-items:center;width:21px;height:21px;min-width:21px;border-radius:50%;background:#dcb779;color:#152334;font-weight:850;font-size:13px;margin-inline:auto 8px;line-height:1}
