/* ============================================================
   观澜 · 斗鱼监控数据中枢 —— 浅色玻璃 Bento 设计系统
   浅灰白底 + 蓝紫数据色 + 细腻玻璃拟态 + 克制霓虹光晕
   ============================================================ */
:root {
  /* 基底 */
  --bg: #f4f6fb;
  --bg-deep: #eef1f9;

  /* 玻璃 */
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-soft: rgba(255, 255, 255, .5);
  --glass-border: rgba(99, 102, 241, .14);
  --glass-border-strong: rgba(99, 102, 241, .28);
  --hairline: rgba(28, 36, 58, .07);
  --blur: blur(18px);

  /* 文字 */
  --ink: #1b2433;
  --ink-2: #55627a;
  --ink-3: #93a0b5;

  /* 数据色系（蓝紫为主） */
  --primary: #6366f1;
  --primary-deep: #4f46e5;
  --primary-soft: rgba(99, 102, 241, .10);
  --violet: #8b5cf6;
  --purple: #a855f7;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, .10);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, .10);
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, .10);
  --slate: #64748b;

  /* 刀塔橙色稀有度（真橙） */
  --orange: #f97316;
  --orange-deep: #ea580c;
  --orange-soft: rgba(249, 115, 22, .12);

  /* 霓虹光晕（克制） */
  --glow-primary: 0 0 0 1px rgba(99, 102, 241, .10), 0 10px 34px rgba(99, 102, 241, .14);
  --glow-hover: 0 0 0 1px rgba(139, 92, 246, .20), 0 16px 44px rgba(99, 102, 241, .20), 0 0 40px rgba(139, 92, 246, .12);

  /* 布局 */
  --card-radius: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 16px;
  --card-pad: 20px;

  --shadow: 0 2px 6px rgba(30, 41, 59, .04), 0 14px 36px rgba(30, 41, 59, .07);
  --shadow-pop: 0 20px 60px rgba(30, 41, 59, .18);
  --shadow-sheet: 0 -16px 60px rgba(30, 41, 59, .22);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.truncate { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
/* 环境光晕：极淡蓝紫霓虹，克制 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(99, 102, 241, .12), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(1000px 620px at 55% 108%, rgba(14, 165, 233, .08), transparent 60%);
}

/* ============ 顶部导航（玻璃） ============ */
.topbar {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px;
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .38), 0 0 24px rgba(139, 92, 246, .25);
}
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.brand-ver { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }

.topnav { display: flex; gap: 2px; padding: 4px; background: var(--glass-soft); border: 1px solid var(--hairline); border-radius: 14px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.nav-item {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 11px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 650;
  cursor: pointer; white-space: nowrap; transition: all .16s;
}
.nav-item:hover:not(.active):not(.disabled) { color: var(--ink); background: rgba(255, 255, 255, .7); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c5cf0);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.nav-item .nav-sub { font-size: 10.5px; opacity: .75; font-weight: 600; }
.nav-item.disabled { color: #b8c2d4; cursor: default; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 9px; flex: none; }
.clock-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--radius-pill, 999px);
  font-size: 12px; color: var(--ink-2); font-weight: 650;
  background: var(--glass-soft); border: 1px solid var(--hairline);
  white-space: nowrap;
}
.mode-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 650; color: var(--ink-2);
  background: var(--glass-soft); border: 1px solid var(--hairline);
  white-space: nowrap;
}
.mode-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft), 0 0 12px rgba(16, 185, 129, .5); }
.tool-btn {
  padding: 7px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 650;
  background: var(--glass); color: var(--ink-2);
  border: 1px solid var(--hairline); cursor: pointer;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: all .16s;
}
.tool-btn:hover { color: var(--primary); border-color: var(--glass-border-strong); box-shadow: 0 0 0 3px var(--primary-soft); }
.tool-btn.on { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(99, 102, 241, .3); }
.tool-btn.admin-active { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .28); color: #059669; }

/* ============ 布局 ============ */
.main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px 22px 64px; }
.page-panel { display: none; animation: fadeIn .24s ease; }
.page-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-title { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.panel-sub { margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.panel-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--primary); text-transform: uppercase; }

.server-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650;
  background: var(--emerald-soft); color: #059669;
  border: 1px solid rgba(16, 185, 129, .3);
}
.server-pill.down { background: var(--rose-soft); color: var(--rose); border-color: rgba(244, 63, 94, .3); }
.server-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.error-banner {
  margin-bottom: 16px; padding: 11px 16px; border-radius: var(--radius);
  background: var(--rose-soft); border: 1px solid rgba(244, 63, 94, .3);
  color: var(--rose); font-size: 13px;
}

/* ============ Bento Grid + 玻璃瓦片 ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 86px;
  gap: var(--gap);
  grid-auto-flow: dense;
}
.tile {
  position: relative;
  min-width: 0; min-height: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--glow-hover); border-color: var(--glass-border-strong); }
.tile h3, .tile .tile-title { font-size: 14.5px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.tile .tile-sub { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.tile .tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex: none; }
.tile-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, .3) transparent; }
.tile-body::-webkit-scrollbar { width: 4px; }
.tile-body::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, .3); border-radius: 4px; }

/* span 工具类 */
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }
.r-1 { grid-row: span 1; } .r-2 { grid-row: span 2; } .r-3 { grid-row: span 3; }
.r-4 { grid-row: span 4; } .r-5 { grid-row: span 5; } .r-6 { grid-row: span 6; } .r-7 { grid-row: span 7; } .r-8 { grid-row: span 8; }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-12, .span-10, .span-9, .span-8, .span-7 { grid-column: span 6; }
  .span-6, .span-5 { grid-column: span 6; }
  .span-4 { grid-column: span 3; } .span-3 { grid-column: span 3; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-12 { grid-column: span 1; }
  .r-2, .r-3, .r-4, .r-5, .r-6, .r-7, .r-8 { grid-row: span 1; }
  .tile { min-height: 0; }
}

/* ============ 监控首页：固定数据大盘 ============ */
.monitor-dashboard {
  display: grid;
  grid-template-columns: minmax(270px, 3fr) minmax(0, 9fr);
  grid-template-areas:
    "rooms trend"
    "badges summary"
    "highlights highlights";
  grid-template-rows: 400px 250px minmax(560px, auto);
  gap: var(--gap);
}
.monitor-rooms-panel { grid-area: rooms; }
.monitor-badges-panel { grid-area: badges; }
.monitor-trend-panel { grid-area: trend; }
.monitor-summary-panel { grid-area: summary; }
.monitor-highlight-tall { grid-area: highlights; min-height: 560px; }
.monitor-highlight-tall.collapsed { min-height: 0; height: auto; }
.monitor-rooms-panel .tile-body { overflow: hidden; }
.monitor-rooms-panel .room-list { max-height: 300px; overflow-y: auto; padding: 2px 4px 8px 2px; scrollbar-width: thin; }
.monitor-rooms-panel .room-row { display: grid; grid-template-columns: minmax(0,1fr) 62px; align-items: stretch; padding: 11px; gap: 10px; }
.monitor-rooms-panel .room-main { display: flex; min-width: 0; flex-direction: column; justify-content: center; overflow: hidden; }
.monitor-rooms-panel .room-title-line,
.monitor-rooms-panel .room-detail,
.monitor-rooms-panel .room-heat-row { min-width: 0; white-space: nowrap; }
/* 房间卡右侧操作：三个按钮贴合左侧信息区高度，整体更紧凑 */
.room-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: stretch; gap: 5px; width: 58px; }
.monitor-rooms-panel .room-actions > * { box-sizing: border-box; width: 100%; min-width: 0; flex: 1 1 0; padding: 4px 4px; text-align: center; font-size: 11.5px; }

