/* Layout: one wide chart column with a quiet side rail; a black player bar docks to the bottom.
   Each chart row is a long band lit by a blurred copy of the song's own artwork. */
:root {
  --paper: #fbfafa;
  --surface: #ffffff;
  --ink: #151113;
  --muted: #6c6266;
  --line: #ebe5e6;
  --chip: #f2eeee;
  --red: #d21f2b;
  --red-soft: #fdecec;
  --teal: #0f7b84;
  --up: #17834a;
  --up-soft: #e6f4ec;
  --down: #c4202b;
  --bar: #151113;
  --bar-ink: #ffffff;
  --bar-muted: #b8adb1;
  --wash: 0.42;
  --cover: 0.45;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "Newsreader", "Georgia", "Times New Roman", serif;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #100d0e; --surface: #1a1617; --ink: #f4efef; --muted: #a59a9e; --line: #2c2628; --chip: #241f21;
    --red: #ff4a54; --red-soft: #3a1a1d; --teal: #4cc8d2; --up: #4fd08a; --up-soft: #15301f; --down: #ff5c66;
    --bar: #000000; --bar-ink: #ffffff; --bar-muted: #a59a9e; --wash: 0.6; --cover: 0.5; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #100d0e; --surface: #1a1617; --ink: #f4efef; --muted: #a59a9e; --line: #2c2628; --chip: #241f21;
  --red: #ff4a54; --red-soft: #3a1a1d; --teal: #4cc8d2; --up: #4fd08a; --up-soft: #15301f; --down: #ff5c66;
  --bar: #000000; --bar-ink: #ffffff; --bar-muted: #a59a9e; --wash: 0.6; --cover: 0.5; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.5 var(--ui);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transition: background .25s, color .25s;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 20px; flex-wrap: wrap; }
.viewnav { display: flex; gap: 4px; margin-right: auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.viewnav a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.viewnav a:hover { color: var(--ink); }
.viewnav a[aria-current="page"] { color: var(--paper); background: var(--ink); }
.brand { text-decoration: none; }
.brand b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .04em; line-height: 1; }
.brand i { display: inline-block; width: 9px; height: 26px; background: var(--red); transform: skewX(-20deg); }
.top-right { display: flex; align-items: center; gap: 12px; }
.week-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
select, .search input { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px 7px 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.theme-btn svg { width: 16px; height: 16px; fill: currentColor; }
.theme-btn .i-sun { display: none; }
.is-dark .theme-btn .i-sun { display: block; }
.is-dark .theme-btn .i-moon { display: none; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding-block: 28px 30px; border-top: 1px solid var(--line); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: 0; width: 220px; height: 100%; background: linear-gradient(115deg, transparent 0 46%, var(--red) 46% 54%, transparent 54% 62%, var(--ink) 62% 64%, transparent 64%); pointer-events: none; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; margin: 0 0 8px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 7.5vw, 88px); line-height: .92; margin: 0; text-wrap: balance; text-transform: uppercase; }
.hero p.lede { font-family: var(--serif); font-size: 19px; color: var(--muted); margin: 14px 0 0; max-width: 34em; }
.stats { display: flex; gap: 28px; position: relative; z-index: 1; padding-right: 150px; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.notice { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; background: var(--red-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; }
.notice b { color: var(--red); white-space: nowrap; }

/* Tabs and search */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tab { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.tab svg { width: 16px; height: 16px; flex: none; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab .soon { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; }
.tab[aria-selected="true"] .soon { border-color: currentColor; }
.search { flex: 1 1 220px; max-width: 340px; }
.search input { width: 100%; padding: 9px 16px; }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 10px; padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.chips .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; min-width: 54px; flex: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip small { color: var(--muted); font-weight: 400; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.chip:disabled { opacity: .4; cursor: default; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.selects { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.toggle input { accent-color: var(--red); margin: 0; }
.result-line { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.linkish { border: 0; background: none; color: var(--red); font-weight: 700; cursor: pointer; padding: 0; font-size: 13px; }

/* Main grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 1020px) { .grid { grid-template-columns: minmax(0, 1fr); } .stats { padding-right: 0; } .hero::after { opacity: .25; } }

/* Chart rows */
ol.chart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 50px 92px minmax(0, 1fr); gap: 0; align-items: stretch; cursor: pointer; }
.side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.rank { font-family: var(--display); font-size: 32px; line-height: 1; }
.row.top3 .rank { color: var(--red); }
.move { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; min-width: 38px; }
.move svg { width: 8px; height: 8px; }
.move.up { color: var(--up); background: var(--up-soft); }
.move.down { color: var(--down); background: var(--red-soft); }
.move.same { color: var(--muted); }
.move.new { color: var(--paper); background: var(--ink); letter-spacing: .06em; }

.art { position: relative; width: 92px; height: 92px; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; z-index: 1; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art img.crop, .thumb img.crop { transform: scale(1.34); }
.art .initials { font-family: var(--display); color: #fff; font-size: 26px; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.art .play-ico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.42); opacity: 0; transition: opacity .15s; }
.art .play-ico span { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.art .play-ico svg { width: 18px; fill: #fff; margin-left: 2px; }
.row:hover .play-ico, .art:focus-visible .play-ico, .row.is-playing .play-ico { opacity: 1; }

.band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 112px 84px 36px; gap: 16px; align-items: center; padding: 12px 16px 12px 20px; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); isolation: isolate; min-height: 92px; }
.band::before { content: ""; position: absolute; inset: -30px; z-index: -3; background-image: var(--img, none), linear-gradient(110deg, var(--c1), var(--c2)); background-size: cover; background-position: center; filter: blur(28px) saturate(1.3); opacity: calc(var(--wash) * .7); }
/* the cover itself, sharp, peeking through the right side of the band */
.band .cover { position: absolute; top: 0; right: 0; bottom: 0; width: 72%; z-index: -2; background-image: var(--img, none), linear-gradient(110deg, var(--c1), var(--c2)); background-size: cover; background-position: center 35%; opacity: var(--cover); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); transition: opacity .2s; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 78%, transparent) 38%, color-mix(in srgb, var(--surface) 20%, transparent) 100%); }
.row:hover .band .cover { opacity: calc(var(--cover) + .12); }
.row.is-playing .band { box-shadow: inset 0 0 0 2px var(--red); }
.meta { min-width: 0; }
.title { font-family: var(--display); font-size: 22px; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist { font-family: var(--serif); font-size: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.tag { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.tag.power { color: var(--red); border-color: var(--red); }
.tag.groovy { color: var(--teal); border-color: var(--teal); }
.tag.rising { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.views { text-align: right; }
.views strong { display: block; font-size: 17px; font-weight: 700; }
.views span { font-size: 12px; color: var(--muted); }
.views .pos { color: var(--up); }
.views .neg { color: var(--down); }
.spark { width: 84px; height: 32px; display: block; }
.spark path.l { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.spark path.a { fill: var(--red-soft); opacity: .9; }
.spark circle { fill: var(--red); }
.links { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.links a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.links a:hover { color: var(--ink); background: var(--chip); }
.links svg { width: 15px; height: 15px; }
.more { display: flex; justify-content: center; padding-top: 16px; }
.more button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; }
.empty { padding: 48px 12px; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 18px; }

@media (max-width: 720px) {
  .row { grid-template-columns: 38px 72px minmax(0, 1fr); }
  .art { width: 72px; height: 72px; }
  .band { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px 10px 14px; gap: 10px; min-height: 72px; }
  .band .spark-cell, .band .links { display: none; }
  .rank { font-size: 24px; }
  .move { min-width: 32px; }
  .title { font-size: 18px; }
  .artist { font-size: 14px; }
  .tags .tag.opt { display: none; }
  .views strong { font-size: 15px; }
  .stats { gap: 18px; flex-wrap: wrap; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .tab .soon { display: none; }
  .search { max-width: none; }
  .theme-btn span { display: none; }
  .theme-btn { padding: 8px 10px; }
  .selects { display: grid; grid-template-columns: 1fr 1fr; }
  .selects select, .selects .toggle { width: 100%; min-width: 0; }
  .chips .label { min-width: 44px; }
}

/* Side rail */
.rail { display: flex; flex-direction: column; gap: 32px; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 2px; text-transform: uppercase; letter-spacing: .02em; }
.panel .sub { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.mini li:last-child { border-bottom: 1px solid var(--line); }
.mini .thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; font-family: var(--display); color: #fff; font-size: 14px; }
.mini .thumb img, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini .when { font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; white-space: nowrap; }
.mini .when b { display: block; color: var(--red); letter-spacing: .06em; font-size: 10px; }
.mini .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .a { font-family: var(--serif); font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini li > div { min-width: 0; }
.news li { grid-template-columns: 1fr; cursor: default; }
.news a { text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.35; }
.news a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.news small { color: var(--muted); font-size: 12px; }
.panel .none { font-family: var(--serif); color: var(--muted); font-size: 15px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }

/* Coming soon platforms */
.soon-panel { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.soon-panel h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 8px; text-transform: uppercase; }
.soon-panel p { font-family: var(--serif); color: var(--muted); font-size: 17px; max-width: 30em; margin: 0 auto; }

/* Player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bar); color: var(--bar-ink);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.player-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now .thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; position: relative; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; font-family: var(--display); color: #fff; }

.now .t { font-family: var(--display); font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now .a { font-family: var(--serif); font-size: 15px; color: var(--bar-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now > div { min-width: 0; }
.ctrls { display: flex; align-items: center; gap: 4px; }
.ctrls button, .ctrls a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--bar-ink); cursor: pointer; text-decoration: none; }
.ctrls button:hover, .ctrls a:hover { background: rgba(255,255,255,.12); }
.ctrls .main { background: var(--red); width: 46px; height: 46px; }
.ctrls .main:hover { background: var(--red); filter: brightness(1.1); }
.ctrls svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 480px) { #btn-video, #btn-yt { display: none; } }
.video { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 21; width: min(400px, calc(100vw - 32px)); aspect-ratio: 16 / 9; max-width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.video iframe, .video #yt-host, .video #yt-host iframe { width: 100%; height: 100%; border: 0; display: block; }
.video .fallback { height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; font-size: 14px; }
.video .fallback a { color: #fff; font-weight: 700; }
.player-idle .t { color: var(--bar-muted); }

.foot { margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* New releases */
.rel .when { font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; white-space: nowrap; }
.rel .when b { display: block; color: var(--red); letter-spacing: .06em; font-size: 10px; }
.tag.fresh { color: var(--paper); background: var(--red); border-color: var(--red); }

/* Segmented controls */
.seg { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg.dim { opacity: .45; }
.filter-toggle { display: none; font: inherit; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.filter-toggle b { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 6px; }
@media (max-width: 720px) { .filter-toggle { display: inline-flex; } #filters:not(.open) { display: none; } .toolbar .search { flex-basis: 100%; order: 5; } }
.hint { font-size: 12px; color: var(--muted); white-space: nowrap; margin-left: 4px; }

/* Multi-select */
.ms { position: relative; }
.ms-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ms-btn svg { width: 9px; height: 9px; color: var(--muted); }
.ms-btn b { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.ms-btn.on { border-color: var(--ink); }
.ms-pop { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ms-search { font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.ms-all { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ms-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; }
.ms-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.ms-list label:hover { background: var(--chip); }
.ms-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-list small { color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-list input, .ms-all input { accent-color: var(--red); margin: 0; }
.ms-none { color: var(--muted); font-size: 13px; margin: 6px 4px; }
.picked { display: flex; gap: 6px; flex-wrap: wrap; }
.picked:empty { display: none; }
.pick { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 5px 10px; cursor: pointer; text-decoration: none; }
.pick span[aria-hidden] { opacity: .7; }
.d-chips .pick { background: var(--chip); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Credits inside rows */
.artist { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.who { text-decoration: none; color: inherit; border-bottom: 1px solid transparent; position: relative; z-index: 2; }
.who:hover { border-bottom-color: currentColor; color: var(--ink); }
.who.hl, .tag.hl { color: var(--red); font-weight: 600; }
.sep { color: var(--muted); }
.prod { font-size: 11px; color: var(--muted); align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.prod a { color: inherit; }
a.tag { text-decoration: none; position: relative; z-index: 2; }
a.tag:hover { color: var(--ink); border-color: var(--ink); }

/* Artist, producer and riddim charts */
.ent-head { margin-bottom: 12px; }
.ent-head h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0; text-transform: uppercase; }
.ent-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.ents { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ent { display: grid; grid-template-columns: 44px 56px minmax(0, 1fr) minmax(0, 200px) 100px; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.ent:hover { background: var(--surface); }
.ent .rank { font-size: 26px; text-align: center; }
.ent:nth-child(-n+3) .rank { color: var(--red); }
.avatar, .ent .thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; font-family: var(--display); color: #fff; font-size: 20px; flex: none; }
.ent .thumb { border-radius: 10px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ent-meta { min-width: 0; }
.ent-meta .t { font-family: var(--display); font-size: 21px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-meta .a { font-family: var(--serif); color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-top { min-width: 0; display: flex; flex-direction: column; }
.ent-top small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ent-top span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }
@media (max-width: 720px) {
  .ent { grid-template-columns: 30px 44px minmax(0, 1fr) auto; gap: 10px; }
  .ent .ent-top { display: none; }
  .avatar, .ent .thumb { width: 44px; height: 44px; }
  .ent-meta .t { font-size: 18px; }
  .hint { display: none; }
  .viewnav { order: 3; width: 100%; margin-right: 0; }
}

/* Profile drawer */
body.locked { overflow: hidden; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(10, 6, 8, .45); }
.drawer { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.25); padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.d-head { position: relative; overflow: hidden; padding: calc(56px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 22px 24px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; isolation: isolate; }
.d-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) saturate(1.2) brightness(.6); z-index: -1; }
.d-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; cursor: pointer; }
.d-close svg { width: 20px; fill: currentColor; }
.d-id { display: flex; gap: 16px; align-items: flex-end; }
.d-pic { width: 96px !important; height: 96px !important; font-size: 32px !important; box-shadow: 0 8px 24px rgba(0,0,0,.35); border: 3px solid rgba(255,255,255,.85); }
.d-id .eyebrow { color: #fff; opacity: .85; margin: 0 0 4px; }
.d-id h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 7vw, 44px); line-height: 1; margin: 0; text-transform: uppercase; text-wrap: balance; }
.d-sub { margin: 6px 0 0; font-size: 13px; opacity: .85; }
.d-body { padding: 20px max(24px, env(safe-area-inset-right, 0px)) 0 24px; display: flex; flex-direction: column; gap: 20px; }
.d-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.d-stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.d-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.d-best small, .d-chips small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; width: 100%; }
.d-best button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.d-best .thumb, .d-songs .thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; position: relative; flex: none; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; font-family: var(--display); color: #fff; }
.d-best b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.d-best span span { font-size: 13px; color: var(--muted); }
.d-bio p { font-family: var(--serif); font-size: 17px; line-height: 1.55; margin: 0; white-space: pre-line; }
.d-bio small { color: var(--muted); font-size: 12px; }
.d-links { display: flex; gap: 8px; flex-wrap: wrap; }
.d-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.d-links a:hover { border-color: var(--ink); }
.d-links svg { width: 12px; height: 12px; fill: var(--muted); }
.d-body h3 { font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; margin: 0 0 -8px; }
.d-songs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.d-songs li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.d-songs li > button { border: 0; padding: 0; background: none; cursor: pointer; }
.d-songs b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-songs div { min-width: 0; }
.d-songs div > span { font-size: 13px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-songs div span a { color: inherit; }
.d-songs .num { font-weight: 700; font-size: 14px; }
.lyr { font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.d-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.d-alias { font-size: 13px; color: var(--muted); margin: 0; }
.d-playall { display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.d-playall svg { width: 14px; fill: currentColor; }
