/* Fit discovery controls and labels to their available columns. */
body[data-artist-directory] .artist-directory-tools{display:grid;grid-template-columns:minmax(0,461px) 212px minmax(0,1fr);align-items:end}
body[data-artist-directory] :is(.artist-directory-search,.artist-directory-sort){width:auto;max-width:none;min-width:0}
body[data-artist-directory] .artist-directory-count{justify-self:end;white-space:nowrap}
@media(max-width:1000px){
 body[data-artist-directory] .artist-directory-tools{grid-template-columns:minmax(0,1fr) 212px;gap:14px 24px}
 body[data-artist-directory] .artist-directory-count{grid-column:1/-1;justify-self:start;margin:0}
}
@media(max-width:700px){
 body[data-artist-directory] .artist-directory-tools{grid-template-columns:minmax(0,1fr) max-content;gap:14px 16px}
 body[data-artist-directory] .artist-directory-search{grid-column:1/-1}
 body[data-artist-directory] .artist-directory-count{grid-column:auto;justify-self:end;margin-bottom:12px}
}
@media(max-width:380px){
 body[data-artist-directory] .artist-directory-tools{grid-template-columns:1fr}
 body[data-artist-directory] .artist-directory-count{justify-self:start;margin:0}
}

#community-charts.cc-chart .chart-heading>div:first-child,
#community-charts.cc-chart .leader-caption>div:first-child{min-width:0}
#community-charts.cc-chart :is(.track a,.cc-artist-name,.leader-caption a,.art-note){overflow-wrap:anywhere}
#community-charts.cc-chart .leader-score{flex:none}
#community-charts.cc-chart .list-heading{grid-template-columns:34px 64px minmax(0,1fr) 95px;gap:22px}
#community-charts.cc-chart .list-heading span:nth-child(2){grid-column:3;padding:0}
#community-charts.cc-chart .list-heading span:last-child{grid-column:4}
#community-charts.cc-chart .tie-mark{flex:none}
#community-charts.cc-chart .cc-empty{min-height:0;padding:24px 0}
@media(max-width:1150px){
 #community-charts.cc-chart.chart-canvas{width:calc(100% - 80px)}
 #community-charts.cc-chart .list-heading{grid-template-columns:30px 54px minmax(0,1fr) 68px;gap:14px}
}
@media(max-width:800px){
 #community-charts.cc-chart .chart-editorial{grid-template-columns:1fr;gap:28px}
 #community-charts.cc-chart .leader{display:grid;grid-template-columns:160px minmax(0,1fr);column-gap:24px;align-items:start;max-width:none}
 #community-charts.cc-chart .cc-leader-art{grid-row:1/3}
 #community-charts.cc-chart .leader-caption{align-items:start;flex-wrap:wrap;margin:0;gap:12px}
 #community-charts.cc-chart .art-note{grid-column:2;align-self:start}
}
@media(max-width:600px){
 #community-charts.cc-chart.chart-canvas{width:calc(100% - 32px);margin-block:28px 48px}
 #community-charts.cc-chart .chart-heading{flex-direction:column;gap:14px;margin-bottom:24px}
 #community-charts.cc-chart .chart-heading h2{font-size:24px}
 #community-charts.cc-chart .chart-controls{width:100%;justify-content:space-between;gap:12px}
 #community-charts.cc-chart .chart-controls>span{display:block}
 #community-charts.cc-chart .chart-controls button{flex:none;min-height:44px}
 #community-charts.cc-chart .leader{display:block;max-width:420px}
 #community-charts.cc-chart .leader-caption{margin-top:16px;flex-wrap:nowrap;align-items:start}
 #community-charts.cc-chart .chart-row{grid-template-columns:24px 48px minmax(0,1fr) 52px;gap:10px;padding:14px 0}
 #community-charts.cc-chart .list-heading{grid-template-columns:24px 48px minmax(0,1fr) 52px;gap:10px;letter-spacing:0;font-size:9px}
 #community-charts.cc-chart .cc-thumb,#community-charts.cc-chart .chart-row img{width:48px;height:48px}
 #community-charts.cc-chart .rank{font-size:23px}
 #community-charts.cc-chart .score{font-size:19px}
 #community-charts.cc-chart .cc-rising-row{grid-template-columns:48px minmax(0,1fr) 52px}
}

/* Keep the existing Schedule composition and loading reservations. */
body[data-route="schedule"] .broadcast-guide .legend-item{align-items:flex-start}
body[data-route="schedule"] .broadcast-guide .legend-art{flex:0 0 76px}
body[data-route="schedule"] .broadcast-guide .legend-item>div{min-width:0;overflow-wrap:anywhere}
body[data-route="schedule"] .broadcast-layout :is(.now-segment,.slot-genre,.slot-desc,.tz-label){min-width:0;overflow-wrap:anywhere}
