/* ============================================================
   K-CHART PULSE — 韩国音源榜单数据看板
   Glassmorphism dark theme
   ============================================================ */
:root {
  --bg0: #05070e;
  --bg1: #0a0f1c;
  --text: #e9f0ff;
  --muted: #8d9ab9;
  --muted2: #5d6a87;

  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --accent3: #ff6ec7;
  --up: #2ee6a6;
  --down: #ff5d7a;
  --new: #ffc857;

  --stroke: rgba(255, 255, 255, 0.09);
  --stroke2: rgba(255, 255, 255, 0.16);
  --panel: rgba(16, 22, 38, 0.55);
  --panel2: rgba(20, 27, 46, 0.72);

  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --r: 18px;
  --font: "Segoe UI", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(110, 231, 255, 0.10), transparent 60%),
    radial-gradient(1100px 800px at 92% 8%, rgba(255, 110, 199, 0.10), transparent 55%),
    radial-gradient(1000px 900px at 50% 120%, rgba(167, 139, 250, 0.12), transparent 60%),
    linear-gradient(180deg, #060911 0%, #080d1a 55%, #05070e 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.orb-a { width: 620px; height: 620px; left: -180px; top: -220px;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.55), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate; }
.orb-b { width: 560px; height: 560px; right: -160px; top: -140px;
  background: radial-gradient(circle, rgba(255, 110, 199, 0.42), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate; }
.orb-c { width: 720px; height: 720px; left: 38%; bottom: -420px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.42), transparent 65%);
  animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-70px, 90px) scale(1.12); } }
@keyframes drift3 { to { transform: translate(60px, -70px) scale(1.06); } }

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 78%);
}

/* ---------- 布局 ---------- */
.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px 26px 22px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
}

/* ---------- 顶部栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding: 10px 9px;
  background: linear-gradient(150deg, rgba(110, 231, 255, 0.18), rgba(167, 139, 250, 0.16), rgba(255, 110, 199, 0.18));
  border: 1px solid var(--stroke2);
  box-shadow: 0 6px 22px rgba(110, 231, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.logo span {
  display: block; width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 8px rgba(110, 231, 255, 0.7);
  animation: eq 1.4s ease-in-out infinite;
}
.logo span:nth-child(1) { height: 30%; animation-delay: 0s; }
.logo span:nth-child(2) { height: 70%; animation-delay: .18s; }
.logo span:nth-child(3) { height: 100%; animation-delay: .36s; }
.logo span:nth-child(4) { height: 62%; animation-delay: .12s; }
.logo span:nth-child(5) { height: 40%; animation-delay: .3s; }
@keyframes eq { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

.brand-text h1 {
  font-size: 23px; font-weight: 800; letter-spacing: 1.5px;
  line-height: 1.05;
  background: linear-gradient(92deg, #ffffff 20%, var(--accent) 60%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-text h1 em { font-style: normal; font-weight: 800; -webkit-text-fill-color: transparent;
  background: linear-gradient(92deg, var(--accent3), var(--accent2)); -webkit-background-clip: text; background-clip: text; }
.brand-text p { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.4px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; color: #cdd8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px) saturate(140%);
  white-space: nowrap;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(46, 230, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); }
}
.clock-pill { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; color: var(--muted); }
.clock-ico { color: var(--accent); }
.badge-demo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--new);
  background: rgba(255, 200, 87, 0.10);
  border: 1px solid rgba(255, 200, 87, 0.32);
}
.bd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--new); box-shadow: 0 0 8px var(--new); }

/* ---------- KPI ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.kpi {
  position: relative;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(30, 39, 64, 0.6), rgba(13, 18, 31, 0.55));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -40px; top: -50px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, var(--kpi-glow, rgba(110, 231, 255, 0.3)), transparent 70%);
  opacity: 0.7; pointer-events: none;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.kpi-label { font-size: 12px; color: var(--muted); letter-spacing: 0.4px; }
.kpi-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; color: var(--kpi-glow, var(--accent));
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stroke);
}
.kpi-value {
  font-size: 30px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}
.kpi-value.text { font-size: 18px; line-height: 1.15; letter-spacing: 0; padding-top: 3px; }
.kpi-value.text small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.kpi-sub { font-size: 11.5px; color: var(--muted2); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.kpi-sub .up { color: var(--up); } .kpi-sub .down { color: var(--down); } .kpi-sub .new { color: var(--new); }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(28, 36, 60, 0.62), rgba(12, 17, 30, 0.55));
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 452px;
  gap: 16px;
  min-height: 0;
}

/* ---------- 排行榜面板 ---------- */
.ranking-panel { display: flex; flex-direction: column; min-height: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 15px 18px 13px;
  border-bottom: 1px solid var(--stroke);
}
.pt-title { display: flex; align-items: center; gap: 10px; }
.accent-bar { width: 4px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2)); box-shadow: 0 0 10px rgba(110, 231, 255, 0.6); }
.pt-title h2 { font-size: 18px; font-weight: 800; letter-spacing: 0.6px; }
.pt-title .sub { font-size: 12px; color: var(--muted); padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); }

