:root {
  --bg: #0e0f12;
  --panel: #16181d;
  --panel-2: #1d2027;
  --line: #2a2e37;
  --text: #f4f5f7;
  --muted: #8b919d;
  --green: #27ae60;
  --red: #e6483d;
  --blue: #4d7cfe;
}
* { box-sizing: border-box; }
html, body, #root { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.top {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; border-bottom: 1px solid var(--line); background: #0b0c0f; position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 800; letter-spacing: 0.04em; }
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.nav a.active, .nav a:hover, .brand.active { color: var(--text); }
.top-right { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.cash { color: var(--green); font-variant-numeric: tabular-nums; }
.page { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }
.page.wide { max-width: 1240px; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.sub { color: var(--muted); margin-bottom: 20px; }
.grid { display: grid; gap: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.card:hover { border-color: #3a404c; }
.kicker { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.vol { color: var(--muted); font-size: 12px; margin-top: 10px; }
.row {
  display: grid; grid-template-columns: 24px 1fr 72px 140px 88px;
  gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line);
}
.row.event-row { grid-template-columns: 24px minmax(140px, 1.2fr) 64px 64px 140px 100px; }
.row.follow-person { grid-template-columns: 1fr 64px 64px 72px; }
.row.market-odds { grid-template-columns: 1fr 56px 56px; }
.row.head { color: var(--muted); font-size: 12px; border-top: 0; }
.head-check { display: flex; align-items: center; margin: 0; cursor: pointer; }
.bar { height: 8px; background: #2a2e37; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); }
.odds-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #2a2e37; }
.odds-bar > i { display: block; height: 100%; }
.odds-bar .yes { background: var(--green); }
.odds-bar .no { background: #5a6270; }
.pct { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.pct.yes { color: var(--green); }
.pct.no { color: var(--muted); }
.btn {
  background: var(--text); color: #111; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.btn.sm { padding: 5px 8px; font-size: 12px; font-weight: 600; border-radius: 6px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid #5a2a26; }
.btn:disabled { opacity: 0.45; }
.auth {
  max-width: 380px; margin: 80px auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px;
}
.auth input {
  width: 100%; margin: 8px 0 14px; padding: 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text);
}
.err { color: var(--red); font-size: 13px; min-height: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 22px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pos { color: var(--green); } .neg { color: var(--red); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { background: transparent; color: var(--muted); border: 0; padding: 8px 10px; cursor: pointer; }
.tabs button.on { color: var(--text); border-bottom: 2px solid var(--text); }
.soon { opacity: 0.55; }
.check { width: 16px; height: 16px; }
.search {
  width: 100%; max-width: 420px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); margin-bottom: 16px;
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 10px; background: transparent; border: 0;
  color: inherit; cursor: pointer; padding: 4px;
}
.acct-label { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 32px; height: 32px; border-radius: 99px; background: #2b3344; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  border: 1px solid var(--line);
}
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.acct-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 280px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45); padding: 12px; z-index: 20;
}
.acct-head { display: flex; gap: 10px; align-items: center; padding: 6px 6px 12px; }
.acct-name { font-weight: 700; }
.acct-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--panel-2); border-radius: 10px; padding: 10px; margin-bottom: 8px;
}
.acct-stats > div:last-child { grid-column: 1 / -1; }
.acct-stats b { font-size: 14px; font-variant-numeric: tabular-nums; }
.acct-item {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  padding: 10px 8px; border-radius: 8px; cursor: pointer;
}
.acct-item:hover { background: var(--panel-2); }
.acct-item.danger { color: var(--red); }
.follow-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.follow-title .sub { margin-bottom: 0; }
.follow-card { margin-bottom: 12px; }
.follow-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.follow-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.watch { padding: 12px 14px; }
.watch-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.watch-title { font-size: 16px; font-weight: 700; }
.watch-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.watch-msg { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.watch-table { font-size: 12px; }
.watch-block { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.watch-block:first-of-type { border-top: 0; padding-top: 4px; }
.watch-label {
  font-size: 11px; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin-bottom: 4px;
}
.watch-row {
  display: grid; gap: 6px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line);
}
.watch-row.prior { grid-template-columns: minmax(140px, 1.6fr) 56px 56px 64px 110px 56px; }
.watch-row.like { grid-template-columns: minmax(120px, 1.2fr) 52px 56px 44px 56px 52px 44px 40px minmax(108px, auto); }
.watch-row.head { color: var(--muted); font-size: 11px; border-top: 0; padding-bottom: 4px; }
.watch-ops { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.watch-detail { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; margin: 0 0 6px; }
.watch-detail input[type="range"] { width: 100%; margin: 4px 0 8px; }
.num { font-variant-numeric: tabular-nums; text-align: right; font-size: 12px; }
.dim { color: var(--muted); font-size: 11px; }
.chip {
  display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted);
}
.chip.yes { color: var(--green); border-color: #1f5c38; }
.chip.no { color: var(--red); border-color: #5a2a26; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 5px 8px; font-size: 12px; cursor: pointer; }
.seg button.on { background: var(--panel-2); color: var(--text); }
.watch-detail select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px;
}
.page.event-desk { max-width: 1280px; }
.ev-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ev-head h1 { margin-bottom: 0; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ev-side, .like-panel { position: sticky; top: 72px; }
.ev-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
}
.ev-panel-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 6px; }
.news-svg { width: 100%; height: 220px; display: block; margin: 8px 0; }
.news-feed { max-height: 148px; overflow: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.news-item { display: grid; grid-template-columns: 88px 1fr 120px; gap: 8px; font-size: 12px; padding: 6px 0; border-bottom: 1px solid #22262d; }
.news-item a:hover { text-decoration: underline; }
.prob-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); padding-bottom: 8px; }
.prob-row {
  display: grid; grid-template-columns: 22px 32px minmax(100px, 1.4fr) 72px 118px 118px;
  gap: 8px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer;
}
.prob-row.on { background: var(--panel-2); border-radius: 8px; }
.prob-name { font-weight: 600; font-size: 14px; }
.prob-pct { font-size: 18px; }
.av {
  width: 32px; height: 32px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.buy {
  border: 0; border-radius: 8px; padding: 8px 6px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.buy.yes { background: var(--green); color: #fff; }
.buy.no { background: #3a404c; color: var(--text); }
.like-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.like-tabs { margin-bottom: 10px; width: 100%; }
.like-tabs button { flex: 1; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.yn {
  border: 0; border-radius: 10px; padding: 14px 8px; font-weight: 800; cursor: pointer; font-size: 15px;
}
.yn.yes { background: #1f6b3a; color: #fff; opacity: 0.55; }
.yn.no { background: #3a404c; color: var(--text); opacity: 0.55; }
.yn.on { opacity: 1; }
.like-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.like-stats b { display: block; font-variant-numeric: tabular-nums; }
.like-why { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 10px; }
.like-go { width: 100%; margin-top: 8px; }
@media (max-width: 800px) {
  .stats, .row, .row.head, .row.event-row, .watch-row, .watch-row.prior, .watch-row.like { grid-template-columns: 1fr; }
  .ev-layout, .prob-row, .news-item { grid-template-columns: 1fr; }
  .like-panel { position: static; }
}
