/* 炽析 CHIXI — FastMoss-class SaaS, a notch more premium */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --elev: #FFFFFF;
  --ink: #1F283C;
  --ink-2: rgba(0, 0, 0, .88);
  --muted: #8B8D98;
  --faint: #A0A2AD;
  --line: #E5E7EB;
  --line-2: #E5E7EB;
  --brand: #FE2062;
  --brand-2: #F31260;
  --brand-soft: #FFF2F3;
  --brand-tint: #FFF2F3;
  --brand-tint-2: #FDF2F0;
  --up: #12B76A;
  --up-soft: #E6F8EF;
  --down: #F04438;
  --down-soft: #FEECEB;
  --teal: #14B8A6;
  --chart: #FE2062;
  --dy: #FE2062;
  --tk: #1F283C;
  --gold: #B8860B;
  --gold-line: #E0B33E;
  --gold-bg: #FFF8E8;
  --silver: #6B7280;
  --silver-bg: #F3F4F6;
  --bronze: #C2783A;
  --bronze-bg: #FFF3E8;
  --warn: #F79009;
  --chip: #F3F4F6;
  --shadow: 0 4px 24px rgba(16, 24, 40, .06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --sider: 200px;
  --top-h: 56px;
  --font: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

html[data-theme="dark"],
html.theme-dark {
  --bg: #111113;
  --surface: #1C1C20;
  --elev: #2A2A30;
  --ink: #F2F2F4;
  --ink-2: #D4D4D8;
  --muted: #9A9AA3;
  --faint: #7A7A84;
  --line: #2A2A30;
  --line-2: #323238;
  --brand: #FE2062;
  --brand-2: #F31260;
  --brand-soft: rgba(254, 32, 98, .16);
  --brand-tint: rgba(254, 32, 98, .12);
  --brand-tint-2: rgba(253, 242, 240, .08);
  --up: #32D583;
  --up-soft: rgba(50, 213, 131, .14);
  --down: #F97066;
  --down-soft: rgba(249, 112, 102, .14);
  --chart: #FE2062;
  --dy: #FE2062;
  --tk: #F2F2F4;
  --gold: #F5C86B;
  --gold-line: #E0B33E;
  --gold-bg: rgba(245, 200, 107, .10);
  --silver: #A1A1AA;
  --silver-bg: #2A2A30;
  --bronze: #E0A06A;
  --bronze-bg: rgba(224, 160, 106, .12);
  --chip: #2C2C32;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--brand-soft); color: var(--ink); }

/* —— app chrome —— */
.app {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sider {
  width: var(--sider);
  flex: 0 0 var(--sider);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  overflow: auto;
}
.sider .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  flex: 0 0 auto;
}
.sider .logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  letter-spacing: -.04em;
  flex: 0 0 auto;
}
.sider .logo-name {
  display: flex; flex-direction: column; line-height: 1.15;
}
.sider .logo-name b {
  font-size: 16px; font-weight: 700; letter-spacing: -.02em;
}
.sider .logo-name span {
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase;
}

.region { display: none !important; }
.region a, .region button {
  flex: 1;
  border: 0; background: transparent;
  color: var(--muted);
  padding: 6px 0;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  text-align: center;
}
.region a:hover, .region button:hover { color: var(--ink); }
.region a.on, .region button.on {
  background: var(--brand-2);
  color: #fff;
}

.sider nav { flex: 1; padding: 4px 0 12px; }
.nav-g {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--faint);
  padding: 14px 20px 6px;
}
.sider nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin: 1px 10px 1px 0;
  padding: 8px 14px 8px 18px;
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.sider nav a svg {
  width: 16px; height: 16px;
  flex: 0 0 auto;
  opacity: .72;
}
.sider nav a:hover {
  color: var(--ink);
  background: var(--bg);
}
.sider nav a:hover svg { opacity: 1; }
.sider nav a.on {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}
.sider nav a.on svg { opacity: 1; color: var(--brand); }
.sider nav a.on::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--brand);
}

.sider-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

