/* Livecounts.nl homepage and info pages (about, contact, privacy, terms, 404).
   Plain CSS and system fonts on purpose: nothing to download before first paint. */

:root {
    --bg: #111214;
    --surface: #18191c;
    --surface-2: #202126;
    --line: #2b2d33;
    --line-strong: #3b3e46;
    --text: #ececef;
    --muted: #a4a7ae;
    --accent: #ff4757;
    --link: #ff7480;
    --btn: #e0283a;
    --btn-hover: #c81e2e;
    --focus: #ffb3ba;
    --tint: rgba(255, 71, 87, 0.12);
    --radius: 12px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f5f5f3;
    --surface: #ffffff;
    --surface-2: #efeff1;
    --line: #dcdce1;
    --line-strong: #c4c5cc;
    --text: #16171a;
    --muted: #555963;
    --link: #c21f2f;
    --focus: #c21f2f;
    --tint: rgba(224, 40, 58, 0.08);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip {
    position: absolute;
    inset-inline-start: 8px;
    top: -60px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 10;
}
.skip:focus { top: 8px; }

.vh {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Platform colors, only ever used on decorative icons */
.c-yt { color: #ff0033; }
.c-ig { color: #e4405f; }
.c-fb { color: #1877f2; }
.c-tt, .c-x, .c-th, .c-rb, .c-steam { color: var(--text); }
.c-kick { color: #53fc18; }
.c-tw { color: #9146ff; }
.c-bs { color: #1185fe; }
.c-ts { color: #5448ee; }
.c-fivem { color: #f40552; }
.c-mc { color: #62b47a; }
.c-dc { color: #5865f2; }
.c-tg { color: #26a5e4; }
[data-theme="light"] .c-kick { color: #1f9d00; }
[data-theme="light"] .c-tw { color: #7c3aed; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; }
.brand .tld { color: var(--link); }
.head-nav { display: flex; align-items: center; gap: 4px; }
.head-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 8px 10px;
    border-radius: 8px;
}
.head-nav a:hover { color: var(--text); background: var(--surface); }
@media (max-width: 440px) {
    .head-nav .nav-tools { display: none; }
}
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-inline-start: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.theme-btn:hover { background: var(--surface); }
.theme-btn .ic { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }

/* Hero with the search box */
.hero { padding: 36px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) {
    .hero { padding: 56px 0 40px; }
    .hero-grid { grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 48px; align-items: start; }
}
.hero h1 { font-size: clamp(1.75rem, 4.2vw, 2.625rem); font-weight: 750; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 1.0625rem; margin-top: 12px; max-width: 56ch; }

.finder { margin-top: 24px; }
.finder-label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.finder-row { display: flex; gap: 8px; }
.finder-row input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
}
.finder-row input::placeholder { color: var(--muted); opacity: 1; }
.finder-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--btn);
    color: #fff;
    font: inherit;
    font-weight: 650;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); }
.btn .ic { width: 18px; height: 18px; }
@media (max-width: 420px) {
    /* Icon only on phones so the input keeps its width; the label stays for screen readers */
    .finder .btn { padding: 0 16px; }
    .finder .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.chips { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.chips legend { font-size: 0.8125rem; color: var(--muted); padding: 0; margin-bottom: 8px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
    user-select: none;
}
.chip span .ic { width: 15px; height: 15px; }
.chip span:hover { color: var(--text); border-color: var(--line-strong); }
.chip input:checked + span { color: var(--text); border-color: var(--accent); background: var(--tint); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.finder-hint { margin-top: 12px; font-size: 0.875rem; color: var(--muted); min-height: 2.9em; }
.finder-hint.is-match { color: var(--text); }
.finder-hint.is-error { color: var(--link); }

.popular { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.popular a { display: inline-block; margin-block: 2px; margin-inline: 0 10px; padding: 2px 0; }

/* "Right now" panel with a few real numbers from our own APIs */
.now { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 16px 12px; }
.now h2 { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.now ul { list-style: none; margin-top: 8px; }
.now li + li { border-top: 1px solid var(--line); }
.now a { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.now a:hover .now-name { text-decoration: underline; }
.now-name { font-weight: 600; }
.now-what { grid-column: 1; font-size: 0.8125rem; color: var(--muted); }
.now-num {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.0625rem;
    font-weight: 600;
    min-width: 9ch;
    text-align: end;
    direction: ltr;
    unicode-bidi: isolate;
}
.now-num:empty::before {
    content: "";
    display: inline-block;
    width: 8ch;
    height: 0.9em;
    border-radius: 4px;
    background: var(--surface-2);
    vertical-align: middle;
}
.now-num.is-off::before { content: "\2192"; width: auto; height: auto; background: none; color: var(--muted); }
.now-note { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }

/* Ad slots: height reserved up front so nothing jumps when an ad arrives. On phones AdSense
   renders these full width and about 390px tall, on desktop 90 to 280px plus the label. */
.ad-wrap { margin: 8px auto 32px; }
.lcnl-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}
.lcnl-ad.ad-fluid { min-height: 200px; }
@media (min-width: 768px) {
    .lcnl-ad { min-height: 310px; }
    .lcnl-ad.ad-fluid { min-height: 300px; }
    .lcnl-ad.ad-short { min-height: 120px; }
}
.ad-label { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 0 4px; }
.lcnl-ad ins { display: block; width: 100%; }

/* Sections */
.band { padding-top: 8px; padding-bottom: 36px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.band h2 { font-size: 1.5rem; font-weight: 700; }
.band-sub { color: var(--muted); font-size: 0.9375rem; }

/* Tool directory: one row per platform, two columns on wide screens */
.plats { list-style: none; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
    .plats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
    .plats > li:nth-child(-n+2) { border-top: 1px solid var(--line); }
}
.plat { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plat h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 650; min-height: 34px; }
.plat h3 .ic { width: 20px; height: 20px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.9063rem;
    text-decoration: none;
}
.tool:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tool.cmp { background: transparent; color: var(--muted); }
.tool.cmp:hover { color: var(--text); }
.new {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--btn);
    border-radius: 4px;
    padding: 1px 5px;
}
@media (max-width: 520px) {
    .plat { grid-template-columns: 1fr; gap: 8px; }
    .plat h3 { min-height: 0; }
}

/* How it works */
.facts { display: grid; gap: 14px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.fact h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.fact p { color: var(--muted); font-size: 0.9375rem; }

.stream-text { color: var(--muted); max-width: 70ch; }
.embed-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Space-Node promo (own styling so the homepage does not wait on another stylesheet) */
.spacenode-promo-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: #16213e;
    color: #fff;
    text-decoration: none;
    border: 1px solid #243257;
}
.spacenode-promo-card:hover { background: #1b2849; }
.spacenode-promo-text { max-width: 62ch; }
.spacenode-promo-eyebrow { display: block; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); margin-bottom: 4px; }
.spacenode-promo-title { display: block; font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.spacenode-promo-desc { display: block; color: rgba(255, 255, 255, 0.86); font-size: 0.9375rem; }
.spacenode-promo-cta { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #16213e; font-weight: 700; font-size: 0.9063rem; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.spacenode-promo-cta .ic { width: 14px; height: 14px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 16px; padding: 28px 0 36px; font-size: 0.9375rem; }
.foot-links, .langs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a, .langs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-links a:hover, .langs a:hover { color: var(--text); text-decoration: underline; }
.langs { margin-top: 10px; font-size: 0.875rem; }
.langs a[aria-current] { color: var(--text); font-weight: 600; }
.foot-note { color: var(--muted); font-size: 0.8125rem; margin-top: 16px; max-width: 80ch; }

/* Text pages: about, contact, privacy, terms */
.page { padding-top: 40px; padding-bottom: 24px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 750; letter-spacing: -0.02em; }
.prose .meta { color: var(--muted); margin-top: 8px; font-size: 0.9375rem; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 10px; }
.prose h3 { font-size: 1.0625rem; font-weight: 650; margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose .lead { font-size: 1.0625rem; color: var(--muted); margin-top: 12px; }
.prose code { font-family: var(--mono); font-size: 0.875em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.9375rem; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; }
.table-scroll { overflow-x: auto; }
.card-row { display: grid; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 640px) { .card-row { grid-template-columns: 1fr 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; }
.contact-card h2 { margin: 0 0 6px; font-size: 1.0625rem; }
.contact-card p { color: var(--muted); font-size: 0.9375rem; margin: 0 0 12px; }
.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn-line:hover { background: var(--surface-2); }

/* 404 */
.nf { padding-top: 56px; padding-bottom: 32px; }
.nf .code { font-family: var(--mono); color: var(--link); font-weight: 700; font-size: 0.9375rem; }
.nf h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 6px; }
.nf .lead { color: var(--muted); margin-top: 10px; max-width: 56ch; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 32px; }
.nf .actions .btn-line { min-height: 52px; padding: 0 20px; font-size: 1rem; }
.nf h2 { font-size: 1.125rem; margin-bottom: 12px; }

/* Ranking pages (/top/) */
.page-top { padding-top: 28px; padding-bottom: 12px; }
.page-top h1 { font-size: clamp(1.625rem, 3.6vw, 2.375rem); font-weight: 750; letter-spacing: -0.02em; margin-top: 10px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
[dir="rtl"] .crumbs li + li::before { content: "\2039"; }
.crumbs a { color: var(--muted); }
.rank-meta { margin-top: 12px; font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rank-meta time { color: var(--text); }
.rank-note { margin-top: 8px; font-size: 0.875rem; color: var(--muted); max-width: 75ch; }
.rank-h { font-size: 1.375rem; margin-bottom: 12px; }
.rank-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.rank { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.rank th { text-align: start; font-size: 0.8125rem; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank tbody tr:last-child td { border-bottom: 0; }
.rank .r-pos { width: 1%; color: var(--muted); font-family: var(--mono); text-align: end; white-space: nowrap; }
.rank tbody tr:nth-child(-n+3) .r-pos { color: var(--link); font-weight: 700; }
.rank .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank .r-id { display: flex; flex-direction: column; min-width: 0; }
.rank .r-id a { color: var(--text); font-weight: 600; text-decoration: none; }
.rank .r-id a:hover { text-decoration: underline; }
.r-handle { font-size: 0.8125rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; text-align: start; }
.rank .r-num { text-align: end; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .rank .r-num { text-align: left; }
.rank .r-cmp { width: 1%; white-space: nowrap; font-size: 0.8125rem; }
.rank .r-cmp a { color: var(--muted); }
.rank .r-empty { color: var(--muted); padding: 16px 12px; }
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; background: var(--surface-2); }
.av-txt { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.875rem; }
.rank-missing { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 560px) {
    .rank .r-cmp { display: none; }
    .rank th, .rank td { padding-left: 8px; padding-right: 8px; }
    .av { width: 28px; height: 28px; }
}
.faq h3 { font-size: 1.0625rem; margin: 18px 0 6px; }
.faq p { color: var(--muted); max-width: 75ch; }
.hub-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; }
.hub-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; }
.hub-card h2 a { color: var(--text); text-decoration: none; }
.hub-card h2 a:hover { text-decoration: underline; }
.hub-top { list-style: none; padding: 0; margin: 12px 0; counter-reset: hub; flex: 1; }
.hub-top li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); counter-increment: hub; }
.hub-top li::before { content: counter(hub); font-family: var(--mono); color: var(--link); font-weight: 700; min-width: 1.5ch; }
.hub-top .r-id { flex: 1; min-width: 0; }
.hub-top .r-id a { color: var(--text); font-weight: 600; text-decoration: none; }
.hub-top .r-num { font-family: var(--mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hub-more { font-size: 0.9375rem; font-weight: 600; }
.rank-links { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }
.rank-links a { display: inline-block; margin-block: 2px; margin-inline: 0 12px; }

/* Right to left pages (Arabic). Flex and grid mirror on their own; this covers the rest. */
[dir="rtl"] body { line-height: 1.7; }
/* Letter spacing pulls Arabic letters apart, so none of it on RTL pages */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand, [dir="rtl"] .now h2,
[dir="rtl"] .ad-label, [dir="rtl"] .new, [dir="rtl"] .spacenode-promo-eyebrow { letter-spacing: 0; }
[dir="rtl"] .now-num { text-align: left; }
[dir="rtl"] .now-num.is-off::before { content: "\2190"; }
[dir="rtl"] .spacenode-promo-cta .ic { transform: scaleX(-1); }
/* The search field is LTR for links and handles, but its Arabic placeholder reads right to left */
[dir="rtl"] .finder-row input:placeholder-shown { direction: rtl; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
    .tool, .chip span, .head-nav a, .theme-btn, .btn, .btn-line { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
