/* Spotify monthly listeners (livecounts.nl/spotify-monthly-listeners/). One file, system fonts, no framework. */

:root {
    color-scheme: light;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --bg: #F4F4F1; --surface: #FFFFFF; --surface-2: #F9F9F7; --sunken: #EDEDE9;
    --ink: #121214; --ink-2: #3B3B41; --muted: #66666E;
    --line: #E3E3DE; --line-2: #D0D0CA;
    --accent: #1DB954; --accent-ink: #117A3A; --accent-wash: rgba(29, 185, 84, .12); --focus: #4F5BD5;
    --good: #0B7A45; --bad: #B4322A;
    --btn: #121214; --btn-ink: #FFFFFF;
    --chart: #1AA34A; --chart-wash: rgba(29, 185, 84, .12); --chart-2: #66666E; --grid: #ECECE7;
    --tld: #C62A3C;
    --shadow: 0 1px 2px rgba(18, 18, 20, .04), 0 14px 32px -20px rgba(18, 18, 20, .22);
    --r-lg: 14px; --r-md: 10px; --r-sm: 8px;
    --wrap: 1248px; --gutter: 24px; --rail: 320px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0D0D0F; --surface: #161618; --surface-2: #1B1B1E; --sunken: #101012;
        --ink: #F3F3F1; --ink-2: #CFCFD4; --muted: #9C9CA5;
        --line: #27272B; --line-2: #37373D;
        --accent: #1ED760; --accent-ink: #3BE477; --accent-wash: rgba(30, 215, 96, .12); --focus: #8E96FF;
        --good: #46D08A; --bad: #FF7B70;
        --btn: #F3F3F1; --btn-ink: #121214;
        --chart: #1ED760; --chart-wash: rgba(30, 215, 96, .10); --chart-2: #9C9CA5; --grid: #232327;
        --tld: #FF5C6C;
        --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -24px rgba(0, 0, 0, .9);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0D0D0F; --surface: #161618; --surface-2: #1B1B1E; --sunken: #101012;
    --ink: #F3F3F1; --ink-2: #CFCFD4; --muted: #9C9CA5;
    --line: #27272B; --line-2: #37373D;
    --accent: #1ED760; --accent-ink: #3BE477; --accent-wash: rgba(30, 215, 96, .12); --focus: #8E96FF;
    --good: #46D08A; --bad: #FF7B70;
    --btn: #F3F3F1; --btn-ink: #121214;
    --chart: #1ED760; --chart-wash: rgba(30, 215, 96, .10); --chart-2: #9C9CA5; --grid: #232327;
    --tld: #FF5C6C;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -24px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
html:not(.js) .js-only { display: none !important; }
[dir="ltr"] { font-variant-numeric: tabular-nums; }

.skip { position: absolute; z-index: 80; left: 12px; top: -60px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding-inline: 16px; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn .i { width: 16px; height: 16px; }
.btn-ink { background: var(--btn); color: var(--btn-ink); }
.btn-ink:hover { opacity: .88; }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand .tld { color: var(--tld); }
.head-nav { display: flex; align-self: stretch; gap: 20px; margin-left: auto; }
.head-nav a { display: inline-flex; align-items: center; white-space: nowrap; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }
.head-tools { display: flex; gap: 8px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ---------- page head and search ---------- */
.page-head { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { margin-top: 10px; font-size: 32px; line-height: 1.15; font-weight: 750; letter-spacing: -.02em; }
.lede { margin-top: 10px; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

.search { position: relative; margin-top: 20px; max-width: 640px; }
.search-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.search-box { position: relative; display: flex; align-items: center; gap: 8px; height: 50px; padding: 4px 4px 4px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.search-box:focus-within { border-color: var(--ink); }
.search-box > .i { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font-size: 16px; }
.search-box input::placeholder { color: var(--muted); }
.search-box .btn { height: 40px; }
.search-msg:empty { display: none; }
.search-msg { margin-top: 6px; color: var(--bad); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chips-label { color: var(--muted); font-size: 13px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding-inline: 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--accent-wash); font-weight: 600; }

@media (min-width: 1024px) {
    .top { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 16px 40px; align-items: end; }
    .top .search { margin-top: 0; }
}

/* ---------- layout ---------- */
.layout { display: grid; gap: 16px; margin-top: 24px; align-items: start; }
.main-col, .rail { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1024px) {
    .layout { grid-template-columns: minmax(0, 1fr) var(--rail); gap: 24px; }
    .rail { position: sticky; top: 16px; }
    /* compare: the promo leads the rail next to the chart, not next to the ad under it */
    .rail-cmp .promo { order: -1; }
}
.card { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card-note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.more-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ---------- highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.hl { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.hl-label { color: var(--muted); font-size: 12.5px; }
.hl-name { margin-top: 2px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-name a { text-decoration: none; }
.hl-name a:hover { text-decoration: underline; }
.hl-num { margin-top: 2px; font-size: 18px; font-weight: 700; }

/* ---------- counter card ---------- */
.counter-card { position: relative; overflow: hidden; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.counter-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar-ring { flex: none; padding: 3px; border-radius: 50%; background: var(--accent); }
.avatar, .avatar.ph { width: 72px; height: 72px; border: 3px solid var(--surface); border-radius: 50%; object-fit: cover; background: var(--sunken); }
.avatar.ph, .r-av.ph, .w-avatar.ph { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.avatar.ph { font-size: 26px; }
.who-text { min-width: 0; }
.who-name { font-size: 22px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.who-name a { text-decoration: none; }
.who-name a:hover { text-decoration: underline; }
.who-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding-inline: 9px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); font-size: 12.5px; font-weight: 650; }
.who-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; }
.who-link:hover { color: var(--ink); text-decoration: underline; }
.who-link .i { width: 14px; height: 14px; }
.count { margin-top: 18px; font-size: clamp(44px, 8.4vw, 92px); font-weight: 800; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.count-vis.bump { animation: bump .7s ease-out; }
@keyframes bump { 0% { color: var(--accent-ink); } 100% { color: inherit; } }
.count-label { margin-top: 6px; color: var(--muted); font-size: 14px; }
.deltas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.deltas dt { color: var(--muted); font-size: 12.5px; }
.deltas dd { margin-top: 2px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wait { color: var(--muted); font-size: 14px; font-weight: 500; }
.chg.up { color: var(--good); }
.chg.down { color: var(--bad); }
.chg.flat, .chg.na { color: var(--muted); }
.note { display: flex; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.note .i { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-ink); }

/* ---------- actions and studio ---------- */
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 650; text-decoration: none; cursor: pointer; }
.act:hover { border-color: var(--ink); }
.act-primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.act-primary:hover { opacity: .9; }
.act[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }

.studio-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.studio-head .card-title { margin-right: auto; }
.tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.tabs [role="tab"] { height: 32px; padding-inline: 12px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--btn); color: var(--btn-ink); }
.studio-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .studio-body { grid-template-columns: 260px minmax(0, 1fr); } .studio-body .panel { grid-column: 1 / -1; } }
.studio[data-tab="share"] .opts, .studio[data-tab="share"] .preview { display: none; }
.opts { display: grid; gap: 12px; }
.opts fieldset { border: 0; padding: 0; min-width: 0; }
.opts legend { margin-bottom: 6px; padding: 0; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg label + input + label { border-left: 1px solid var(--line-2); }
.seg input:checked + label { background: var(--btn); color: var(--btn-ink); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -2px; }
.seg-sm label { padding: 5px 10px; font-size: 12.5px; }
.checks { display: grid; gap: 8px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--accent-ink); }
.switch input:checked + .switch-ui::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.preview { position: relative; min-width: 0; }
/* flex, not grid: a centred flex item that is wider than the stage overflows evenly on both
   sides, so scaling it around its centre (--fit) brings it fully inside */
.stage { display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 16px; border-radius: var(--r-md); background: var(--sunken); overflow: hidden; }
.stage[data-theme="transparent"] { background-color: #5b6270; background-image: linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.08) 75%), linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.08) 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.stage-size { position: absolute; right: 10px; bottom: 8px; color: var(--muted); font-size: 11.5px; }
.stage[data-theme="transparent"] + .stage-size { color: #e9eaee; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.field-row { display: flex; gap: 8px; align-items: flex-start; }
.field { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; resize: vertical; }
.mono { font-family: var(--mono); }
.btn-copy .i-done { display: none; }
.btn-copy.done .i-done { display: block; }
.btn-copy.done .i-idle { display: none; }
.hint { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.steps { margin-top: 10px; padding-left: 18px; list-style: decimal; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 4px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* widget preview (the embed page has its own copy of these rules) */
.w { --s: 1; display: flex; align-items: center; gap: calc(14px * var(--s)); width: calc(400px * var(--s)); height: calc(100px * var(--s)); padding: calc(12px * var(--s)) calc(16px * var(--s)); border-radius: calc(12px * var(--s)); background: #fff; color: #121214; font-family: var(--font); flex: none; transform: scale(var(--fit, 1)); transform-origin: center; }
.w[data-size="s"] { --s: .75; }
.w[data-size="l"] { --s: 1.3; }
.w[data-theme="dark"] { background: #161618; color: #F3F3F1; }
.w[data-theme="transparent"] { background: transparent; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.w-avatar { width: calc(64px * var(--s)); height: calc(64px * var(--s)); flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 calc(3px * var(--s)) #1DB954; }
.w[data-avatar="0"] .w-avatar, .w[data-name="0"] .w-name { display: none; }
.w-text { min-width: 0; }
.w-name { font-size: calc(15px * var(--s)); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-count { font-size: calc(32px * var(--s)); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.w-label { font-size: calc(12px * var(--s)); opacity: .75; }

/* ---------- history chart and table ---------- */
.chart { position: relative; height: 210px; margin: 6px 0 24px; padding: 10px 0 0 0; }
.chart svg { width: 100%; height: 200px; overflow: visible; }
.c-grid { stroke: var(--grid); stroke-width: 1; fill: none; }
.c-area { fill: var(--chart-wash); stroke: none; }
.c-line { fill: none; stroke: var(--chart); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.c-line2 { fill: none; stroke: var(--chart-2); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.c-max, .c-min, .c-x0, .c-x1 { position: absolute; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; pointer-events: none; }
.c-max { top: 0; left: 0; }
.c-min { bottom: 6px; left: 0; }
.c-x0 { bottom: -18px; left: 0; }
.c-x1 { bottom: -18px; right: 0; }
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--chart); pointer-events: none; }
.chart-tip { position: absolute; top: 0; z-index: 2; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); font-size: 12.5px; white-space: nowrap; pointer-events: none; transform: translateX(-50%); }
.chart-tip b { display: block; font-size: 14px; }
.chart-empty { padding: 26px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted); font-size: 14px; text-align: center; }
.days { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.days th, .days td { padding: 8px 4px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.days th:first-child, .days td:first-child { text-align: left; }
.days thead th { border-top: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.days tbody th { font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-2); font-size: 13px; }
.legend span { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--chart); }
.legend .k2 { border-top: 3px dashed var(--chart-2); margin-left: 8px; }

/* ---------- ranking ---------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter label { font-size: 13px; color: var(--muted); }
.filter select { height: 34px; max-width: 220px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; }
.table-wrap { margin-inline: -8px; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rank-table thead .c-num { white-space: normal; }
/* the name column takes what is left and truncates, the number columns never wrap */
.rank-table td.c-item { width: 100%; max-width: 0; overflow: hidden; }
.rank-table th, .rank-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.rank-table thead th { border-top: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; }
.c-rank { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-table .c-num, .rank-table .c-chg { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-table thead .c-num, .rank-table thead .c-chg { text-align: right; }
.rank-table td.c-num { font-weight: 650; }
.c-chg { width: 110px; font-size: 13.5px; }
.c-item a { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-weight: 600; }
.c-item a:hover bdi { text-decoration: underline; }
.c-item bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-av { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: var(--sunken); font-size: 14px; }
.m-chg { display: none; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--accent-ink); }
.source { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.source a { color: var(--ink-2); }
.cc-count { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }

.mini-rank { display: grid; }
.moves h3 { margin: 14px 0 2px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.moves .m-num { font-weight: 650; }
.mini-rank li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mini-rank li:first-child { border-top: 0; }
.mini-rank li[aria-current="true"] { margin-inline: -8px; padding-inline: 8px; border-radius: var(--r-sm); background: var(--accent-wash); font-weight: 700; }
.m-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-rank a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.mini-rank a:hover { text-decoration: underline; }
.m-num { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.more-list { columns: 3 220px; column-gap: 28px; margin-top: 10px; padding-left: 38px; list-style: decimal; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.more-list li { break-inside: avoid; padding: 5px 0; }
.more-list a { color: var(--ink); text-decoration: none; }
.more-list a:hover { text-decoration: underline; }
.more-list span { margin-left: 4px; }

/* ---------- compare ---------- */
.cmp-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 20px; }
.cmp-field { position: relative; min-width: 0; }
.cmp-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.cmp-field input[type="text"] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 15px; }
.cmp-form .btn { height: 44px; }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.cmp-side .avatar, .cmp-side .avatar.ph { width: 56px; height: 56px; }
.cmp-side .count { font-size: clamp(32px, 5vw, 56px); }
.cmp-side .deltas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-side[data-slot="b"]::before { background: var(--chart-2); }
.cmp-side[data-slot="b"] .avatar-ring { background: var(--chart-2); }

/* ---------- ads, promo ---------- */
.ad { min-width: 0; text-align: center; }
.ad-label { margin-bottom: 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ad ins { min-height: inherit; }
/* in-flow slots keep 32px (grid gap plus margin) from the cards and links around them */
.ad-list { min-height: 280px; margin-block: 16px; }
.ad-list ins { min-height: 250px; }
.ad-mid { min-height: 300px; margin-block: 16px; }
.ad-mid ins { min-height: 280px; }
.ad-bottom { width: 100%; max-width: 728px; min-height: 110px; margin: 40px auto 0; }
.ad-bottom ins { min-height: 90px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.spacenode-promo-card { display: block; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.spacenode-promo-overlay { display: grid; justify-items: start; gap: 12px; padding: 18px 20px 20px; text-align: left; }
.spacenode-promo-logo { width: 72px; height: 36px; border-radius: 6px; }
.spacenode-promo-text { display: grid; gap: 6px; }
.spacenode-promo-eyebrow { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.spacenode-promo-title { font-size: 17px; font-weight: 650; line-height: 1.3; }
.spacenode-promo-desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.spacenode-promo-cta { display: inline-flex; align-items: center; justify-self: start; height: 36px; margin-top: 6px; padding-inline: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; }
.spacenode-promo-card:hover .spacenode-promo-cta { border-color: var(--ink); }
main > .spacenode-promo-card { margin-top: 16px; }

/* ---------- prose, faq, tools block ---------- */
.content { max-width: 820px; margin-top: 48px; }
.prose h2 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.prose h3 { margin: 20px 0 6px; font-size: 17px; }
.prose p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.faq { margin-top: 36px; }
.faq h2 { font-size: 22px; margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { font-size: 15.5px; font-weight: 650; }
.faq details p { padding-bottom: 14px; color: var(--ink-2); line-height: 1.6; }
.creator-spotlight { margin-top: 36px; }
.creator-spotlight h2 { font-size: 20px; margin-bottom: 10px; }
.creator-spotlight h3 { margin: 18px 0 8px; font-size: 15px; }
.creator-links { display: flex; flex-wrap: wrap; gap: 8px; }
.creator-links a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13.5px; text-decoration: none; }
.creator-links a:hover { border-color: var(--ink); }
.lcnl-incontent-ad { margin-top: 36px !important; }

/* ---------- footer ---------- */
.site-foot { margin-top: 56px; padding: 32px 0 28px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-h { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.site-foot ul { display: grid; gap: 6px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--muted); font-size: 12.5px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .head-row { gap: 12px; }
    .head-nav { gap: 12px; }
    .head-nav a { font-size: 13px; }
    .page-head { padding-top: 18px; }
    .page-head h1 { font-size: 26px; }
    .lede { font-size: 15px; }
    .card { padding: 16px; }
    .counter-card { padding: 20px 16px 16px; }
    .who { gap: 12px; }
    .avatar, .avatar.ph { width: 60px; height: 60px; }
    .who-name { font-size: 19px; }
    .deltas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .highlights { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .hl { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "name num"; align-items: baseline; column-gap: 12px; padding: 10px 14px; }
    .hl-label { grid-area: label; }
    .hl-name { grid-area: name; }
    .hl-num { grid-area: num; }
    .hl-num { font-size: 15px; }
    .rank-table { font-size: 14px; }
    .rank-table th, .rank-table td { padding: 8px 6px; }
    .r-av { width: 30px; height: 30px; }
    .c-rank { width: 38px; }
    .cmp-form { grid-template-columns: minmax(0, 1fr); }
    .cmp-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-foot ul { gap: 0; }
    .site-foot li a { display: flex; align-items: center; min-height: 44px; }
    .search-box .btn { padding-inline: 14px; }
}
@media (max-width: 420px) {
    .head-nav { display: none; }
    .head-tools { margin-left: auto; }
    .rank-table thead .c-chg, .rank-table td.c-chg { display: none; }
    .rank-table td.c-num { font-size: 13.5px; }
    .m-chg { display: block; font-size: 12px; font-weight: 500; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
