/* MaxNOVA FM test: targeted profile and player layout repair. No API/JS changes. */
body:has(.cosmos-dashboard) .inner-page{width:min(1400px,calc(100% - 32px))!important;max-width:1400px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
body:has(.cosmos-dashboard) .inner-page>.content-panel{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
body:has(.cosmos-dashboard) #memberPanel{display:block;width:100%;min-width:0;box-sizing:border-box}
body:has(.cosmos-dashboard) #memberPanel[hidden]{display:none!important}
body:has(.cosmos-dashboard) .cosmos-dashboard{display:grid!important;grid-template-columns:minmax(180px,220px) minmax(0,1fr)!important;width:100%!important;max-width:100%!important;gap:20px!important;align-items:start}
body:has(.cosmos-dashboard) .cosmos-main{min-width:0!important;width:100%!important;max-width:100%!important}
body:has(.cosmos-dashboard) .cosmos-zodiac{min-width:0!important;overflow:hidden}
body:has(.cosmos-dashboard) .zodiac-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;width:100%!important}
body:has(.cosmos-dashboard) .zodiac-choice{min-width:0!important;width:100%!important;box-sizing:border-box!important;padding:10px 3px!important;overflow:hidden}
body:has(.cosmos-dashboard) .zodiac-symbol{width:clamp(36px,4.3vw,62px)!important;height:clamp(36px,4.3vw,62px)!important;font-size:clamp(24px,2.8vw,38px)!important;box-sizing:border-box!important}
body:has(.cosmos-dashboard) .zodiac-choice small{display:block!important;width:100%!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important;line-height:1.25!important}
body:has(.cosmos-dashboard) .member-details{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
/* Single cosmic background, not a second planet overlay. */
body::after{content:none!important;display:none!important}
/* Chat top player: keep each element in its own flexible region. */
body:has(.chat-main-grid) .chat-top-radio{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px 18px!important;min-width:0!important;height:auto!important}
body:has(.chat-main-grid) .chat-top-radio>*{min-width:0}
body:has(.chat-main-grid) .chat-top-play{flex:0 0 auto!important;white-space:nowrap!important}
body:has(.chat-main-grid) .chat-top-copy{flex:1 1 230px!important;min-width:170px!important}
/* Fixed player: reserve document space, avoid overlapping its own controls. */
body:has(.nova-dock){padding-bottom:90px!important}
.nova-dock{box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;overflow:hidden!important}
.nova-dock-title{min-width:0!important;flex:0 1 210px!important}
.nova-dock-title span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.nova-dock .nova-spectrum{flex:1 1 100px!important;min-width:0!important;overflow:hidden!important}
.nova-dock .nova-controls{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:8px!important}
@media(max-width:1000px){body:has(.cosmos-dashboard) .zodiac-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:750px){body:has(.cosmos-dashboard) .cosmos-dashboard{grid-template-columns:minmax(0,1fr)!important}body:has(.cosmos-dashboard) .member-details{grid-template-columns:repeat(2,minmax(0,1fr))!important}.nova-dock .nova-spectrum{display:none!important}}
@media(max-width:520px){body:has(.cosmos-dashboard) .inner-page{width:calc(100% - 16px)!important}body:has(.cosmos-dashboard) .zodiac-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}body:has(.cosmos-dashboard) .member-details{grid-template-columns:1fr!important}.nova-dock-title{flex:1 1 auto!important}.nova-dock .nova-cover{display:none!important}.nova-dock .nova-volume{width:55px!important}}