.toolbar { display: flex; align-items: center; gap: 10px; }
.segmented {
  display: flex; gap: 3px; padding: 4px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke); border-radius: 12px;
}
.seg-item {
  appearance: none; border: 0; cursor: pointer;
  padding: 6px 11px; border-radius: 9px;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--muted); background: transparent;
  transition: all 0.2s ease; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg-item .sdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.seg-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.seg-item.active {
  color: #04121b; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #7ef0c0);
  box-shadow: 0 4px 14px rgba(110, 231, 255, 0.35);
}
.seg-item.active .sdot { background: #04121b; }

.search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: rgba(110, 231, 255, 0.5); box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.12); }
.search input {
  border: 0; outline: 0; background: transparent; color: var(--text);
  font-family: inherit; font-size: 12.5px; width: 190px;
}
.search input::placeholder { color: var(--muted2); }

/* ---------- 表格 ---------- */
.table-wrap { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; }
.rank-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.rank-table thead th {
  position: sticky; top: 0; z-index: 3;
  padding: 9px 12px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--muted);
  background: rgba(11, 16, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
  white-space: nowrap;
}
.col-rank { width: 74px; }
.col-album { width: 180px; }
.col-platforms { width: 232px; }
.col-spark { width: 110px; }
.col-weeks { width: 70px; }

.rank-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}
.rank-table tbody tr { cursor: pointer; transition: background 0.16s ease; animation: rowIn 0.38s ease both; }
.rank-table tbody tr:hover { background: rgba(110, 231, 255, 0.07); }
.rank-table tbody tr.active { background: rgba(110, 231, 255, 0.10); }
@keyframes rowIn { from { transform: translateY(7px); } to { transform: none; } }

