.music-feature-page{max-width:1100px;margin:0 auto;padding:20px 0 70px}.music-feature-page h1{font-size:28px;margin:0 0 14px}.music-feature-page h2{font-size:18px;margin:12px 0}.music-feature-page>p{font-size:14px;line-height:1.8}.feature-panel{padding:22px;margin:20px 0;background:var(--panel);border-radius:8px}.feature-panel label{display:grid;gap:10px;margin:0 0 18px;font-size:13px;line-height:1.6}.feature-panel input,.feature-panel select,.hmg-top-filters select,.collection-sort select{padding:12px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:5px;font:inherit;min-height:44px;min-width:0}.feature-panel form{margin-top:22px}.feature-note{font-size:12px;line-height:1.8;color:var(--muted)}.feature-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.data-estimate{font-size:24px;line-height:1.6}.friends-identity{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.friends-code{font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:.08em}.friends-now{padding:16px 0}.friends-queue{list-style:none;padding:0;margin:0}.friends-queue li,.friends-search-row{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7}.friends-queue li>div{display:grid;gap:4px;min-width:0}.friends-queue button,.friends-search-row button{flex:none;min-height:44px}.friends-queue button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-2px}.friends-search-row span{min-width:0}.feature-panel button{min-height:44px}.hmg-top-filters{display:flex;gap:8px;margin:10px 0}.hmg-top-filters select{max-width:50%;flex:1;font-size:11px;padding:8px}.collection-filter{flex-wrap:wrap}.collection-sort{display:flex;align-items:center;gap:10px;font-size:12px}.collection-sort select{max-width:230px;font-size:12px}.collection-actions{flex-wrap:wrap}.ranking-like{font-size:11px;line-height:1.5;padding:4px}.ranking-count time{flex-basis:100%;text-align:right}.listen-count-source{display:none!important}#view .trow{height:96px;min-height:96px}.nav a[data-room-connected=true]{text-decoration:underline;text-underline-offset:5px}
@media(max-width:1100px){.ranking-count time{text-align:left;flex-basis:auto}.collection-sort{flex-basis:100%}.collection-filter{display:flex!important}.collection-search{flex:1;min-width:150px}.collection-sort select{flex:1;max-width:none}}
@media(max-width:640px){.music-feature-page{padding-top:12px}.music-feature-page h1{font-size:24px}.feature-panel{padding:16px}.feature-actions .btn{flex:1 1 140px}.friends-code{font-size:24px}.friends-queue li,.friends-search-row{gap:10px;font-size:12px}.friends-queue button,.friends-search-row button{padding:10px}.data-estimate{font-size:20px}.collection-actions button{font-size:11px}.hmg-top-filters select{font-size:11px}.hmg-top-now{font-size:11px}.ranking-count{font-size:11px}}
.album-listen-coverage{flex-basis:100%;padding-left:20px;font-size:11px;color:var(--muted)}