.minute-range-controls { display: flex; align-items: center; padding: 3px; border: 1px solid var(--hairline); border-radius: 10px; background: rgba(248, 250, 252, .78); }
.minute-range-controls button { min-width: 54px; padding: 6px 9px; border-radius: 7px; background: transparent; color: var(--ink-3); font-size: 11px; font-weight: 700; transition: .15s ease; }
.minute-range-controls button:hover { color: var(--ink); background: rgba(255,255,255,.9); }
.minute-range-controls button.active { color: #fff; background: var(--ink); box-shadow: 0 5px 12px rgba(27,36,51,.18); }
.minute-trend-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: -2px 0 10px; }
.minute-legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 11.5px; }
.minute-legend-item i { width: 17px; height: 3px; border-radius: 999px; background: currentColor; }
.minute-legend-item b { color: var(--ink); font-family: var(--font-num); font-size: 12px; }
.minute-legend-item.vip { color: #0faaa4; }
.minute-legend-item.heat { color: #7c5ce8; }
.minute-legend-item.chat { color: #3187e8; }
.minute-legend-item.gift { color: #e7a02a; }
.minute-trend-body { overflow: hidden; }
.minute-trend-chart { width: 100%; height: 100%; min-height: 270px; border-top: 1px solid rgba(28,36,58,.045); }
.minute-trend-chart svg { display: block; }
.minute-history-empty { height: 100%; min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--ink-3); text-align: center; }
.minute-history-empty b { color: var(--ink-2); font-size: 13px; }
.minute-history-empty span { font-size: 11.5px; }

.badge-dashboard-body { display: grid; grid-template-columns: minmax(120px,.9fr) minmax(145px,1.1fr); align-items: center; gap: 12px; overflow: hidden; }
.badge-donut { display: flex; justify-content: center; min-height: 125px; min-width: 0; }
.badge-donut .donut-wrap { width: 100%; justify-content: center; }
.badge-donut .donut-legend { display: none; }
.badge-empty-ring { width: 118px; height: 118px; border: 14px solid rgba(148,163,184,.17); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.badge-empty-ring b { color: var(--ink); font-family: var(--font-num); font-size: 20px; }
.badge-empty-ring span { margin-top: 2px; color: var(--ink-3); font-size: 10.5px; }
.badge-legend { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; max-height: 164px; overflow-y: auto; }
.badge-scope { color: var(--ink-3); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-legend-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 7px; min-width: 0; padding: 5px 7px; border-radius: 8px; background: rgba(248,250,252,.66); font-size: 11px; }
.badge-legend-row i { width: 8px; height: 8px; border-radius: 50%; }
.badge-legend-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.badge-legend-value { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); font-family: var(--font-num); line-height: 1.1; }
.badge-legend-value b { font-size: 11px; }
.badge-legend-value small { margin-top: 2px; color: var(--ink-3); font-size: 9.5px; }

.monitor-summary { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; height: 100%; }
.summary-stat { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 11px 12px 10px; border: 1px solid var(--hairline); border-radius: 14px; background: rgba(248,250,252,.72); overflow: hidden; }
.summary-stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--summary-color); }
.summary-stat span { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.summary-stat b { margin-top: 6px; color: var(--ink); font-size: 17px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-stat b.live { color: var(--emerald); }
.summary-stat b.offline { color: var(--ink-3); }
.summary-stat b.up { color: var(--rose); }
.summary-stat b.down { color: var(--emerald); }
.summary-stat b.flat { color: var(--ink-2); }
.summary-stat.heat { --summary-color: #7c3aed; }
.summary-stat.vip { --summary-color: #06b6d4; }
.summary-stat.danmu { --summary-color: #10b981; }
.summary-stat.paid { --summary-color: #e7a02a; }
.summary-stat.glow { --summary-color: #13aaa5; }
.summary-stat.users { --summary-color: #7c5ce8; }
.summary-stat.bans { --summary-color: #ef5b6c; }
.summary-stat.chg { --summary-color: #f59e0b; }
.summary-stat.live { --summary-color: #059669; }
.summary-stat.started { --summary-color: #3187e8; }

.highlight-fold-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--hairline); border-radius: 999px; background: rgba(248,250,252,.88); color: var(--ink-2); font-size: 12px; font-weight: 750; box-shadow: 0 5px 15px rgba(30,41,59,.06); transition: .15s ease; }
.highlight-fold-btn:hover { color: var(--primary); border-color: var(--glass-border-strong); background: #fff; transform: translateY(-1px); }
.highlight-fold-btn i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--primary); font-style: normal; line-height: 1; }
.monitor-highlight-tall > .tile-body { min-height: 475px; }

@media (max-width: 1100px) {
  .monitor-dashboard { grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr); }
  .monitor-summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .minute-range-controls button { min-width: 46px; padding-inline: 7px; }
}
@media (max-width: 760px) {
  .monitor-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas: "rooms" "badges" "trend" "summary" "highlights";
    grid-template-rows: auto;
  }
  .monitor-rooms-panel { min-height: 390px; }
  .monitor-badges-panel { min-height: 300px; }
  .monitor-trend-panel { min-height: 430px; }
  .monitor-summary-panel { min-height: 250px; }
  .monitor-highlight-tall { min-height: 560px; }
  .monitor-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .monitor-summary .summary-stat:last-child { grid-column: span 2; }
  .monitor-trend-panel .tile-head { flex-direction: column; }
  .minute-range-controls { width: 100%; overflow-x: auto; }
  .minute-range-controls button { flex: 1 0 auto; }
}

/* 通用共享组件（app.js 动态内容复用） */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.section-note { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.head-actions { display: flex; align-items: center; gap: 8px; }

.picker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--glass-soft); border: 1px solid var(--hairline);
  color: var(--ink-2); font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  transition: all .15s;
}
.picker:hover { color: var(--primary); border-color: var(--glass-border-strong); }

.empty { padding: 22px 8px; color: var(--ink-3); font-size: 13px; text-align: center; }
.empty.small { padding: 12px 4px; font-size: 12px; }

button { font-family: inherit; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
input { font-family: inherit; border: none; outline: none; background: transparent; color: var(--ink); }

.room-input, .cs-nick-input, .cs-backfill-input, .nickname-input {
  background: var(--glass-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.room-input:focus, .cs-nick-input:focus, .cs-backfill-input:focus, .nickname-input:focus {
  border-color: var(--glass-border-strong);
  background: var(--glass-strong);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.room-input::placeholder, .cs-nick-input::placeholder, .cs-backfill-input::placeholder, .nickname-input::placeholder { color: var(--ink-3); }

/* 状态行（在线状态/对局速览） */
.live-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px dashed rgba(28, 36, 58, .05); }
.live-row:last-child { border-bottom: none; }
.live-row .live-k { flex: none; width: 62px; color: var(--ink-3); font-size: 11.5px; }
.live-row b { font-weight: 650; }
.live-row .truncate { flex: 1 1 auto; }

/* ============ 图表容器 ============ */
.svg-box { width: 100%; }
.svg-box svg { display: block; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut-legend { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.donut-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.donut-swatch { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.donut-label { flex: 1 1 auto; min-width: 0; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.donut-value { color: var(--ink); font-weight: 700; }

.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-list-row { display: grid; grid-template-columns: 22px minmax(0, 92px) minmax(0, 1fr) 52px; gap: 9px; align-items: center; font-size: 12px; }
.bar-rank { color: var(--ink-3); font-weight: 700; }
.bar-rank.top { color: var(--primary); }
.bar-name { color: var(--ink-2); }
.bar-track { height: 8px; border-radius: 999px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.bar-value { color: var(--ink); font-weight: 700; text-align: right; }

/* 封禁页：当前记录前5多的封禁房间 */
.top-rooms-head { margin-top: 14px; }
.ban-top-rooms { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.ban-top-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.ban-top-rank { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.ban-top-rank.top { color: var(--primary); }
.ban-top-name { color: var(--ink-2); min-width: 0; }
.ban-top-bar { height: 7px; border-radius: 999px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.ban-top-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #a855f7); }
.ban-top-count { color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* 在线状态灯（房间） */
.status-dot, .cs-target-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.status-dot.ok { background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft), 0 0 12px rgba(16, 185, 129, .55); }
.status-dot.wait { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft), 0 0 12px rgba(245, 158, 11, .5); }
.status-dot.error, .status-dot.live { background: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft), 0 0 12px rgba(244, 63, 94, .5); }
.status-dot.loop { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.status-dot.offline { background: #b6c0d0; box-shadow: 0 0 0 3px rgba(182, 192, 208, .2); }
.cs-target-dot { width: 8px; height: 8px; background: #b6c0d0; }
.cs-target-dot.live { background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft), 0 0 12px rgba(16, 185, 129, .5); }

/* ============ 监控：房间搜索与列表 ============ */
.search-wrap { position: relative; z-index: 30; }
.add-row { display: flex; gap: 9px; }
.room-input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 15px; border-radius: 11px; font-size: 13.5px; }
.add-btn {
  flex: none; height: 42px; padding: 0 20px; border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #7c5cf0);
  color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(99, 102, 241, .35);
  transition: transform .1s, box-shadow .15s;
}
.add-btn:hover { box-shadow: 0 10px 24px rgba(99, 102, 241, .45); }
.add-btn:active { transform: scale(.97); }
.search-state { padding: 9px 4px; font-size: 12px; color: var(--ink-2); }

.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  overflow: hidden; z-index: 40;
}
.suggestion-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; transition: background .12s; }
.suggestion-row:hover { background: var(--primary-soft); }
.suggestion-main { flex: 1 1 auto; min-width: 0; }
.suggestion-title-line { display: flex; align-items: center; gap: 8px; }
.suggestion-name { font-size: 13px; color: var(--ink); font-weight: 650; }
.suggestion-detail { margin-top: 2px; font-size: 11.5px; color: var(--ink-2); }
.suggestion-add { flex: none; font-size: 12px; color: var(--primary); font-weight: 700; }
.picker-menu { position: fixed !important; width: 220px !important; max-height: 280px; overflow-y: auto; }
.picker-menu .suggestion-name { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.stream-chip { flex: none; display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; line-height: 17px; }
.stream-chip.live { color: #e11d48; background: rgba(244, 63, 94, .1); }
.stream-chip.loop { color: #b45309; background: rgba(245, 158, 11, .1); }
.stream-chip.offline, .stream-chip.stopped { color: var(--ink-3); background: rgba(148, 163, 184, .12); }
.stream-chip.play { color: #059669; background: var(--emerald-soft); }

.room-list { display: flex; flex-direction: column; gap: 8px; }
.room-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .5);
  cursor: pointer; transition: all .15s;
}
.room-row:hover { background: var(--glass-strong); border-color: var(--hairline); }
.room-row.selected {
  background: var(--primary-soft);
  border-color: var(--glass-border-strong);
  box-shadow: 0 0 0 3px var(--primary-soft), 0 6px 18px rgba(99, 102, 241, .14);
}
.room-row.selected .room-name { color: var(--primary-deep); }

.room-main { flex: 1 1 auto; min-width: 0; }
.room-title-line { display: flex; align-items: center; gap: 8px; }
.room-name { font-size: 14px; font-weight: 750; }
.room-detail { margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.room-heat-row { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.room-heat-data { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.heat-caption { color: var(--ink-3); }
.heat-current { font-size: 14px; font-weight: 750; color: #7c3aed; }
.heat-change { font-size: 11px; }
.heat-change.up { color: var(--rose); }
.heat-change.down { color: var(--emerald); }
.heat-change.flat { color: var(--ink-3); }

.heat-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.heat-badge.rise { color: #b45309; background: var(--amber-soft); }
.heat-badge.surge { color: #7c3aed; background: rgba(139, 92, 246, .12); }
.heat-badge.burst { color: #6d28d9; background: rgba(124, 58, 237, .14); box-shadow: 0 0 0 2px rgba(139, 92, 246, .16), 0 0 18px rgba(139, 92, 246, .25); }
.selected-mark { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(255, 255, 255, .75); border: 1px solid var(--glass-border-strong); }
.room-pin, .room-jump, .remove-btn {
  flex: none; padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 650; cursor: pointer;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--hairline); color: var(--ink-2);
  transition: all .15s;
}
.room-jump { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.room-jump:hover { color: var(--sky); border-color: rgba(14,165,233,.35); background: rgba(14,165,233,.07); }
.room-pin:hover { color: #b45309; border-color: rgba(245, 158, 11, .4); }
.room-pin.active { background: var(--amber-soft); border-color: rgba(245, 158, 11, .4); color: #b45309; }
.remove-btn:hover { color: var(--rose); border-color: rgba(244, 63, 94, .4); background: var(--rose-soft); }

/* ============ 监控：指标区 ============ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi-cell {
  background: var(--glass-soft); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 12px 10px; min-width: 0; text-align: center;
}
.kpi-label { font-size: 10.5px; color: var(--ink-3); margin-bottom: 3px; letter-spacing: .03em; }
.kpi-value { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--font-num); color: var(--ink); }
.kpi-cell.violet .kpi-value { color: var(--violet); }
.kpi-cell.sky .kpi-value { color: var(--sky); }
.kpi-cell.amber .kpi-value { color: var(--amber); }
.kpi-cell.rose .kpi-value { color: var(--rose); }
.kpi-cell .kpi-unit { font-size: 10px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.kpi-cell .kpi-sub { margin-top: 3px; font-size: 10px; color: var(--ink-3); }

/* 弹幕舞台（玻璃） */
.danmaku-stage {
  position: relative; height: 100%; min-height: 170px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(238, 241, 249, .5));
  border: 1px solid var(--hairline); border-radius: var(--radius);
}
.danmaku-empty { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 12.5px; color: var(--ink-3); }
.danmaku-item {
  position: absolute; left: 100%; white-space: nowrap;
  font-size: 13.5px; font-weight: 650;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .9);
  will-change: transform;
  animation: danmakuMove linear forwards;
}
@keyframes danmakuMove { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 380px)); } }

/* 高光 */
.highlight-item { border-top: 1px solid var(--hairline); padding: 11px 2px; }
.highlight-item:first-child { border-top: none; padding-top: 2px; }
.highlight-time-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.highlight-play-dot { color: var(--primary); font-size: 11px; }
.highlight-time { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.highlight-heat { margin-left: auto; color: var(--violet); font-weight: 700; }
.highlight-panel { background: var(--glass-soft); border-radius: var(--radius); padding: 11px 13px; border-left: 3px solid var(--primary); }
.highlight-title { font-size: 13.5px; font-weight: 700; }
.highlight-description { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.highlight-excerpts { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.highlight-excerpt { display: flex; align-items: flex-start; gap: 8px; background: rgba(255, 255, 255, .45); border-radius: 8px; padding: 7px 11px; font-size: 12px; color: var(--ink-2); }
.highlight-chat-icon { color: var(--primary); }
.highlight-excerpt-text { flex: 1 1 auto; min-width: 0; }
.highlight-like { flex: none; color: var(--violet); font-weight: 650; }
.highlight-error { padding: 12px; font-size: 12.5px; color: var(--rose); }

/* 牌子/环形图卡 */
.badge-summary { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }

/* ============ 封禁 ============ */
.clear-btn { padding: 7px 15px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .6); border: 1px solid rgba(244, 63, 94, .35); color: var(--rose); font-size: 12.5px; font-weight: 650; cursor: pointer; }
.clear-btn:hover { background: var(--rose-soft); }
.ban-item { border-top: 1px solid var(--hairline); padding: 13px 2px; }
.ban-item:first-child { border-top: none; padding-top: 4px; }
.ban-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; }
.ban-room { color: var(--ink); font-weight: 650; }
.ban-chain { display: flex; align-items: center; gap: 6px; font-size: 13.5px; flex-wrap: wrap; }
.actor { color: var(--primary-deep); font-weight: 700; }
.actor.anchor { padding: 1px 8px; border-radius: 6px; background: var(--primary-soft); }
.arrow { color: var(--ink-3); font-size: 12px; }
.target { color: var(--rose); font-weight: 700; }
.ban-info { display: flex; gap: 18px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.last-box { margin-top: 9px; background: rgba(255, 255, 255, .45); border-radius: 10px; padding: 9px 13px; }
.last-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.last-text { font-size: 12.5px; line-height: 1.5; }
.last-text.muted { color: var(--ink-3); }
.cid { margin-top: 4px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* ============ CS ============ */
.cs-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--glass-soft); border: 1px solid var(--hairline); color: var(--ink-2); }
.cs-status-pill.live { background: var(--emerald-soft); color: #059669; border-color: rgba(16, 185, 129, .3); }
.cs-search-row { display: flex; gap: 9px; margin-bottom: 11px; }
.cs-nick-input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 15px; border-radius: 11px; font-size: 13.5px; }
.cs-monitor-btn { flex: none; height: 42px; padding: 0 22px; border-radius: 11px; background: linear-gradient(135deg, #6366f1, #7c5cf0); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 18px rgba(99, 102, 241, .35); }
.cs-rank-refresh { padding: 7px 14px; border-radius: 999px; background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .28); color: var(--primary); font-size: 12px; font-weight: 650; cursor: pointer; }
.cs-target-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.cs-target-chip { display: flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--emerald-soft); border: 1px solid rgba(16, 185, 129, .3); }
.cs-target-chip-name { font-size: 12px; color: #059669; font-weight: 650; }
.cs-target-remove { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--ink-2); font-size: 11px; line-height: 18px; text-align: center; padding: 0; cursor: pointer; }
.cs-target-remove:hover { color: var(--rose); }
.cs-error { margin-top: 9px; font-size: 12.5px; color: var(--rose); }
.cs-major-capture { margin-top: 11px; border-top: 1px dashed rgba(99, 102, 241, .25); padding-top: 12px; }
.cs-admin-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #7c3aed; font-weight: 750; margin-bottom: 5px; }
.cs-mode-note { font-size: 11.5px; color: var(--ink-2); margin-bottom: 9px; }
.cs-major-capture-btn { width: 100%; height: 38px; border-radius: 10px; background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .3); color: #7c3aed; font-size: 13px; font-weight: 700; cursor: pointer; }
.cs-major-target-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.cs-major-target-card { background: rgba(255, 255, 255, .5); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px 12px; }
.cs-major-target-top { display: flex; align-items: center; gap: 8px; }
.cs-major-target-name { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-major-target-score { margin-top: 5px; font-size: 15px; font-weight: 800; color: #7c3aed; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-wait-card { text-align: center; padding: 34px 16px; }
.cs-wait-icon { font-size: 32px; color: rgba(148, 163, 184, .8); margin-bottom: 9px; }
.cs-wait-title { font-size: 15px; font-weight: 700; }
.cs-wait-note { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.cs-match-divider { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 10px; }
.cs-match-number { font-size: 14px; font-weight: 750; margin-right: 10px; }
.cs-match-targets { font-size: 12px; color: var(--ink-2); }
.cs-mini-status { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: rgba(148, 163, 184, .12); color: var(--ink-2); font-weight: 650; }
.cs-mini-status.live { color: #059669; background: var(--emerald-soft); }
.cs-mini-status.waiting { color: #b45309; background: var(--amber-soft); }
.cs-mini-status.ended { color: #7c3aed; background: rgba(139, 92, 246, .12); }
.cs-card-wait { padding: 22px 14px; }

.cs-score-card { text-align: center; position: relative; padding: 22px 18px; }
.cs-ended-chip { position: absolute; top: 12px; left: 14px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #7c3aed; background: rgba(139, 92, 246, .12); }
.cs-map { font-size: 15px; font-weight: 800; }
.cs-half { margin-top: 3px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-big-score { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 6px; }
.cs-team-score { display: flex; align-items: baseline; gap: 8px; }
.cs-side-name { font-size: 13px; font-weight: 750; }
.cs-team-score.ct .cs-side-name { color: var(--sky); }
.cs-team-score.t .cs-side-name { color: var(--violet); }
.cs-score-num { font-size: 48px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-team-score.ct .cs-score-num { color: var(--sky); text-shadow: 0 0 24px rgba(14, 165, 233, .35); }
.cs-team-score.t .cs-score-num { color: var(--violet); text-shadow: 0 0 24px rgba(139, 92, 246, .35); }
.cs-score-colon { color: var(--ink-3); font-size: 24px; font-weight: 750; }
.cs-round { font-size: 12px; color: var(--ink-2); }

.cs-teams-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; margin-top: 12px; }
.cs-teams-wrap > .card + .card { margin-top: 0; }
.cs-teams-wrap > .cs-team-card { height: 100%; }
@media (max-width: 760px) { .cs-teams-wrap { grid-template-columns: 1fr; } }
.cs-team-card { display: grid; grid-template-rows: auto auto 1fr; align-self: stretch; min-height: 306px; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 14px; background: rgba(255, 255, 255, .5); }
.cs-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cs-side-head > div { display: flex; align-items: center; gap: 8px; }
.cs-side-badge { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.cs-side-head.ct .cs-side-badge { background: rgba(14, 165, 233, .12); color: var(--sky); }
.cs-side-head.t .cs-side-badge { background: rgba(139, 92, 246, .12); color: var(--violet); }
.cs-avg { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-side-head > span { font-size: 11px; color: var(--ink-2); }
.cs-score-table { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .75fr) minmax(0, .65fr); gap: 8px; align-items: center; font-size: 12px; }
.cs-score-head { padding: 2px 0 6px; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.cs-team-table-body { display: grid; grid-template-rows: repeat(5, minmax(38px,1fr)); min-height: 205px; }
.cs-player-slot { min-height: 38px; }
.cs-player-row { padding: 6px 2px; border-top: 1px solid rgba(28, 36, 58, .06); cursor: pointer; transition: background .12s; border-radius: 6px; }
.cs-player-row:hover { background: var(--primary-soft); }
.cs-player-row.target { background: var(--primary-soft); }
.cs-player-row.dead { opacity: .5; }
.cs-player-placeholder { padding: 6px 2px; border-top: 1px solid rgba(28,36,58,.045); color: transparent; pointer-events: none; user-select: none; }
.cs-player-name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cs-player-name > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-star { color: var(--primary); }
.cs-fb { padding: 0 5px; border-radius: 4px; background: var(--rose-soft); color: var(--rose); font-size: 9.5px; font-weight: 700; flex: none; }
.cs-rank { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cs-rank > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-rank-points { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-kda, .cs-adr, .cs-hs { font-variant-numeric: tabular-nums; color: var(--ink); }
.cs-adr { color: #7c3aed; font-weight: 650; }

.cs-feed-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.cs-feed-killer { font-weight: 700; color: var(--sky); }
.cs-feed-weapon { padding: 1px 7px; border-radius: 5px; background: rgba(148, 163, 184, .14); font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-feed-arrow { color: var(--ink-3); }
.cs-feed-victim { color: var(--rose); font-weight: 650; }
.cs-streak-top-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); height: 100%; gap: 10px; }
.cs-streak-column { min-width: 0; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(248,250,252,.72); }
.cs-streak-title { font-size: 12.5px; font-weight: 750; margin-bottom: 6px; }
.cs-streak-title.kill { color: var(--sky); }
.cs-streak-title.death { color: var(--rose); }
.cs-streak-row { display: grid; grid-template-columns: 17px minmax(0,1fr) auto; align-items: center; gap: 5px; font-size: 11.5px; padding: 4px 0; border-top: 1px solid rgba(28,36,58,.045); }
.cs-streak-row b { font-size: 11.5px; }
.cs-streak-place { color: var(--ink-3); font-family: var(--font-num); }
.cs-streak-empty { font-size: 12px; color: var(--ink-3); }
.cs-archive-list { display: grid; gap: 7px; }
.cs-archive-row { display: grid; grid-template-columns: 18px minmax(0,1fr) auto auto; align-items: center; gap: 6px; font-size: 11.5px; padding: 5px 0; border-bottom: 1px solid rgba(28,36,58,.06); }
.cs-archive-rank { color: var(--violet); font-family: var(--font-num); font-weight: 750; }
.cs-archive-row b { color: var(--violet); font-size: 11.5px; }
.cs-archive-streak { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--hairline); }
.cs-major-summary-tile { margin-top: 14px; }

.cs-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs-award { border-radius: var(--radius); padding: 13px; border: 1px solid var(--hairline); }
.cs-award.mvp { background: rgba(139, 92, 246, .08); border-color: rgba(139, 92, 246, .3); }
.cs-award.svp { background: rgba(14, 165, 233, .07); border-color: rgba(14, 165, 233, .28); }
.cs-award-label { font-size: 11px; font-weight: 800; margin-bottom: 5px; letter-spacing: .06em; }
.cs-award.mvp .cs-award-label { color: var(--violet); }
.cs-award.svp .cs-award-label { color: var(--sky); }
.cs-award-name { font-size: 15px; font-weight: 750; }
.cs-award-rank { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.cs-award-stats { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* Major */
.cs-major-empty { padding: 18px 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.cs-major-scroll { overflow-x: auto; scrollbar-width: none; }
.cs-major-scroll::-webkit-scrollbar { display: none; }
.cs-major-table-shell { border: 1px solid var(--hairline); border-radius: 14px; background: rgba(255,255,255,.48); overflow-x: auto; }
.cs-major-table { display: grid; grid-template-columns: 52px minmax(110px,1.25fr) 56px 56px 68px 76px 82px 72px 58px; gap: 10px; align-items: center; min-width: 720px; font-size: 12px; padding: 10px 14px; }
.cs-major-head { color: var(--ink-3); background: rgba(241,245,249,.82); font-size: 10.5px; font-weight: 750; letter-spacing: .035em; border-bottom: 1px solid var(--hairline); }
.cs-major-sort { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; white-space: nowrap; }
.cs-major-sort i { color: rgba(100,116,139,.55); font-style: normal; font-size: 10px; }
.cs-major-sort:hover,
.cs-major-sort.active { color: var(--primary); }
.cs-major-sort.active i { color: var(--primary); }
.cs-major-row { position: relative; border-bottom: 1px solid rgba(28,36,58,.055); transition: background .14s ease; }
.cs-major-row:last-child { border-bottom: none; }
.cs-major-row:hover { background: rgba(99,102,241,.055); }
.cs-major-row.rank-1 { background: linear-gradient(90deg,rgba(245,158,11,.12),rgba(255,255,255,.2)); }
.cs-major-row.rank-2 { background: linear-gradient(90deg,rgba(148,163,184,.12),rgba(255,255,255,.2)); }
.cs-major-row.rank-3 { background: linear-gradient(90deg,rgba(180,105,55,.09),rgba(255,255,255,.2)); }
.cs-major-row.rank-1 .cs-major-rank { color: #d97706; }
.cs-major-row.rank-2 .cs-major-rank { color: #64748b; }
.cs-major-row.rank-3 .cs-major-rank { color: #b45309; }
.cs-major-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 650; }
.cs-major-rank { color: var(--violet); font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-major-wins { color: var(--emerald); font-weight: 650; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-major-rating { color: var(--primary); font-weight: 650; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-major-adr { color: #7c3aed; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-major-kda { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-major-hs { color: var(--sky); font-variant-numeric: tabular-nums; font-family: var(--font-num); }

.cs-admin-panel { margin-bottom: 18px; padding: 16px; border: 1px solid rgba(99,102,241,.15); border-radius: 16px; background: rgba(248,250,252,.6); }
.cs-backfill-row { display: flex; gap: 9px; margin: 9px 0; }
.cs-backfill-input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-backfill-btn { flex: none; padding: 0 15px; height: 38px; border-radius: 10px; background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .3); color: #7c3aed; font-size: 13px; font-weight: 700; cursor: pointer; }
.cs-backfill-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 9px; }
.cs-admin-subtitle { font-size: 12px; color: #7c3aed; font-weight: 750; margin: 10px 0 5px; }
.cs-backfill-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 12.5px; }
.cs-backfill-info { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-backfill-info span:last-child { color: var(--ink-2); font-size: 11px; }
.cs-backfill-delete { padding: 4px 11px; border-radius: 7px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(244, 63, 94, .35); color: var(--rose); font-size: 11.5px; cursor: pointer; }
.cs-review-heading { margin: 13px 0 6px; }
.cs-admin-empty { padding: 13px 4px; font-size: 12px; color: var(--ink-3); }
.cs-review-item { border-top: 1px solid var(--hairline); padding: 10px 2px; }
.cs-review-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 650; }
.cs-review-map { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-review-id { margin-top: 3px; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-review-players { margin-top: 4px; font-size: 11.5px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-review-actions { display: flex; gap: 10px; margin-top: 9px; }
.cs-review-btn { padding: 6px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 700; }
.cs-review-btn.approve { background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .3); color: #7c3aed; }
.cs-review-btn.approve.disabled { opacity: .5; cursor: not-allowed; background: rgba(148, 163, 184, .12); border-color: var(--hairline); color: var(--ink-3); }
.cs-review-btn.reject { background: rgba(255, 255, 255, .6); border: 1px solid rgba(244, 63, 94, .35); color: var(--rose); }
.cs-approved-block { margin-top: 11px; border-top: 1px dashed rgba(99, 102, 241, .25); padding-top: 9px; }
.cs-approved-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 12.5px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-approved-remove { flex: none; padding: 4px 11px; border-radius: 7px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(244, 63, 94, .35); color: var(--rose); font-size: 11.5px; cursor: pointer; }

.cs-data-table { margin-top: 10px; border: 1px solid var(--hairline); border-radius: 13px; background: rgba(255,255,255,.55); overflow-x: auto; }
.cs-data-row { display: grid; align-items: center; gap: 12px; min-width: 640px; padding: 10px 12px; border-top: 1px solid rgba(28,36,58,.055); color: var(--ink-2); font-size: 11.5px; }
.cs-data-row:first-child { border-top: none; }
.cs-data-row:not(.cs-data-head):hover { background: rgba(99,102,241,.045); }
.cs-data-head { color: var(--ink-3); background: rgba(241,245,249,.78); font-size: 10.5px; font-weight: 750; letter-spacing: .03em; }
.cs-data-row > span { min-width: 0; }
.cs-data-row b { display: block; color: var(--ink); font-size: 12px; }
.cs-data-row small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 10px; font-family: var(--font-num); }
.cs-backfill-table .cs-data-row { grid-template-columns: minmax(150px,1fr) 110px 90px 70px; }
.cs-review-table .cs-data-row { grid-template-columns: minmax(150px,.9fr) 70px 100px minmax(150px,1.2fr) 150px; min-width: 760px; }
.cs-approved-table .cs-data-row { grid-template-columns: minmax(110px,1fr) 80px minmax(150px,1fr) 90px; }
.cs-table-actions { display: flex; align-items: center; gap: 6px; }
.cs-table-actions .cs-review-btn { padding: 5px 9px; white-space: nowrap; }

/* ============ DOTA ============ */
.dota-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dota-head-btn { padding: 8px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dota-head-btn.refresh { background: rgba(14, 165, 233, .1); border: 1px solid rgba(14, 165, 233, .3); color: var(--sky); }
.dota-head-btn.gg { background: var(--rose-soft); border: 1px solid rgba(244, 63, 94, .3); color: var(--rose); }
.dota-head-btn.rank { background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .3); color: #7c3aed; }
.dota-ti-pill { padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 6px 16px rgba(99, 102, 241, .4), 0 0 20px rgba(168, 85, 247, .3); }

.dota-intro-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.dota-intro-note { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.dota-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.dota-rule-grid > div { background: rgba(255, 255, 255, .5); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 13px 8px; text-align: center; }
.dota-rule-grid span:first-child { display: block; font-size: 18px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-rule-label { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-2); }
.dota-attr-legend { font-size: 11.5px; color: var(--ink-2); margin: 2px 0 8px; }
.dota-attr-legend.compact { margin-bottom: 10px; }
.dota-primary-btn {
  display: block; width: 100%; margin-top: 14px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 14.5px; font-weight: 800;
  box-shadow: 0 10px 22px rgba(99, 102, 241, .38);
  transition: transform .1s, box-shadow .15s;
}
.dota-primary-btn:hover { box-shadow: 0 12px 28px rgba(99, 102, 241, .48); }
.dota-primary-btn:active { transform: scale(.985); }

.dota-tournament-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dota-tournament-label { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.dota-tournament-sub { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.dota-tournament-controls { flex: none; text-align: right; }
.dota-bo3-pill { display: inline-block; padding: 3px 10px; border-radius: 6px; background: rgba(148, 163, 184, .12); border: 1px solid var(--hairline); color: var(--ink-2); font-size: 11px; font-weight: 750; }
.dota-series-inline-action { margin-top: 8px; padding: 7px 16px; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--glass-border-strong); color: var(--primary-deep); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dota-series-score-row { margin-top: 12px; }
.dota-series-score-main { display: flex; align-items: center; justify-content: center; gap: 16px; }
.dota-series-side { display: flex; align-items: baseline; gap: 10px; }
.dota-series-side span { font-size: 13px; color: var(--ink-2); font-weight: 650; }
.dota-series-side b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-series-side.player b { color: var(--primary); text-shadow: 0 0 22px rgba(99, 102, 241, .45); }
.dota-series-side.ai b { color: var(--sky); text-shadow: 0 0 22px rgba(14, 165, 233, .4); }
.dota-series-vs { color: var(--ink-3); font-size: 21px; font-weight: 750; }

.dota-round-chip { flex: none; padding: 4px 11px; border-radius: 999px; background: rgba(99, 102, 241, .09); border: 1px solid rgba(99, 102, 241, .25); color: var(--primary); font-size: 11.5px; font-weight: 750; }

.dota-position-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dota-position-drop {
  min-height: 76px; border-radius: var(--radius);
  border: 1.5px dashed rgba(99, 102, 241, .35); background: rgba(255, 255, 255, .4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; text-align: center; transition: all .15s;
}
.dota-position-drop.dragover { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.dota-position-drop.assigned { border-style: solid; background: rgba(255, 255, 255, .75); cursor: grab; }
.dota-position-drop.assigned:active { cursor: grabbing; }
.dota-position-drop.assigned.orange { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.dota-position-drop.assigned.blue { border-color: var(--sky); box-shadow: 0 0 0 2px rgba(14, 165, 233, .14); }
.dota-position-drop.assigned.green { border-color: var(--emerald); box-shadow: 0 0 0 2px var(--emerald-soft); }
.dota-position-drop.assigned.white { border-color: var(--ink-3); }
.dota-drop-pos { font-size: 11px; font-weight: 800; color: var(--ink-3); }
.dota-drop-name { margin-top: 4px; font-size: 12px; font-weight: 750; line-height: 1.2; }
.dota-drop-fit { margin-top: 3px; font-size: 10.5px; color: var(--emerald); font-weight: 700; }
.dota-drop-fit.danger { color: var(--rose); }
.dota-drop-empty { margin-top: 4px; font-size: 10.5px; color: var(--ink-3); }

.dota-candidate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .dota-candidate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dota-candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dota-candidate-grid { grid-template-columns: 1fr; } }
.dota-hero-card {
  background: var(--glass-soft); border: 1px solid transparent; border-radius: var(--radius);
  padding: 14px; cursor: grab; user-select: none;
  box-shadow: var(--shadow);
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.dota-hero-card:hover { transform: translateY(-3px); box-shadow: var(--glow-hover); background: var(--glass-strong); }
.dota-hero-card:active { cursor: grabbing; }
/* 有克制/搭配关系的候选英雄：放大格子 + 高亮边框与光晕 */
.dota-hero-card.has-hint {
  transform: scale(1.07);
  z-index: 2;
  border: 1.5px solid rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14), 0 10px 24px rgba(99, 102, 241, 0.22);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.04)), var(--glass-strong);
}
.dota-hero-card.has-hint:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 12px 26px rgba(99, 102, 241, 0.28);
}
.dota-hero-card.has-hint .dota-top-chip.counter,
.dota-hero-card.has-hint .dota-top-chip.synergy {
  font-size: 10.5px;
  padding: 2px 8px;
}
.dota-hero-card.has-hint .dota-hero-name {
  color: var(--violet);
}
.dota-hero-card.orange { border-color: rgba(249, 115, 22, .35); border-top: 3px solid var(--orange); }
.dota-hero-card.blue { border-color: rgba(14, 165, 233, .32); border-top: 3px solid var(--sky); }
.dota-hero-card.green { border-color: rgba(16, 185, 129, .3); border-top: 3px solid var(--emerald); }
.dota-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.dota-rarity { padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; flex: none; }
.dota-hero-card.orange .dota-rarity { color: var(--orange-deep); background: var(--orange-soft); }
.dota-hero-card.blue .dota-rarity { color: var(--sky); background: rgba(14, 165, 233, .1); }
.dota-hero-card.green .dota-rarity { color: var(--emerald); background: var(--emerald-soft); }
.dota-hero-card.white .dota-rarity { color: var(--ink-2); background: rgba(148, 163, 184, .14); }
.dota-top-tips { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
.dota-top-chip { max-width: 180px; font-size: 10px; font-weight: 700; line-height: 1.35; padding: 1px 7px; border-radius: 6px; white-space: normal; text-align: right; }
.dota-top-chip.synergy { color: var(--emerald); background: var(--emerald-soft); }
.dota-top-chip.counter { color: var(--sky); background: rgba(14, 165, 233, .1); }
.dota-top-none { font-size: 10px; color: var(--ink-3); }
.dota-score { font-size: 14px; font-weight: 800; color: #7c3aed; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-hero-name { margin-top: 6px; font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }
.dota-hero-pos { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.dota-counter-tip { margin-top: 6px; font-size: 11px; color: var(--sky); font-weight: 650; }
.dota-synergy-tip { margin-top: 3px; font-size: 11px; color: var(--emerald); font-weight: 650; }
.dota-counter-buff, .dota-synergy-buff { display: inline-block; margin-top: 5px; font-size: 10.5px; font-weight: 650; border-radius: 6px; padding: 1px 7px; }
.dota-counter-buff { color: var(--sky); background: rgba(14, 165, 233, .1); }
.dota-synergy-buff { color: var(--emerald); background: var(--emerald-soft); }
.dota-counter-buff.mini, .dota-synergy-buff.mini { margin-top: 0; margin-left: 6px; font-size: 10px; }

.dota-stat-bars { display: flex; gap: 5px; margin-top: 10px; }
.dota-stat-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.dota-stat-value { font-size: 9.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-family: var(--font-num); font-weight: 650; }
.dota-stat-track { width: 100%; height: 40px; margin-top: 3px; border-radius: 6px; background: rgba(148, 163, 184, .16); overflow: hidden; display: flex; align-items: flex-end; }
.dota-stat-fill { width: 100%; border-radius: 6px 6px 0 0; }
.dota-hero-card.orange .dota-stat-fill { background: linear-gradient(180deg, #fb923c, #f97316); }
.dota-hero-card.blue .dota-stat-fill { background: linear-gradient(180deg, #38bdf8, #0ea5e9); }
.dota-hero-card.green .dota-stat-fill { background: linear-gradient(180deg, #34d399, #10b981); }
.dota-hero-card.white .dota-stat-fill { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.dota-locked-hero.orange .dota-stat-fill { background: linear-gradient(180deg, #fb923c, #f97316); }
.dota-locked-hero.blue .dota-stat-fill { background: linear-gradient(180deg, #38bdf8, #0ea5e9); }
.dota-locked-hero.green .dota-stat-fill { background: linear-gradient(180deg, #34d399, #10b981); }
.dota-locked-hero.white .dota-stat-fill { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.dota-stat-label { margin-top: 3px; font-size: 9px; color: var(--ink-3); }
.dota-stat-bars.wide { gap: 7px; }
.dota-stat-bars.wide .dota-stat-track { height: 54px; }

.dota-ai-preview { margin-top: 14px; }
.dota-ai-preview > .section-title, .dota-ai-preview > .dota-section-title { margin-bottom: 8px; }
.dota-mini-lineup { display: flex; flex-direction: column; gap: 4px; }
.dota-mini-line { font-size: 12.5px; }
.dota-mini-counter { margin-left: 6px; color: var(--sky); font-size: 11px; font-weight: 650; }
.dota-mini-synergy { margin-left: 6px; color: var(--emerald); font-size: 11px; font-weight: 650; }

.dota-drag-ghost { position: fixed; z-index: 300; pointer-events: none; padding: 10px 16px; border-radius: var(--radius); font-size: 13.5px; font-weight: 750; background: var(--glass-strong); border: 1.5px solid var(--primary); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-pop); }

.dota-locked-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .dota-locked-grid { grid-template-columns: 1fr; } }
.dota-locked-hero { background: var(--glass-soft); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.dota-locked-hero.orange { border-top: 3px solid var(--orange); }
.dota-locked-hero.blue { border-top: 3px solid var(--sky); }
.dota-locked-hero.green { border-top: 3px solid var(--emerald); }
.dota-locked-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dota-locked-head b { font-size: 14px; }
.dota-locked-head > div > span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-2); }
.dota-locked-head .dota-top-tips { align-items: flex-end; }
.dota-position-buff { margin-bottom: 12px; padding: 9px 13px; border-radius: var(--radius-sm); background: rgba(139, 92, 246, .09); color: #7c3aed; font-size: 12.5px; font-weight: 650; border: 1px solid rgba(139, 92, 246, .2); }

.dota-phase-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dota-phase-count { font-size: 12px; color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-combat-power { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; }
.dota-combat-power b { font-size: 17px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-combat-power span:first-child b { color: var(--primary); }
.dota-combat-power span:last-child b { color: var(--sky); }
.dota-counter-summary, .dota-synergy-summary, .dota-position-summary { margin-top: 7px; font-size: 11.5px; display: flex; flex-direction: column; gap: 3px; }
.dota-counter-summary { color: var(--sky); }
.dota-synergy-summary { color: var(--emerald); }
.dota-position-summary { color: var(--ink-2); }
.dota-win-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 750; }
.dota-win-labels span:first-child { color: var(--primary); }
.dota-win-labels span:last-child { color: var(--sky); }
.dota-win-bar { display: flex; height: 10px; margin-top: 5px; border-radius: 999px; overflow: hidden; background: rgba(148, 163, 184, .18); }
.dota-win-player { background: linear-gradient(90deg, #6366f1, #a855f7); border-radius: 999px 0 0 999px; transition: width .5s; }
.dota-win-ai { background: linear-gradient(90deg, #38bdf8, #0ea5e9); border-radius: 0 999px 999px 0; transition: width .5s; }
.dota-phase-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.dota-phase-strip span { text-align: center; font-size: 10.5px; padding: 5px 0; border-radius: 8px; color: var(--ink-3); background: rgba(148, 163, 184, .1); font-weight: 600; }
.dota-phase-strip span.active { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); font-weight: 750; box-shadow: 0 4px 12px rgba(99, 102, 241, .35); }
.dota-phase-strip span.done { color: var(--emerald); background: var(--emerald-soft); }

.dota-lineup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 760px) { .dota-lineup-grid { grid-template-columns: 1fr; } }
.dota-lineup-card { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 13px 14px; background: rgba(255, 255, 255, .5); }
.dota-lineup-card.ai { border-color: rgba(14, 165, 233, .25); }
.dota-lineup-title { font-size: 12.5px; font-weight: 750; margin-bottom: 8px; }
.dota-lineup-card .dota-lineup-title { color: var(--primary); }
.dota-lineup-card.ai .dota-lineup-title { color: var(--sky); }
.dota-lineup-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(28, 36, 58, .06); padding: 6px 0; font-size: 12.5px; }
.dota-lineup-row:first-of-type { border-top: none; }
.dota-lineup-row > span:first-child { flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-lineup-hero { flex: 1 1 auto; min-width: 0; }
.dota-power-wrap { flex: none; display: flex; align-items: center; gap: 5px; }
.dota-power-number { font-size: 14px; font-weight: 800; color: #7c3aed; font-variant-numeric: tabular-nums; font-family: var(--font-num); }

.dota-log-row { display: flex; gap: 10px; border-top: 1px solid var(--hairline); padding: 8px 2px; font-size: 12.5px; }
.dota-log-row:first-child { border-top: none; }
.dota-log-row > span { flex: none; width: 52px; color: var(--primary); font-weight: 700; }
.dota-log-row b { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-log-text { display: block; margin-top: 2px; color: var(--ink-2); font-size: 11.5px; }

.dota-result-card { text-align: center; padding: 26px 16px; }
.dota-result-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.dota-result-score { margin-top: 7px; font-size: 12.5px; color: var(--ink-2); }

.dota-final-card { text-align: center; padding: 26px 18px; }
.dota-final-kicker { font-size: 11px; letter-spacing: .24em; color: var(--violet); font-weight: 700; }
.dota-final-label { margin-top: 9px; font-size: 13px; color: var(--ink-2); }
.dota-final-placement { margin-top: 4px; font-size: 32px; font-weight: 900; color: var(--primary); text-shadow: 0 0 30px rgba(99, 102, 241, .35); }
.dota-final-stats { display: flex; justify-content: center; gap: 34px; margin-top: 14px; }
.dota-final-stats span { display: block; font-size: 11.5px; color: var(--ink-2); }
.dota-final-stats b { display: block; margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-champion-box { margin-top: 16px; padding: 15px; border-radius: var(--radius); background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .3); }
.dota-champion-score { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink-2); }
.dota-champion-score b { font-size: 24px; color: var(--violet); font-variant-numeric: tabular-nums; font-family: var(--font-num); text-shadow: 0 0 18px rgba(168, 85, 247, .35); }
.dota-champion-lineup { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; font-size: 12px; font-weight: 650; }
.dota-champion-upload { margin-top: 12px; width: 100%; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 13.5px; font-weight: 750; cursor: pointer; box-shadow: 0 8px 18px rgba(99, 102, 241, .35); }
.dota-route-list { text-align: left; margin-top: 14px; }
.dota-route-title { font-size: 12px; color: var(--ink-2); margin-bottom: 5px; font-weight: 650; }
.dota-route-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hairline); padding: 7px 2px; font-size: 12.5px; }
.dota-route-row span { flex: 1 1 auto; }
.dota-route-row b { flex: none; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-route-row b.win { color: var(--emerald); }
.dota-route-row b.loss { color: var(--rose); }

/* ============ 弹层（玻璃 sheet） ============ */
.mask {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(23, 28, 51, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center;
}
.mask.open { display: flex; }
.sheet {
  width: 100%; max-width: 620px; max-height: 88dvh;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 22px 22px 0 0;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sheet);
  display: flex; flex-direction: column;
  animation: sheetUp .24s ease-out;
}
@media (min-width: 720px) { .sheet { border-radius: 22px; margin-bottom: 34px; } }
@keyframes sheetUp { from { transform: translateY(48px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.sheet-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.sheet-sub { margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.sheet-close { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .6); border: 1px solid var(--hairline); color: var(--ink-2); font-size: 14px; line-height: 28px; text-align: center; padding: 0; cursor: pointer; }
.sheet-close:hover { color: var(--rose); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 20px 24px; scrollbar-width: thin; }

.dota-leaderboard-row { display: grid; grid-template-columns: 30px 42px minmax(0, 1fr) 74px; gap: 12px; align-items: center; border-top: 1px solid var(--hairline); padding: 10px 2px; }
.dota-leaderboard-row:first-child { border-top: none; }
.dota-rank-no { font-size: 15px; font-weight: 800; color: var(--violet); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-rank-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(168, 85, 247, .14)); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--primary); font-weight: 750; overflow: hidden; border: 1px solid rgba(99, 102, 241, .25); }
.dota-rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dota-rank-main { min-width: 0; }
.dota-rank-name { font-size: 13.5px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dota-rank-lineup { margin-top: 2px; font-size: 11px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dota-rank-time { margin-top: 2px; font-size: 10.5px; color: var(--ink-3); }
.dota-rank-power { text-align: right; }
.dota-rank-power b { display: block; font-size: 18px; color: var(--primary); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.dota-rank-power span { font-size: 10px; color: var(--ink-3); }
.dota-leaderboard-empty { padding: 26px 8px; color: var(--ink-3); font-size: 13px; text-align: center; }

.avatar-picker { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 4px auto 14px; border-radius: 50%; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .55); border: 2px dashed rgba(99, 102, 241, .4); color: var(--ink-2); font-size: 11.5px; transition: all .15s; }
.avatar-picker:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.avatar-picker img { width: 100%; height: 100%; object-fit: cover; }
.avatar-picker input { display: none; }
.nickname-input { width: 100%; height: 42px; padding: 0 14px; border-radius: 11px; font-size: 13.5px; text-align: center; }
.upload-lineup { display: flex; flex-wrap: wrap; gap: 5px 12px; justify-content: center; margin-top: 13px; font-size: 12px; color: var(--ink-2); }

.cs-sheet-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs-sheet-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(99, 102, 241, .3); }
.cs-sheet-name { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.cs-sheet-sub { margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.cs-sheet-badges { display: flex; gap: 8px; padding: 0 20px 6px; }
.cs-title-badge { padding: 3px 10px; border-radius: 7px; font-size: 11px; font-weight: 750; }
.cs-title-badge.tier-R { background: var(--rose-soft); color: var(--rose); }
.cs-title-badge.tier-G { background: rgba(139, 92, 246, .12); color: #7c3aed; }
.cs-title-badge.tier-P { background: rgba(168, 85, 247, .14); color: #a855f7; }
.cs-title-badge.tier-N { background: rgba(148, 163, 184, .14); color: var(--ink-2); }
.cs-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cs-detail-grid > div { background: rgba(255, 255, 255, .55); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 11px 4px; text-align: center; }
.cs-detail-grid span { display: block; font-size: 10.5px; color: var(--ink-3); }
.cs-detail-grid b { display: block; margin-top: 4px; font-size: 16px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-detail-title { margin: 14px 0 7px; font-size: 13px; font-weight: 750; }
.cs-dim-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.cs-dim-label { flex: none; width: 100px; display: flex; justify-content: space-between; font-size: 12px; }
.cs-dim-label span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-dim-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, .18); overflow: hidden; }
.cs-dim-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #a855f7); }
.cs-matchup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs-matchup-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cs-matchup-row b { color: var(--violet); }
.cs-matchup-row.danger b { color: var(--rose); }
.cs-mini-empty { font-size: 11.5px; color: var(--ink-3); padding: 5px 0; }

/* 设置 */
.settings-sheet .field { margin-bottom: 14px; }
.settings-sheet .field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 650; }
.settings-sheet .field input { width: 100%; height: 40px; padding: 0 13px; background: var(--glass-soft); border: 1px solid var(--hairline); border-radius: 10px; font-size: 13px; }
.settings-sheet .field input:focus { border-color: var(--glass-border-strong); box-shadow: 0 0 0 4px var(--primary-soft); }
.settings-sheet .hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.65; margin-top: 12px; }
.settings-sheet .sel-row { display: flex; gap: 8px; flex-wrap: wrap; }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.settings-actions .tool-btn { min-width: 88px; }
.settings-actions .dota-primary-btn { min-width: 108px; }

.debug-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 400; padding: 10px 20px; border-radius: 999px;
  background: rgba(28, 34, 63, .88); color: #fff; font-size: 12.5px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 30px rgba(28, 34, 63, .35);
  opacity: 0; transition: opacity .22s; pointer-events: none;
  white-space: nowrap; max-width: 86%; overflow: hidden; text-overflow: ellipsis;
}
.debug-toast.show { opacity: 1; }

.footer-note { text-align: center; margin-top: 40px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .05em; }
.footer-note b { color: var(--ink-2); font-weight: 650; }

/* ================= 方案四：时间片热力矩阵样式 ================= */
.heatmap-matrix {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* 顶部 KPI 卡片行（类名加 heatmap- 前缀，避免与现有 .kpi-label/.kpi-value 冲突） */
.heatmap-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.heatmap-kpi-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 9px 12px;
}

.heatmap-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.heatmap-kpi-val {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.heatmap-kpi-val small {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 2px;
}

/* 轨道主体与格子 */
.heatmap-grid-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.heatmap-track-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-info {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.track-tag {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 格子容器：自适应横向填满 */
.track-cells {
  flex: 1;
  display: flex;
  gap: 3px;
  height: 26px;
  background: #f8fafc;
  padding: 3px;
  border-radius: 6px;
  overflow: hidden;
}

.heat-cell {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
}

.heat-cell:hover {
  transform: scaleY(1.15);
  filter: brightness(1.1);
  z-index: 2;
}

/* 高光爆发时刻的微光边缘 */
.heat-cell.is-burst {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

/* 点击固定的格子：外描边 + 微光 */
.heat-cell.is-pinned {
  outline: 1.5px solid #0f172a;
  outline-offset: 1px;
  box-shadow: 0 0 5px rgba(15, 23, 42, 0.3);
}

/* 长区间（3h/6h）渐变圆角长条 */
.gradient-track {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border-radius: 13px;
}
.gradient-bar {
  height: 26px;
  width: 100%;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.gradient-bar:hover {
  transform: scaleY(1.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 6px rgba(0, 0, 0, 0.12);
}

/* 点击/悬停 Tooltip 气泡：挂到 body 顶层，fixed 视口定位，不受区块 overflow 裁剪 */
.heatmap-tooltip {
  position: fixed;
  display: none;
  background: #0f172a;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  pointer-events: none;
  z-index: 400;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  max-width: 260px;
}

.heatmap-tooltip .tip-t {
  color: #94a3b8;
  font-family: var(--font-num);
  font-size: 10px;
  margin-bottom: 2px;
}
.minute-trend-chart { position: relative; }
.cs-tournament { margin: 0 0 18px; padding: 18px; border: 1px solid rgba(99,102,241,.16); border-radius: 18px; background: linear-gradient(135deg,rgba(255,255,255,.86),rgba(248,250,252,.72)); box-shadow: 0 10px 30px rgba(30,41,59,.05); }
.cs-tournament-head, .cs-bracket-series-head, .cs-report-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.cs-tournament-head h2 { margin: 3px 0 4px; font-size: 22px; letter-spacing: -.025em; }
.cs-tournament-actions { display:flex; align-items:center; gap:10px; flex:none; }
.cs-tournament-ranking-actions { display:flex; align-items:center; gap:8px; }
.cs-tournament-ranking-actions .cs-tournament-date-filter select { min-width:132px; }
.cs-tournament-date-switcher { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.cs-tournament-date-switcher > .tool-btn { width:32px; min-width:32px; height:34px; padding:0; font-size:18px; }
.cs-tournament-date-filter { display:flex; align-items:center; gap:7px; color:var(--ink-3); font-size:10px; font-weight:750; white-space:nowrap; }
.cs-tournament-date-filter select { height:34px; min-width:132px; padding:0 28px 0 10px; border:1px solid var(--hairline); border-radius:9px; background:#fff; color:var(--ink); font:700 11px var(--font-num); }
.cs-chip-filter { display:flex; align-items:center; gap:6px; }
.cs-chip-filter em { color:var(--ink-3); font-size:10px; font-weight:750; font-style:normal; white-space:nowrap; }
.cs-btn-chip-group { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.cs-btn-chip { min-width:34px; height:28px; padding:0 8px; border:1px solid var(--hairline); border-radius:8px; background:#fff; color:var(--ink-2); font:700 10.5px var(--font-num); white-space:nowrap; cursor:pointer; }
.cs-btn-chip:hover { border-color:#818cf8; background:#eef2ff; color:#4f46e5; }
.cs-btn-chip.active { background:linear-gradient(135deg,#6366f1,#8b5cf6); border-color:transparent; color:#fff; box-shadow:0 4px 10px rgba(99,102,241,.25); }
.cs-chip-placeholder { color:var(--ink-3); font-size:10.5px; white-space:nowrap; }
.cs-tournament-count { color:#6366f1; font-size:12px; font-weight:800; white-space:nowrap; }
.cs-tournament-admin { margin: 15px 0 17px; padding: 14px; border:1px dashed rgba(99,102,241,.3); border-radius:14px; background:rgba(238,242,255,.5); }
.cs-tournament-controls { display:grid; grid-template-columns:repeat(4,minmax(110px,1fr)); gap:9px; margin-top:11px; }
.cs-tournament-controls label { display:flex; flex-direction:column; gap:5px; color:var(--ink-3); font-size:11px; font-weight:700; }
.cs-tournament-controls input, .cs-tournament-controls select { width:100%; min-width:0; height:34px; padding:0 9px; border:1px solid var(--hairline); border-radius:9px; background:#fff; color:var(--ink); font:inherit; font-weight:600; }
.cs-tournament-controls .cs-tournament-check { justify-content:flex-end; }
.cs-tournament-check > span:last-child { display:flex; align-items:center; gap:5px; height:34px; padding:0 9px; border:1px solid var(--hairline); border-radius:9px; background:#fff; color:var(--ink-2); }
.cs-tournament-check input { width:auto; height:auto; }
.cs-tournament-upload-row { display:flex; align-items:stretch; gap:10px; margin-top:11px; }
.cs-json-dropzone { display:flex; flex:1; min-height:58px; padding:10px 14px; justify-content:center; align-items:center; flex-direction:column; gap:3px; border:1px dashed rgba(99,102,241,.44); border-radius:11px; background:rgba(255,255,255,.7); color:#6366f1; cursor:pointer; }
.cs-json-dropzone.dragover { background:rgba(224,231,255,.9); border-color:#4f46e5; }
.cs-json-dropzone span { color:var(--ink-3); font-size:10.5px; font-weight:500; }
.cs-json-dropzone input { display:none; }
.cs-tournament-upload-row .dota-primary-btn { width:170px; margin:0; }
.cs-tournament-upload-preview { display:flex; gap:7px; flex-wrap:wrap; margin-top:9px; }
.cs-json-preview { display:flex; flex-direction:column; gap:2px; max-width:270px; padding:7px 9px; border:1px solid var(--hairline); border-radius:9px; background:#fff; color:var(--ink-2); text-align:left; cursor:pointer; }
.cs-json-preview.active { border-color:#818cf8; box-shadow:0 0 0 2px rgba(99,102,241,.12); }
.cs-json-preview b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.cs-json-preview span, .cs-json-preview em { color:var(--ink-3); font-size:10px; font-style:normal; }
.cs-json-preview .cs-json-roster { overflow:hidden; color:var(--ink-2); font-size:10px; font-weight:650; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.cs-json-preview em { color:#dc2626; }
.cs-tournament-board { overflow-x:auto; padding-bottom:3px; }
.cs-active-date-heading { display:flex; align-items:baseline; gap:8px; margin:0 0 10px; padding:0 2px; }
.cs-active-date-heading span { color:#7c3aed; font-size:11px; font-weight:850; }
.cs-active-date-heading b { color:var(--ink); font:850 17px var(--font-num); }
.cs-active-date-heading em { color:var(--ink-3); font-size:11px; font-style:normal; }
.cs-date-schedule-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.cs-date-session { min-width:0; padding:12px; border:1px solid var(--hairline); border-radius:14px; background:rgba(255,255,255,.66); }
.cs-date-session-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:9px; }
.cs-date-session-title div { display:flex; flex-direction:column; gap:2px; }
.cs-date-session-title span { color:#7c3aed; font-size:10px; font-weight:850; }
.cs-date-session-title b { color:var(--ink); font-size:14px; }
.cs-date-session-title em { color:var(--ink-3); font-size:10px; font-style:normal; white-space:nowrap; }
.cs-bracket-stage { min-width:195px; }
.cs-bracket-stage-title { margin:0 0 7px 2px; color:var(--ink-3); font-size:11px; font-weight:800; letter-spacing:.04em; }
.cs-bracket-series { margin-bottom:10px; padding:10px; border:1px solid var(--hairline); border-radius:13px; background:rgba(255,255,255,.64); }
.cs-bracket-series-head { align-items:center; margin-bottom:7px; }
.cs-bracket-series-head b { color:#4f46e5; font-size:14px; }
.cs-bracket-series-head span { flex:1; color:var(--ink-3); font-size:10px; }
.cs-bracket-series-head em { color:#7c3aed; font-size:10px; font-style:normal; white-space:nowrap; }
.cs-slot-grid { display:grid; grid-template-columns:repeat(1,minmax(0,1fr)); gap:5px; }
.cs-slot-card-wrap { display:flex; align-items:stretch; gap:4px; min-width:0; }
.cs-slot-card { display:flex; align-items:center; gap:7px; flex:1 1 auto; min-width:0; min-height:34px; padding:6px 8px; border:1px solid rgba(99,102,241,.14); border-radius:9px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.cs-slot-card:hover { border-color:#818cf8; background:#eef2ff; }
.cs-slot-card.disabled { opacity:.48; cursor:default; }
.cs-slot-card .cs-slot-code { flex:none; color:#6366f1; font:700 10px var(--font-num); }
.cs-slot-card b { overflow:hidden; flex:1; font-size:10.5px; white-space:nowrap; text-overflow:ellipsis; }
.cs-slot-card .cs-slot-score { flex:none; color:#4f46e5; font-size:13px; font-weight:900; }
.cs-slot-card .cs-slot-team-names { overflow:hidden; flex:1; color:var(--ink); font-size:12px; font-weight:900; white-space:nowrap; text-overflow:ellipsis; }
.cs-slot-card small { max-width:90px; overflow:hidden; color:var(--ink-3); font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.cs-slot-delete { flex:none; align-self:stretch; padding:0 6px; border:1px solid rgba(244,63,94,.2); border-radius:8px; background:#fff5f7; color:#e11d48; font-size:10px; cursor:pointer; }
.cs-slot-delete:hover { border-color:rgba(244,63,94,.45); background:#ffe4ea; }
.cs-tournament-report { margin-top:14px; padding-top:14px; border-top:1px solid var(--hairline); }
.cs-map-mapping-editor { margin:14px 0; padding:14px; border:1px solid #d8dcff; border-radius:16px; background:linear-gradient(135deg,#f4f5ff,#fbfcff); }
.cs-map-mapping-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.cs-map-mapping-head b { display:block; font-size:15px; color:#3139c9; }
.cs-map-mapping-head small { display:block; margin-top:4px; color:var(--ink-3); font-size:11px; }
.cs-map-mapping-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.cs-map-mapping-team { padding:11px; border:1px solid #e1e5ff; border-radius:12px; background:#fff; }
.cs-map-mapping-team > div { display:flex; justify-content:space-between; gap:8px; color:#5b63d7; font-size:11px; font-weight:800; }
.cs-map-mapping-team > div b { color:#252c4a; font-size:13px; }
.cs-map-mapping-team p { min-height:30px; margin:7px 0 9px; color:var(--ink-2); font-size:11px; line-height:1.45; }
.cs-map-mapping-team label { display:grid; gap:5px; color:var(--ink-3); font-size:11px; font-weight:700; }
.cs-map-mapping-team input { width:100%; height:33px; padding:0 9px; border:1px solid #dce1f4; border-radius:8px; background:#fff; color:var(--ink); font:inherit; box-sizing:border-box; }
.cs-map-mapping-team input:focus { outline:none; border-color:#777df0; box-shadow:0 0 0 3px rgba(99,102,241,.12); }
.cs-map-mapping-swap,.cs-map-mapping-save { border:1px solid #cfd3ff; border-radius:9px; background:#fff; color:#535bd9; font-weight:800; cursor:pointer; }
.cs-map-mapping-swap { flex:none; padding:7px 9px; font-size:11px; }
.cs-map-mapping-save { display:block; width:100%; margin-top:11px; padding:10px; border-color:#5d63e8; background:#6268eb; color:#fff; }
.cs-map-mapping-save:disabled { opacity:.62; cursor:wait; }
@media (max-width:720px) { .cs-map-mapping-head { display:block; }.cs-map-mapping-swap { margin-top:9px; }.cs-map-mapping-grid { grid-template-columns:1fr; } }
.cs-report-head h3 { margin:4px 0 3px; font-size:18px; }
.cs-report-head p { margin:0; color:var(--ink-3); font-size:11px; }
.cs-report-score { color:#4f46e5; font-size:26px; font-weight:850; text-align:right; }
.cs-report-score small { display:block; margin-top:3px; color:var(--ink-3); font-size:10px; font-weight:600; }
.cs-report-actions { display:flex; align-items:center; gap:12px; }
.cs-merge-same-name-btn { flex:none; padding:7px 11px; border:1px solid rgba(99,102,241,.28); border-radius:9px; background:#fff; color:#4f46e5; font-size:11px; font-weight:800; white-space:nowrap; cursor:pointer; }
.cs-merge-same-name-btn:hover { border-color:#818cf8; background:#eef2ff; }
.cs-merge-same-name-btn.active { border-color:transparent; background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; box-shadow:0 6px 14px rgba(99,102,241,.22); }
.cs-totals-all-action { flex:none; padding:10px 14px; border:1px solid rgba(99,102,241,.24); border-radius:10px; background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; font-size:12px; font-weight:850; white-space:nowrap; cursor:pointer; box-shadow:0 8px 18px rgba(99,102,241,.18); }
.cs-totals-all-action:hover:not(:disabled) { transform:translateY(-1px); }
.cs-totals-all-action:disabled { border-color:rgba(16,185,129,.22); background:#ecfdf5; color:#047857; box-shadow:none; cursor:default; }
.cs-ladder-note { color:#6366f1; font-weight:800; }
.cs-totals-action, .cs-totals-status { flex:none; padding:9px 13px; border:1px solid rgba(99,102,241,.24); border-radius:10px; background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; font-size:11px; font-weight:800; white-space:nowrap; }
.cs-totals-action { cursor:pointer; box-shadow:0 8px 18px rgba(99,102,241,.18); }
.cs-totals-action:hover:not(:disabled) { transform:translateY(-1px); }
.cs-totals-action:disabled, .cs-totals-action.included, .cs-totals-status { border-color:rgba(16,185,129,.22); background:#ecfdf5; color:#047857; box-shadow:none; cursor:default; }
.cs-totals-status:not(.included) { border-color:var(--hairline); background:#f8fafc; color:var(--ink-3); }
.cs-report-kpis { display:flex; gap:16px; margin-top:11px; color:var(--ink-3); font-size:11px; }
.cs-report-kpis b { margin-left:3px; color:var(--ink); }
.cs-report-block { margin-top:14px; }
.cs-report-title { margin-bottom:8px; color:var(--ink-2); font-size:14px; font-weight:850; }
.cs-award-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.cs-award-chip { display:flex; flex-direction:column; gap:2px; padding:7px 8px; border-radius:9px; background:rgba(238,242,255,.74); }
.cs-award-chip b { color:#6366f1; font-size:10px; }
.cs-award-chip span { overflow:hidden; font-size:11px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.cs-award-chip small { color:var(--ink-3); font-size:9px; }
.cs-report-table-wrap { overflow-x:auto; border:1px solid var(--hairline); border-radius:10px; }
.cs-report-table { width:100%; min-width:750px; border-collapse:collapse; font-size:11.5px; }
.cs-report-table th, .cs-report-table td { padding:8px 9px; border-bottom:1px solid rgba(28,36,58,.06); text-align:left; white-space:nowrap; }
.cs-report-table th { color:var(--ink-3); background:rgba(241,245,249,.75); font-size:10.5px; }
.cs-tournament-total-table { min-width:920px; }
.cs-tournament-total-table { font-size:13px; }
.cs-tournament-total-table th, .cs-tournament-total-table td { padding-top:11px; padding-bottom:11px; }
.cs-tournament-total-table th { font-size:12px; }
.cs-tournament-total-table .cs-tournament-player-name { font-size:13px; }
.cs-tournament-total-table tbody tr:nth-child(odd) td { background:#fff; }
.cs-tournament-total-table tbody tr:nth-child(even) td { background:#f7f8fc; }
.cs-report-table tr:last-child td { border-bottom:0; }
.cs-report-table .num { font-family:var(--font-num); font-variant-numeric:tabular-nums; }
.cs-team-report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.cs-team-report-card { min-width:0; overflow:hidden; border:1px solid rgba(99,102,241,.16); border-radius:12px; background:rgba(255,255,255,.72); }
.cs-team-report-card.team3 { border-color:rgba(14,165,233,.2); }
.cs-team-report-card.other { grid-column:1/-1; border-color:rgba(100,116,139,.2); }
.cs-team-report-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 11px; background:linear-gradient(90deg,rgba(99,102,241,.12),rgba(99,102,241,.03)); }
.cs-team-report-card.team3 .cs-team-report-head { background:linear-gradient(90deg,rgba(14,165,233,.12),rgba(14,165,233,.03)); }
.cs-team-report-head div { display:flex; align-items:baseline; min-width:0; gap:8px; }
.cs-team-report-head span { flex:none; color:#6366f1; font-size:10px; font-weight:850; }
.cs-team-report-card.team3 .cs-team-report-head span { color:#0284c7; }
.cs-team-report-head b { overflow:hidden; font-size:17px; font-weight:900; letter-spacing:-.02em; text-overflow:ellipsis; white-space:nowrap; }
.cs-team-report-head small { flex:none; color:var(--ink-3); font-size:9.5px; }
.cs-tournament-player-name { display:grid; width:100%; grid-template-columns:42px minmax(0,1fr); align-items:start; gap:5px; white-space:nowrap; }
.cs-tournament-name-leading { display:flex; min-height:18px; align-items:center; justify-content:flex-end; }
.cs-tournament-name-content { display:flex; min-width:0; flex-direction:column; align-items:flex-start; gap:2px; }
.cs-tournament-name-line { display:flex; min-width:0; align-items:baseline; gap:5px; }
.cs-tournament-streamer-name { color:#5b34d6; font-size:15px; font-weight:800; line-height:1.1; }
.cs-tournament-nickname { color:var(--ink-3); font-size:11px; font-weight:650; overflow:visible; text-overflow:clip; white-space:normal; word-break:break-all; }
.cs-tournament-merge-badge { margin-left:5px; padding:1px 6px; border:1px solid rgba(99,102,241,.3); border-radius:999px; background:#eef2ff; color:#4f46e5; font-size:10px; font-weight:850; line-height:1.4; white-space:nowrap; }
.cs-tournament-radar-trigger { padding:0; border:0; background:none; color:#5b34d6; font:inherit; font-size:15px; font-weight:800; line-height:1.1; text-align:left; cursor:pointer; }
.cs-streamer-edit { margin-left:6px; padding:2px 6px; border:1px solid #cfd3ff; border-radius:7px; background:#fff; color:#535bd9; font-size:10px; font-weight:750; cursor:pointer; }
#csTournamentRadarMask { align-items:center; background:rgba(3,4,7,.7); }
.cs-tournament-radar-sheet { max-width:720px; max-height:86dvh; margin:0; color:#f8e8ac; background:radial-gradient(circle at 50% 22%,#3e2f12 0,#17130d 47%,#090a0c 100%); border:1px solid #d8ac3a; box-shadow:0 0 0 2px rgba(248,218,127,.14),0 20px 70px rgba(0,0,0,.7),inset 0 0 42px rgba(230,171,48,.12); }
.cs-tournament-radar-sheet .sheet-head { border-bottom:1px solid rgba(235,195,99,.28); }
.cs-tournament-radar-sheet .sheet-title { color:#f7dc8c; font-family:Georgia,'Times New Roman',serif; letter-spacing:.04em; }
.cs-tournament-radar-sheet .sheet-sub,.cs-tournament-radar-sheet .sheet-close { color:#d8bc72; }
.cs-tournament-radar-sheet .sheet-close { background:rgba(40,30,13,.72); border-color:rgba(234,191,86,.5); }
.cs-tournament-radar { position:relative; z-index:1; display:block; width:min(100%,470px); height:auto; margin:0 auto; overflow:visible; filter:drop-shadow(0 0 10px rgba(241,194,65,.28)); }
.cs-radar-stage { position:relative; overflow:hidden; min-height:390px; border:1px solid rgba(232,185,74,.28); background:radial-gradient(circle at 50% 46%,rgba(193,131,26,.2),rgba(16,15,13,.2) 47%,rgba(0,0,0,.34)); isolation:isolate; }
.cs-radar-stage::before { content:''; position:absolute; inset:0; pointer-events:none; opacity:.4; background-image:radial-gradient(rgba(255,224,143,.7) 1px,transparent 1.5px); background-size:23px 23px; mask-image:radial-gradient(circle,black,transparent 73%); }
.cs-radar-watermark { position:absolute; z-index:0; top:21%; left:50%; transform:translateX(-50%); color:rgba(241,207,111,.075); font-family:Georgia,'Times New Roman',serif; font-size:clamp(40px,12vw,82px); font-weight:800; line-height:.76; letter-spacing:-.08em; text-align:center; white-space:nowrap; }
.cs-radar-rank { position:absolute; z-index:1; top:13px; right:15px; color:rgba(250,218,135,.7); font-size:9px; font-weight:850; letter-spacing:.15em; }
.cs-radar-ring { fill:none; stroke:rgba(226,192,105,.3); stroke-width:1; }
.cs-radar-ring.outer { stroke:#e8bc54; stroke-width:1.4; }
.cs-radar-spoke { stroke:rgba(226,192,105,.24); stroke-width:1; }
.cs-radar-area { fill:rgba(238,187,56,.15); stroke:#f2c34e; stroke-width:2.2; filter:drop-shadow(0 0 5px rgba(255,209,74,.8)); }
.cs-radar-vertex { fill:#efd079; stroke:#3a2707; stroke-width:1.5; }
.cs-radar-vertex.leader { fill:#fff0a8; stroke:#f1bc34; stroke-width:2; filter:drop-shadow(0 0 5px #f9cc57); }
.cs-radar-label { fill:#e6c26d; font-size:10px; font-weight:800; text-anchor:middle; letter-spacing:.06em; }
.cs-radar-label tspan { fill:#fff0b1; font-family:Georgia,'Times New Roman',serif; font-size:15px; font-style:italic; font-weight:800; letter-spacing:0; }
.cs-radar-label.leader { fill:#ffe7a0; font-size:12px; }
.cs-radar-label.leader tspan { font-size:21px; fill:#fff4bd; }
.cs-radar-best { fill:#f4bf43 !important; font-family:inherit !important; font-size:8px !important; font-style:normal !important; letter-spacing:.18em !important; }
.cs-radar-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 14px; margin:13px 0 6px; }
.cs-radar-metrics div { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:4px 8px; padding:8px 2px; border-bottom:1px solid rgba(236,199,109,.2); font-size:12px; }
.cs-radar-metrics div.leader { border-bottom-color:#edbd48; box-shadow:inset 0 -1px 0 rgba(255,240,168,.2); }
.cs-radar-metrics span,.cs-radar-note { color:#d4bd83; }
.cs-radar-metrics b { font-family:Georgia,'Times New Roman',serif; color:#fff0b1; font-size:16px; font-style:italic; }
.cs-radar-metrics em { grid-column:1 / -1; color:#f1bd45; font-size:9px; font-style:normal; font-weight:800; letter-spacing:.12em; }
.cs-radar-note { margin:11px 0 0; font-size:11px; line-height:1.55; }
@media (max-width:520px) { .cs-radar-metrics { grid-template-columns:1fr; }.cs-tournament-radar-sheet { max-height:92dvh; } }
.cs-tournament-best { color:#dc2626 !important; font-size:14px; font-weight:850; }
.cs-table-sort { padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:800; cursor:pointer; white-space:nowrap; }
.cs-table-sort:hover, .cs-table-sort.active { color:#5b5ce2; }
.cs-team-report-card .cs-report-table-wrap { border:0; border-top:1px solid rgba(28,36,58,.06); border-radius:0; }
.cs-team-report-card .cs-report-table { min-width:680px; }
.cs-tournament-empty { padding:18px 8px; color:var(--ink-3); font-size:12px; text-align:center; }
@media (max-width: 900px) {
  .cs-tournament-controls { grid-template-columns:repeat(2,minmax(120px,1fr)); }
  .cs-tournament-head { flex-direction:column; }
  .cs-tournament-actions { width:100%; flex-wrap:wrap; }
  .cs-date-schedule-grid { grid-template-columns:1fr; }
  .cs-report-head { flex-direction:column; }
  .cs-report-actions { width:100%; justify-content:space-between; }
  .cs-award-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cs-team-report-grid { grid-template-columns:1fr; }
  .cs-team-report-card.other { grid-column:auto; }
}
