/* Kurve: dark stage band + white data cards. Tokens first. */
:root {
  --bg: #F2F4F7;
  --card: #FFFFFF;
  --ink: #0B0D12;
  --ink-2: #2E333D;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-2: #D5D9E0;
  --soft: #F5F6F8;
  --brand: #3B5BFF;
  --brand-ink: #2A45E0;
  --brand-soft: #ECEFFF;
  --gold: #F5B301;
  --stage: #0B0D12;
  --stage-2: #151925;
  --on-stage: #FFFFFF;
  --on-stage-2: rgba(255, 255, 255, 0.72);
  --on-stage-3: rgba(255, 255, 255, 0.5);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 12px 32px -18px rgba(11, 13, 18, 0.22);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080B;
    --card: #11141B;
    --ink: #EEF0F4;
    --ink-2: #C8CDD6;
    --muted: #97A0AF;
    --line: #20242E;
    --line-2: #2B303C;
    --soft: #171B24;
    --brand: #7189FF;
    --brand-ink: #93A5FF;
    --brand-soft: #1A2140;
    --stage: #05060A;
    --stage-2: #0E1220;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: 19px; font-weight: 750; }
p { margin: 0; }

/* ---------- Stage (dark header band) ---------- */
.stage {
  position: relative; color: var(--on-stage); overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(59, 91, 255, 0.45), transparent 60%),
    radial-gradient(700px 360px at -10% 0%, rgba(59, 91, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--stage-2), var(--stage));
}
.stage-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
}
.top { position: relative; z-index: 2; }
.top-row { display: flex; align-items: center; gap: 20px; padding-block: 14px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; flex-shrink: 0; color: var(--on-stage); }
.brand-tag { font-style: normal; font-weight: 600; font-size: 12px; color: var(--on-stage-3); letter-spacing: 0; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; }
.search { flex: 1; display: flex; align-items: center; max-width: 460px; margin-left: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding-inline: 14px 6px; transition: background .15s, border-color .15s; }
.search:focus-within { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); outline: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: #fff; padding-block: 9px; outline: none; }
.search input::placeholder { color: var(--on-stage-3); }
.search button { border: 0; background: transparent; color: #fff; padding: 6px; cursor: pointer; border-radius: 8px; display: grid; }
.search svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body:has(.hero-home) .top .search { display: none; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 2px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex-shrink: 0; text-decoration: none; padding: 10px 14px 12px; color: var(--on-stage-2); font-weight: 650; font-size: 14.5px; border-bottom: 2px solid transparent; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand); }
@media (max-width: 640px) {
  .top-row { flex-wrap: wrap; gap: 10px; }
  .brand-tag { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}

.hero { position: relative; z-index: 1; padding-block: 28px 92px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--on-stage-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.hero h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; color: #fff; }
.hero-lede { color: var(--on-stage-2); font-size: 16.5px; line-height: 1.7; max-width: 70ch; }
.hero-lede b { color: #fff; }
.hero-meta { color: var(--on-stage-3); font-size: 13px; }
.page-hero { display: grid; gap: 12px; }

/* Home hero */
.hero-home { padding-block: 40px 104px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.home-hero-text { display: grid; gap: 16px; }
.home-hero h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.12; letter-spacing: -0.035em; }
.eyebrow { font-size: 13.5px; font-weight: 700; color: #9DB0FF; letter-spacing: 0; }
.hero-search { display: flex; gap: 8px; background: #fff; border-radius: 16px; padding: 7px; max-width: 560px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 16px; color: #0B0D12; padding: 10px 12px; outline: none; background: transparent; }
.hero-search button { border: 0; font: inherit; font-weight: 700; color: #fff; background: #3B5BFF; padding: 0 22px; border-radius: 11px; cursor: pointer; }
.hero-search button:hover { background: #2A45E0; }
.hero-search:focus-within { outline: 3px solid rgba(113, 137, 255, .6); outline-offset: 2px; }
.hero-hint { font-size: 13px; color: var(--on-stage-3); }
.hero-curve { width: 100%; height: auto; max-height: 300px; }
@media (max-width: 800px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-curve { position: absolute; right: -40px; bottom: 40px; width: 70%; opacity: .45; z-index: -1; }
}

/* Channel hero */
.hero-channel { padding-block: 24px 96px; }
.ch-hero { display: grid; gap: 16px; }
.ch-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ch-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ch-id .av { box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.ch-id-text { display: grid; gap: 8px; min-width: 0; }
.ch-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--on-stage-2); font-size: 14px; }
.pill { padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.yt-link { color: #fff; text-decoration: none; font-weight: 650; }
.yt-link:hover { text-decoration: underline; }
.ch-big { display: grid; justify-items: end; text-align: right; gap: 2px; }
.ch-big .label { font-size: 13px; font-weight: 650; color: var(--on-stage-2); }
.ch-big .label em { font-style: normal; font-weight: 500; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 11.5px; }
.big { font-size: clamp(44px, 7vw, 68px); line-height: 1; font-weight: 850; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: #fff; }
.big small { font-size: 0.36em; font-weight: 700; margin-left: 6px; letter-spacing: 0; color: var(--on-stage-2); }
.big-sub { color: var(--on-stage-3); font-size: 13px; }
.ch-summary { font-size: 15px; }
@media (max-width: 700px) {
  .ch-big { justify-items: start; text-align: left; }
  .ch-id .av { width: 72px; height: 72px; }
}

/* ---------- Main + cards ---------- */
main.wrap { padding-block: 24px 64px; display: grid; gap: 20px; position: relative; z-index: 3; }
main.overlap { margin-top: -64px; }
main.wrap > *, .channel > *, .card > *, .home-grid > *, .stack > *, .prose > * { min-width: 0; }
.channel { display: grid; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.shead { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.shead p { margin-top: 2px; }
.more { color: var(--brand); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.home-grid { display: grid; gap: 20px; }
@media (min-width: 920px) { .home-grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.stack { display: grid; gap: 20px; }

/* Podium */
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.pod a { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 12px 18px; border-radius: 18px; text-decoration: none; text-align: center; background: var(--soft); border: 1px solid var(--line); transition: transform .15s; }
.pod a:hover { transform: translateY(-2px); }
.pod-1 { order: 2; }
.pod-2 { order: 1; }
.pod-3 { order: 3; }
.pod-1 a { padding-top: 34px; background: linear-gradient(180deg, var(--brand-soft), var(--card)); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pod-rank { position: absolute; top: 10px; left: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; font-weight: 800; font-size: 13px; background: var(--ink); color: var(--card); }
.pod-1 .pod-rank { background: var(--gold); color: #3a2a00; }
.pod-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pod-num { font-size: 26px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pod-num small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.pod-sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) {
  .podium { gap: 8px; }
  .pod a { padding: 26px 6px 14px; }
  .pod .av { width: 52px; height: 52px; }
  .pod-num { font-size: 19px; }
  .pod-sub { display: none; }
}

/* Channel list rows */
.clist { list-style: none; margin: 0; padding: 0; }
.crow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; }
.clist:not(:has(.rank)) .crow { grid-template-columns: minmax(0, 1fr) auto; }
.rank { width: 26px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.crow-main { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.crow-main:hover .crow-name { color: var(--brand); }
.crow-text { display: grid; min-width: 0; }
.crow-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow-val { display: grid; justify-items: end; text-align: right; }
.crow-val b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.crow-val small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.av { border-radius: 999px; flex-shrink: 0; background: var(--soft); object-fit: cover; }
.av-empty { display: inline-grid; place-items: center; color: var(--muted); font-weight: 700; }

/* Ranking table */
.rank-wrap { overflow-x: auto; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rank th { background: var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 650; text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank th a { text-decoration: none; }
.rank th a:hover { color: var(--ink); }
.rank th.on { color: var(--brand); }
.rank td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.rank tbody tr:last-child td { border-bottom: 0; }
.rank tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.rank .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rank td.num.on { color: var(--ink); font-weight: 800; }
.c-rank { width: 64px; text-align: center !important; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-rank.top { color: var(--brand); font-size: 16px; }
.c-ch a { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.c-ch a:hover b { color: var(--brand); }
.c-name { display: grid; min-width: 0; justify-items: start; text-align: left; }
.c-name b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.c-name small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 700px) {
  .rank th:nth-child(n+4), .rank td:nth-child(n+4) { display: none; }
  .rank th, .rank td { padding: 10px 10px; }
  .c-rank { width: 40px; }
  .c-name b { max-width: 180px; }
}

/* KPI cards (channel page) */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.kpi dt { font-size: 13px; color: var(--muted); font-weight: 650; }
.kpi dd { margin: 0; }
.kpi-num { font-size: 26px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi-num { font-size: 21px; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); background: var(--soft); border: 1px solid var(--line); padding: 8px 14px; border-radius: 12px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--line-2); }
.btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.btn.dark { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.btn.dark:hover { background: rgba(255,255,255,.16); }
.btn[aria-pressed="true"] svg { fill: var(--gold); stroke: var(--gold); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { background: transparent; justify-self: start; }

/* Charts */
.tabs-chart { display: grid; grid-template-columns: auto auto 1fr; gap: 12px 4px; align-items: center; }
.tabs-chart input { position: absolute; opacity: 0; pointer-events: none; }
.tabs-chart label { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--muted); cursor: pointer; background: var(--soft); }
.tabs-chart input:checked + label { background: var(--ink); color: var(--card); }
.tabs-chart input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.tabs-chart .panel { grid-column: 1 / -1; display: none; }
#ct-v:checked ~ .p-v, #ct-s:checked ~ .p-s { display: block; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: url(#gbar); }
.chart .bar:hover { opacity: .8; }
.chart .g-top { stop-color: var(--brand); }
.chart .g-bot { stop-color: var(--brand); stop-opacity: .45; }
.chart .g-area-top { stop-color: var(--brand); stop-opacity: .25; }
.chart .g-area-bot { stop-color: var(--brand); stop-opacity: 0; }
.chart .area { fill: url(#garea); stroke: none; }
.chart .step { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--brand); stroke: var(--card); stroke-width: 3; }
.chart .hit { fill: transparent; }
.chart-empty { padding: 56px 16px; text-align: center; color: var(--muted); background: repeating-linear-gradient(135deg, var(--soft) 0 10px, transparent 10px 20px); border-radius: 14px; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--ink); color: var(--card); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -130%); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.daily { border-collapse: collapse; width: 100%; font-size: 14px; }
.daily th, .daily td { padding: 10px 14px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.daily thead th { font-size: 12.5px; color: var(--muted); font-weight: 650; background: var(--soft); }
.daily tbody tr:nth-child(even) { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.daily th:first-child, .daily td:first-child { text-align: left; }
.daily tbody th { font-weight: 600; }
.daily:not(.expanded) .more-row { display: none; }

/* Video cards */
.vcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 14px; }
.vcard { display: grid; gap: 4px; text-decoration: none; }
.vthumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vrank { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; padding-inline: 6px; display: grid; place-items: center; border-radius: 8px; background: rgba(11,13,18,.82); color: #fff; font-weight: 800; font-size: 13px; }
.vdur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(11,13,18,.82); color: #fff; font-size: 12px; font-weight: 600; }
.vcard .vtitle { font-weight: 700; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.vcard:hover .vtitle { color: var(--brand); }
.vmeta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } }

.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vrow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; padding: 6px; border-radius: 12px; }
.vrow:hover { background: var(--soft); }
.vrow img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; background: var(--soft); }
.vtext { display: grid; gap: 2px; min-width: 0; }
.vtext .vtitle { font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Info, chips, misc */
.info { display: grid; margin: 0; border: 1px solid var(--line); border-radius: 14px; }
.info > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.info > div:first-child { border-top: 0; }
.info dt { color: var(--muted); font-size: 14px; }
.info dd { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
a.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip-n { font-size: 12px; font-weight: 700; color: var(--muted); }
.avatar-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.avatar-grid a { display: grid; justify-items: center; gap: 6px; text-decoration: none; text-align: center; }
.avatar-grid span { font-size: 12.5px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-grid a:hover span { color: var(--brand); }
.cta { background: linear-gradient(135deg, #3B5BFF, #6F54FF); color: #fff; border: 0; justify-items: start; }
.cta p { color: rgba(255,255,255,.85); }
.cta .btn.primary { background: #fff; color: #2A45E0; border-color: #fff; }
.desc summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.desc p { white-space: pre-line; margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.source { color: var(--muted); font-size: 13px; }
.source a { color: var(--ink-2); }
.note { max-width: 72ch; padding-inline: 4px; }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; justify-self: start; max-width: 100%; }
.seg.scroll { overflow-x: auto; scrollbar-width: none; }
.seg a { text-decoration: none; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(11,13,18,.12); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 650; }
.pager a { background: var(--card); border: 1px solid var(--line); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span[aria-current] { background: var(--ink); color: var(--card); }
.pager .off { color: var(--muted); opacity: .55; }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.topic-grid a { display: grid; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; box-shadow: var(--shadow); }
.topic-grid a b { font-size: 16px; }
.topic-grid a:hover { border-color: var(--brand); }

.pin-grid { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pin { flex: 0 0 auto; width: 150px; display: grid; gap: 6px; padding: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.pin img { width: 36px; height: 36px; border-radius: 999px; }
.pin b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin span { font-size: 13px; color: var(--muted); }
.pin.pinned { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }

.empty { padding: 36px 16px; text-align: center; display: grid; gap: 6px; background: var(--soft); border: 1px dashed var(--line-2); border-radius: 16px; }
.empty.big { padding: 72px 16px; border: 0; background: transparent; gap: 12px; }
.empty-title { font-weight: 700; }

/* Prose pages */
.page-head { display: grid; gap: 8px; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 32px); }
.lede { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 70ch; }
.prose { display: grid; gap: 14px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.prose h1 { font-size: clamp(24px, 3.4vw, 32px); }
.prose h2 { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.prose a { color: var(--brand); }
.prose.narrow { max-width: 600px; }
.legal { font-size: 14.5px; }
.faq { display: grid; gap: 6px; padding-block: 8px; border-top: 1px solid var(--line); }
.form { display: grid; gap: 8px; }
.form label { font-weight: 650; font-size: 14px; }
.form input, .form textarea { font: inherit; color: inherit; background: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; }
.form input:focus, .form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.form .btn { justify-self: start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 10px 14px; border-radius: 12px; background: var(--soft); }
.notice.ok { background: color-mix(in srgb, #1FA971 14%, var(--card)); }
.notice.err { background: color-mix(in srgb, #E5484D 14%, var(--card)); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 45; background: var(--ink); color: var(--card); font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.toast.show { opacity: 1; }
.toast:empty { padding: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 32px 44px; background: var(--card); }
.foot-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.foot .muted { font-size: 13.5px; max-width: 60ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; align-content: start; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

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

/* Video page */
.hero-video { padding-block: 24px 96px; }
.vid-hero { display: grid; gap: 16px; }
.vid-hero-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: center; }
.vid-thumb { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 24px 48px -24px rgba(0,0,0,.8); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vid-thumb:hover img { transform: scale(1.03); }
.vid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 99px; display: grid; place-items: center; background: rgba(11,13,18,.72); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); }
.vid-thumb:hover .vid-play { background: #3B5BFF; }
.vid-info { display: grid; gap: 12px; min-width: 0; }
.vid-info h1 { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.3; }
.vid-meta { color: var(--on-stage-2); font-size: 14px; }
@media (max-width: 760px) { .vid-hero-row { grid-template-columns: 1fr; gap: 18px; } }
.kpi-time { font-size: 20px; }
.ch-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); text-decoration: none; }
a.ch-card:hover { border-color: var(--brand); }
.ch-card-text { display: grid; gap: 2px; min-width: 0; }
.ch-card-text b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .ch-card { grid-template-columns: auto minmax(0, 1fr); } .ch-card > .more, .ch-card > .btn { grid-column: 1 / -1; justify-self: start; } }

/* Kurve wordmark */
.wordmark { font-size: 22px; font-weight: 850; letter-spacing: -0.035em; }

/* Home: live upload feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li + li { border-top: 1px solid var(--line); }
.feed-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 2px; text-decoration: none; }
.feed-thumb { width: 128px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.feed-text { display: grid; gap: 6px; min-width: 0; }
.feed-title { font-weight: 700; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-row:hover .feed-title { color: var(--brand); }
.feed-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.feed-ch { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { margin-left: auto; white-space: nowrap; font-weight: 600; color: var(--brand); }
@media (max-width: 560px) { .feed-row { grid-template-columns: 104px minmax(0, 1fr); } .feed-thumb { width: 104px; height: 58px; } }
.avatar-grid.disc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.avatar-grid small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.biz { font-size: 12.5px; line-height: 1.6; margin-top: 6px; }

/* Home: live now + 24h list */
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.live-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 2px; text-decoration: none; }
.live-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-badge { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 5px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.live-row:hover .feed-title { color: var(--brand); }
.live-viewers { margin-left: auto; white-space: nowrap; font-weight: 700; color: #E5484D; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 2px; text-decoration: none; }
.mini-n { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.mini-text { display: grid; min-width: 0; }
.mini-text b { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list a:hover b { color: var(--brand); }
.mini-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-grid.one { grid-template-columns: 1fr; }