/* Compact listening desk; the chart gets its own full-width record shelf. */
.hmg-listening-desk{grid-template-areas:'deck sound' 'deck recent' 'topten topten';grid-template-rows:auto auto auto;row-gap:14px}
.hmg-listening-desk>.hmg-deck{align-self:stretch;justify-content:flex-start;min-height:0;padding:18px 20px}
.hmg-listening-desk:has(.hmg-sound-slot[open]){grid-template-areas:'deck sound' 'recent recent' 'topten topten'}
.hmg-deck-top{margin-bottom:16px}.hmg-deck-body{flex:1;align-content:center}
.hmg .hmg-top-ten{--chart-accent:var(--accent-ink);padding-top:20px;margin-top:2px;border-top:1px solid var(--line)}
.hmg-top-heading h2::before{content:'';display:inline-block;width:3px;height:15px;margin-right:10px;background:var(--chart-accent);vertical-align:-1px}
.hmg-top-filters{max-width:580px;margin:12px 0 8px}.hmg-top-filters select{background:var(--panel);border-color:var(--line);border-radius:8px}
.hmg-top-note{margin-bottom:14px}.hmg-top-rail{gap:18px;padding-top:4px;padding-bottom:14px;scrollbar-color:var(--line-2) transparent}
.hmg-top-card{position:relative;flex-basis:210px;display:flex;flex-direction:column;gap:4px;transition:transform .22s ease}
.hmg-top-play{height:auto;gap:10px;cursor:pointer}.hmg-top-art{aspect-ratio:1.15;border-radius:10px;transition:filter .22s ease,outline-color .22s ease;outline:1px solid transparent;outline-offset:-1px}
.hmg-top-copy{gap:0}.hmg-top-copy>strong{font-size:12px;line-height:1.65}
.hmg-top-rank{left:9px;bottom:9px;min-width:28px;min-height:28px;border-radius:6px;background:#091414e6;color:#f4f7f6;font-size:14px}
.hmg-top-card:nth-child(-n+3) .hmg-top-rank{background:#ecdaa7;color:#302815}
.hmg-top-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:32px}
.hmg-top-artist{font-size:11px;min-width:0;flex:1}
.hmg .hmg-top-actions{position:static;display:flex;gap:2px;flex:none}
.hmg .hmg-top-actions button{width:30px;height:30px;min-width:30px;min-height:30px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:color .18s ease,background-color .18s ease,transform .18s ease}
.hmg .hmg-top-actions button:hover,.hmg .hmg-top-actions button:focus-visible{color:var(--chart-accent);background:var(--accent-soft)}
.hmg .hmg-top-actions button:focus-visible{outline:2px solid var(--chart-accent);outline-offset:1px}
.hmg .hmg-top-actions button:active{transform:scale(.9)}
.hmg .hmg-top-actions button[aria-pressed=true]{color:var(--chart-accent)}
.hmg-top-actions button[aria-pressed=true] svg{fill:currentColor}
.hmg-top-card>.listen-metric{font-size:11px;gap:5px;line-height:1.7;min-height:20px}.hmg-top-card>.listen-metric svg{width:12px;height:12px}
.hmg-top-now{position:absolute;bottom:9px;right:9px;font-size:9px;line-height:1.5;background:#091414ed;color:#e9f6f1;padding:5px 7px;border-radius:5px;display:flex;align-items:center;gap:5px}
.hmg-top-now:empty{display:none}.hmg-top-now:not(:empty)::before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.hmg-top-card.is-playing .hmg-top-art{outline:2px solid var(--chart-accent);outline-offset:-2px}.hmg-top-card.is-playing .hmg-top-now{color:var(--chart-accent)}
.hmg-top-card.is-playing .hmg-top-now::before{animation:hmg-chart-beat 1.25s ease-in-out infinite}
.hmg-top-card.is-playing>.listen-metric{color:var(--chart-accent)}
@keyframes hmg-chart-beat{50%{opacity:.35;transform:scale(.7)}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.hmg-top-card:hover{transform:translateY(-3px)}.hmg-top-card:hover .hmg-top-art{filter:brightness(1.08)}}
@media(max-width:900px){.hmg-listening-desk,.hmg-listening-desk:has(.hmg-sound-slot[open]){grid-template-areas:'deck' 'sound' 'recent' 'topten';grid-template-columns:minmax(0,1fr)}.hmg-listening-desk>.hmg-deck{align-self:start}.hmg-top-card{flex-basis:200px}}
@media(max-width:640px){.hmg .hmg-top-ten{padding-top:16px}.hmg-top-card{flex-basis:184px}.hmg-top-rail{gap:14px}.hmg-top-art{aspect-ratio:1}.hmg-top-filters{gap:6px}.hmg .hmg-top-actions button{width:40px;height:40px;min-width:40px;min-height:40px}.hmg-top-footer{gap:0}.hmg .hmg-top-actions{gap:0}.hmg-top-copy>strong{font-size:11px}.hmg-top-card>.listen-metric{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hmg-top-card,.hmg-top-art,.hmg-top-actions button{transition:none!important}.hmg-top-now::before{animation:none!important}}

/* Rank hierarchy: bold italic figures, separate from the cover artwork. */
.hmg-top-card,.ranking-row{--rank-ink:#9aaab1;--rank-title:var(--ink)}
.hmg-top-card:nth-child(1),.ranking-row[value="1"]{--rank-ink:#ff57b1;--rank-title:#ffa0d1}
.hmg-top-card:nth-child(2),.ranking-row[value="2"]{--rank-ink:#e995c8;--rank-title:#edc0df}
.hmg-top-card:nth-child(3),.ranking-row[value="3"]{--rank-ink:#baa5de;--rank-title:#d7caee}
html[data-theme="light"] .hmg-top-card:nth-child(1),html[data-theme="light"] .ranking-row[value="1"]{--rank-ink:#b91369;--rank-title:#9a165b}
html[data-theme="light"] .hmg-top-card:nth-child(2),html[data-theme="light"] .ranking-row[value="2"]{--rank-ink:#994b80;--rank-title:#823768}
html[data-theme="light"] .hmg-top-card:nth-child(3),html[data-theme="light"] .ranking-row[value="3"]{--rank-ink:#73549e;--rank-title:#65458e}
html[data-theme="light"] :is(.hmg-top-card,.ranking-row){--rank-ink:#65747b}
.hmg-top-caption{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:56px}
.hmg-top-caption .hmg-top-copy{flex:1;min-width:0;gap:3px}
body.music-room-page :is(.hmg-top-rank,.ranking-position){font-family:Arial,Helvetica,sans-serif!important;font-style:italic;font-weight:900;font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.065em;line-height:1;color:var(--rank-ink);opacity:1;text-shadow:none}
.hmg .hmg-top-rank,.hmg .hmg-top-card:nth-child(-n+3) .hmg-top-rank{position:static;display:block;flex:none;min-width:30px;min-height:0;padding:0 4px 0 0;background:none;border:0;border-radius:0;font-size:56px;color:var(--rank-ink)}
.hmg-top-caption .hmg-top-copy>strong{color:var(--rank-title)}
.hmg-top-caption .hmg-top-artist{font-size:11px}
.hmg-top-footer>.listen-metric{flex:1;min-width:0;font-size:10px;line-height:1.6;gap:4px}
.hmg-top-footer>.listen-metric svg{width:12px;height:12px}
.hmg-top-card.is-playing .hmg-top-footer>.listen-metric{color:var(--chart-accent)}
.ranking-row{grid-template-columns:64px minmax(0,1fr) 230px 44px;min-height:86px}
.ranking-position{font-size:44px;text-align:left;padding-left:4px}
.ranking-row:is([value="1"],[value="2"],[value="3"]) .ranking-position{font-size:56px}
.ranking-row:is([value="1"],[value="2"],[value="3"]) .ranking-copy strong{color:var(--rank-title)}
.ranking-position:has(+.ranking-track){overflow:visible}
@media(max-width:1100px){.ranking-row{grid-template-columns:58px minmax(0,1fr) 32px}.ranking-count{padding-left:62px}.ranking-position{grid-row:1 / 3;align-self:center}.ranking-row[value]:nth-child(n+100) .ranking-position{font-size:30px}}
@media(max-width:640px){.hmg-top-caption{gap:9px;min-height:52px}.hmg .hmg-top-rank{font-size:48px}.hmg-top-caption .hmg-top-artist{font-size:10px}.hmg-top-footer{align-items:center}.hmg-top-footer>.listen-metric{font-size:10px}.hmg-top-footer .hmg-top-actions button{width:32px;height:40px;min-width:32px}.ranking-row{grid-template-columns:48px minmax(0,1fr) 32px;column-gap:8px}.ranking-position{font-size:34px;padding-left:0}.ranking-row:is([value="1"],[value="2"],[value="3"]) .ranking-position{font-size:46px}.ranking-count{padding-left:46px}}
.ranking-row .ranking-position[data-digits="3"]{font-size:28px;letter-spacing:-.07em}
