/* Desktop evolution. Existing mobile presentation stays intact. */
@media(min-width:768px){
 body#xg21{--text:#20252b;--muted:#697078;--border:#e5e7e9;--blue:#e92a26;color:var(--text);background:#fff!important;font-size:14px}
 body#xg21 .app{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
 body#xg21 .app #sidebar{position:relative;inset:auto;width:100%;min-width:0;height:88px;min-height:88px;padding:0 32px;display:flex;flex-direction:row;align-items:center;gap:28px;border:0;border-bottom:1px solid #e5e7e9;background:white!important;box-shadow:none;z-index:60}
 body#xg21 #sidebar #homeBrand{flex:none;width:88px;height:76px;margin:0;padding:0;background-size:100px 100px;background-position:center;}
 body#xg21 #sidebar .smart-search{order:3;margin-left:auto;width:clamp(180px,23vw,370px);flex:none}
 body#xg21 #sidebar .smart-search input{font-size:14px;height:42px;border-radius:24px;background:#f5f6f7;padding-left:18px;border-color:#eceef0}
 body#xg21 #sidebar #nav{display:flex;align-self:stretch;align-items:center;gap:4px;flex:1;min-width:0}
 body#xg21 #nav button{position:relative;white-space:nowrap;height:88px;padding:0 15px;font-size:14px;border-radius:0;color:#62676e!important;background:transparent!important}
 body#xg21 #nav button.active{color:#16191d!important;font-weight:750}
 body#xg21 #nav button.active:after{content:'';position:absolute;bottom:0;left:15px;right:15px;height:3px;background:#ed2825;border-radius:3px 3px 0 0}
 body#xg21 #nav button svg{display:none}
 body#xg21 #sidebar :is(.sidefoot,#xgFanProjectNote,.v21-mobile-close){display:none!important}
 body#xg21 .app .main,body#xg21 .app .main:has(>.tabs.active){width:100%;height:auto;flex:1;min-height:0;padding:0 32px 20px!important;background:#fff!important}
 body#xg21 .app .main>.topbar,body#xg21 .app .main:has(>.tabs.active)>.topbar{height:84px;min-height:84px;padding:22px 0;margin:0!important;border:0;background:#fff!important;align-items:center}
 body#xg21 #pageLabel{font-size:28px;font-weight:800;letter-spacing:-1px;color:#1e242b!important}
 body#xg21 #pageLabel:before{display:none}
 body#xg21 .tabs.active{gap:16px}
 body#xg21 #page-charts .charts-refresh-controls{margin:0 0 12px;gap:10px}
 body#xg21 #page-charts #chartsRefresh{background:#fff;color:#343b44;border-color:#dfe2e5;border-radius:22px;font-size:14px;padding:8px 16px}
 body#xg21 #page-charts :is(input,select){border-radius:10px;min-height:44px;font-size:14px;background:#fafbfc;color:#252c34}
 body#xg21 #page-charts .toolbar{gap:10px}
 body#xg21 #chartCount{font-size:13px;color:#71777d}
 body#xg21 .evo-platforms{display:flex;gap:6px;align-items:center;overflow:auto;flex:none;padding:2px 0 14px;border-bottom:1px solid #eceef0;scrollbar-width:thin}
 body#xg21 .evo-platforms button{display:flex;align-items:center;gap:7px;flex:none;min-height:40px;border:1px solid transparent;background:#f4f5f6;border-radius:22px;padding:8px 14px;color:#515860;font-size:14px;cursor:pointer}
 body#xg21 .evo-platforms button[aria-pressed=true]{background:#23272d;color:white}
 body#xg21 .evo-platforms img{width:19px;height:19px;object-fit:contain}
 body#xg21 #page-charts .tablewrap{border-top:1px solid #e5e7e9;border-radius:0}
 body#xg21 #page-charts table.xg-ranking-table{color:#252c34}
 body#xg21 #page-charts table.xg-ranking-table th{background:#f7f8f9!important;color:#737980!important;font-size:12px;letter-spacing:.02em;font-weight:650;padding-top:15px!important;padding-bottom:15px!important;border-bottom:1px solid #dde1e5!important}
 body#xg21 #page-charts table.xg-ranking-table td{padding-top:17px!important;padding-bottom:17px!important;border-bottom:1px solid #eceef0!important;font-size:14px}
 body#xg21 #page-charts table.xg-ranking-table tr:hover td{background:#f8f9fa}
 body#xg21 #page-charts .xg-ranking-title button{color:#252c34;font-weight:750}
 body#xg21 .xg-rank-number{font-variant-numeric:tabular-nums;white-space:nowrap;word-break:normal}
 body#xg21 .chart-up,body#xg21 .chart-up .xg-rank-movement{color:#008b4c!important}
 body#xg21 .xg-debut{font-size:11px;font-weight:800;letter-spacing:.05em}
 body#xg21 #page-overview .overview-metrics{gap:16px!important}
 body#xg21 #page-overview .overview-metrics>.metric-card{padding:20px!important;border-radius:14px;border:1px solid #e5e7e9;box-shadow:none}
 body#xg21 #page-overview .overview-metrics .v{color:#20252b;font-size:clamp(22px,2.3vw,40px)!important}
 body#xg21 .v21-insight-grid{margin-top:20px;gap:20px}
 body#xg21 .release{border-radius:12px;transition:transform .15s}
 body#xg21 .release:hover{transform:translateY(-3px)}
 body#xg21 .performance-tabs button.active{background:#23272d!important;color:white!important}
 @media(max-width:1100px){body#xg21 .app #sidebar{padding:0 20px;gap:12px}body#xg21 #nav button{padding:0 10px;font-size:13px}body#xg21 #sidebar .smart-search{width:190px}body#xg21 .app .main,body#xg21 .app .main:has(>.tabs.active){padding-left:20px!important;padding-right:20px!important}}
 @media(max-width:900px){body#xg21 #sidebar .smart-search{width:160px}body#xg21 #sidebar #homeBrand{width:64px}body#xg21 #nav button{font-size:12px;padding:0 8px}}
}
.evo-platforms{display:none}
@media(min-width:768px){
 html body#xg21 .app main.main:has(>.tabs.active){padding-left:32px!important;padding-right:32px!important}
 html body#xg21 .main .topbar #pageLabel{display:block!important;font-size:28px!important;line-height:1.2;letter-spacing:-.8px!important;color:#20252b!important}
 html body#xg21 #sidebar #nav button:before{display:none!important}
 html body#xg21 #menuBtn{display:none!important}
 html body#xg21 #page-charts table.xg-ranking-table td{font-size:14px!important;color:#292f36!important}
 html body#xg21 #page-charts table.xg-ranking-table th{font-size:12px!important}
 html body#xg21 .evo-columns{border:1px solid #dfe2e5;border-radius:22px;background:white;color:#424951;padding:8px 15px;min-height:40px;cursor:pointer;font-size:14px}
 html body#xg21 #page-charts .xg-ranking-title button{color:#252c34!important;font-size:14px!important}
 html body#xg21 #page-charts :is(.chart-up,.chart-down,.chart-flat) .xg-rank-number{color:#252c34!important;font-size:16px!important}
 html body#xg21 #page-charts table.xg-ranking-table .xg-rank-movement{font-size:12px!important}
 html body#xg21 #page-charts #chartsUpdated{font-size:12px!important;color:#757b83}
 @media(max-width:1100px){html body#xg21 .app main.main:has(>.tabs.active){padding-left:20px!important;padding-right:20px!important}}
}
.evo-columns{display:none}
@media(min-width:768px){.evo-columns{display:block}}
@media(min-width:768px){
 html body#xg21 :is(#page-performance,#page-releases) :is(input,select){font-size:14px!important;border-color:#e0e3e6;background:#fafbfc;color:#30363e;border-radius:10px}
 html body#xg21 #page-performance :is(th,td){font-size:14px!important;color:#30363e}
 html body#xg21 #page-performance th{background:#f7f8f9!important;color:#737980!important}
 html body#xg21 #page-performance td{padding-top:14px!important;padding-bottom:14px!important}
 html body#xg21 #page-performance [data-performance].active{background:#23272d!important;color:#fff!important}
 html body#xg21 #page-overview .metric-card :is(.k,.note,.metric-updated){font-size:13px!important}
 html body#xg21 .release .tag{background:transparent!important;color:#777e85!important}
 html body#xg21 .release :is(p,.note){font-size:13px!important;color:#777e85!important}
}
/* Song artwork and metadata use the same catalog identity on both screen sizes. */
.evo-song-art{position:relative;display:inline-grid;place-items:center;flex:none;width:40px;height:40px;border-radius:6px;overflow:hidden;background:#f1f2f4;color:#a3a7ae;font-size:12px;font-weight:800;vertical-align:middle}
.evo-song-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.evo-song-copy{display:inline-block;vertical-align:middle;max-width:calc(100% - 50px);margin-left:10px}
.evo-mobile-context,.evo-mobile-chart,.evo-mobile-summary{display:none}
@media(max-width:767px){
 html body#xg21{background:#fff!important;color:#252c34;font-size:14px}
 html body#xg21 .app{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
 html body#xg21 .app #sidebar{position:relative!important;inset:auto!important;height:110px!important;min-height:110px;width:100%!important;min-width:0;display:grid;grid-template-columns:62px minmax(0,1fr);grid-template-rows:58px 52px;padding:0 14px!important;gap:0 12px;border:0;border-bottom:1px solid #e6e8eb;background:#fff!important;box-shadow:none;overflow:visible}
 html body#xg21 #sidebar #homeBrand{width:62px;height:58px!important;min-height:58px;flex:none;margin:0;padding:0;background-size:82px 82px;background-position:center}
 html body#xg21 #sidebar .smart-search{grid-column:2;grid-row:1;align-self:center}
 html body#xg21 #globalSearch{height:38px;min-height:38px;border-radius:22px;font-size:14px;background:#f6f7f8;padding:8px 14px}
 html body#xg21 #sidebar #nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:0;width:100%}
 html body#xg21 #sidebar #nav button{padding:5px 3px;border-radius:0;font-size:12px!important;text-align:center;line-height:16px;color:#70767e!important;background:transparent!important;border-bottom:2px solid transparent!important;height:52px;white-space:normal}
 html body#xg21 #sidebar #nav button.active{border-bottom-color:#ed2825!important;color:#20252b!important;font-weight:750}
 html body#xg21 #sidebar #nav button:before{display:none!important}
 html body#xg21 #sidebar :is(.v21-mobile-close,#xgFanProjectNote,.sidefoot),html body#xg21 #menuBtn{display:none!important}
 html body#xg21 .app .main,html body#xg21 .app .main:has(>.tabs.active){width:100%;height:auto;flex:1;min-height:0;padding:0 14px 12px!important;background:#fff!important}
 html body#xg21 .app .main>.topbar{height:58px;min-height:58px;padding:12px 0!important;margin:0!important;background:white!important;border:0}
 html body#xg21 .main .topbar #pageLabel{display:block!important;font-size:23px!important;letter-spacing:-.6px;color:#242a31!important;font-weight:800}
 html body#xg21 #pageLabel:before{display:none}
 html body#xg21 #page-charts .evo-platforms{display:flex;gap:6px;overflow-x:auto;flex:none;margin:0 0 12px;padding:0 0 8px;scrollbar-width:none}
 html body#xg21 .evo-platforms button{flex:none;border:0;background:#f3f4f5;color:#626a74;padding:9px 14px;border-radius:22px;min-height:38px;font-size:14px}
 html body#xg21 .evo-platforms button[aria-pressed=true]{background:#24292f;color:#fff}
 html body#xg21 #page-charts .charts-refresh-controls{gap:6px;margin-bottom:10px;flex-wrap:wrap}
 html body#xg21 #page-charts #chartsUpdated{font-size:11px;white-space:normal;flex-basis:100%;text-align:left}
 html body#xg21 #page-charts .toolbar{gap:8px}
 html body#xg21 #page-charts :is(input,select){font-size:14px!important;min-height:40px;border-radius:9px;background:#fafbfc;color:#30363e}
 html body#xg21 #page-charts table.xg-ranking-table,html body#xg21 #page-charts table.xg-ranking-table tbody{display:block;width:100%!important}
 html body#xg21 #page-charts table.xg-ranking-table :is(thead,colgroup){display:none!important}
 html body#xg21 #page-charts table.xg-ranking-table tbody tr{display:grid;grid-template-columns:35px minmax(0,1fr);gap:8px;height:auto;min-height:105px;padding:15px 0;border-bottom:1px solid #e9ebee}
 html body#xg21 #page-charts table.xg-ranking-table td{display:none!important;border:0!important;padding:0!important;width:auto!important;overflow:visible}
 html body#xg21 #page-charts table.xg-ranking-table td.xg-ranking-current{display:flex!important;align-items:center;justify-content:center}
 html body#xg21 #page-charts table.xg-ranking-table td.xg-ranking-title{display:flex!important;align-items:center;min-width:0;gap:10px}
 html body#xg21 #page-charts .xg-ranking-title .xg-ranking-chart{display:none!important}
 html body#xg21 #page-charts .evo-song-art{width:44px;height:44px;border-radius:7px}
 html body#xg21 #page-charts .evo-song-copy{display:block;max-width:none;min-width:0;margin:0;flex:1}
 html body#xg21 #page-charts .xg-ranking-song :is(button,strong){font-size:15px!important;color:#252b33!important;font-weight:750;line-height:20px!important;white-space:normal;text-align:left}
 html body#xg21 #page-charts .evo-mobile-context{display:block;font-size:12px;color:#606872;margin-top:3px;line-height:17px}
 html body#xg21 #page-charts .evo-mobile-chart{display:block;font-size:12px;color:#767d85;line-height:17px}
 html body#xg21 #page-charts .evo-mobile-summary{display:block;font-size:12px;color:#767d85;line-height:17px;margin-top:3px}
 html body#xg21 #page-charts .xg-rank-number{font-size:18px!important;color:#272d35}
 html body#xg21 #page-charts .xg-rank-movement{font-size:11px!important}
 html body#xg21 .chart-up .xg-rank-movement{color:#008b4c!important}
 html body#xg21 .release{border-radius:10px}
 html body#xg21 #page-overview .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body#xg21 #page-overview .metric-card{padding:12px!important}
 html body#xg21 #page-overview .metric-card .v{font-size:20px!important;overflow-wrap:anywhere}
 html body#xg21 #page-overview .metric-card .k{font-size:12px!important}
}
@media(max-width:767px){
 html body#xg21 #page-charts table.xg-ranking-table .xg-ranking-title .evo-song-copy .xg-ranking-song button.v21-row-open{font-size:15px!important;font-weight:750!important;line-height:20px!important;color:#252b33!important}
 html body#xg21 .app .main:has(>#page-charts.active){padding-left:14px!important;padding-right:14px!important}
}
@media(max-width:767px){
 html body#xg21 .app .main:has(>.tabs.active)>.topbar{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
}
/* Desktop R2: remove duplicate section headings and redundant controls. */
@media(min-width:768px){
 html body#xg21 .app .main:has(>:is(#page-overview,#page-releases,#page-charts,#page-performance).active)>.topbar{display:none!important}
 html body#xg21 .app .main:has(>:is(#page-overview,#page-releases,#page-charts,#page-performance).active){padding-top:18px!important}
 html body#xg21 #page-charts #v21ChartScope,
 html body#xg21 #page-charts .evo-platforms{display:none!important}
}
/* Desktop R3: compact refresh action and control row. */
@media(min-width:768px){
 html body#xg21 #page-charts #chartsRefresh{min-height:28px!important;height:28px!important;padding:3px 10px!important;font-size:12px!important;line-height:20px!important;border-radius:15px!important}
 html body#xg21 #page-charts .charts-refresh-controls{min-height:28px!important;margin-bottom:6px!important;gap:8px!important}
}
/* R5: compact song/release profiles; preserve the actual music title. */
html body#xg21 .app .main:has(>#page-profile.active)>.topbar{display:none!important}
html body#xg21 .app .main:has(>#page-profile.active){padding-top:12px!important}
html body#xg21 #page-profile.active{gap:8px!important}
html body#xg21 #page-profile .profile-actions{margin:0!important;min-height:28px;gap:8px}
html body#xg21 #page-profile .profile-actions button{min-height:28px;padding:3px 9px;font-size:12px}
html body#xg21 #page-profile #profileType{display:none}
html body#xg21 #page-profile .profile-identity{gap:12px;padding:0!important;margin:0!important}
html body#xg21 #page-profile .profile-artwork{width:60px!important;height:60px!important;border-radius:8px}
html body#xg21 #page-profile .profile-identity h2{font-size:25px!important;line-height:1.15;margin:2px 0!important;letter-spacing:-.5px}
html body#xg21 #page-profile .profile-identity p{font-size:12px;margin:0}
html body#xg21 #page-profile .profile-kind{font-size:10px}
html body#xg21 #page-profile .v22-profile-tabs{margin:0 0 6px!important;min-height:34px!important}
html body#xg21 #page-profile .v22-profile-tabs button{min-height:34px;padding:6px 0}
/* R6: mobile removes the same duplicate labels and platform shortcuts as desktop. */
@media(max-width:767px){
 html body#xg21 .app .main:has(>:is(#page-overview,#page-releases,#page-charts,#page-performance).active)>.topbar{display:none!important}
 html body#xg21 .app .main:has(>:is(#page-overview,#page-releases,#page-charts,#page-performance).active){padding-top:12px!important}
 html body#xg21 #page-charts .evo-platforms{display:none!important}
}
