:root {
    color-scheme: dark;
    --bg: #141312;
    --surface: #1d1c1a;
    --text: #f1eee9;
    --muted: #9a948c;
    --line: #2d2b28;
    --ghost: #262422;
    --accent: #c76af0;
    --radius: 14px;
 
    --youtube: #ff0033;
    --instagram: #e1306c;
    --tiktok: #00c2c7;
    --twitch: #9146ff;
    --x: #f1eee9;
    --kick: #53fc18;
    --podcast: #f2a20c;
}
 
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
 
/* Top bar */
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 24px;
    padding: 14px 24px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.logo span { color: var(--accent); }
 
.search { position: relative; flex: 1; max-width: 680px; }
.search input {
    width: 100%;
    padding: 12px 44px 12px 42px;
    font: inherit; font-size: 16px; color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-icon { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
               fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
              font: 12px ui-monospace, monospace; color: var(--muted);
              border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
 
/* Platform chips */
.platforms { display: flex; gap: 8px; padding: 14px 24px; overflow-x: auto; scrollbar-width: none; }
.platforms::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
    font-weight: 600; font-size: 14px;
    transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--muted); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
 
[data-platform="youtube"]   { --c: var(--youtube); }
[data-platform="instagram"] { --c: var(--instagram); }
[data-platform="tiktok"]    { --c: var(--tiktok); }
[data-platform="twitch"]    { --c: var(--twitch); }
[data-platform="x"]         { --c: var(--x); }
[data-platform="kick"]      { --c: var(--kick); }
[data-platform="podcast"]   { --c: var(--podcast); }
 
/* Layout */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 6px 24px 40px; }
 
.filters form { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.filters label, .filters legend { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
                                  letter-spacing: .06em; color: var(--muted); }
.filters select {
    display: block; width: 100%; margin-top: 6px; padding: 9px 10px;
    font: inherit; font-weight: 400; color: var(--text); text-transform: none; letter-spacing: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.filters fieldset { border: 0; padding: 0; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 4px 10px; font-size: 13px; border-radius: 8px; background: var(--ghost); }
.tag:hover { background: var(--line); }
.tag.active { background: var(--accent); color: #fff; }
.reset { font-size: 14px; color: var(--accent); font-weight: 600; }
 
/* Results */
.results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.results-head h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.count { color: var(--muted); font-size: 14px; }
 
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 40px 16px 16px; text-align: center;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--muted); }
.platform-tag {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--muted);
}
.avatar { width: 104px; height: 104px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
          background: var(--ghost); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line); }
.avatar.initials { display: grid; place-items: center; font-weight: 800; font-size: 38px; color: var(--accent); }
.name { font-weight: 700; font-size: 16px; }
.handle { color: var(--muted); font-size: 13px; margin-top: -4px; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; min-height: 20px; }
.pill { padding: 2px 9px; font-size: 12px; font-weight: 600; border-radius: 999px; background: var(--ghost); }
.stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: auto; padding-top: 12px;
         border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.stats span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.more {
    display: block; width: 100%; margin-top: 10px; padding: 8px;
    font-size: 14px; font-weight: 700; border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
    transition: background .15s, color .15s;
}
a.more:hover { background: var(--accent); color: #fff; }
 
/* Empty state */
.empty { padding: 18px 20px; margin-bottom: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-title { margin: 0; font-weight: 700; }
.empty-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
 
.ghost .card { pointer-events: none; }
.ghost .avatar, .ghost .lines i, .ghost .pill { background: var(--ghost); animation: pulse 1.6s ease-in-out infinite; }
.ghost .pill { width: 60px; height: 20px; }
.ghost .stats b.bar { display: block; width: 44px; height: 14px; margin: 3px 0 4px; border-radius: 5px;
                      background: var(--ghost); animation: pulse 1.6s ease-in-out infinite; }
.ghost .more { opacity: .45; }
.lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lines.center { flex: none; align-items: center; width: 70%; margin-bottom: 2px; }
.lines.center i { width: 100%; }
.lines.center i.short { width: 60%; }
.lines i { display: block; height: 10px; border-radius: 5px; }
.lines i.short { width: 55%; }
@keyframes pulse { 50% { opacity: .5; } }
 
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
        padding: 18px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.dbnote { font-family: ui-monospace, monospace; }
 
/* Phones */
@media (max-width: 760px) {
    .topbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
    .search kbd { display: none; }
    .platforms { padding: 12px 16px; }
    .layout { grid-template-columns: 1fr; padding: 4px 16px 32px; gap: 18px; }
    .filters form { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .filters fieldset, .reset { grid-column: 1 / -1; }
    .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .avatar { width: 80px; height: 80px; }
    .card { padding: 36px 10px 12px; }
    .stats span { font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
    .stats b { font-size: 16px; }
}
