:root{--bg:#121212;--bg2:#181818;--bg3:#282828;--green:#1db954;--muted:#b3b3b3;--subtle:#6a6a6a}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:#fff;font-family:"DM Sans",system-ui,sans-serif}
a{color:inherit;text-decoration:none}
.app{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
aside{background:#000;padding:24px 16px;display:flex;flex-direction:column;gap:20px;position:sticky;top:0;height:100vh;overflow:auto}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px}
.logo svg{width:28px;height:28px}
nav a{display:block;color:var(--muted);font-weight:700;padding:8px 12px;border-radius:6px;font-size:14px}
nav a:hover,nav a.active{color:#fff;background:var(--bg3)}
.hero{background:linear-gradient(180deg,#2d6a4f 0%,#121212 100%);padding:40px 40px 24px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.85}
h1{font-size:clamp(28px,5vw,56px);letter-spacing:-.04em;margin:8px 0 18px}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
select{background:#000;color:#fff;border:1px solid #333;border-radius:999px;padding:10px 16px;font:inherit;font-weight:700}
.note{color:var(--muted);font-size:13px}
.toggle{display:flex;align-items:center;gap:8px;background:#000;border:1px solid #333;border-radius:999px;padding:8px 14px;font-weight:700;cursor:pointer;color:#fff}
.toggle input{accent-color:var(--green)}
.navbtn{width:42px;height:42px;border:1px solid #333;border-radius:999px;background:#000;color:#fff;font-size:18px;font-weight:800;cursor:pointer}
.navbtn:hover{border-color:var(--green);color:var(--green)}
.chart.compare .pairs{display:flex;align-items:flex-end;gap:4px;height:150px}
.chart.compare .pair{flex:1;min-width:0;display:flex;align-items:flex-end;justify-content:center;gap:2px;position:relative;height:150px}
.chart.compare .pair.stacked{align-items:flex-end;}
.chart.compare .pair.stacked .bar-wrap{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;width:100%;height:100%;gap:0;}
.chart.compare .pair.stacked .playbar{border-radius:0;}
.chart.compare .pair.stacked .skipbar{border-radius:2px 2px 0 0;}
.chart.compare .pair.stacked .playbar, .chart.compare .pair.stacked .skipbar{width:12px;min-height:0;display:block;}
.chart.compare .pair span{position:absolute;bottom:-16px;left:0;right:0;text-align:center;color:var(--subtle);font-size:8px}
.playbar,.skipbar{display:inline-block;width:8px;border-radius:2px 2px 0 0;min-height:2px}
.playbar{background:var(--green)}
.skipbar{background:#e91429}
.legend{color:var(--muted);font-size:12px;margin-top:18px}
.legend i{width:10px;height:10px;border-radius:2px;vertical-align:middle}
.list{padding:8px 24px 40px}
.head,.row{display:grid;grid-template-columns:52px 56px 1fr 90px;gap:12px;align-items:center}
.list.cols-2 .head,.list.cols-2 .row.extra-cols{grid-template-columns:52px 56px 1fr 90px 90px}
.list.cols-3 .head,.list.cols-3 .row.extra-cols{grid-template-columns:52px 56px 1fr 110px 110px 80px}
.col{text-align:center;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.head .sortable{cursor:pointer;user-select:none}
.head .sortable:hover{color:#fff}
.head{color:var(--subtle);font-size:12px;font-weight:700;text-transform:uppercase;padding:8px 8px 10px;border-bottom:1px solid #2a2a2a;text-align:center}
.head .label-title{text-align:left}
.row{padding:8px;border-radius:6px}
.row.click{cursor:pointer}
.row:hover{background:var(--bg3)}
.rank,.plays{text-align:center}
.rank{color:var(--muted)}
.cover{width:48px;height:48px;border-radius:4px;background:#333;object-fit:cover;margin:0 auto}
.meta small{display:block;color:var(--muted);font-size:13px}
.meta small .artist-link{color:var(--muted);text-decoration:none}
.meta small .artist-link:hover{color:var(--green);text-decoration:underline}
.plays{color:var(--muted);font-size:13px}
.play{width:36px;height:36px;border:0;border-radius:50%;background:var(--green);color:#000;font-weight:800;cursor:pointer}
.play.on{background:#fff}
.status{padding:32px 40px;color:var(--muted)}
audio{display:none}
#embedPlayer{position:fixed;right:16px;bottom:16px;width:min(360px,calc(100vw - 32px));height:80px;border:0;border-radius:10px;z-index:40;display:none;box-shadow:0 10px 30px #000a;background:#000}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.72);display:none;align-items:center;justify-content:center;z-index:20;padding:16px}
.modal.on{display:flex}
.card{width:min(820px,100%);max-height:90vh;overflow:auto;background:#181818;border-radius:12px;padding:22px}
.card h2{font-size:22px;margin-bottom:4px}
.card .sub{color:var(--muted);margin-bottom:16px}
.chart{margin:4px 0 8px}
.bars{display:flex;align-items:flex-end;gap:2px;height:150px}
.bars i{flex:1;background:var(--green);border-radius:2px 2px 0 0;min-height:1px;display:block}
.klabels{display:flex;gap:2px;margin-top:6px}
.klabels span{flex:1;position:relative;min-width:0;text-align:center;color:var(--subtle);font-size:8px;line-height:1;white-space:nowrap}
.empty{color:var(--muted);padding:12px 0}
.variants{margin-top:16px}
.variants h3{font-size:14px;margin-bottom:8px}
.variants li{color:var(--muted);font-size:13px;padding:4px 0;border-bottom:1px solid #2a2a2a;list-style:none}
.close{margin-top:16px;background:#fff;color:#000;border:0;border-radius:999px;padding:8px 16px;font-weight:800;cursor:pointer}
.month-wrap{padding:8px 24px 32px;display:none}
.month-wrap.on{display:block}
.year-wrap.hide{display:none}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.chip{background:#000;border:1px solid #333;color:#fff;border-radius:999px;padding:6px 12px;font-weight:700;cursor:pointer}
.chip.on{background:var(--green);color:#000;border-color:var(--green)}
.cta{display:inline-block;background:var(--green);color:#000;font-weight:800;padding:10px 18px;border-radius:999px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:0 40px 24px}
.stat{background:var(--bg2);border-radius:8px;padding:16px 18px}
.stat b{display:block;font-size:28px}
.stat span{color:var(--muted);font-size:13px}
.highlights{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:8px 40px 32px}
.hl{background:var(--bg2);border-radius:10px;padding:18px}
.hl h2{font-size:16px;margin-bottom:12px}
.hl a,.hl .item{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #2a2a2a;color:#fff;font-size:14px}
.hl .item span,.hl a span{color:var(--muted);white-space:nowrap}
.hl .more{display:inline-block;margin-top:12px;color:var(--green);font-weight:700;border:0}
section{padding:28px 40px 0}
.group{margin:0 40px 28px;background:var(--bg2);border-radius:10px;padding:18px}
.group h2{font-size:18px;margin-bottom:12px}
footer{padding:40px;color:var(--subtle);font-size:12px}
.heat{padding:8px 24px 40px;overflow:auto}
.heat table{border-collapse:collapse;min-width:640px;width:100%}
.heat th,.heat td{padding:6px 7px;text-align:center;font-size:12px;border:1px solid #1c1c1c}
.heat th{color:var(--subtle);font-weight:700}
.heat td.lab{text-align:left;color:var(--muted);white-space:nowrap}
.links{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:900px){
.app{grid-template-columns:1fr}
aside{position:relative;height:auto}
.head,.row{grid-template-columns:40px 48px 1fr}
.plays{display:none}
.stats{grid-template-columns:1fr 1fr;padding:0 20px 20px}
.highlights{grid-template-columns:1fr;padding:8px 20px 24px}
.list.cols-2 .head,.list.cols-2 .row.extra-cols,.list.cols-3 .head,.list.cols-3 .row.extra-cols{grid-template-columns:40px 48px 1fr}
.list.cols-2 .col,.list.cols-3 .col{display:none}
.hero,section,footer,.group,.list,.month-wrap,.heat{margin-left:0;padding-left:20px;padding-right:20px}
}
.list.months-on .head,
.list.months-on .row.with-months{grid-template-columns:44px 48px minmax(160px,1.3fr) repeat(12,minmax(36px,1fr)) 64px}
.list.years-on .head,
.list.years-on .row.with-years{grid-template-columns:44px 48px minmax(160px,1.3fr) repeat(15,minmax(28px,1fr)) 64px}
.mcell{text-align:center;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.head .mhead{text-align:center;font-size:10px}
.year-wrap{overflow:auto}
.row.with-months .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.row.with-months .meta small { display: block; overflow: hidden; text-overflow: ellipsis; }
.row.with-years .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.row.with-years .meta small { display: block; overflow: hidden; text-overflow: ellipsis; }
@media(max-width:1100px){
.list.months-on .mcell,.list.months-on .mhead,.list.years-on .mcell,.list.years-on .mhead{display:none}
.list.months-on .head,.list.months-on .row.with-months,.list.years-on .head,.list.years-on .row.with-years{grid-template-columns:52px 56px 1fr 90px}
}

.cover-wrap { position: relative; width: 40px; height: 40px; border-radius: 4px; overflow: hidden; background: #282828; flex-shrink: 0; }
.row .cover-wrap { width: 40px; height: 40px; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cover-wrap .play { position: absolute; inset: 0; background: rgba(0,0,0,0.5); border: none; color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.2s; cursor: pointer; padding: 0; margin: 0; width: 100%; height: 100%; border-radius: 4px; }
.cover-wrap:hover .play, .cover-wrap .play.on { opacity: 1; }
.hl.tile .cover-wrap { width: 64px; height: 64px; margin-bottom: 8px; }
#embedPlayer { position: fixed; bottom: 20px; right: 20px; width: 300px; height: 80px; z-index: 1000; border: none; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.5); background: var(--bg2); }
.search{flex:1;min-width:220px;background:#000;color:#fff;border:1px solid #333;border-radius:999px;padding:6px 16px;font:inherit}
.search:focus{outline:0;border-color:var(--green)}
.profile{display:flex;gap:20px;align-items:center;padding:0 40px 8px}
.profile img{width:120px;height:120px;border-radius:8px;object-fit:cover;background:#333}
.profile .who h2{font-size:40px;letter-spacing:-.04em;margin:0 0 6px}
.grid2{display:grid;grid-template-columns:1.4fr .8fr;gap:16px;padding:8px 40px 40px}
a.chip{display:inline-flex;align-items:center}
@media(max-width:900px){
.profile{padding:0 20px;flex-direction:column;align-items:flex-start}
.grid2{grid-template-columns:1fr;padding:8px 20px 32px}
}

.news-banner { margin: 0 40px 16px; background: #282828; border-radius: 8px; padding: 12px 16px; display:flex; align-items:center; gap: 12px; cursor: pointer; user-select: none; }
.news-banner .news-icon { font-size: 20px; }
.news-banner .news-content { flex: 1; min-width:0; overflow:hidden; }
.news-banner .news-content h3 { font-size: 11px; text-transform:uppercase; color: var(--green); margin:0 0 2px; letter-spacing:0.5px; }
.news-banner .news-content p { font-size: 14px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; animation: fadein 0.5s; }
@keyframes fadein { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Chart tooltips */
.bar-val-tooltip {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  font-style: normal;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}
.bars i:hover .bar-val-tooltip,
.pair:hover .bar-val-tooltip {
  opacity: 1;
}