/* rank cell */
.rank-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.rank-num { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.rank-num.top-1 { background: linear-gradient(180deg, #ffe27a, #ffb020); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rank-num.top-2 { background: linear-gradient(180deg, #eaf2ff, #9fb2d0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rank-num.top-3 { background: linear-gradient(180deg, #ffbf94, #d98a5a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.change { font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 1px; font-variant-numeric: tabular-nums; }
.change.up { color: var(--up); }
.change.down { color: var(--down); }
.change.flat { color: var(--muted2); }
.tag-new, .tag-re {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px;
  padding: 1px 5px; border-radius: 5px;
}
.tag-new { color: var(--new); background: rgba(255, 200, 87, 0.15); border: 1px solid rgba(255, 200, 87, 0.35); }
.tag-re { color: var(--accent); background: rgba(110, 231, 255, 0.13); border: 1px solid rgba(110, 231, 255, 0.3); }

/* track cell */
.track { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #05121d;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.track-meta { min-width: 0; }
.track-title {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25;
}
.track-artist { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.album { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* platform chips */
.platforms { display: flex; gap: 4px; flex-wrap: wrap; }
.pchip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 5px 2px 4px; border-radius: 6px;
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--stroke);
  color: #b9c4dd;
}
.pchip .pdot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pchip.none { opacity: 0.3; }

/* sparkline */
.spark svg { display: block; overflow: visible; }
.weeks-cell { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.weeks-cell small { font-size: 10.5px; color: var(--muted2); font-weight: 500; margin-left: 1px; }

.empty-state[hidden] { display: none !important; }
.empty-state {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--muted);
}
.empty-state .es-ico { font-size: 34px; color: var(--muted2); opacity: 0.6; }
.empty-state p { font-size: 14px; font-weight: 700; color: var(--muted); }
.empty-state span { font-size: 12px; color: var(--muted2); }

/* ---------- 右侧图表 ---------- */
.side-col { display: grid; grid-template-rows: 1.22fr 1fr 1fr; gap: 16px; min-height: 0; }
.chart-panel { display: flex; flex-direction: column; min-height: 0; }
.panel-head.small { padding: 12px 16px 9px; border-bottom: 1px solid var(--stroke); }
.panel-head.small h3 { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: 0.3px; }
.dot-accent { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot-accent.pink { background: var(--accent3); box-shadow: 0 0 8px var(--accent3); }
.dot-accent.violet { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
.tag { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--muted);
  padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); }
.chart-body { flex: 1; min-height: 0; padding: 10px 14px 12px; position: relative; }

/* trend chart */
.chart-body#trendChart { display: flex; flex-direction: column; gap: 2px; }
.trend-main { flex: 1; min-height: 0; }
.trend-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.trend-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 16px 10px;
}
.trend-legend .lg { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.trend-legend .lg i { width: 7px; height: 7px; border-radius: 50%; }
.trend-legend .lg b { color: #c7d2ea; font-weight: 600; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* donut */
.donut-body { display: flex; align-items: center; gap: 6px; }
.donut-wrap { position: relative; flex: none; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dl-row { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.dl-row i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.dl-row .dl-name { color: #c2cde6; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .dl-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-row .dl-val b { color: var(--text); font-weight: 700; }

/* artist bars */
.artist-rows { display: flex; flex-direction: column; gap: 7px; height: 100%; justify-content: center; }
.arow { display: grid; grid-template-columns: 82px 1fr 26px; align-items: center; gap: 9px; font-size: 11.5px; }
.arow .aname { color: #c7d2ea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.arow .abar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.arow .abar i { display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  box-shadow: 0 0 10px rgba(255, 110, 199, 0.4);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.arow .acount { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- 详情抽屉 ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 6, 14, 0.55);
  backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 60;
  height: 100vh; width: 440px; max-width: 92vw;
  padding: 26px 26px 30px;
  background: linear-gradient(165deg, rgba(26, 34, 56, 0.94), rgba(10, 14, 25, 0.96));
  backdrop-filter: blur(32px) saturate(150%);
  border-left: 1px solid var(--stroke2);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(102%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-close {
  position: absolute; top: 18px; right: 20px;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.06);
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
  transition: all 0.2s;
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: rotate(90deg); }

.dw-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-right: 40px; }
.dw-avatar {
  width: 72px; height: 72px; border-radius: 18px; flex: none;
  display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #05121d;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.dw-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.dw-artist { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.dw-album { font-size: 12px; color: var(--muted); margin-top: 4px; }

.dw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.dw-chip { font-size: 11px; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke); color: var(--muted); }
.dw-chip b { color: #cdd8f0; font-weight: 700; }

.dw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.dw-stat { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke); text-align: center; }
.dw-stat .ds-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.4px; }
.dw-stat .ds-value { font-size: 24px; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; }
.dw-stat .ds-value small { font-size: 11px; color: var(--muted); font-weight: 600; }

.dw-section-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.6px;
  text-transform: uppercase; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.dw-section-title::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

.dw-trend { width: 100%; height: 150px; }
.dw-platforms { display: flex; flex-direction: column; gap: 10px; }
.dwp-row { display: grid; grid-template-columns: 58px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; }
.dwp-name { display: flex; align-items: center; gap: 6px; color: #c2cde6; font-weight: 600; }
.dwp-name i { width: 7px; height: 7px; border-radius: 50%; }
.dwp-bar { height: 7px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; }
.dwp-bar i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }
.dwp-rank { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.dwp-rank.na { color: var(--muted2); font-weight: 600; font-size: 11px; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.13); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- 响应式 ---------- */
@media (max-width: 1500px) {
  .col-album, td.album, .col-platforms, td.pcol { display: none !important; }
  .main-grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .search input { width: 150px; }
}
@media (max-width: 1240px) {
  body { overflow: auto; }
  .app { height: auto; }
  .main-grid { grid-template-columns: 1fr; }
  .side-col { grid-template-rows: none; grid-auto-rows: 280px; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .ranking-panel { min-height: 620px; }
}
@media (max-width: 820px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .topbar { flex-direction: column; align-items: flex-start; }
  .search input { width: 120px; }
}

/* 截图/无动画模式: ?anim=0 */
body.no-anim *, body.no-anim *::before, body.no-anim *::after {
  transition: none !important;
  animation: none !important;
}
