/* Flat dark-grey catalog look: charcoal page, grey nav and cards, light search bar. */
:root {
  --page: #272b30; --nav: #3a3f44; --card: #3a3f44; --cardimg: #4b5056; --cell: #32373c;
  --text: #aaaaaa; --bright: #e9ecef; --line: #2b3035; --blue: #2b8ef3;
  --up: #62c462; --down: #ee5f5b; --warn: #f89406; --purple: #b08cff;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

/* top navigation: name on the left, icon-over-label buttons */
.topnav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; background: var(--nav); padding: 0 12px; height: 56px; }
.name { color: var(--bright); font-weight: 700; font-size: 20px; padding-right: 18px; white-space: nowrap; }
.navitems { display: flex; flex: 1; justify-content: space-around; max-width: 760px; margin-left: auto; }
.navitems a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 10px; color: #c8c8c8; font-size: 12px; }
.navitems a:hover, .navitems a.on { color: #fff; background: #4b5056; }
.navitems svg { width: 26px; height: 26px; }

main { max-width: 1110px; margin: 0 auto; padding: 24px 12px 40px; }

/* filter buttons row */
.filterbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 12px; }
.drop { position: relative; }
.drop > button { width: 100%; background: var(--nav); color: var(--bright); border: 0; padding: 10px 6px; font: inherit; cursor: pointer; }
.drop > button:hover, .drop.open > button { background: #4b5056; }
.menu { display: none; position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: var(--nav); box-shadow: 0 6px 16px #0008; }
.menu.wide { left: auto; width: 240px; padding: 10px; }
.drop.open .menu { display: block; }
.menu a { display: block; padding: 7px 12px; color: var(--bright); cursor: pointer; }
.menu a:hover, .menu a.on { background: #4b5056; }
.menu label { display: block; color: var(--bright); font-size: 13px; margin-bottom: 8px; }
.menu input { width: 100%; margin-top: 3px; background: #eee; color: #52575c; border: 0; padding: 6px 8px; font: inherit; }

.searchbar { display: block; width: 100%; background: var(--nav); color: var(--bright); border: 0; padding: 12px 14px; font-size: 16px; margin-bottom: 14px; }
.searchbar::placeholder { color: #8a8f94; }
.searchbar.small { max-width: 320px; }

/* pagination */
.pager { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.pager a { min-width: 30px; text-align: center; padding: 3px 8px; background: var(--nav); color: var(--bright); cursor: pointer; font-size: 14px; }
.pager a.on { background: #eee; color: #272b30; font-weight: 700; }
.pager span { padding: 3px 4px; }

/* item cards */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.card { background: var(--card); cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.card:hover { outline: 1px solid #6c7379; }
.ctitle { color: var(--bright); font-weight: 600; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cimg { position: relative; background: var(--cardimg); height: 120px; display: grid; place-items: center; }
.cimg img { height: 100px; width: 100px; object-fit: cover; }
.cimg .flags { position: absolute; left: 4px; bottom: 3px; display: flex; gap: 3px; }
.flag { font-size: 10px; font-weight: 700; padding: 0 4px; line-height: 15px; }
.flag.r { background: var(--warn); color: #111; } .flag.b { background: var(--down); color: #111; } .flag.e { background: #ccc; color: #111; }
.crows { padding: 4px 6px 6px; font-size: 13px; }
.crow { display: flex; justify-content: space-between; line-height: 1.55; }
.crow span:first-child { color: #8a8f94; }
.crow span:last-child { color: var(--bright); font-variant-numeric: tabular-nums; }
.up { color: var(--up) !important; } .down { color: var(--down) !important; } .warn { color: var(--warn) !important; }
.d-Amazing { color: var(--purple) !important; } .d-High { color: var(--up) !important; } .d-Normal { color: var(--bright) !important; } .d-Low { color: var(--warn) !important; } .d-Terrible { color: var(--down) !important; }
.empty { grid-column: 1 / -1; padding: 30px; text-align: center; background: var(--nav); }

/* headings / panels / tables */
.headbar { background: var(--nav); color: var(--bright); font-size: 18px; font-weight: 600; padding: 10px 14px; margin-bottom: 12px; }
.panel { background: var(--nav); padding: 14px; }
.panel p { margin: 0 0 12px; }
.addform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.addform .searchbar { background: #eee; color: #272b30; margin: 0; flex: 1 1 360px; }
button { background: var(--blue); color: #fff; border: 0; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; }
button.grey { background: #4b5056; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.board { background: var(--nav); }
.bhead { color: var(--bright); font-weight: 600; padding: 8px 12px; background: #4b5056; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 7px 12px; border-top: 1px solid var(--line); font-size: 14px; text-align: left; }
th { color: #8a8f94; font-weight: 600; background: #4b5056; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; color: var(--bright); }
tr.click { cursor: pointer; } tr.click:hover td { background: #4b5056; }
table.list { background: var(--nav); }
.rank { width: 40px; color: #8a8f94; }

/* song page */
.songtop { display: grid; grid-template-columns: 280px 1fr; gap: 12px; }
.songimg { background: var(--cardimg); display: grid; place-items: center; padding: 20px; }
.songimg img { width: 220px; height: 220px; object-fit: cover; }
.songinfo { background: var(--nav); }
.songinfo h1 { margin: 0; padding: 10px 14px; color: var(--bright); font-size: 22px; background: #4b5056; }
.songinfo .by { padding: 6px 14px 0; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 10px; }
.stat { background: var(--nav); padding: 8px 14px; }
.stat small { display: block; color: #8a8f94; font-size: 12px; }
.stat b { color: var(--bright); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chartbox { background: var(--nav); margin-top: 12px; padding: 10px 14px; }
.chartbox svg { width: 100%; height: 240px; display: block; }
.facts { background: var(--nav); margin-top: 12px; }
.facts td:first-child { color: #8a8f94; width: 180px; }
.facts td:last-child { color: var(--bright); user-select: all; }
.actions { display: flex; gap: 10px; margin-top: 12px; }

footer { text-align: center; font-size: 13px; padding: 20px; color: #7a7f84; }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } .filterbar { grid-template-columns: repeat(3, 1fr); } .songtop { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } .filterbar { grid-template-columns: repeat(2, 1fr); } .navitems span { display: none; } .statgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- additions: search bars, players, profiles, changes, deals ---------- */
.lightbar { display: block; width: 100%; background: #eee; color: #52575c; border: 0; padding: 12px 14px; font-size: 16px; }
.lightbar.small { max-width: 300px; }
.searchrow { display: flex; margin-bottom: 14px; }
.searchrow .lightbar { flex: 1; }
.searchrow .clear { background: #4b5056; color: #fff; padding: 0 16px; }
.cantfind { text-align: center; margin: 26px 0; }
.cantfind div { margin-bottom: 8px; }
.pill { background: #4b5056; color: #fff; border: 0; border-radius: 999px; padding: 8px 20px; font-weight: 700; cursor: pointer; font: inherit; }
.pill:hover { background: #5b6167; }
.pill.blue { background: var(--blue); }

/* hero banner (leaderboard etc.) */
.hero { background: linear-gradient(135deg, #1f4e79, #1b3a57 60%, #142a3f); padding: 54px 40px; margin: -24px -12px 18px; color: #fff; position: relative; overflow: hidden; }
.hero h1 { margin: 0 0 6px; font-size: 32px; }
.hero p { margin: 0; color: #d8e3ee; }

/* artist ("player") cards */
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pcard { background: var(--card); display: flex; flex-direction: column; cursor: pointer; min-width: 0; }
.pcard:hover { outline: 1px solid #6c7379; }
.pimg { background: var(--cardimg); height: 140px; display: grid; place-items: center; }
.pimg img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.rankno { text-align: right; color: var(--bright); font-weight: 700; padding: 2px 6px 0; }
.val { color: #5fb3ff !important; } .rap { color: #62c462 !important; }
.verified { color: #5fb3ff; font-size: 13px; margin-left: 4px; }

/* profile (artist page) */
.profile { position: relative; background: var(--nav); }
.pbanner { height: 150px; background: #1b3a57 center/cover no-repeat; }
.phead { display: flex; gap: 18px; padding: 0 18px 16px; align-items: flex-end; margin-top: -60px; }
.phead img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid var(--nav); background: var(--cardimg); }
.phead h1 { margin: 0 0 4px; color: var(--bright); font-size: 28px; }
.pstats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); }
.pstats .stat b { font-size: 17px; }
.section { margin-top: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.toolbar .lightbar { flex: 1 1 260px; padding: 8px 12px; font-size: 15px; }
.seg { display: inline-flex; }
.seg button { background: #4b5056; color: #ddd; padding: 8px 14px; font-weight: 600; }
.seg button.on { background: #eee; color: #272b30; }

/* change log cards */
.cgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ccard { background: var(--card); cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.ccard:hover { outline: 1px solid #6c7379; }
.ctype { color: #5fb3ff; font-size: 13px; font-weight: 600; padding: 2px 6px 0; }
.ctext { color: var(--bright); font-size: 13px; padding: 0 6px; }
.cwhen { color: #62c462; font-size: 13px; padding: 2px 6px 0; }
.cstamp { color: #8a8f94; font-size: 12px; padding: 0 6px 6px; }
.arrow-up::before { content: "▲ "; color: #62c462; } .arrow-down::before { content: "▼ "; color: #ee5f5b; }

/* deals-style horizontal cards */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dcard { background: var(--card); cursor: pointer; min-width: 0; }
.dcard:hover { outline: 1px solid #6c7379; }
.dcard .ctitle.hot { background: #3c8f3c; color: #fff; }
.dbody2 { display: flex; gap: 8px; padding: 6px; }
.dbody2 img { width: 74px; height: 74px; object-fit: cover; background: var(--cardimg); flex: none; }
.dbody2 .crows { flex: 1; padding: 0; }
.controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.controls label { display: block; font-size: 13px; margin-bottom: 4px; }
.controls .seg { width: 100%; } .controls .seg button { flex: 1; }
.legend { display: inline-block; background: #4b5056; color: #ddd; font-size: 12px; padding: 4px 8px; margin-bottom: 10px; }

/* item table view */
table.items { background: var(--nav); }
table.items th { cursor: pointer; white-space: nowrap; }
table.items td { white-space: nowrap; }
table.items td.name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; color: var(--bright); }
table.items img { width: 28px; height: 28px; object-fit: cover; vertical-align: middle; margin-right: 8px; }

/* dialog */
dialog { width: min(620px, 94vw); background: var(--nav); color: var(--text); border: 0; padding: 0; }
dialog::backdrop { background: #000a; }
.dhead { display: flex; justify-content: space-between; align-items: center; background: #4b5056; color: var(--bright); font-weight: 700; padding: 10px 14px; }
.x { background: none; padding: 0 6px; font-size: 22px; line-height: 1; }
.dbody { padding: 14px; }
.dbody p { margin: 0 0 10px; }
.result { display: flex; align-items: center; gap: 12px; padding: 8px; border-top: 1px solid var(--line); }
.result img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--cardimg); }
.result .grow { flex: 1; color: var(--bright); }
.status { color: #8a8f94; font-size: 13px; }

.subhead { color: var(--bright); font-weight: 600; margin: 18px 0 8px; font-size: 16px; }
footer { border-top: 1px solid #3a3f44; margin-top: 30px; text-align: left; padding: 22px 24px; }
footer .fname { color: #5fb3ff; font-weight: 800; font-size: 20px; }
footer .fsmall { font-size: 12px; margin-top: 6px; }

@media (max-width: 960px) { .pgrid, .cgrid { grid-template-columns: repeat(3, 1fr); } .dgrid { grid-template-columns: repeat(2, 1fr); } .pstats { grid-template-columns: repeat(3, 1fr); } .controls { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pgrid, .cgrid { grid-template-columns: repeat(2, 1fr); } .dgrid { grid-template-columns: 1fr; } .navitems a { padding: 6px 4px; } .hero { padding: 34px 20px; } }

/* availability country lists */
.facts details { display: inline; }
.facts summary { display: inline; cursor: pointer; color: #5fb3ff; }
.facts details[open] summary { display: block; margin-bottom: 4px; }

/* pager: fixed-size buttons, greyed ends, no layout jumps */
.pager { min-height: 27px; align-items: center; user-select: none; }
.pager a { min-width: 34px; height: 27px; line-height: 21px; }
.pager a.off { opacity: .35; cursor: default; }
.pager a.on { cursor: default; }
.pager a:not(.on):not(.off):hover { background: #4b5056; }

/* ---------- song page, item-page style ---------- */
.ititle { background: var(--nav); padding: 12px 16px; margin-bottom: 12px; }
.ititle h1 { margin: 0; color: var(--bright); font-size: 26px; line-height: 1.2; }
.ititle .by { margin-top: 2px; }
.ititle .by a { color: #5fb3ff; }
.ititle .tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag2 { font-size: 12px; font-weight: 700; padding: 2px 8px; background: #4b5056; color: var(--bright); }
.tag2.warn { background: #f89406; color: #111; } .tag2.down { background: #ee5f5b; color: #111; }
.ilayout { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: start; }
.ileft { display: flex; flex-direction: column; gap: 12px; }
.ithumb { background: var(--cardimg); display: grid; place-items: center; padding: 22px; }
.ithumb img { width: 256px; height: 256px; object-fit: cover; }
.ibtns { display: grid; gap: 8px; }
.ibtns a, .ibtns button { display: block; text-align: center; width: 100%; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { background: var(--nav); padding: 10px 12px; min-width: 0; }
.tile small { display: block; color: #8a8f94; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tile b { display: block; color: var(--bright); font-size: 19px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.wide { grid-column: span 2; } .tile.full { grid-column: 1 / -1; }
.tile b.sm { font-size: 15px; white-space: normal; }
.tile details summary { cursor: pointer; color: #5fb3ff; font-size: 15px; font-weight: 600; }
.tile details div { font-size: 13px; color: var(--text); margin-top: 4px; }
.panelhead { display: flex; justify-content: space-between; align-items: center; background: #4b5056; color: var(--bright); font-weight: 600; padding: 8px 12px; }
.range { display: flex; gap: 4px; }
.range button { background: var(--nav); color: #ddd; padding: 3px 10px; font-size: 13px; }
.range button.on { background: #eee; color: #272b30; }
.ipanel { background: var(--nav); margin-top: 12px; }
.ipanel .chartwrap { padding: 10px 12px; }
.ipanel table td, .ipanel table th { font-size: 14px; }
@media (max-width: 960px) { .ilayout { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ================= song page: item-page layout ================= */
.ipage { max-width: 885px; margin: 70px auto 0; }
.ihead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ihead h1 { margin: 0; font-size: 22px; font-weight: 500; color: var(--bright); }
.ihead h1 .alt { color: #8a8f94; font-weight: 400; }
.ihead h1 a.ext { color: var(--bright); margin-left: 6px; font-size: 18px; }
.ihead .kind { color: #62c462; font-size: 16px; }
.ihead .kind a { color: #62c462; }
.bluebtns { display: flex; gap: 6px; flex-wrap: wrap; }
.bluebtn { background: #1a7fe0; color: #fff; border-radius: 999px; padding: 4px 13px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border: 0; }
.bluebtn:hover { background: #2b8ef3; }
.bluebtn svg { width: 13px; height: 13px; }
.ibox { display: grid; grid-template-columns: 260px 1fr; background: #3a3f44; }
.ibox .pic { padding: 12px; }
.ibox .pic div { background: #32373c; height: 200px; display: grid; place-items: center; position: relative; }
.ibox .pic img { width: 180px; height: 180px; object-fit: cover; }
.ibox .pic .badge { position: absolute; left: 3px; bottom: 3px; font-size: 9px; font-weight: 800; padding: 0 4px; background: #62c462; color: #111; }
.ibox .pic .badge.r { background: #f89406; } .ibox .pic .badge.b { background: #ee5f5b; }
.itabs { display: grid; grid-template-columns: 1fr 1fr; }
.itabs button { background: none; color: #aaa; border: 0; border-bottom: 1px solid transparent; padding: 8px; font-size: 13px; font-weight: 400; }
.itabs button.on { color: var(--bright); border-bottom: 2px solid #e9ecef; background: #2f3439; }
.ilist { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 20px 10px 64px; gap: 4px 30px; }
.irow { display: flex; gap: 12px; align-items: center; min-height: 47px; min-width: 0; }
.irow svg { width: 22px; height: 22px; flex: none; color: #8a8f94; }
.irow small { display: block; color: #8a8f94; font-size: 12px; line-height: 1.2; }
.irow b { display: block; color: var(--bright); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irow b a { color: #5fb3ff; }
.irow details summary { color: #5fb3ff; cursor: pointer; font-size: 14px; font-weight: 600; }
.irow details div { font-size: 12px; white-space: normal; color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.kpi { background: #3a3f44; border-top: 2px solid #c9a227; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.kpi svg { width: 30px; height: 30px; color: #8a8f94; flex: none; }
.kpi small { display: block; color: #aaa; font-size: 12px; }
.kpi b { color: var(--bright); font-size: 14px; font-weight: 700; }
.sectitle { color: var(--bright); font-size: 19px; font-weight: 500; margin: 20px 0 8px; }
.ctabs { display: grid; grid-template-columns: repeat(2, 1fr); background: #32373c; }
.ctabs button { background: none; border: 0; color: #aaa; padding: 8px; font-size: 13px; font-weight: 400; border-bottom: 2px solid transparent; }
.ctabs button.on { color: var(--bright); background: #3a3f44; border-bottom-color: #e9ecef; }
.cpanel { background: #3a3f44; padding: 10px 10px 6px; }
.cbar { display: flex; gap: 4px; margin-bottom: 6px; }
.cbar button { background: #4b5056; color: #ddd; font-size: 11px; padding: 2px 8px; font-weight: 400; }
.cbar button.on { background: #000; color: #fff; }
.cpanel svg { width: 100%; height: 230px; display: block; }
.legend2 { text-align: center; font-size: 11px; color: #ddd; padding: 6px 0 2px; }
.legend2 span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2b8ef3; margin-right: 5px; vertical-align: middle; }
.ogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.obox { background: #3a3f44; text-align: center; padding: 8px 6px; border-top: 2px solid #c9a227; }
.obox.blue { border-top-color: #1a7fe0; }
.obox small { display: block; color: #5fb3ff; font-size: 12px; }
.obox b { color: var(--bright); font-size: 14px; }
.dtable { background: #3a3f44; }
.dtools { display: flex; justify-content: space-between; align-items: center; padding: 8px; font-size: 13px; }
.dtools select, .dtools input { background: #fff; color: #333; border: 0; padding: 4px 6px; font: inherit; }
.dtable table th { background: #32373c; color: #ccc; font-size: 13px; }
.dtable table td { font-size: 13px; }
@media (max-width: 860px) { .ipage { margin-top: 24px; } .ibox { grid-template-columns: 1fr; } .ilist { padding-left: 20px; grid-template-columns: 1fr; } .kpis, .ogrid { grid-template-columns: repeat(2, 1fr); } }

/* nav sits in the same centred column as the page content */
@media (min-width: 960px) {
  .topnav { padding: 0 max(12px, calc((100% - 885px) / 2)); }
  .navitems { max-width: none; margin-left: 24px; }
}

/* ================= navigation: same structure and sizes as the reference ================= */
.topnav { position: sticky; top: 0; z-index: 20; height: 66px; background: #3a3f44; padding: 0 8px; display: block; }
.navrow { max-width: 1200px; height: 66px; margin: 0 auto; display: flex; align-items: center; justify-content: space-evenly; }
.topnav .name { color: #e9ecef; font-weight: 700; font-size: 19px; padding: 0 8px; white-space: nowrap; }
.nitem { position: relative; height: 66px; }
.nitem > a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 66px; padding: 7px 8px; color: #fff; }
.nitem > a svg { width: 34px; height: 34px; color: #fff; }
.nitem > a span { font-size: 12px; line-height: 18px; color: #aaa; white-space: nowrap; }
.nitem > a:hover span, .nitem > a.on span { color: #fff; }
.nitem > a.on { background: transparent; }
.nmenu { display: none; position: absolute; top: 66px; left: 50%; transform: translateX(-50%); min-width: 180px; background: #3a3f44; box-shadow: 0 8px 18px #0009; padding: 4px 0; }
.nitem:hover .nmenu { display: block; }
.nmenu a { display: block; padding: 7px 16px; color: #e9ecef; font-size: 14px; white-space: nowrap; }
.nmenu a:hover { background: #4b5056; }
/* old nav classes no longer used */
.navitems { display: none; }

/* page column like the reference: 1138px max, 16px sides, space under the nav */
main { max-width: 1138px; padding: 36px 16px 40px; }
@media (max-width: 960px) {
  .nitem > a { width: 56px; padding: 7px 2px; }
  .nitem > a svg { width: 26px; height: 26px; }
  .topnav .name { font-size: 16px; }
}
@media (max-width: 640px) {
  .nitem > a span { display: none; }
  .nitem > a { width: 40px; }
  .nmenu { display: none !important; }
}

/* blurred cover fill behind covers (cards, change cards, song page) */
.cimg, .ibox .pic > div { position: relative; overflow: hidden; isolation: isolate; }
.cimg[style*="--cover"]::before, .ibox .pic > div[style*="--cover"]::before {
  content: ""; position: absolute; inset: -20px; z-index: -1;
  background: var(--cover) center / cover no-repeat;
  filter: blur(16px) brightness(.55) saturate(1.2);
}
.cimg img, .ibox .pic img { position: relative; box-shadow: 0 4px 14px #0008; }
.cimg .flags, .ibox .pic .badge { z-index: 1; }

/* "On Spotify" results under the artist search */
.spotlist { background: #3a3f44; }
.spotrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid #2b3035; }
.spotrow:first-child { border-top: 0; }
.spotrow img, .spotrow .noimg { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #4b5056; flex: none; }
.spotrow .grow { flex: 1; color: #e9ecef; font-weight: 600; }
.spotrow small { display: block; color: #8a8f94; font-weight: 400; font-size: 12px; }
.spotrow button { padding: 8px 16px; }

/* demand "Not Assigned", hyped / projected flags */
.d-NotAssigned { color: #8a8f94 !important; }
.flag.h { background: #62c462; color: #111; } .flag.p { background: #8a8f94; color: #111; }
.ibox .pic .badge.h { background: #62c462; } .ibox .pic .badge.p { background: #8a8f94; }

/* compare page */
.cmpbar { display: flex; gap: 8px; position: relative; margin-bottom: 12px; }
.cmpbar .lightbar { flex: 1; }
.sugg { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: #3a3f44; box-shadow: 0 8px 18px #0009; max-height: 320px; overflow: auto; }
.sugg div { display: flex; align-items: center; gap: 10px; padding: 7px 12px; cursor: pointer; color: #e9ecef; }
.sugg div:hover { background: #4b5056; }
.sugg img { width: 32px; height: 32px; object-fit: cover; }
.sugg small { color: #8a8f94; margin-left: auto; }
table.cmp { background: #3a3f44; table-layout: fixed; }
table.cmp th { text-align: center; vertical-align: top; }
table.cmp th img { width: 72px; height: 72px; object-fit: cover; display: block; margin: 4px auto; }
table.cmp th button { background: none; color: #ee5f5b; padding: 0; font-size: 12px; }
table.cmp td { text-align: center; font-variant-numeric: tabular-nums; color: #e9ecef; }
table.cmp td:first-child { text-align: left; color: #8a8f94; width: 150px; }
table.cmp td small { display: block; font-size: 11px; }
.prose { background: #3a3f44; padding: 16px 20px; line-height: 1.6; }
.prose h2 { color: #e9ecef; font-size: 17px; margin: 14px 0 4px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 6px; }

/* logo in the nav (where the reference has its mark) and the footer */
.topnav .name { display: flex; align-items: center; padding: 0 10px; }
.topnav .name img { width: 34px; height: 34px; display: block; }
footer .fname { display: flex; align-items: center; gap: 8px; }
footer .fname img { width: 22px; height: 22px; }
a.spotrow { text-decoration: none; color: inherit; } a.spotrow:hover { background: #42474d; }
/* More breathing room: page numbers apart from the search bar and the cards, cards apart from each other. */
.pager { gap: 8px; margin: 18px 0 20px; }
.pager:empty { display: none; }
.pager[id$="2"] { margin: 24px 0 8px; }
.grid, .pgrid, .cgrid { gap: 16px; }
.searchrow { margin-bottom: 4px; }

/* ---------------------------------------------------------------- home page (Rolimons front-page layout) */
/* Blurred banner behind the top of the page, fading into the page colour. */
.homebg { position: absolute; left: 0; right: 0; top: 56px; height: 750px; z-index: -1; overflow: hidden; pointer-events: none; }
.homebg::before { content: ""; position: absolute; inset: -60px; background: var(--bg, none) center / cover; filter: blur(40px) brightness(.8) saturate(1.3); }
.homebg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(39, 43, 48, 0) 0%, #272b30); }
.hero { background: linear-gradient(90deg, #005091, #002b48); border-radius: 9px; padding: 34px 38px 38px; margin: 20px 0 8px; }
.herotop { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero h1 { margin: 0; color: #eee; font-size: 33px; font-weight: 500; line-height: 1; }
.herostats { display: flex; gap: 18px; color: #86bade; font-size: 14px; }
.herostats b { color: #fff; font-weight: 600; }
.hero p { color: #86bade; font-size: 16.5px; font-weight: 300; margin: 12px 0 8px; }
.herobtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pillb { background: #0084dd; color: #f7f7f7; border: 0; border-radius: 800px; padding: 5px 16px; font: 500 14px/22px inherit; font-family: inherit; cursor: pointer; text-decoration: none; }
.pillb:hover { background: #1a95e8; }
.hsec { margin-top: 24px; }
.hhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 4px 8px; }
.hhead h2 { margin: 0; color: #eee; font-size: 28px; font-weight: 500; line-height: 34px; }
.viewall { background: #0084dd; color: #f7f7f7; border-radius: 800px; padding: 5px 16px; width: 132px; text-align: center; font-size: 14px; font-weight: 500; text-decoration: none; box-sizing: border-box; }
.viewall:hover { background: #1a95e8; }
/* Catalog shortcuts */
.shortcuts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 8px; }
.shortcut { display: flex; align-items: center; gap: 8px; background: #004f8f; color: #dcdfe2; border-radius: 10px; padding: 13px; font-size: 14.25px; font-weight: 500; text-decoration: none; min-height: 69px; box-sizing: border-box; transition: transform .12s, background .12s; }
.shortcut:hover { background: #0a5c9f; transform: translateY(-2px); }
.shortcut .sic { width: 41px; height: 41px; flex: none; display: grid; place-items: center; background: #ffffff1a; border-radius: 8px; }
.shortcut svg { width: 24px; height: 24px; color: #fff; }
/* Sliders of small cards */
.slider { position: relative; }
.strack { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 3px 2px 6px; }
.strack::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 148px; scroll-snap-align: start; background: #30363c; border-radius: 7px; box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .25); text-decoration: none; overflow: hidden; transition: transform .12s; }
.mcard:hover { transform: translateY(-3px); }
.mtitle { margin: 3px 6.75px; color: #dcdfe2; font-size: 15px; font-weight: 500; line-height: 22.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mimg { height: 142px; display: grid; place-items: center; background-size: cover; background-position: center; position: relative; }
.mimg img { width: 110px; height: 110px; object-fit: cover; box-shadow: 0 2px 8px #0008; position: relative; }
.mimg[data-round] img { border-radius: 50%; }
.mrows { margin: 2.25px 6.75px 5px; }
.mrow { display: flex; justify-content: space-between; font-size: 13.35px; line-height: 20px; color: #7a8288; }
.mrow b { font-weight: 400; color: #89b7d4; margin-left: 4.7px; white-space: nowrap; }
.mrow b.val { color: #4fa3e0; } .mrow b.up { color: #4caf50; } .mrow b.down { color: #e05252; }
.sarrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #0084dd; color: #fff; padding: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px #0009; }
.sarrow.prev { left: -10px; } .sarrow.next { right: -10px; }
.sarrow:hover { background: #1a95e8; }
/* Feature cards */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fcard { display: flex; flex-direction: column; background: #32383e; box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, .3); text-align: center; }
.fbody { flex: 1; padding: 20px; color: #aaa; font-size: 15px; line-height: 22.5px; }
.fbody h3 { margin: 0 0 12px; color: #aaa; font-size: 18.75px; font-weight: 500; }
.ffoot { background: #515960; padding: 12px 20px; }
.fbtn { display: inline-block; width: 150px; background: #0084dd; color: #f7f7f7; border-radius: 2px; padding: 8px 16px; font-size: 14px; font-weight: 500; text-decoration: none; box-sizing: border-box; }
.fbtn:hover { background: #1a95e8; }
@media (max-width: 900px) { .shortcuts { grid-template-columns: repeat(3, 1fr); } .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shortcuts { grid-template-columns: repeat(2, 1fr); } .features { grid-template-columns: 1fr; } .hero { padding: 24px; } .sarrow { display: none; } }
.sarrow[hidden] { display: none; }
.scannote { background: #004f8f; color: #dcdfe2; border-radius: 7px; padding: 10px 14px; margin-bottom: 12px; } .scannote a { color: #fff; }
/* A dropdown with an active filter is highlighted, so a hidden filter is never a surprise. */
.drop > button.set { background: #004f8f; color: #fff; }
/* Song page: versions of the same recording (main, relinked, other releases). */
table.vers { width: 100%; border-collapse: collapse; }
table.vers th { text-align: left; color: #8a8f94; font-weight: 500; font-size: 13px; padding: 8px 12px; }
table.vers td { padding: 8px 12px; border-top: 1px solid #2b3035; color: #dcdfe2; }
table.vers td.name { display: flex; align-items: center; gap: 10px; }
table.vers td.name img { width: 36px; height: 36px; object-fit: cover; border-radius: 3px; }
table.vers td.name small { color: #8a8f94; }
table.vers tr.click:hover td { background: #42474d; cursor: pointer; }
table.vers tr.cur td { background: #2f4f6b; }
/* Footer wordmark: same blue as the logo, in a bold geometric face that matches its angular S. */
footer .fname { color: #1a8fe3; font-family: "Montserrat", "Segoe UI", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.3px; }
/* Footer wordmark font, served from our own server (no third-party font requests). */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/montserrat-800.woff2") format("woff2"); }
footer .flinks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 13px; }
footer .flinks a { color: #8a8f94; text-decoration: none; }
footer .flinks a:hover { color: #dcdfe2; text-decoration: underline; }
.prose .updated { color: #8a8f94; font-size: 13px; margin-top: -4px; }
/* Charts: hover box with the day's exact numbers (Rolimons-style: dark box, accent border,
   weekday + date in bold, a coloured dot per series with the value and the change). */
.chartwrap { position: relative; cursor: crosshair; }
.chartwrap svg { display: block; width: 100%; height: 240px; }
.chartwrap .ctip { position: absolute; transform: translate(-50%, -100%); margin-top: -10px; background: rgba(22, 26, 30, 0.94); border: 1px solid #2b8ef3; border-radius: 4px; padding: 6px 10px; font-size: 12px; line-height: 1.5; color: #dcdfe2; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); z-index: 3; }
.chartwrap .ctip .cdate { font-weight: 700; color: #fff; margin-bottom: 2px; }
.chartwrap .ctip .cdotk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2b8ef3; margin-right: 6px; vertical-align: middle; }
.chartwrap .ctip b { color: #fff; }
.chartwrap .ctip .up { color: #4caf50; } .chartwrap .ctip .down { color: #e05252; } .chartwrap .ctip .muted { color: #8a8f94; }
.faq details { background: #2c3136; border: 1px solid #3a4046; border-radius: 4px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: #fff; }
.faq summary:hover { background: #343a40; }
.faq p { margin: 0; padding: 0 14px 14px; color: #c9cdd1; line-height: 1.6; }
/* Loading: a blue line running around the filter box until its results are in. */
.drop > button.loading { position: relative; overflow: hidden; z-index: 0; }
.drop > button.loading::before { content: ''; position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 1; z-index: -2;
  background: conic-gradient(transparent 0 72%, #2b8ef3 88%, transparent 100%); transform: translate(-50%, -50%) rotate(0deg); animation: sv-spin 1s linear infinite; }
.drop > button.loading::after { content: ''; position: absolute; inset: 2px; background: var(--nav); z-index: -1; }
.drop > button.loading.set::after { background: #004f8f; }
@keyframes sv-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.vrange { display: block; font-size: 11px; font-weight: 400; color: #8a8f94; margin-top: 2px; cursor: help; }

/* Song page action buttons: one joined bar with dividers instead of separate pills */
.bluebtns { gap: 0; flex-wrap: nowrap; border-radius: 10px; overflow: hidden; background: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.bluebtns .bluebtn { border-radius: 0; background: transparent; padding: 7px 14px; font-size: 13px; border-left: 1px solid rgba(255,255,255,.28); }
.bluebtns .bluebtn:first-child { border-left: 0; }
.bluebtns .bluebtn:hover { background: rgba(255,255,255,.14); }
@media (max-width: 560px) { .bluebtns { flex-wrap: wrap; } }

/* Song page: cover + title + big value in one card, details as one list */
.shero { display: grid; grid-template-columns: 240px 1fr; gap: 24px; background: var(--nav); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.shero .pic > div { height: 220px; display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; border-radius: 10px; background: var(--cardimg); }
.shero .pic > div[style*="--cover"]::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: var(--cover) center / cover no-repeat; filter: blur(16px) saturate(1.2); opacity: .4; }
.shero .pic img { width: 200px; height: 200px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.25); position: relative; }
.shero .pic .badge { position: absolute; left: 6px; bottom: 6px; z-index: 1; font-size: 9px; font-weight: 800; padding: 0 4px; background: #62c462; color: #111; }
.shero .pic .badge.r { background: #f89406; } .shero .pic .badge.b { background: #ee5f5b; }
.shmain { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shmain h1 { margin: 0; font-size: 24px; font-weight: 600; color: var(--bright); }
.shmain h1 .alt { color: var(--text); font-weight: 400; }
.shmain h1 a.ext { color: var(--bright); margin-left: 6px; }
.shmain .kind { font-weight: 600; }
.shlabel { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.shvalue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.shvalue > span:first-child { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; color: var(--bright); line-height: 1.1; font-variant-numeric: tabular-nums; }
.shtrend { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--cardimg); }
.shrange { color: var(--text); cursor: help; }
.shmain .bluebtns { align-self: flex-start; margin-top: 14px; }
.kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.sdetails { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; background: var(--nav); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px; }
.sdetails .irow { border-bottom: 1px solid var(--line); min-height: 52px; }
@media (max-width: 760px) { .shero { grid-template-columns: 1fr; } .shero .pic > div { height: 240px; } .sdetails { grid-template-columns: 1fr; } .kpis.k3 { grid-template-columns: 1fr; } .shvalue > span:first-child { font-size: 34px; } }

/* Homepage: top 3 podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.pod { display: flex; gap: 16px; align-items: center; background: var(--nav); border: 1px solid var(--line); border-top: 4px solid #c7ced8; border-radius: 12px; padding: 16px; text-decoration: none; min-width: 0; transition: transform .12s; }
.pod:hover { transform: translateY(-3px); }
.pod.p1 { border-top-color: #f2c94c; min-height: 190px; } .pod.p2 { min-height: 165px; } .pod.p3 { border-top-color: #e0a372; min-height: 150px; }
.podimg { position: relative; flex: none; width: 116px; height: 116px; border-radius: 8px; background: var(--cardimg) center / cover; }
.podimg img { width: 116px; height: 116px; object-fit: cover; border-radius: 8px; display: block; }
.podrank { position: absolute; left: -10px; top: -10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #14181f; background: #c7ced8; border: 3px solid var(--nav); }
.p1 .podrank { background: #f2c94c; } .p3 .podrank { background: #e0a372; }
.podtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.podtxt b { color: var(--bright); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podtxt small { color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podval { color: var(--blue); font-size: 24px; font-weight: 800; margin-top: 6px; }
@media (max-width: 860px) { .podium { grid-template-columns: 1fr; } .pod.p1, .pod.p2, .pod.p3 { min-height: 0; } }

/* Leaderboard: ranked list with medal badges and value bars */
.lblist { background: var(--nav); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lbrow { display: flex; align-items: center; gap: 16px; padding: 11px 18px; border-top: 1px solid var(--line); text-decoration: none; }
.lbrow:first-child { border-top: 0; }
.lbrow:hover { background: var(--cell); }
.lbrank { flex: none; min-width: 34px; height: 34px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--bright); background: var(--cardimg); }
.lbrank.m1 { background: #f2c94c; color: #14181f; } .lbrank.m2 { background: #c7ced8; color: #14181f; } .lbrank.m3 { background: #e0a372; color: #14181f; }
.lbrow img, .lbimg { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--cardimg); }
.lbname { flex: 0 1 240px; display: flex; flex-direction: column; min-width: 0; }
.lbname b { color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbname small, .lbval small { color: var(--text); font-size: 12px; font-weight: 400; }
.lbbar { flex: 1 1 160px; height: 10px; background: var(--cardimg); border-radius: 999px; overflow: hidden; }
.lbbar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.lbval { flex: none; width: 150px; text-align: right; display: flex; flex-direction: column; color: var(--bright); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lbbar { display: none; } .lbval { width: auto; margin-left: auto; } }
.podrest { margin-top: 16px; }

/* Song page details as dropdowns */
.sdrop { margin-top: 12px; background: var(--nav); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sdrop > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; font-weight: 600; color: var(--bright); user-select: none; }
.sdrop > summary::-webkit-details-marker { display: none; }
.sdrop > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.sdrop[open] > summary::after { transform: rotate(-135deg); }
.sdrop > summary:hover { background: var(--cell); }
.sdrop .sdetails { border: 0; border-top: 1px solid var(--line); border-radius: 0; }

/* Leaderboard v2: 50 per page in two columns of 25 (one column on phones) */
.lblist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: none; border: 0; border-radius: 0; overflow: visible; }
.lbcol { background: var(--nav); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; box-shadow: 0 1px 3px rgba(20,24,31,.06); }
.lbrow { gap: 12px; padding: 8px 14px; min-height: 52px; box-sizing: border-box; }
.lbrank { min-width: 30px; height: 30px; font-size: 12px; }
.lbrow img, .lbimg { width: 34px; height: 34px; }
.lbname { flex: 1 1 auto; gap: 5px; }
.lbname b { font-size: 14px; }
.lbbar { flex: none; width: 100%; height: 5px; }
.lbval { width: auto; min-width: 118px; font-size: 14px; }
.lbval small { font-size: 11px; }
@media (max-width: 900px) { .lblist { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lbbar { display: block; } }

/* Leaderboard v3: 50 compact artist cards per page */
.lblist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
.lbcard { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--nav); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; min-width: 0; box-shadow: 0 1px 3px rgba(20,24,31,.06); transition: transform .12s, border-color .12s; }
.lbcard:hover { transform: translateY(-2px); border-color: var(--blue); }
.lbcard.m1 { border-top: 3px solid #f2c94c; } .lbcard.m2 { border-top: 3px solid #c7ced8; } .lbcard.m3 { border-top: 3px solid #e0a372; }
.lbpic { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--cardimg); }
.lbpic img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.lbcard .lbrank { position: absolute; left: -6px; top: -6px; min-width: 24px; height: 24px; padding: 0 5px; font-size: 11px; border: 2px solid var(--nav); }
.lbinfo { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lbinfo b { color: var(--bright); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv { color: var(--blue); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.lbinfo small { color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .lblist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lblist { grid-template-columns: 1fr; } }

/* =====================================================================================
   OVERHAUL v2: dark, rounded, big numbers (default theme)
   ===================================================================================== */
:root {
  --page: #1c1f23; --nav: #25292e; --card: #25292e; --cardimg: #2e3339; --cell: #2b3036;
  --text: #9aa4ae; --bright: #f2f4f6; --line: #33393f; --blue: #3d8bfd;
  --up: #3ecf72; --down: #f2645f; --warn: #f5a524; --purple: #b794ff;
  --r: 16px; --r-sm: 10px;
}
html, body { background: var(--page); }
body { font-size: 15px; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
main { max-width: 1240px; }
.homebg { display: none; }

/* top bar: flat, same colour as the page, thin line under it */
.topnav { background: #1c1f23; border-bottom: 1px solid var(--line); height: 64px; }
.navrow { height: 64px; max-width: 1240px; }
.nitem, .nitem > a { height: 64px; }
.nitem > a svg { width: 22px; height: 22px; color: #d5dade; }
.nitem > a span { font-size: 11.5px; font-weight: 600; color: var(--text); margin-top: 3px; }
.nitem > a:hover span, .nitem > a.on span, .nitem > a:hover svg, .nitem > a.on svg { color: var(--bright); }
.nitem > a.on { box-shadow: inset 0 -2px 0 var(--blue); }
.nmenu { top: 64px; background: var(--nav); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 12px 30px rgba(0,0,0,.45); padding: 6px; }
.nmenu a { border-radius: 8px; color: var(--bright); }
.nmenu a:hover { background: var(--cell); }

/* home header: big catalog value + quick links card */
.mcap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; margin: 18px 0 8px; }
.mcaplabel { color: var(--text); font-weight: 600; font-size: 15px; }
.mcapnum { color: var(--bright); font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.mcapsub { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text); font-size: 14px; }
.mcapsub b { color: var(--up); font-weight: 700; }
.mcapbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mcapcard { background: linear-gradient(160deg, #2b3036, #23272c); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.mcapcard h3 { margin: 0; color: var(--bright); font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.qlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.qlinks a { display: inline-flex; align-items: center; gap: 7px; background: #31363d; color: var(--bright); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .12s; }
.qlinks a:hover { background: #3a4048; }
.qlinks svg { width: 16px; height: 16px; color: var(--text); }
@media (max-width: 860px) { .mcap { grid-template-columns: 1fr; } }

/* buttons */
button, .pillb, .viewall, .fbtn, .pill { border-radius: 999px; font-weight: 600; }
.pillb { background: var(--blue); color: #fff; padding: 8px 18px; font-size: 14px; }
.pillb:hover { background: #5a9cff; }
.pillb.ghost { background: #31363d; color: var(--bright); }
.pillb.ghost:hover { background: #3a4048; }
.viewall { background: none; color: var(--blue); width: auto; padding: 4px 0; font-weight: 700; }
.viewall::after { content: " →"; }
.viewall:hover { background: none; color: #7fb0ff; }
button.grey, .seg button, .cbar button, .range button { background: #31363d; color: var(--bright); }
.seg { background: #2b3036; border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { background: none; border-radius: 999px; padding: 7px 14px; }
.seg button.on, .range button.on, .cbar button.on, .pager a.on { background: #3a4048; color: #fff; }
.pager a { background: #2b3036; color: var(--bright); border-radius: 8px; border: 0; }
.drop > button { background: var(--nav); border: 1px solid var(--line); border-radius: var(--r-sm); }
.drop > button.set { background: var(--blue); border-color: var(--blue); }
.menu { background: var(--nav); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.lightbar, .searchbar, .addform .searchbar, .menu input { background: #2b3036; color: var(--bright); border: 1px solid var(--line); border-radius: 999px; padding-left: 18px; }
.lightbar::placeholder, .searchbar::placeholder { color: #7d8791; }
.searchrow .clear { border-radius: 999px; margin-left: 6px; background: #31363d; }

/* section headings */
.hsec { margin-top: 38px; }
.hhead { margin: 0 2px 12px; }
.hhead h2, .sectitle { color: var(--bright); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

/* every card: rounded, flat, no title band */
.card, .pcard, .ccard, .dcard, .mcard, .fcard, .tile, .kpi, .obox, .ibox, .cpanel, .dtable, .ipanel, .panel, .board, .prose, .spotlist, .songinfo, .chartbox, .facts, .profile, .shero, .sdrop, .pod, .faq details, table.list, table.items, table.cmp {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; overflow: hidden; }
.card:hover, .pcard:hover, .ccard:hover, .dcard:hover, .mcard:hover { outline: 0; border-color: #4a525b; transform: translateY(-2px); }
.card, .pcard, .ccard, .dcard { transition: transform .12s, border-color .12s; }
.ctitle, .mtitle { background: none; color: var(--bright); font-weight: 700; font-size: 14px; padding: 10px 12px 2px; }
.cimg, .pimg, .mimg { background-color: transparent; margin: 8px 10px; border-radius: 12px; overflow: hidden; }
.cimg[style*="--cover"]::before { filter: blur(18px) saturate(1.3); opacity: .55; }
.cimg img, .mimg img { border-radius: 8px; }
.crows, .mrows { padding: 2px 12px 12px; }
.crow span:first-child, .mrow { color: var(--text); }
.crow span:last-child, .mrow b { color: var(--bright); font-weight: 600; }
.val, .mrow b.val { color: #5fa2ff !important; }
.rap { color: var(--text) !important; }
.mcard { flex-basis: 168px; border-radius: var(--r); }
.mimg { height: 148px; }
.sarrow { background: #31363d; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.sarrow:hover { background: #3a4048; }

/* hero banners on other pages: just a big title, no blue box */
.hero { background: none; padding: 10px 2px 6px; margin: 10px 0 18px; border-radius: 0; }
.hero h1 { color: var(--bright); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.hero p { color: var(--text); font-weight: 400; }
.headbar { background: none; padding: 6px 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.subhead { font-size: 20px; font-weight: 800; }

/* feature cards */
.fbody h3 { color: var(--bright); font-weight: 800; }
.ffoot { background: none; padding: 0 20px 20px; }
.fbtn { background: #31363d; color: var(--bright); }
.fbtn:hover { background: #3a4048; }
.shortcut { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--bright); }

/* tables */
th { background: transparent; color: var(--text); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
td, th { border-top-color: var(--line); }
tr.click:hover td, table.vers tr.click:hover td { background: var(--cell); }
table.vers tr.cur td { background: rgba(61,139,253,.12); }
.bhead, .panelhead, .dhead, .songinfo h1 { background: transparent; border-bottom: 1px solid var(--line); }
.dtable table th { background: transparent; }

/* song page */
.shero { padding: 24px; }
.shvalue > span:first-child { font-size: 52px; letter-spacing: -0.035em; }
.shtrend { background: #31363d; }
.kpi, .obox { border-top: 1px solid var(--line); }
.obox small { color: var(--text); }
.ctabs { background: transparent; border-bottom: 1px solid var(--line); }
.ctabs button.on, .itabs button.on { background: transparent; border-bottom: 2px solid var(--blue); }
.bluebtns { background: #31363d; box-shadow: none; border-radius: 999px; }
.bluebtns .bluebtn { border-left-color: #454c55; }
.bluebtns .bluebtn:first-child { background: var(--blue); }
.chartwrap .ctip { background: rgba(20,22,25,.96); border-color: var(--line); border-radius: 10px; }

/* podium */
.pod.p1 { box-shadow: inset 0 3px 0 #f2c94c; } .pod.p2 { box-shadow: inset 0 3px 0 #c7ced8; } .pod.p3 { box-shadow: inset 0 3px 0 #e0a372; }
.podval { color: var(--bright); }
.podrank { border-color: var(--card); }

/* dialogs, notes, footer */
dialog { background: var(--nav); border: 1px solid var(--line); border-radius: var(--r); }
.scannote { background: rgba(61,139,253,.14); color: var(--bright); border: 1px solid rgba(61,139,253,.35); border-radius: var(--r-sm); }
footer { border-top: 1px solid var(--line); }
footer .fname { color: var(--bright); }

/* Catalog deals (news) */
.deals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.deal { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r, 14px); padding: 16px; min-width: 0; }
.dealart { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dealart img, .dealart span { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--cardimg); flex: none; }
.dealart b { color: var(--bright); font-size: 15px; }
.dealtitle { color: var(--bright); font-weight: 600; font-size: 14.5px; line-height: 1.4; text-decoration: none; }
.dealtitle:hover { text-decoration: underline; }
.dealmeta { display: flex; gap: 10px; color: var(--text); font-size: 12.5px; }
.dealmeta span + span::before { content: "·"; margin-right: 10px; }
.dealnums { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.dealnums small { display: block; color: var(--text); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.dealnums b { display: block; color: var(--bright); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.dealnums em { display: block; color: var(--text); font-size: 11.5px; font-style: normal; }
@media (max-width: 900px) { .deals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .deals { grid-template-columns: 1fr; } }

/* Versions table: the release cell is a normal table cell again (a flex cell broke the row
   heights), long album names wrap, and the box scrolls sideways instead of hiding the Status column. */
.dtable { overflow-x: auto; overflow-y: visible; }
table.vers td.name { display: table-cell; }
table.vers td.name img { vertical-align: middle; margin-right: 10px; }
table.vers td { vertical-align: middle; }
table.vers td:not(.name) { white-space: nowrap; }
table.vers td:last-child { white-space: normal; min-width: 140px; }

/* Chart hover box: may reach past the chart's border instead of being cut off. */
.cpanel, .chartbox, .ipanel, .chartwrap { overflow: visible; }

/* Footer in the same centred column as the navigation and the page. */
footer { padding-left: max(16px, calc((100% - 1240px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1240px) / 2 + 16px)); }

/* Versions table, fixed columns: long album names and status notes wrap inside their column. */
table.vers { table-layout: fixed; width: 100%; }
table.vers th:nth-child(1), table.vers td:nth-child(1) { width: 46%; }
table.vers th:nth-child(2), table.vers td:nth-child(2) { width: 16%; }
table.vers th:nth-child(3), table.vers td:nth-child(3) { width: 13%; }
table.vers th:nth-child(4), table.vers td:nth-child(4) { width: 25%; }
table.vers td, table.vers td.name, table.vers td:not(.name), table.vers td:last-child { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
table.vers td.name { display: table-cell; padding-left: 58px; position: relative; }
table.vers td.name img { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
@media (max-width: 700px) { table.vers { table-layout: auto; min-width: 640px; } }