header.top {
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  flex: 0 0 auto;
}
header.top h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--ink);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.searchbox { position: relative; color: var(--muted); width: 220px; }
.searchbox input {
  width: 100%; height: 34px; border-radius: 10px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px 0 32px;
  outline: none;
  transition: box-shadow .15s, background .15s;
}
html[data-theme="dark"] .searchbox input,
html.theme-dark .searchbox input {
  background: var(--elev);
  border: 1px solid var(--line);
}
.searchbox input::placeholder { color: var(--faint); }
.searchbox input:focus {
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.searchbox svg { position: absolute; left: 10px; top: 10px; }

a.text-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
a.text-link:hover { color: var(--ink); background: var(--surface); }

.theme-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 0;
  background: var(--surface);
  color: var(--ink-2);
  display: grid; place-items: center;
}
html[data-theme="dark"] .theme-btn,
html.theme-dark .theme-btn {
  background: var(--elev);
  border: 1px solid var(--line);
}
.theme-btn:hover { color: var(--brand); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .ico-sun { display: none; }
html[data-theme="dark"] .theme-btn .ico-sun,
html.theme-dark .theme-btn .ico-sun { display: block; }
html[data-theme="dark"] .theme-btn .ico-moon,
html.theme-dark .theme-btn .ico-moon { display: none; }

/* —— page sheet —— */
main.page {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 20px 16px;
  padding: 24px 22px 28px;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}
html[data-theme="dark"] main.page,
html.theme-dark main.page {
  box-shadow: none;
  border: 1px solid var(--line);
}

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.page-head h1 { display: none; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.crumbs { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }

/* —— filters —— */
.filters {
  display: flex; flex-wrap: wrap;
  gap: 10px; align-items: center;
  margin-bottom: 16px;
}
.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  width: 100%;
}
.seg {
  display: inline-flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg a, .seg button {
  border: 0; background: transparent;
  height: 28px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg a.on, .seg button.on {
  background: var(--brand-2);
  color: #fff;
}
.chip, .cat {
  display: inline-flex; align-items: center;
  border: 0;
  background: var(--chip);
  color: var(--ink);
  height: 30px; padding: 0 14px; border-radius: 9999px; font-size: 12px; font-weight: 500;
}
html[data-theme="dark"] .chip,
html.theme-dark .chip,
html[data-theme="dark"] .cat,
html.theme-dark .cat {
  background: #2C2C32;
  color: #F2F2F4;
}
.chip:hover, .cat:hover { color: var(--ink); background: var(--chip); }
.chip.on, .cat.on {
  background: var(--brand-2);
  color: #fff;
  font-weight: 600;
}
.select {
  height: 32px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 8px;
  padding: 0 10px; color: var(--ink-2);
}

/* —— KPI —— */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi, .kpi.tint {
  background: var(--brand-tint);
  border: 0;
  border-radius: 16px;
  padding: 18px 18px 16px;
  min-height: 132px;
}
html[data-theme="dark"] .kpi,
html.theme-dark .kpi { background: var(--elev); }
html[data-theme="dark"] .kpi.tint,
html.theme-dark .kpi.tint { background: var(--brand-tint); }
.kpi-ico {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--brand);
  margin-bottom: 12px;
}
.kpi.tint .kpi-ico { background: #fff; }
html[data-theme="dark"] .kpi-ico,
html.theme-dark .kpi-ico { background: var(--surface); }
.kpi-ico svg { width: 16px; height: 16px; }
.kpi .val {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kpi .lbl {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
}
.kpi-src { margin-top: 8px; line-height: 1; }
.kpi .delta { font-size: 11px; margin-top: 6px; color: var(--muted); }
.kpi .delta.up { color: var(--up); }
.kpi .delta.down { color: var(--down); }

.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; }

/* —— cards / panels —— */
.card {
  background: var(--surface);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}
html[data-theme="dark"] .card,
html.theme-dark .card {
  background: var(--elev);
  border: 1px solid var(--line);
}
.card-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.card-h h2 {
  margin: 0;
  font-size: 14px; font-weight: 650;
  letter-spacing: -.01em;
}
.card-h .more { color: var(--muted); font-size: 12px; font-weight: 500; }
.card-h .more:hover { color: var(--brand); }
.card-b { padding: 4px 16px 16px; }

/* —— tables —— */
.table-wrap { overflow: auto; border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; color: rgba(0,0,0,.88); }
html[data-theme="dark"] table.data, html.theme-dark table.data { color: var(--ink); }
html[data-theme="dark"] table.data th, html.theme-dark table.data th { background: var(--elev); }
table.data th {
  text-align: left; font-weight: 600; color: var(--muted);
  font-size: 12px; letter-spacing: .02em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #FAFAFA;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.data th.sorted {
  background: var(--brand-tint);
  color: var(--brand);
}
table.data td {
  padding: 16px 16px;
  height: 78px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data td.nowrap, table.data .plcat { white-space: nowrap; }
table.data td.num, table.data th.right, table.data td.col-sales, table.data th.col-sales {
  white-space: nowrap;
}
table.data td.col-sales, table.data th.col-sales { min-width: 76px; }
.plcat { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--bg); }
html[data-theme="dark"] table.data tr:hover td,
html.theme-dark table.data tr:hover td { background: rgba(255,255,255,.03); }
table.data tr.clickable { cursor: pointer; }
table.data .num, .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
table.data .num, table.data .right, .right { text-align: right; }
.empty { padding: 44px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }

.rank {
  width: 22px; height: 22px; border-radius: 7px;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 650;
  background: var(--chip); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank.r1 { background: #FFF3D6; color: #B8860B; }
.rank.r2 { background: #EEF1F5; color: #6B7280; }
.rank.r3 { background: #FCE8D8; color: #C2783A; }
html[data-theme="dark"] .rank.r1, html.theme-dark .rank.r1 { background: var(--gold-bg); color: var(--gold); }
html[data-theme="dark"] .rank.r2, html.theme-dark .rank.r2 { background: var(--silver-bg); color: var(--silver); }
html[data-theme="dark"] .rank.r3, html.theme-dark .rank.r3 { background: var(--bronze-bg); color: var(--bronze); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  border: 0;
  background: var(--chip);
  color: var(--ink-2);
}
.pill.dy { color: var(--brand); background: var(--brand-soft); }
.pill.tk { color: var(--ink); background: var(--chip); }
.pill.ad { color: var(--bronze); background: var(--bronze-bg); }
.pill.og { color: var(--ink-2); }
.pill.cat { color: var(--ink); font-weight: 500; background: var(--brand-tint); }
.plcat {
  display: inline-flex; align-items: center;
  background: var(--brand-tint);
  color: var(--ink);
  height: 22px; padding: 0 8px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
}

.entity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700;
  flex: 0 0 auto; letter-spacing: -.02em;
  background: #FE2062;
}
.av.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.av.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.av.circ, .av.round { border-radius: 50%; }
.av.sm.circ { border-radius: 50%; }
.av.lg.circ { border-radius: 50%; }
.thumb {
  width: 48px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #2A2A30, #3E3E48);
  color: #fff;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.thumb.live { background: linear-gradient(135deg, #FF4D6D, #FF7A90); }
.thumb svg { width: 14px; height: 14px; opacity: .92; }
.entity .meta { min-width: 0; }
.entity .name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}
.entity .sub, .name + .sub, a .sub {
  color: var(--faint); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.delta { font-variant-numeric: tabular-nums; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

.spark { width: 84px; height: 28px; display: block; }

/* —— buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 16px; border-radius: 9999px;
  border: 1px solid var(--brand);
  background: transparent; color: var(--brand);
  font-size: 12px; font-weight: 600;
}
.btn:hover { background: var(--brand-soft); }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 35%, transparent); background: var(--down-soft); }
.btn.danger:hover { border-color: var(--down); }
.btn.on { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.filters .btn { height: 30px; border-radius: 999px; }
.ghost-btn {
  display: inline-flex; align-items: center;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12px; font-weight: 600;
}

.detail-hero { display: flex; gap: 16px; align-items: flex-start; }
.detail-hero h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 10px; }
.stat {
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
}
html[data-theme="dark"] .stat,
html.theme-dark .stat { background: var(--bg); border: 1px solid var(--line); }
.stat .lbl { color: var(--muted); font-size: 11px; font-weight: 500; }
.stat .val {
  font-size: 18px; font-weight: 650; margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}
.stat .kpi-src { margin-top: 6px; }

.gold3 {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0;
  border: 0;
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
  background: var(--brand-tint);
}
.video-split .detail-stats { margin: 10px 0 8px; }
.video-split .gold3 { margin: 8px 0; }
.video-split .script { margin: 0; }
.video-split .nexts { margin-top: 12px; }
.gold3 .t {
  background: transparent;
  color: var(--brand);
  display: grid; place-items: center;
  text-align: center;
  padding: 16px 10px;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 12px;
}
.gold3 .t small {
  display: block;
  color: var(--brand);
  opacity: .7;
  font-size: 10px;
  letter-spacing: .16em;
  margin-top: 6px;
  font-weight: 600;
}
.gold3 .b { padding: 14px 18px; color: var(--ink); }

.script {
  font-size: 12px; color: var(--ink-2);
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
}
html[data-theme="dark"] .script,
html.theme-dark .script { background: var(--bg); border: 1px solid var(--line); }

.alert {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.alert:last-child { border-bottom: 0; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  margin-top: 6px; background: var(--brand); flex: 0 0 auto;
}
.dot.mid { background: var(--warn); }
.alert .t { font-size: 13px; font-weight: 500; }
.alert .s { color: var(--muted); font-size: 11px; }

.cmp-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cmp-pick .btn { border-radius: 999px; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row {
  display: grid; grid-template-columns: max-content minmax(0, 1fr) 92px; gap: 10px;
  align-items: center; font-size: 12px;
}
.bar-row > span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-2);
}
.bar-row .num { text-align: right; color: var(--ink-2); white-space: nowrap; }
.bar { height: 7px; background: var(--surface); border-radius: 99px; overflow: hidden; }
html[data-theme="dark"] .bar, html.theme-dark .bar { background: var(--bg); }
.bar > i {
  display: block; height: 100%;
  background: var(--brand);
  border-radius: 99px;
}

.schema {
  background: #161618; color: #E8E8EC;
  border-radius: 12px; padding: 14px 16px;
  font-family: var(--mono); font-size: 11.5px;
  overflow: auto; line-height: 1.55;
}
.note { color: var(--muted); font-size: 12px; }

.toast {
  position: fixed; right: 16px; bottom: 16px;
  background: var(--ink); color: var(--surface);
  padding: 10px 14px; border-radius: 10px; font-size: 12px; z-index: 80;
  display: none;
}
.toast.on { display: block; }

.footer {
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  padding: 0 16px 20px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand); }

.src {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 7px;
  border-radius: 999px;
  font-size: 10px; font-weight: 600;
  vertical-align: middle; white-space: nowrap;
  background: var(--chip);
  border: 0;
  color: var(--muted);
}
.src.official { background: #EEF2F7; color: #5B6170; }
.src.auth { background: var(--up-soft); color: var(--up); }
.src.est { background: var(--chip); color: var(--muted); }
html[data-theme="dark"] .src.official,
html.theme-dark .src.official { background: #2A2A30; color: #B0B4BE; }
.src-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.conf { color: var(--faint); font-size: 10px; }

.disclaimer, .flash {
  background: var(--bg);
  border: 0;
  color: var(--ink-2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 14px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.disclaimer a, .flash a { color: var(--brand); }

.nexts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.muted-box {
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink-2);
  font-size: 12px;
}
html[data-theme="dark"] .muted-box,
html.theme-dark .muted-box { background: var(--bg); border: 1px solid var(--line); }

.legend {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; font-size: 11px; color: var(--muted);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.src-legend-inline {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 11px; color: var(--muted);
}

.with-rail, .video-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}
.rail { display: flex; flex-direction: column; gap: 12px; }
.why-note { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.why-note .why-h {
  font-size: 13px; font-weight: 650;
  color: var(--ink); margin-bottom: 6px;
}
.why-note p { margin: 0 0 4px; }
.why-note p:last-child { margin-bottom: 0; }
.rail .entity { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rail .entity:last-child { border-bottom: 0; }
.rail-list a.rel {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.rail-list a.rel:last-child { border-bottom: 0; }
.rail-list .name { font-size: 13px; font-weight: 600; }
.rail-list .sub { color: var(--faint); font-size: 12px; margin-top: 2px; }

@media (max-width: 1280px) {
  .grid-main, .with-rail { grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-main, .grid-3, .two-col, .with-rail, .video-split { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .sider { width: 72px; flex-basis: 72px; }
  .sider .logo-name, .nav-g, .sider nav a span, .sider-foot { display: none; }
  .sider nav a { margin: 2px 10px; padding: 10px; border-radius: 10px; justify-content: center; }
  .sider nav a.on::before { display: none; }
  .region { flex-direction: column; }
}


/* —— visual-first thumbs —— */
.vcover {
  position: relative;
  width: 72px; height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #1F283C;
}
.vcover.md { width: 80px; height: 106px; border-radius: 14px; }
.vcover.sm { width: 56px; height: 74px; border-radius: 10px; }
.vcover.lg { width: 160px; height: 212px; border-radius: 16px; }
.vcover.hero { width: 100%; height: 100%; border-radius: 18px; }
.vcover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cover-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
}
.cover-play svg {
  width: 22px; height: 22px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  background: rgba(255,255,255,.28);
  border-radius: 50%;
  padding: 5px;
  box-sizing: content-box;
}
.vcover.sm .cover-play svg { width: 14px; height: 14px; padding: 3px; }
.vcover.hero .cover-play svg { width: 44px; height: 44px; padding: 12px; background: rgba(255,255,255,.42); }
.cover-dur {
  position: absolute; right: 5px; bottom: 5px;
  background: rgba(17,17,19,.72);
  color: #fff;
  font-size: 10px; font-weight: 650;
  padding: 1px 5px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.cover-live {
  position: absolute; left: 5px; top: 5px;
  background: #FE2062; color: #fff;
  font-size: 9px; font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 6px; border-radius: 6px;
}
.pphoto {
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--chip);
}
.pphoto.sm { width: 36px; height: 36px; border-radius: 9px; }
.pphoto.lg { width: 72px; height: 72px; border-radius: 16px; }
.pphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cav {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--chip);
}
.cav.sm { width: 28px; height: 28px; }
.cav.lg { width: 64px; height: 64px; }
.cav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flag { font-size: 13px; margin-left: 2px; }
table.data td { height: auto; padding: 12px 14px; }
.vid-ent { align-items: flex-start; }
.detail-cover { margin-bottom: 14px; max-width: 200px; }

/* —— marketing homepage —— */
body.mkt {
  background: #FFFFFF;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
html[data-theme="dark"] body.mkt,
html.theme-dark body.mkt { background: #111113; }
.mkt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
  padding: 0 40px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #F0F1F3;
}
html[data-theme="dark"] .mkt-nav,
html.theme-dark .mkt-nav {
  background: rgba(17,17,19,.92);
  border-bottom-color: #2A2A30;
}
.mkt-brand {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
}
.mkt-brand .logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: #FE2062; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.mkt-brand .logo-name { display: flex; flex-direction: column; line-height: 1.1; }
.mkt-brand .logo-name b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.mkt-brand .logo-name span {
  font-size: 10px; font-weight: 650; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase;
}
.mkt-links {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex: 1;
}
.mkt-links a {
  font-size: 14px; font-weight: 550; color: #1F283C;
}
html[data-theme="dark"] .mkt-links a,
html.theme-dark .mkt-links a { color: var(--ink); }
.mkt-links a:hover { color: #FE2062; }
.mkt-right { display: flex; align-items: center; gap: 10px; }
.pill-cta { height: 38px; padding: 0 20px; border-radius: 999px; font-size: 13px; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 40px 28px;
  width: 100%;
}
.hero-kicker {
  color: #FE2062; font-size: 13px; font-weight: 650;
  letter-spacing: .06em; margin-bottom: 12px;
}
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: 44px; line-height: 1.18;
  letter-spacing: -.03em; font-weight: 750;
  color: #1F283C;
}
html[data-theme="dark"] .hero-copy h1,
html.theme-dark .hero-copy h1 { color: var(--ink); }
.hero-lead {
  margin: 0 0 28px;
  font-size: 16px; color: #8B8D98; max-width: 460px; line-height: 1.65;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-preview { display: flex; justify-content: center; }
.hero-frame {
  width: min(380px, 100%);
  aspect-ratio: 4 / 5;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(145deg, #FE2062 0%, #FF7AA8 42%, #5EEAD4 100%);
  box-shadow: 0 24px 60px rgba(254, 32, 98, .18);
  position: relative;
}
.hero-frame .vcover { border-radius: 20px; }
.hero-cap {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: rgba(17, 17, 19, .58);
  color: #fff; border-radius: 14px; padding: 10px 12px;
  backdrop-filter: blur(8px);
}
.hero-cap .name { font-weight: 650; font-size: 13px; }
.hero-cap .sub { color: rgba(255,255,255,.78); font-size: 12px; margin-top: 2px; }
.mkt-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 0 40px 8px;
  width: 100%;
}
.mkt-metric {
  background: #FFF2F3;
  border-radius: 18px;
  padding: 22px 20px 20px;
  min-height: 140px;
}
html[data-theme="dark"] .mkt-metric,
html.theme-dark .mkt-metric { background: rgba(254, 32, 98, .12); }
.mkt-metric .kpi-ico {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff; color: #FE2062; margin-bottom: 14px;
}
html[data-theme="dark"] .mkt-metric .kpi-ico,
html.theme-dark .mkt-metric .kpi-ico { background: var(--surface); }
.mkt-metric .kpi-ico svg { width: 16px; height: 16px; }
.mkt-metric .val {
  font-family: var(--mono);
  font-size: 32px; font-weight: 550;
  letter-spacing: -.03em; color: #1F283C;
}
html[data-theme="dark"] .mkt-metric .val,
html.theme-dark .mkt-metric .val { color: var(--ink); }
.mkt-metric .lbl { color: #8B8D98; font-size: 13px; margin-top: 6px; font-weight: 500; }
.mkt-trust {
  text-align: center;
  color: #A0A2AD;
  font-size: 13px;
  padding: 36px 24px 8px;
}
.mkt-foot {
  margin-top: auto;
  text-align: center;
  color: #C4C6CE;
  font-size: 12px;
  padding: 28px 16px 32px;
}
@media (max-width: 900px) {
  .hero, .mkt-metrics { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .mkt-links { display: none; }
  .mkt-nav { padding: 0 16px; }
  .hero-copy h1 { font-size: 32px; }
}
