:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #dde2ea;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #e5edff;
  --star: #f59e0b;
  --yt: #e11d48;
  --blog: #0d9488;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --surface: #131a2c;
    --surface-2: #1b2338;
    --text: #e7ebf3;
    --muted: #97a1b5;
    --line: #26304a;
    --accent: #6d9bff;
    --accent-ink: #0b1020;
    --accent-soft: #1d2a4d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #131a2c; --surface-2: #1b2338; --text: #e7ebf3; --muted: #97a1b5;
  --line: #26304a; --accent: #6d9bff; --accent-ink: #0b1020; --accent-soft: #1d2a4d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 750; font-size: 18px;
         letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo { width: 26px; height: 26px; fill: var(--line); }
.logo .on { fill: var(--accent); }
.search { flex: 1; min-width: 0; }
input[type="search"] {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
.ghost { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.people-toggle { display: none; }

/* Layout */
.layout { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid;
          grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
main { min-width: 0; padding: 20px 0 40px; }

/* People */
.people { position: sticky; top: 62px; align-self: start; max-height: calc(100dvh - 72px);
          overflow: auto; padding: 20px 2px 20px 0; }
.people-head { display: flex; justify-content: space-between; align-items: center; }
.people h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.people-close { display: none; font-size: 20px; line-height: 1; padding: 4px 10px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 6px; }
#people-list { list-style: none; margin: 0; padding: 0; }
#people-list li { display: flex; align-items: center; gap: 4px; }
.pname { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: 8px;
         display: flex; justify-content: space-between; gap: 8px; }
.pname span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pname:hover, .pname[aria-current="true"] { background: var(--surface-2); }
.pname .n { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.star { background: none; border: 0; padding: 4px 6px; color: var(--line); font-size: 17px; line-height: 1; }
.star[aria-pressed="true"] { color: var(--star); }
.star:hover { color: var(--star); }

/* Intro + person head */
.intro h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 4px 0 6px; }
.intro p { color: var(--muted); margin: 0 0 14px; max-width: 60ch; }
.person-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.person-head h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
.person-head .links { display: flex; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.person-head .actions { margin-left: auto; display: flex; gap: 8px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Filters */
.filters { display: grid; gap: 8px; margin-bottom: 14px; }
.row { display: flex; gap: 6px; flex-wrap: wrap; }
.row.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.row.scroll::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px;
        font-size: 14px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { opacity: .6; margin-left: 4px; font-size: 12.5px; }
.status { color: var(--muted); font-size: 14px; margin: 0 0 10px; min-height: 1.5em; }

/* Feed */
.feed { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
          font-size: 13px; font-weight: 700; color: #fff; }
.who { min-width: 0; flex: 1; line-height: 1.25; }
.who button { background: none; border: 0; padding: 0; font-weight: 650; text-align: left; }
.who button:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plat { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.plat svg { width: 14px; height: 14px; }
.plat.youtube { color: var(--yt); }
.plat.blog { color: var(--blog); }
.pin { font-size: 12px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.card-body { padding: 10px 14px 14px; }
.card h3 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -.005em; }
.card h3 a { color: var(--text); }
.excerpt { color: var(--muted); margin: 0 0 8px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3;
           -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 12px; color: var(--muted); background: var(--surface-2); border: 0; border-radius: 6px; padding: 2px 8px; }
.tag:hover { color: var(--text); }
.out { font-size: 14px; font-weight: 600; }

/* Video */
.media { position: relative; aspect-ratio: 16 / 9; background: #000; margin-top: 12px; }
.media.short { aspect-ratio: 16 / 9; }
.media img, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; }
.play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
               border-radius: 14px; background: rgba(225, 29, 72, .92); box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.play::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-35%, -50%);
                border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.play:hover::after { background: #e11d48; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.more { display: block; margin: 18px auto 0; border: 1px solid var(--line); background: var(--surface);
        border-radius: 999px; padding: 9px 22px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px;
        border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; max-width: 80ch; }

/* Phone */
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .people-toggle { display: inline-block; }
  .people { position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); max-height: none; z-index: 40;
            background: var(--surface); padding: 16px; box-shadow: -10px 0 30px rgba(0, 0, 0, .25);
            transform: translateX(105%); transition: transform .2s ease; }
  .people.open { transform: none; }
  .people-close { display: inline-block; }
  .brand span { display: none; }
  .person-head .actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .people { transition: none; } }
