/* Approved charcoal listening room. Shared by every public page. */
:root{--black:#202526;--black-2:#111516;--panel:#1c2122;--panel-2:#24292a;--panel-3:#2b3031;--white:#f5f6f6;--muted:#bec3c5;--muted-2:#a6adaf;--line:rgba(255,255,255,.12);--cyan:#f5f6f6;--teal:#a65064;--pink:#a65064;--lime:#e1e4e5;--frame:min(1480px,calc(100% - 64px))}
html{background:#202526;scroll-padding-top:20px}
body,body.home-page{background:radial-gradient(ellipse at 25% 12%,#292f30 0,#202526 65%);color:var(--white);font-family:Arial,Helvetica,sans-serif;padding-bottom:110px;min-height:100dvh}
*{scrollbar-width:thin;scrollbar-color:#596061 transparent}
:focus-visible{outline:2px solid #fff;outline-offset:3px}
.site-header,.home-page .site-header{width:var(--frame);height:74px;margin:6px auto 0;padding:0 22px;gap:16px;background:rgba(5,9,10,.88);border:0;border-radius:9px;box-shadow:none}
.brand{width:238px;height:70px;flex:0 0 238px;overflow:hidden}
.brand img{width:220px;height:76px;max-width:none;object-fit:cover;object-position:center}
.site-header nav{gap:30px;justify-content:center;flex:1;margin-left:28px}
.site-header nav a{font-size:16px;font-weight:400;padding:22px 0;position:relative;color:#dce0e1}
.site-header nav a.active::after{content:'';position:absolute;bottom:9px;left:0;right:0;height:2px;background:white;border-radius:2px}
.site-header nav a:hover{color:white}
.account-control{margin-left:auto}
.account-toggle,.support-link{height:44px;min-width:112px;padding:0 20px;border:1px solid rgba(255,255,255,.08);border-radius:8px;font-size:16px;font-weight:500;text-transform:none;letter-spacing:0;box-shadow:none}
.account-toggle{background:#a65064}.account-toggle:hover{background:#b35b70}
.support-link{margin:0;background:#4c7257}.support-link:hover{background:#5c8367;border-color:transparent}
.account-toggle.has-avatar{min-width:44px}.account-menu{background:#141819;border-color:var(--line)}
.home-page .listen-screen{height:auto;min-height:0;margin:0;padding:0 0 16px;background:none;overflow:visible}
.listen-titlebar{width:var(--frame);min-height:0;margin:16px auto 14px;display:block}
.listen-titlebar h1{font-size:36px;line-height:1.2;font-weight:700;letter-spacing:-.025em}
.home-page .player-workspace{width:var(--frame);grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) minmax(0,1.02fr);gap:14px;min-height:0;height:auto;align-items:stretch}
.music-column{gap:14px;min-height:0}
.player-panel,.compact-now-panel,.song-page-hero,.song-rating-panel,.song-detail-panel,.song-comments-panel,.app-showcase{background:rgba(0,0,0,.15);border:1px solid rgba(255,255,255,.12);border-radius:9px;box-shadow:none}
.player-panel{padding:14px}.compact-now-panel{padding:16px;display:grid;grid-template-columns:32% minmax(0,1fr);column-gap:22px;align-content:start;flex:none}
.compact-now-panel .now-status{grid-column:1/-1;min-height:0;padding:0;margin-bottom:15px;border:0}
.compact-now-panel .now-status strong,.panel-heading h2{font:600 14px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.compact-now-content{display:contents}
.compact-now-content>img{grid-column:1;grid-row:2/5;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border:0;border-radius:5px;box-shadow:none;align-self:center}
.compact-now-panel .now-copy{grid-column:2;grid-row:2;align-self:end;min-width:0;margin:0}
.compact-now-panel .now-copy #now-title{font-size:clamp(20px,1.65vw,27px);line-height:1.2;letter-spacing:0;margin:0 0 7px;font-weight:700;overflow-wrap:anywhere}
.compact-now-panel .now-copy #now-artist{font-size:19px;line-height:1.35;margin:0 0 8px;font-weight:400;color:#fff}
.compact-now-panel .now-copy p{font-size:14px;line-height:1.45;margin:0;color:var(--muted)}
.compact-now-panel .track-progress{grid-column:2;grid-row:3;width:100%;height:8px;margin:18px 0 0;background:#565c5d;align-self:end}
.now-times{grid-column:2;grid-row:4;display:flex;justify-content:space-between;margin-top:7px;font-size:12px;line-height:1.2;color:#e1e4e5;align-self:start;font-variant-numeric:tabular-nums}
.now-rating-slot{grid-column:1/-1;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.now-rating-slot:empty{display:none}
.now-rating-display{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 88px 52px;gap:18px;align-items:center;min-height:76px;margin:0;padding:0;border:0;background:none}
.now-rating-bars{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:clamp(6px,1vw,15px);height:58px;margin-bottom:16px;align-items:stretch}
.rating-meter{border:0;border-radius:5px;overflow:visible;background:rgba(255,255,255,.055);height:100%;position:relative}
.rating-meter i{border-radius:5px}.rating-meter::after{content:attr(data-score);position:absolute;top:calc(100% + 6px);width:100%;text-align:center;font-size:12px;color:#eee}
.rating-meter.rating-1 i{background:#ed3b52}.rating-meter.rating-2 i{background:#f27537}.rating-meter.rating-3 i{background:#f49d35}.rating-meter.rating-4 i{background:#f6bd31}.rating-meter.rating-5 i{background:#edce33}.rating-meter.rating-6 i{background:#cdd941}.rating-meter.rating-7 i{background:#acd949}.rating-meter.rating-8 i{background:#77cf49}.rating-meter.rating-9 i{background:#56d145}.rating-meter.rating-10 i{background:#37cd4c}
.now-rating-stats{text-align:center}.now-rating-stats strong{display:block;font-size:32px;font-weight:600;white-space:nowrap}.now-rating-stats span{display:block;margin-top:5px;font-size:14px;color:var(--muted)}
.now-rating-display>button{width:52px;height:52px;padding:3px;color:white}
.track-rating svg,.now-rating-display>button svg,.song-page-heart-button svg{fill:none;stroke:currentColor;stroke-width:1.3}
.track-rating button{color:#fff;filter:none}.track-rating.own-rating svg,.now-rating-display.own-rating svg,.song-page-heart-button.own-rating svg{fill:var(--pink);stroke:var(--pink)}
.panel-heading{min-height:0;padding:0 2px 14px;border-bottom:1px solid var(--line);align-items:center;gap:8px}
.panel-heading a,.panel-heading small{font-size:14px;color:var(--muted)}
.panel-heading h2{margin:0}.queue-panel .panel-heading{border:0;padding-bottom:10px}
.rail-list{gap:6px;padding-top:8px;scrollbar-gutter:auto;min-height:0}
.mini-track,.queue-panel .mini-track{grid-template-columns:64px minmax(0,1fr) 42px;min-height:88px;flex:0 0 auto;padding:7px;gap:10px;border:1px solid rgba(255,255,255,.075);background:rgba(0,0,0,.12);border-radius:7px}
.mini-track:nth-child(even){background:rgba(0,0,0,.08)}
.mini-track:hover,.history-row:hover,.request-song:hover{background:rgba(0,0,0,.32);border-color:rgba(255,255,255,.18);box-shadow:none}
.mini-track img,.queue-panel .mini-track img{width:64px;height:64px;border-radius:4px}
.mini-track strong{font-size:15px;line-height:1.25;font-weight:600}.mini-track span{font-size:13px;line-height:1.3;color:var(--muted)}
.mini-track time,.mini-track .track-eta{display:none}
.track-rating{gap:0}.track-rating button{width:36px;height:34px;padding:4px}.track-rating small{font-size:12px;font-weight:400;margin-top:3px}
.requested-pill{letter-spacing:0;text-transform:none;font-weight:400;padding:4px 6px;border-radius:4px;background:#8f4859}
.music-column .playlist-panel{flex:1 1 auto;min-height:0}
#recent-mini{height:344px;max-height:344px;overflow-y:auto;flex:none}
#recent-mini .mini-track{min-height:62px;grid-template-columns:48px minmax(0,1fr) 76px;padding:4px;gap:10px}
#recent-mini .mini-track img{width:48px;height:48px}
#recent-mini .track-rating{flex-direction:row;gap:6px}
.queue-panel{display:flex;min-height:0}.queue-panel .rail-list{overflow-y:auto;max-height:700px}
.chat-panel{display:flex;grid-column:auto;min-height:0}
.chat-messages{padding-top:8px;min-height:160px;max-height:640px;overflow-y:auto}
.chat-message{position:relative;margin:0;padding:18px 0 18px 58px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;min-height:92px}
.chat-message-head{gap:6px;flex-wrap:wrap}.chat-message-avatar{position:absolute;left:0;top:18px;width:46px;height:46px;flex-basis:46px}
.chat-message-head strong{font-size:14px;max-width:100%;font-weight:600}.chat-message-head time{font-size:12px;color:var(--muted);margin-left:auto}
.chat-message p{font-size:14px;line-height:1.5;margin:7px 0 0;color:#e0e3e4}
.chat-flag{font-size:12px}.chat-access{padding:12px;background:none;border-color:var(--line)}.chat-access p{font-size:14px;line-height:1.5}
.chat-compose-row textarea{font-size:14px;border-radius:7px;background:rgba(0,0,0,.1);min-height:46px}
.chat-compose-row button{min-width:44px;height:44px;background:none;border:0;font-size:21px;color:white}
.chat-member{font-size:12px}.chat-feedback:empty{display:none}
.bottom-player{height:104px;padding:12px max(32px,calc((100vw - 1480px)/2));grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);gap:28px;border-top:1px solid var(--line);background:#090d0e;box-shadow:none}
.dock-track>img{width:72px;height:72px;border:0;border-radius:4px}.dock-track{gap:16px}
.dock-meta strong{font-size:17px;font-weight:500}.dock-meta small{font-size:14px;color:#e1e4e5}
.bottom-player .dock-play{width:62px;height:62px;background:white;color:#0a0d0e;box-shadow:none}
.dock-tools{width:100%;justify-content:space-between;padding-left:30px;gap:20px}.dock-rating{order:-1;width:auto;min-height:44px}
.dock-rating .track-rating{flex-direction:row;gap:14px}.dock-rating .track-rating button{width:38px;height:38px}.dock-rating .track-rating small{font-size:16px}
.dock-volume{min-width:0}.dock-volume input{width:150px}
.history-page-main,.request-page-main,.register-page-main,.account-page-main,.song-page-main,.apps-page-main{background:none;margin-top:0;padding-top:0;min-height:calc(100dvh - 190px)}
.history-section,.request-section,.register-section,.account-page-section,.song-page-section,.apps-section{width:var(--frame);padding:28px 0;margin:0 auto;background:none;min-height:0}
.section-heading{margin-bottom:24px}.section-heading h1,.apps-heading h1{font-size:36px;letter-spacing:-.025em}
.eyebrow,.song-detail-heading>span,.song-comments-heading span,.song-rating-panel-heading span{color:var(--muted)}
.history-row,.history-row:nth-child(even),.request-song,.request-song:nth-child(even){background:rgba(0,0,0,.12);border-color:var(--line)}
.history-row:nth-child(even),.request-song:nth-child(even){background:rgba(0,0,0,.07)}
.history-row:hover,.request-song:hover{background:rgba(0,0,0,.32)}
.history-columns,.request-browser,.request-controls,.request-results-toolbar,.request-auth-gate,.register-card,.account-card,.profile-card,.song-comment-access,.song-stat-grid>div,.song-airplay-dates>div{background:rgba(0,0,0,.14);border-color:var(--line);box-shadow:none}
.song-page-hero{padding:18px}.song-page-content{gap:16px}.song-page-column{gap:16px}.song-detail-panel,.song-comments-panel,.song-rating-panel{padding:18px}
.song-page-intro .eyebrow,.song-detail-heading>span,.song-comments-heading>div>span,.song-rating-panel-heading>div>span{display:none}
.song-rating-bar{border-color:var(--line);border-radius:4px}.song-rating-bar i{border-radius:3px}
.song-page-heart-button{color:white}.song-page-title-row h1{font-size:26px}.song-page-title-row h2{font-size:18px}
input,select,textarea{accent-color:white}
.auth-modal,.song-dialog,.inline-rating-popover{background:#181d1e;border-color:var(--line)}
.app-showcase{min-height:520px}.phone-screen{background:linear-gradient(#292f30,#131819)}
@media(min-width:1181px) and (min-height:850px){
 body.home-page{height:100dvh;overflow-y:hidden;padding-bottom:104px}
 .home-page .player-workspace{height:calc(100dvh - 254px)}
 .home-page .listen-screen{height:auto;overflow:visible}
 .home-page .music-column .playlist-panel{flex:1 1 0}
 .home-page .music-column .playlist-panel .rail-list{height:344px;max-height:344px;flex:0 1 344px}
 .home-page .queue-panel .rail-list{max-height:none;min-height:0;flex:1}
 .home-page .chat-messages{max-height:none;min-height:0;flex:1}
}
@media(min-width:1181px) and (max-height:849px){
 body.home-page{height:auto;overflow-y:auto}
 .home-page .music-column .playlist-panel .rail-list{height:344px;min-height:0;flex:none}
 .home-page .player-workspace{height:auto}.home-page .chat-messages{max-height:580px}
}
@media(max-width:1180px){
 :root{--frame:calc(100% - 40px)}
 .site-header{padding:0 14px;gap:10px}.brand{width:190px;flex-basis:190px}.brand img{width:190px;height:66px}
 .site-header nav{gap:20px;margin-left:0}.account-toggle,.support-link{min-width:80px;padding:0 12px}
 .home-page .player-workspace{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
 .chat-panel{grid-column:1/-1}.chat-messages{max-height:360px}
 .song-page-main{height:auto;overflow:visible}.song-page-content{height:auto;max-height:none}
 .song-page-column{overflow:visible}.song-comments-panel{min-height:320px}
}
@media(max-width:920px){
 :root{--frame:calc(100% - 24px)}
 body,body.home-page{height:auto;overflow-y:auto;padding-bottom:88px}
 .site-header,.home-page .site-header{height:76px;padding:0 12px;gap:8px}
 .brand{flex:1;min-width:0;max-width:220px;height:66px}.brand img{width:190px;max-width:100%;height:66px}
 .menu-button{margin-left:auto}.account-control{margin-left:0}
 .site-header nav{margin:0;gap:0;padding:10px 16px;background:#101516;border-color:var(--line);width:100%;flex:none}
 .site-header nav a{padding:14px 8px;font-size:16px}.site-header nav a.active::after{display:none}.site-header nav a.active{background:#252a2b;border-radius:6px}
 .home-page .player-workspace{grid-template-columns:1fr}.queue-panel,.chat-panel{grid-column:1}
 .compact-now-panel{grid-template-columns:28% minmax(0,1fr)}
 .listen-titlebar{margin-top:20px}.listen-titlebar h1{font-size:30px}
 .home-page .music-column .playlist-panel .rail-list{height:344px;max-height:344px;flex:none}
 .queue-panel .rail-list{max-height:470px}.chat-messages{max-height:400px}
 .bottom-player{height:80px;padding:10px 16px;grid-template-columns:minmax(0,1fr) 46px 40px;gap:12px}
 .bottom-player .dock-play{width:46px;height:46px}.dock-track>img{width:50px;height:50px}.dock-track{gap:10px}
 .dock-meta strong{font-size:14px}.dock-meta small{font-size:12px}
 .dock-tools{padding:0;gap:0;justify-content:center}.bottom-player .dock-volume{display:none}.dock-rating .track-rating{flex-direction:column;gap:0}.dock-rating .track-rating small{font-size:12px}
 .song-page-section{padding-top:24px}.song-page-content{grid-template-columns:1fr;height:auto;max-height:none}.song-page-hero{grid-template-columns:120px minmax(0,1fr)}.song-page-hero>img{width:120px;height:120px}
 .song-comments-panel{overflow:visible;height:auto}.song-comment-list{max-height:450px}.song-airplay-dates{grid-template-columns:1fr}
}
@media(max-width:560px){
 .site-header,.home-page .site-header{gap:4px;padding:0 8px;height:70px}
 .brand{height:60px}.brand img{width:150px;height:54px}
 .menu-button{width:36px;flex-basis:36px}.account-toggle,.support-link{min-width:58px;padding:0 8px;height:38px;font-size:13px}.account-toggle.has-avatar{min-width:38px;width:38px;height:38px}
 .listen-titlebar h1{font-size:27px}.listen-titlebar{margin:18px auto 14px}
 .compact-now-panel{padding:14px;grid-template-columns:94px minmax(0,1fr);gap:0 14px}
 .compact-now-panel .now-copy #now-title{font-size:19px}.compact-now-panel .now-copy #now-artist{font-size:15px}.compact-now-panel .now-copy p{font-size:12px}
 .compact-now-content>img{width:94px;height:94px;grid-row:2}
 .compact-now-panel .track-progress{grid-column:1/-1;grid-row:3;margin-top:16px}.now-times{grid-column:1/-1;grid-row:4}
 .now-rating-slot{margin-top:16px;padding-top:16px}.now-rating-display{grid-template-columns:minmax(0,1fr) 54px 38px;gap:10px;min-height:62px}
 .now-rating-bars{height:42px;gap:7px}.now-rating-stats strong{font-size:25px}.now-rating-stats span{font-size:12px}.now-rating-display>button{width:38px;height:38px}
 .player-panel{padding:12px}.panel-heading h2{font-size:13px}.panel-heading a{font-size:12px}
 #recent-mini .mini-track{grid-template-columns:46px minmax(0,1fr) 58px;gap:7px}#recent-mini .track-rating{gap:1px}.mini-track strong{font-size:14px}.mini-track span{font-size:12px}
 .chat-message-head time{font-size:12px}.chat-message{padding-left:50px}.chat-message-avatar{width:40px;height:40px}
 .section-heading h1,.apps-heading h1{font-size:30px}.section-heading{gap:16px}.song-page-hero{grid-template-columns:90px minmax(0,1fr);gap:14px}.song-page-hero>img{width:90px;height:90px}.song-page-title-row h1{font-size:22px}
 .history-row{grid-template-columns:62px 44px minmax(0,1fr) 38px;gap:8px;padding:10px 6px}.history-row>img{width:44px;height:44px}.history-row .spotify-link{display:none}
 .account-menu{max-width:calc(100vw - 30px)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Shared page headings and short-window fallbacks override older page rules. */
.history-page-main .section-heading h1,.request-page-main .section-heading h1,.register-heading h1,.account-page-heading h1{font-size:36px;text-shadow:none;line-height:1.2}
body.song-page{height:auto;overflow-y:auto}
.song-page-main{height:auto;overflow:visible}.song-page-section{height:auto;overflow:visible}.song-page-content{overflow:visible}.song-page-column{min-height:0}
@media(min-width:1181px) and (min-height:850px){
 body.song-page{height:100dvh;overflow-y:hidden}
 .song-page-main{height:calc(100dvh - 200px);min-height:0;overflow:hidden}
 .song-page-section{height:100%;padding:18px 0 0;overflow:hidden;display:flex;flex-direction:column}
 .song-page-content{min-height:0;flex:1;overflow:hidden}.song-page-column{overflow-y:auto}
 .song-comments-panel{min-height:0;overflow:hidden}.song-comment-list{flex:1;min-height:0;overflow-y:auto}
}
@media(max-width:560px){
 .history-page-main .section-heading h1,.request-page-main .section-heading h1,.register-heading h1,.account-page-heading h1{font-size:30px}
}
.now-rating-bars{width:100%}
.now-rating-stats span{font-weight:400}
.history-page-main .history-section,.request-page-main .request-section{padding-top:28px;min-height:0}
.song-detail-heading,.song-comments-heading{border-bottom:1px solid var(--line)}
.song-detail-grid dt,.song-airplay-dates dt{font-size:12px;letter-spacing:.025em;font-weight:500}
.song-detail-grid dd,.song-airplay-dates dd{font-size:14px}
.auth-dialog,.settings-card{background:#191e1f;border-color:var(--line);box-shadow:none}

#station-status{position:fixed;left:50%;bottom:116px;transform:translateX(-50%);max-width:calc(100% - 24px);z-index:75;background:#252b2d;border:1px solid #565e61;border-radius:6px;padding:8px 12px;margin:0;font-size:13px;color:#eee;text-align:center}
@media(max-width:920px){#station-status{bottom:86px}}

/* Consistent charcoal surfaces for the header, panels and player. */
:root{--surface-color:#222829}
.site-header,.home-page .site-header,.bottom-player,.player-panel,.compact-now-panel,.song-page-hero,.song-rating-panel,.song-detail-panel,.song-comments-panel,.app-showcase{background:var(--surface-color)}
/* Compact persistent player. */
body,body.home-page{padding-bottom:78px}
.bottom-player{height:78px;padding-top:8px;padding-bottom:8px}
.dock-track>img{width:54px;height:54px}
.bottom-player .dock-play{width:48px;height:48px}
.dock-meta strong{font-size:15px}.dock-meta small{font-size:13px;margin-top:4px}
#station-status{bottom:84px}
@media(max-width:920px){body,body.home-page{padding-bottom:66px}.bottom-player{height:66px;padding-top:7px;padding-bottom:7px}.dock-track>img{width:44px;height:44px}.bottom-player .dock-play{width:42px;height:42px}#station-status{bottom:72px}}

/* Mobile history rows: keep the full track title and artist readable. */
@media(max-width:560px){
 .history-row{
   grid-template-columns:56px minmax(0,1fr) 45px;
   gap:9px;
   padding:10px;
   min-height:0;
   align-items:center;
 }
 .history-row time{display:none}
 .history-row>img{width:56px;height:56px}
 .history-album,.history-row .spotify-link{display:none}
 .history-main{min-width:0}
 .history-main strong,.history-main span{
   white-space:normal;
   overflow:visible;
   text-overflow:clip;
   overflow-wrap:anywhere;
 }
 .history-main strong{line-height:1.15}
 .history-main span{margin-top:4px;line-height:1.2}
 .track-rating{min-width:45px !important}
}

/* Final mobile history refinements: show played time without crowding the row. */
@media(max-width:560px){
 .history-row{
   grid-template-columns:40px 54px minmax(0,1fr) 40px;
   gap:8px;
   padding:8px;
 }
 .history-row time{
   display:flex;
   min-width:0;
   align-self:center;
   justify-content:center;
   text-align:center;
   color:var(--muted);
   font-size:.66rem;
   line-height:1.15;
   font-variant-numeric:tabular-nums;
   white-space:normal;
 }
 .history-time-full{display:none}
 .history-time-mobile{display:block}
}
@media(min-width:561px){
 .history-time-mobile{display:none}
}
