:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #e7ecf3;
  --ink: #101828;
  --muted: #667085;
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
  --green-soft: #e8fff1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 360px;
  background:
    radial-gradient(circle at top left, rgba(18, 183, 106, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(97, 114, 243, 0.08), transparent 18%),
    linear-gradient(180deg, #f8fafc 0%, #eff4f8 100%);
  color: var(--ink);
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}

button {
  font: inherit;
}

select {
  font: inherit;
}

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 56px;
}

.hero,
.section,
.chart-card,
.account-card,
.featured-card,
.rank-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero,
.section {
  border-radius: 28px;
}

.hero {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  margin-bottom: 14px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-logo {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.18);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.hero-title-row { display: flex; align-items: center; gap: 18px; }

h2 {
  font-size: 28px;
}

h3 {
  font-size: 28px;
  line-height: 1.2;
}

h4 {
  font-size: 16px;
  line-height: 1.45;
}

.hero-text,
.featured-summary,
.tip,
.rank-meta,
.platform-tag,
.metric-item span,
.featured-stats span,
.extra-pill span,
.date-chip {
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  margin-top: 14px;
  line-height: 1.7;
}

.range-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.overview-range-row {
  display: flex;
  justify-content: flex-start;
  margin: -8px 0 18px;
  padding: 0 24px;
}

.page-switch,
.platform-switch {
  position: relative;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.page-switch {
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f7ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 12px 30px rgba(15, 23, 42, 0.06);
}

.page-switch button,
.platform-switch button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.page-switch button {
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 15px;
  color: #667085;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
  transition:
    color 220ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.page-switch button:hover {
  color: #344054;
}

.page-switch button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 16px;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.page-switch button[data-page="dashboard"] i {
  color: #2f6bff;
  background: rgba(47, 107, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.page-switch button[data-page="promotion"] i {
  color: #c58a00;
  background: rgba(245, 184, 0, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.page-switch button.active i {
  color: #fff;
  transform: scale(1.04);
}

.page-switch button.active[data-page="dashboard"] i {
  background: linear-gradient(135deg, #4b83ff 0%, #2f6bff 100%);
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.32);
}

.page-switch button.active[data-page="promotion"] i {
  background: linear-gradient(135deg, #ffd55a 0%, #f1a600 100%);
  box-shadow: 0 8px 18px rgba(241, 166, 0, 0.32);
}

.switch-pill {
  --thumb-x: 0px;
  --thumb-w: 0px;
  overflow: hidden;
  isolation: isolate;
}

.switch-thumb {
  position: absolute;
  z-index: 1;
  left: 6px;
  top: 6px;
  width: var(--thumb-w);
  height: calc(100% - 12px);
  border-radius: 14px;
  background: #101828;
  box-shadow:
    0 10px 22px rgba(16, 24, 40, 0.18),
    inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateX(var(--thumb-x));
  transition:
    transform 560ms cubic-bezier(.22, 1.38, .36, 1),
    width 420ms cubic-bezier(.22, 1.16, .36, 1),
    background-color 220ms ease,
    box-shadow 220ms ease;
  will-change: transform, width;
}

.switch-pill.switch-bounce .switch-thumb {
  animation: thumb-pop 520ms cubic-bezier(.22, 1.35, .36, 1);
}

@keyframes thumb-pop {
  0% { scale: .96 .98; filter: blur(.25px); }
  45% { scale: 1.06 .96; filter: blur(.55px); }
  72% { scale: .98 1.03; filter: blur(0); }
  100% { scale: 1; filter: blur(0); }
}

.page-switch button.active {
  color: #fff;
}

.page-switch .switch-thumb {
  top: 8px;
  left: 8px;
  height: calc(100% - 16px);
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.platform-switch button.active {
  color: #039855;
}

.platform-switch button[data-promotion-platform="douyin"].active {
  color: #635bff;
}

.platform-switch .switch-thumb {
  background: #ecfdf3;
  box-shadow:
    0 10px 22px rgba(18, 183, 106, 0.14),
    inset 0 1px 0 rgba(255,255,255,.45);
}

.platform-switch.platform-douyin .switch-thumb {
  background: #f1edff;
  box-shadow:
    0 10px 22px rgba(99, 91, 255, 0.14),
    inset 0 1px 0 rgba(255,255,255,.45);
}

.persona-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  min-width: 340px;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.persona-switch button {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 13px 16px;
  border-radius: 16px;
}

.persona-switch button.active { color: #101828; }
.persona-switch .switch-thumb { background: #ecfdf3; }
.persona-switch.platform-douyin .switch-thumb { background: #f1edff; }
.persona-switch.platform-redbook .switch-thumb { background: #fff0f3; }

.persona-stage-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.persona-stage-switch button {
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  padding: 10px 15px;
  background: #fff;
  color: #667085;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.persona-stage-switch button.active {
  color: #067647;
  border-color: #b7ead2;
  background: #ecfdf3;
  transform: translateY(-1px);
}

.persona-stage-switch span {
  margin-left: auto;
  color: #667085;
  font-size: 14px;
}

.persona-callout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) repeat(2, minmax(150px, 210px));
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid #dfe6f0;
  border-radius: 24px;
  background: linear-gradient(135deg, #f3fff9 0%, #ffffff 55%);
}

.persona-callout.douyin { background: linear-gradient(135deg, #f7f3ff 0%, #ffffff 55%); }
.persona-callout.redbook { background: linear-gradient(135deg, #fff4f6 0%, #ffffff 55%); }
.persona-callout > div:first-child span { color: #12a267; font-weight: 800; }
.persona-callout.douyin > div:first-child span { color: #7654e8; }
.persona-callout h3 { margin: 8px 0 6px; font-size: 24px; }
.persona-callout p { margin: 0; color: #7a8699; line-height: 1.6; }

.persona-dominant {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
}

.persona-dominant span { color: #667085; font-weight: 700; }
.persona-dominant span i { margin-right: 7px; color: #12a267; }
.persona-dominant strong { font-size: 35px; letter-spacing: -1px; }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.persona-card {
  padding: 22px;
  border: 1px solid #dfe6f0;
  border-radius: 24px;
  background: #f9fbff;
}

.persona-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.persona-card-title i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #edf4ff; color: #3772f0; font-size: 19px; }
.persona-card-title h3 { margin: 0; font-size: 19px; }
.persona-card .promo-audience-block { margin: 0; }
.persona-card .promo-audience-block h4:empty { display: none; }
.persona-chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.persona-chip-list span { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e9f1; color: #526078; }
.persona-chip-list b { color: #101828; }
.persona-interest-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.persona-interest-list span { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e9f1; }
.persona-interest-list b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #edf4ff; color: #3772f0; }
.persona-empty { display: flex; align-items: center; gap: 18px; padding: 28px; border: 1px solid #e2e8f0; border-radius: 24px; background: #fafbfe; }
.persona-empty > i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #fff0f3; color: #f04468; font-size: 25px; }
.persona-empty h3, .persona-empty p { margin: 0; }
.persona-empty p { margin-top: 6px; color: #7a8699; }

.dashboard-page {
  display: none;
}

.dashboard-page.active {
  display: block;
}

.legacy-ad-section {
  display: none;
}

.range-switch button {
  position: relative;
  z-index: 2;
  min-width: 76px;
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.range-switch button.active {
  color: #fff;
}

.section {
  padding: 24px;
  margin-bottom: 18px;
}

.section-head,
.trend-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.sort-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  color: var(--muted);
  font-size: 13px;
}

.sort-select {
  min-width: 132px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--ink);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.overview-board {
  display: grid;
  gap: 16px;
}

.overview-row { display: grid; gap: 16px; }
.overview-row-primary { grid-template-columns: repeat(2,minmax(0,1fr)); }
.overview-row-secondary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.overview-metric-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fbfcfe; color: var(--ink); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.overview-metric-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: 0 14px 30px rgba(16,24,40,.08); }
.overview-row-primary .overview-metric-card { min-height: 148px; }
.overview-row-secondary .overview-metric-card { min-height: 118px; }
.overview-metric-card strong { display: block; margin-top: 12px; font-size: clamp(32px,4.2vw,52px); letter-spacing: -.05em; }
.overview-row-secondary .overview-metric-card strong { font-size: clamp(28px,3.2vw,40px); }
.overview-metric-card small { display: block; margin-top: 9px; color: #98a2b3; }
.metric-value-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.metric-value-row em { font-style: normal; font-size: 12px; font-weight: 900; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.metric-value-row em.up { color: #067647; background: #e8f8ef; }
.metric-value-row em.down { color: #b42318; background: #fff1f3; }
.metric-followers .metric-label i { background:#e8f8ef; color:#079455; }
.metric-views .metric-label i { background:#eef4ff; color:#2f6fed; }
.metric-likes .metric-label i { background:#fff0f3; color:#e5486d; }
.metric-shares .metric-label i { background:#f2edff; color:#7a5af8; }
.metric-reposts .metric-label i { background:#fff6e8; color:#dc6803; }

.overview-primary,
.overview-feature,
.overview-mini {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fbfcfe;
  transition: transform .2s ease, box-shadow .2s ease;
}

.overview-primary:hover,
.overview-feature:hover,
.overview-mini:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16,24,40,.07); }

.metric-label { display: flex; align-items: center; gap: 10px; }
.metric-label i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #eef4ff; color: #2f6fed; font-size: 19px; }
.overview-feature .metric-label i { background: #fff0f3; color: #e5486d; }
.overview-mini:nth-child(1) .metric-label i { background: #f2edff; color: #7a5af8; }
.overview-mini:nth-child(2) .metric-label i { background: #e8f8f2; color: #079455; }
.overview-mini:nth-child(3) .metric-label i { background: #fff6e8; color: #dc6803; }

.overview-primary {
  grid-column: 1;
  padding: 24px 28px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-primary span,
.overview-feature span,
.overview-mini span { color: var(--muted); font-weight: 600; }
.overview-primary strong { margin-top: 13px; font-size: clamp(46px, 6vw, 72px); line-height: .95; letter-spacing: -.05em; }
.overview-primary small { margin-top: 14px; color: #98a2b3; }

.overview-feature {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-feature > strong { margin-top: 13px; font-size: clamp(38px, 4.5vw, 58px); letter-spacing: -.04em; }
.feature-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.feature-foot span { display: inline-flex; align-items: center; gap: 8px; }
.feature-foot i { font-size: 18px; color: #2f6fed; }
.feature-foot b { color: var(--ink); font-size: 22px; }

.overview-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.overview-mini { min-height: 108px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.overview-mini strong { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; }

.followers-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 17px 20px; border: 1px solid var(--line); border-radius: 20px; background: #101828; color: #fff; text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.followers-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16,24,40,.16); }
.followers-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.12); font-size: 22px; }
.followers-copy { display: flex; align-items: baseline; gap: 16px; }
.followers-copy small { color: #d0d5dd; font-size: 13px; }
.followers-copy strong { font-size: 30px; letter-spacing: -.03em; }
.followers-hint { display: inline-flex; align-items: center; gap: 4px; color: #d0d5dd; font-size: 13px; }
.followers-hint i { font-size: 20px; }

[data-count] { display: block; transform-origin: center bottom; }
.count-rolling { animation: number-roll-in 1s cubic-bezier(.2,.8,.2,1) both; }

@keyframes number-roll-in {
  0% { transform: translateY(18px); filter: blur(7px); opacity: .35; }
  28% { transform: translateY(-7px); filter: blur(3px); opacity: .8; }
  58% { transform: translateY(4px); filter: blur(1.5px); opacity: 1; }
  100% { transform: translateY(0); filter: blur(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .count-rolling { animation: none; }
  .trend-line, .trend-dot, .metric-trend-chart { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

.video-trigger { cursor: pointer; }
.video-trigger:focus-visible { outline: 3px solid rgba(47,111,237,.35); outline-offset: 3px; }

.video-modal { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 20px; }
.video-modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,24,40,.58); backdrop-filter: blur(6px); }
.modal-dialog { position: relative; width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(16,24,40,.28); }
.modal-close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2f4f7; color: var(--ink); cursor: pointer; font-size: 22px; }
.modal-video-head { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 22px; align-items: center; padding-right: 32px; }
.modal-video-head .modal-cover { width: 150px; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; }
.modal-video-head h3 { margin-top: 12px; font-size: 23px; }
.modal-video-head p { margin-top: 10px; color: var(--muted); }
.modal-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); gap: 10px; margin-top: 24px; }
.modal-metrics div { padding: 16px 12px; border-radius: 16px; background: #f8fafc; }
.modal-metrics i { color: #2f6fed; font-size: 19px; }
.modal-metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.modal-metrics strong { display: block; margin-top: 7px; font-size: 20px; }
body.modal-open { overflow: hidden; }
.modal-audit { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: right; }
.trend-modal-head p { color: var(--muted); font-size: 13px; }
.trend-modal-head h3 { margin-top: 5px; }
.trend-chart-wrap { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfe; overflow-x: auto; }
.metric-trend-chart { display:block; width:100%; min-width:560px; height:auto; }
.trend-grid { stroke:#e7ecf3; stroke-width:1; }
.trend-line { fill:none; stroke:#2f6fed; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1; animation:trend-draw .9s cubic-bezier(.22,.75,.24,1) forwards; }
.trend-dot { fill:#fff; stroke:#2f6fed; stroke-width:3; opacity:0; transform-box:fill-box; transform-origin:center; animation:trend-dot-in .35s cubic-bezier(.2,.9,.3,1.3) var(--dot-delay) forwards; }
.trend-label { fill:#98a2b3; font-size:11px; text-anchor:middle; }
.trend-y-label { fill:#667085; font-size:11px; text-anchor:end; font-weight:600; }
.metric-trend-chart { animation:trend-chart-in .45s ease-out both; }
@keyframes trend-draw { to { stroke-dashoffset:0; } }
@keyframes trend-dot-in { from { opacity:0; transform:scale(.25); filter:blur(3px); } to { opacity:1; transform:scale(1); filter:blur(0); } }
@keyframes trend-chart-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.trend-empty { margin-top:18px; padding:50px; border-radius:18px; background:#f8fafc; color:var(--muted); text-align:center; }
.followers-detail-list.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.followers-modal-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.followers-modal-head > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: #eef4ff; color: #2f6fed; font-size: 24px; }
.followers-modal-head p { color: var(--muted); font-size: 13px; }
.followers-modal-head h3 { margin-top: 4px; }
.followers-detail-list { display: grid; gap: 10px; margin-top: 22px; }
.follower-row { display: grid; grid-template-columns: 86px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px; border-radius: 17px; background: #f8fafc; }
.follower-row div { display: flex; flex-direction: column; gap: 4px; }
.follower-row small { color: var(--muted); font-size: 12px; }
.follower-row b { font-size: 22px; }

.platform-rankings { display: block; }
.platform-ranking-overview { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%); }
.platform-ranking-summary { display: grid; gap: 10px; margin-bottom: 22px; }
.platform-ranking-summary h3 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.platform-ranking-summary p:last-child { margin: 0; max-width: 760px; color: #667085; line-height: 1.6; }
.top-ranking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.top-ranking-card { min-width: 0; padding: 18px; border: 1px solid #dde5f0; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06); transition: transform .2s ease, box-shadow .2s ease; }
.top-ranking-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(15, 23, 42, 0.10); }
.top-ranking-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.top-ranking-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #101828; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.top-ranking-card.rank-1 .top-ranking-badge { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.top-ranking-card.rank-2 .top-ranking-badge { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }
.top-ranking-card.rank-3 .top-ranking-badge { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.top-ranking-cover-wrap { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px; border: 1px solid #e5e7eb; background: #f8fafc; margin-bottom: 14px; }
.top-ranking-cover,
.top-ranking-cover-wrap .cover-empty { width: 100%; height: 100%; object-fit: cover; }
.top-ranking-card h4 { margin: 0; font-size: 18px; line-height: 1.45; min-height: 52px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-ranking-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 18px; }
.top-ranking-stats span { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #f8fafc; color: #667085; font-size: 12px; border: 1px solid #e7edf5; }
.top-ranking-stats b { color: #101828; font-size: 22px; line-height: 1; }
.top-ranking-link { width: 100%; min-height: 46px; border: 0; border-radius: 16px; background: #111827; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.platform-ranking-empty { padding: 28px; border: 1px dashed #cdd5df; border-radius: 24px; background: #fbfcfe; text-align: center; color: #667085; }
.platform-ranking-empty h3 { margin: 0 0 8px; color: #101828; }
.platform-ranking-empty p { margin: 0; }
.ranking-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}
.ranking-kicker.wechat { color: #12b76a; }
.ranking-kicker.douyin { color: #6172f3; }
.ranking-kicker.redbook { color: #f04438; }
.ranking-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.06);
}
.ranking-kicker.wechat .ranking-icon { background: #e8f8ef; color: #12b76a; }
.ranking-kicker.douyin .ranking-icon { background: #f1edff; color: #6172f3; }
.ranking-kicker.redbook .ranking-icon { background: #fff0f3; color: #f04438; }
.ranking-icon i { font-size: 18px; line-height: 1; }
.ranking-podium { min-height: 230px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 24px 0 18px; }
.podium-item { min-width: 0; text-align: center; position: relative; }
.podium-item.rank-1 { order: 2; transform: translateY(-20px); }
.podium-item.rank-2 { order: 1; }
.podium-item.rank-3 { order: 3; }
.podium-crown { position: absolute; z-index: 2; top: -23px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; color: #f5b700; filter: drop-shadow(0 4px 5px rgba(245,183,0,.25)); }
.podium-crown i { font-size: 36px; line-height: 1; }
.podium-crown b { position: absolute; top: 12px; color: #7a4b00; font-size: 11px; line-height: 1; }
.rank-2 .podium-crown { color: #aeb8c4; filter: drop-shadow(0 4px 5px rgba(102,112,133,.2)); }
.rank-2 .podium-crown b { color: #344054; }
.rank-3 .podium-crown { color: #d88b4a; filter: drop-shadow(0 4px 5px rgba(180,83,9,.2)); }
.rank-3 .podium-crown b { color: #713b12; }
.podium-item .podium-cover { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(16,24,40,.12); }
.cover-empty { display: grid; place-items: center; color: #98a2b3; background: #eef2f6; }
.cover-empty i { font-size: 24px; }
.podium-item h4 { margin-top: 10px; font-size: 13px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-item strong { display: block; margin-top: 6px; font-size: 20px; }
.podium-bar-shell { width: 100%; max-width: 84px; height: 118px; margin: 12px auto 0; display: flex; align-items: end; justify-content: center; padding: 0 10px; border-radius: 18px 18px 12px 12px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(227, 232, 240, 0.75) 100%); }
.podium-bar { width: 100%; border-radius: 14px 14px 10px 10px; box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12); }
.podium-bar.tone-wechat { background: linear-gradient(180deg, #6ee7b7 0%, #12b76a 100%); }
.podium-bar.tone-douyin { background: linear-gradient(180deg, #a5b4fc 0%, #6172f3 100%); }
.podium-bar.tone-redbook { background: linear-gradient(180deg, #fda4af 0%, #f04438 100%); }
.ranking-rows { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ranking-rows > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ranking-rows > div:last-child { border-bottom: 0; }
.ranking-row-main { min-width: 0; display: grid; gap: 8px; }
.ranking-rows p { min-width: 0; font-size: 13px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-row-bar { height: 7px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.ranking-row-bar i { display: block; height: 100%; border-radius: inherit; box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12); }
.ranking-row-bar i.tone-wechat { background: linear-gradient(90deg, #6ee7b7 0%, #12b76a 100%); }
.ranking-row-bar i.tone-douyin { background: linear-gradient(90deg, #a5b4fc 0%, #6172f3 100%); }
.ranking-row-bar i.tone-redbook { background: linear-gradient(90deg, #fda4af 0%, #f04438 100%); }
.ranking-rows strong { font-size: 13px; }
.no-more { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.empty-ranking { display: flex; min-height: 376px; flex-direction: column; justify-content: space-between; }
.empty-ranking h3 { margin-top: 10px; }
.empty-ranking dl { display: grid; gap: 10px; margin: 22px 0; }

.top-ranking-card {
  will-change: transform, opacity;
}

.top-ranking-card:not(.in-view) {
  transform: translateY(24px);
  opacity: 0;
}

@keyframes podium-rise {
  0% {
    transform: translateY(24px);
    opacity: 0;
  }
  70% {
    transform: translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.top-ranking-card.in-view { animation: podium-rise 480ms cubic-bezier(.22,1,.36,1) both; }
.top-ranking-grid .top-ranking-card:nth-child(1).in-view { animation-delay: 60ms; }
.top-ranking-grid .top-ranking-card:nth-child(2).in-view { animation-delay: 130ms; }
.top-ranking-grid .top-ranking-card:nth-child(3).in-view { animation-delay: 200ms; }
.empty-ranking dl div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: #fff; }
.empty-ranking dt { color: var(--muted); }
.empty-ranking dd { margin: 0; font-weight: 800; }
.empty-ranking > p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.account-card {
  border-radius: 24px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.account-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -32px;
  bottom: -40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, white);
}

.account-top,
.featured-meta,
.rank-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.platform-tag {
  font-size: 12px;
  margin-bottom: 6px;
}

.extra-pill {
  min-width: 94px;
  padding: 10px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.extra-pill strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 18px;
}

.metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-item {
  padding: 12px 13px;
  border-radius: 18px;
  background: #f8fafc;
}

.metric-item span,
.featured-stats span {
  display: block;
  font-size: 12px;
}

.metric-item strong,
.featured-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  white-space: nowrap;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.featured-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
}

.cover-wrap {
  min-height: 100%;
  background: linear-gradient(180deg, #eef7f2 0%, #dff3e6 100%);
}

.cover-wrap img,
.rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-body {
  padding: 24px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #067647;
  font-size: 13px;
  font-weight: 600;
}

.platform-chip.subtle {
  background: #f2f4f7;
  color: #344054;
}

.account-chip { font-weight: 700; }
.account-chip.wechat { background: #e8f8ef; color: #067647; }
.account-chip.douyin { background: #f1edff; color: #6938ef; }
.account-chip.redbook { background: #fff0f3; color: #d92d55; }

.date-chip {
  font-size: 13px;
  padding-top: 6px;
}

.featured-summary {
  margin-top: 14px;
  line-height: 1.7;
}

.featured-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.featured-stats div {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-card {
  display: grid;
  grid-template-columns: 42px 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
}

.rank-card img {
  border-radius: 16px;
  aspect-ratio: 1 / 1;
}

.rank-index {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #101828;
  color: #fff;
  font-weight: 700;
}

.rank-content h4 {
  margin-top: 8px;
}

.rank-stats {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  color: #475467;
  font-size: 13px;
}

.tip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
}

.chart-card,
.notes-card {
  border-radius: 24px;
  padding: 18px;
}

.notes-input {
  display: block;
  width: 100%;
  min-height: 240px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #f8fafc;
  color: #101828;
  font: inherit;
  font-size: 16px;
  line-height: 1.75;
  outline: none;
  box-sizing: border-box;
}

.notes-input:focus {
  border-color: #84adff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.1);
}

.notes-fab-wrap {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.notes-fab {
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 18px 0 0 18px;
  padding: 18px 14px 18px 16px;
  background: linear-gradient(180deg, #101828 0%, #1d2939 100%);
  color: #fff;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 68px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  pointer-events: auto;
}

.notes-fab i {
  font-size: 20px;
  line-height: 1;
}

.notes-fab span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.notes-drawer {
  position: absolute;
  right: 82px;
  top: 50%;
  width: min(420px, calc(100vw - 110px));
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(208, 216, 230, 0.9);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(28px) scale(.92);
  transform-origin: right center;
  transition:
    opacity 220ms ease,
    transform 560ms cubic-bezier(.22, 1.28, .36, 1);
}

.notes-fab-wrap.open .notes-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
}

.notes-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.notes-drawer-head h3 {
  margin-top: 6px;
}

.notes-drawer-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notes-drawer-close i {
  font-size: 18px;
}

.notes-drawer .notes-input {
  min-height: 220px;
}

.notes-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.notes-status {
  color: #667085;
  font-size: 13px;
}

.notes-status.saved { color: #079455; }

.save-notes {
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  background: #101828;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.save-notes:hover { background: #2f6fed; }

.video-list {
  display: grid;
  gap: 12px;
}

.video-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.video-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: contain;
  background: #0f172a;
}

.video-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.video-title {
  margin-top: 10px;
}

.video-highlight {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.video-highlight-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.video-highlight-meta span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.video-highlight-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f6bff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
}

.video-highlight-meta strong {
  color: #101828;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -.04em;
}

.video-highlight-bar {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
}

.video-highlight-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.video-highlight.metric-views .video-highlight-bar i {
  background: linear-gradient(90deg, #34d399 0%, #12b76a 100%);
}

.video-highlight.metric-views .video-highlight-label {
  background: #e9fbf3;
  color: #079455;
}

.video-highlight.metric-likes .video-highlight-bar i {
  background: linear-gradient(90deg, #fb7185 0%, #f04468 100%);
}

.video-highlight.metric-likes .video-highlight-label {
  background: #fff0f3;
  color: #e31b54;
}

.video-highlight.metric-date .video-highlight-bar i {
  background: linear-gradient(90deg, #93c5fd 0%, #3772f0 100%);
}

.video-highlight.metric-date .video-highlight-meta strong {
  font-size: clamp(22px, 3vw, 30px);
}

.video-highlight.metric-date .video-highlight-label {
  background: #eef4ff;
  color: #2f6bff;
}

.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: #475467;
  font-size: 13px;
}

.chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 14px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-wrap {
  height: 320px;
}

.ad-board {
  display: grid;
  gap: 16px;
}

.promo-source-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.promo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.promo-kpi {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcfe;
}

.promo-kpi.primary {
  background:
    radial-gradient(circle at top right, rgba(18, 183, 106, .15), transparent 34%),
    #f7fffb;
}

.promo-kpi span {
  color: #667085;
  font-weight: 850;
  font-size: 13px;
}

.promo-kpi strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
}

.promo-kpi small {
  display: block;
  margin-top: 9px;
  color: #98a2b3;
  font-weight: 750;
}

.promo-table-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fbfcfe;
}

.promo-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.promo-card-head h3 {
  font-size: 22px;
}

.promo-card-head p {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 750;
}

.promo-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.promo-table-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) 110px 90px 90px 80px 80px 80px minmax(190px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 1020px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

button.promo-table-row {
  cursor: pointer;
}

button.promo-table-row:hover {
  background: #f8fbff;
}

.promo-table-row:last-child {
  border-bottom: 0;
}

.promo-table-head {
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.promo-table-row b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.promo-table-row small {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 750;
}

.promo-table-row > span {
  min-width: 0;
  font-weight: 850;
}

.promo-efficiency {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.promo-efficiency span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

.promo-audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
  margin-top: 18px;
}

.promo-audience-block {
  margin-top: 14px;
}

.promo-audience-block h4 {
  margin-bottom: 10px;
  color: #344054;
  font-size: 16px;
}

.promo-mini-table {
  display: grid;
  gap: 10px;
}

.promo-mini-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(5, auto);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.promo-mini-table b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-mini-table span {
  color: #475467;
  font-size: 13px;
  font-weight: 850;
}

.promo-interest-ranking {
  display: grid;
  gap: 9px;
}

.promo-interest-ranking div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.promo-interest-ranking span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #fff7ed;
  color: #fb923c;
  font-weight: 900;
}

.promo-interest-ranking b {
  color: #344054;
}

.ad-summary-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ad-summary-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfcfe;
}

.ad-summary-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.ad-summary-card span i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #fff2e8;
  color: #f97316;
  font-size: 18px;
}

.ad-summary-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: .95;
  letter-spacing: -.04em;
}

.ad-summary-card small {
  display: block;
  margin-top: 10px;
  color: #98a2b3;
  font-weight: 700;
}

.ad-primary {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, .14), transparent 35%),
    #fffaf6;
}

.ad-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.ad-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 100px;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.ad-row:last-child {
  border-bottom: 0;
}

.ad-row:hover {
  background: #fffaf6;
}

.ad-row b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.ad-row small {
  display: block;
  margin-top: 6px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.ad-row > span {
  color: #344054;
  font-weight: 900;
}

.ad-row i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--ad-progress);
  height: 3px;
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.ad-empty {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: #98a2b3;
  font-weight: 800;
  text-align: center;
}

.ad-detail-title {
  margin: 14px 0 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
}

.ad-detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ad-detail-meta span {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #475467;
  font-weight: 750;
}

.ad-subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ad-subsection h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.ad-items-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ad-items-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(5, auto);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.ad-items-table > div:last-child {
  border-bottom: 0;
}

.ad-items-table p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.ad-items-table span {
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.ad-audience-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f2f6ff;
  color: #344054;
  font-weight: 800;
  line-height: 1.6;
}

.ad-bar-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ad-bar-list > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.ad-bar-list span,
.ad-bar-list strong {
  color: #344054;
  font-weight: 850;
}

.ad-bar-list i {
  height: 10px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.ad-bar-list b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff2d55, #ff6b8a);
}

.ad-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ad-chip-list span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  font-weight: 800;
  font-size: 13px;
}

.ad-interest-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7fb;
}

.ad-interest-cloud span {
  color: #ff4d7d;
  font-weight: 900;
}

.ad-interest-cloud .interest-0 { font-size: 26px; }
.ad-interest-cloud .interest-1 { font-size: 19px; opacity: .72; }
.ad-interest-cloud .interest-2 { font-size: 15px; opacity: .55; }

#trendChart {
  width: 100%;
  height: 100%;
}

.grid-line {
  stroke: #eaecf0;
  stroke-width: 1;
}

.axis-line {
  stroke: #d0d5dd;
  stroke-width: 1.4;
}

.axis-label {
  fill: #98a2b3;
  font-size: 12px;
}

.axis-label-x {
  text-anchor: middle;
}

.axis-label-y {
  text-anchor: end;
}

.series-label {
  font-size: 12px;
  font-weight: 700;
}

.weekly-report-period { color: #667085; font-size: 13px; text-align: right; }
.weekly-total-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.weekly-total-card { padding: 16px; border: 1px solid #eaecf0; border-radius: 14px; background: #fcfcfd; }
.weekly-total-card span, .weekly-total-card small { display: block; color: #667085; font-size: 12px; }
.weekly-total-card strong { display: block; margin: 7px 0 5px; color: #101828; font-size: 24px; line-height: 1; }
.weekly-total-card small { white-space: nowrap; }
.weekly-report-table { overflow: hidden; border: 1px solid #eaecf0; border-radius: 14px; }
.weekly-table-row { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); align-items: center; min-height: 58px; border-top: 1px solid #f2f4f7; }
.weekly-table-row:first-child { border-top: 0; }
.weekly-table-row > * { min-width: 0; padding: 11px 14px; }
.weekly-table-head { min-height: 42px; background: #f8fafc; color: #667085; font-size: 12px; }
.weekly-table-row > span { color: #344054; font-size: 13px; }
.weekly-table-row small { color: #98a2b3; }
.weekly-change { display: inline-block; margin-left: 5px; font-size: 11px; font-weight: 600; }
.weekly-change.up { color: #039855; }
.weekly-change.down { color: #d92d20; }
.weekly-change.flat { color: #98a2b3; }
.weekly-leaders { margin-top: 18px; }
.weekly-subhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #344054; }
.weekly-subhead span { color: #98a2b3; font-size: 12px; }
.weekly-leader-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f2f4f7; }
.weekly-leader-row > b { color: #98a2b3; text-align: center; }
.weekly-leader-row div { min-width: 0; }
.weekly-leader-row strong, .weekly-leader-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-leader-row strong { color: #344054; font-size: 13px; }
.weekly-leader-row small { margin-top: 4px; color: #98a2b3; font-size: 12px; }
.weekly-leader-row em { color: #101828; font-size: 13px; font-style: normal; font-weight: 600; white-space: nowrap; }
.weekly-empty { padding: 16px 0; color: #98a2b3; font-size: 13px; }
.ranking-mode-switch { display: inline-flex; gap: 4px; margin-bottom: 12px; padding: 4px; border: 1px solid #eaecf0; border-radius: 10px; background: #f8fafc; }
.ranking-mode-switch button { border: 0; border-radius: 7px; padding: 8px 12px; color: #667085; background: transparent; font-size: 12px; cursor: pointer; }
.ranking-mode-switch button.active { color: #101828; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12); font-weight: 600; }
.promo-allocation-table { overflow-x: auto; border: 1px solid #eaecf0; border-radius: 14px; }
.promo-allocation-row { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(7, minmax(82px, 1fr)); align-items: center; min-width: 920px; border-top: 1px solid #f2f4f7; }
.promo-allocation-row:first-child { border-top: 0; }
.promo-allocation-row > * { min-width: 0; padding: 12px 10px; color: #344054; font-size: 12px; }
.promo-allocation-row > span:not(:first-child) { text-align: right; }
.promo-allocation-row b, .promo-allocation-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-video-cell { display: flex; align-items: center; gap: 10px; }
.promo-video-cell > img { width: 42px; height: 58px; flex: 0 0 42px; object-fit: cover; border-radius: 6px; border: 1px solid #eaecf0; background: #f2f4f7; }
.promo-video-cell > span { min-width: 0; }
.allocation-sort-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid #eaecf0; border-radius: 9px; background: #f8fafc; }
.allocation-sort-switch button { border: 0; border-radius: 6px; padding: 7px 10px; color: #667085; background: transparent; font-size: 12px; cursor: pointer; }
.allocation-sort-switch button.active { color: #101828; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12); font-weight: 600; }
.promo-allocation-row b { color: #101828; font-size: 13px; }
.promo-allocation-row small { margin-top: 4px; color: #98a2b3; }
.promo-allocation-head { min-height: 42px; background: #f8fafc; }
.promo-allocation-head > * { color: #667085; font-size: 11px; }

@media (max-width: 1100px) {
  .weekly-total-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-grid,
  .featured-layout,
  .featured-card,
  .featured-stats {
    grid-template-columns: 1fr 1fr;
  }

  .featured-layout {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .cover-wrap {
    aspect-ratio: 16 / 9;
  }

  .top-ranking-grid { grid-template-columns: 1fr 1fr; }
  .ad-summary-grid { grid-template-columns: 1fr 1fr; }
  .promo-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-audience-grid { grid-template-columns: 1fr; }
  .persona-callout { grid-template-columns: 1fr 1fr; }
  .persona-callout > div:first-child { grid-column: 1 / -1; }
  .podium-bar-shell { height: 96px; max-width: 76px; }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .hero,
  .section {
    padding: 18px;
    border-radius: 22px;
  }

  .hero,
  .section-head,
  .trend-head,
  .account-top {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-tools,
  .video-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .account-grid,
  .metrics-grid,
  .featured-stats {
    grid-template-columns: 1fr;
  }

  .overview-board,
  .overview-mini-grid { grid-template-columns: 1fr; }
  .weekly-report-period { text-align: left; line-height: 1.5; }
  .weekly-total-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-report-table { overflow-x: auto; }
  .weekly-table-row { min-width: 680px; }
  .weekly-leader-row em { font-size: 12px; }
  .top-ranking-grid,
  .top-ranking-stats { grid-template-columns: 1fr; }
  .podium-bar-shell { height: 82px; max-width: 68px; }

  .overview-primary,
  .overview-feature { grid-column: auto; grid-row: auto; }

  .overview-primary { min-height: 200px; padding: 24px; }

  .overview-row-primary,
  .overview-row-secondary { grid-template-columns: 1fr; }
  .metric-value-row { flex-direction: column; align-items: flex-start; }
  .video-highlight-meta { align-items: flex-start; flex-direction: column; }
  .ad-summary-grid,
  .ad-row { grid-template-columns: 1fr; }
  .ad-items-table > div { grid-template-columns: 1fr 1fr; }
  .hero-title-row,
  .page-switch,
  .platform-switch { flex-wrap: wrap; }
  .promo-kpi-grid { grid-template-columns: 1fr 1fr; }
.promo-card-head { flex-direction: column; align-items: stretch; }
  .promo-mini-table > div { grid-template-columns: 1fr 1fr; }
  .followers-detail-list.compact { grid-template-columns: 1fr; }
  .persona-switch { min-width: 0; width: 100%; }
  .persona-callout,
  .persona-grid { grid-template-columns: 1fr; }
  .persona-callout > div:first-child { grid-column: auto; }
  .persona-stage-switch { flex-wrap: wrap; }
  .persona-stage-switch span { width: 100%; margin-left: 0; }

  .followers-card { grid-template-columns: auto 1fr; }
  .followers-copy { flex-direction: column; gap: 3px; }
  .followers-hint { grid-column: 2; }

  .modal-video-head { grid-template-columns: 90px minmax(0,1fr); }
  .modal-video-head .modal-cover { width: 90px; }
  .modal-metrics { grid-template-columns: repeat(2,1fr); }

  .rank-card {
    grid-template-columns: 42px 76px 1fr;
  }

  .video-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .promo-kpi-grid { grid-template-columns: 1fr; }
  .persona-switch button { padding: 11px 8px; font-size: 13px; }
  .persona-interest-list { grid-template-columns: 1fr; }
}
