/* ============================================================
   体彩数据分析系统 — 设计系统
   ============================================================ */
:root {
  --bg:        #070a10;
  --bg-2:      #0d121b;
  --bg-3:      #121925;
  --card:      rgba(255, 255, 255, .035);
  --card-hi:   rgba(255, 255, 255, .06);
  --border:    rgba(255, 255, 255, .08);
  --border-hi: rgba(255, 255, 255, .16);
  --text:      #e9eef7;
  --text-2:    #aab6c8;
  --muted:     #6b7789;
  --accent:    #00e39b;
  --accent-d:  #00b87e;
  --blue:      #4d8dff;
  --amber:     #ffb020;
  --danger:    #ff4d6a;
  --purple:    #a78bfa;
  --home:      #4d8dff;
  --away:      #ffb020;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 8px 32px rgba(0, 0, 0, .45);
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(0, 227, 155, .10), transparent 60%),
    radial-gradient(800px 450px at 92% 4%, rgba(77, 141, 255, .09), transparent 62%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(0, 227, 155, .28); }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1); border-radius: 6px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); background-clip: content-box; }

/* ============================================================ 登录页 */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  position: relative; overflow: hidden;
}
.login-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
  animation: float 18s ease-in-out infinite;
}
.login-orb.a { width: 480px; height: 480px; background: #00e39b; top: -12%; left: -8%; }
.login-orb.b { width: 420px; height: 420px; background: #4d8dff; bottom: -14%; right: -6%; animation-delay: -6s; }
.login-orb.c { width: 300px; height: 300px; background: #a78bfa; top: 42%; left: 55%; animation-delay: -11s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 24px) scale(.94); }
}

.login-card {
  position: relative; z-index: 2; width: 100%; max-width: 400px;
  background: rgba(13, 18, 27, .72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 34px 32px; box-shadow: var(--shadow);
  animation: rise .6s cubic-bezier(.16, 1, .3, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(152deg, #14415c, #061219);
  border: 1px solid rgba(0, 227, 155, .34);
  box-shadow: 0 6px 22px rgba(0, 130, 170, .3); flex: none; overflow: hidden;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand h1 { font-size: 22px; font-weight: 650; letter-spacing: .3px; }
.brand-sub { color: var(--muted); font-size: 12.5px; letter-spacing: .6px; }

.field { margin-top: 18px; }
.field label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 7px; letter-spacing: .3px; }
.input {
  width: 100%; padding: 11px 14px; background: rgba(255, 255, 255, .045);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .18s, background .18s, box-shadow .18s; outline: none;
}
.input:focus {
  border-color: rgba(0, 227, 155, .55); background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(0, 227, 155, .12);
}
.input::placeholder { color: #55606f; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card-hi); cursor: pointer; font-weight: 500;
  transition: all .16s; white-space: nowrap; user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--border-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #04120c; border-color: transparent; font-weight: 650;
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), var(--accent-d)); }
.btn-block { width: 100%; padding: 12px; margin-top: 24px; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-ghost { background: transparent; }

.err {
  margin-top: 14px; padding: 9px 13px; border-radius: var(--radius-sm);
  background: rgba(255, 77, 106, .1); border: 1px solid rgba(255, 77, 106, .28);
  color: #ff8fa3; font-size: 13px; display: none;
}
.err.show { display: block; animation: shake .38s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); } 75% { transform: translateX(6px); }
}

/* ============================================================ 主框架 */
.app { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }

.sidebar {
  background: rgba(9, 13, 20, .8); backdrop-filter: blur(16px);
  border-right: 1px solid var(--border); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { margin-bottom: 22px; padding: 0 6px; }
.sidebar .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.sidebar .brand-mark svg { width: 25px; height: 25px; }
.sidebar .brand h1 { font-size: 17px; }
.sidebar .brand-sub { font-size: 10.5px; }

.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--text-2); cursor: pointer;
  transition: all .15s; font-size: 15px; position: relative;
}
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.on { background: rgba(0, 227, 155, .12); color: var(--accent); font-weight: 550; }
.nav-item.on::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-item svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.nav-badge {
  margin-left: auto; background: var(--danger); color: #fff; font-size: 10.5px;
  padding: 1px 6px; border-radius: 9px; font-weight: 600; min-width: 18px; text-align: center;
}
.nav-sep { height: 1px; background: var(--border); margin: 12px 6px; }
.nav-foot { margin-top: auto; font-size: 12.5px; color: var(--muted); padding: 10px 12px 0; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 13px 24px; background: rgba(7, 10, 16, .82);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
}
.topbar h2 { font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.topbar .spacer { flex: 1; }

.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--muted); }
.search input {
  width: 230px; padding: 8px 12px 8px 33px; background: rgba(255, 255, 255, .045);
  border: 1px solid var(--border); border-radius: 20px; outline: none;
  transition: all .18s; font-size: 14px;
}
.search input:focus { width: 290px; border-color: rgba(0, 227, 155, .45); background: rgba(255, 255, 255, .07); }

.content { padding: 24px 26px 60px; flex: 1; max-width: 1520px; width: 100%; }

/* ============================================================ 通用组件 */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.card-hd {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.card-hd h3 { font-size: 16px; font-weight: 600; letter-spacing: .2px; }
.card-hd .spacer { flex: 1; }
.card-hd .hint { font-size: 12.5px; color: var(--muted); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 7px 16px; border-radius: 18px; cursor: pointer; font-size: 14.5px;
  color: var(--text-2); border: 1px solid transparent; transition: all .15s;
}
.tab:hover { background: var(--card); color: var(--text); }
.tab.on {
  background: rgba(0, 227, 155, .14); color: var(--accent);
  border-color: rgba(0, 227, 155, .3); font-weight: 550;
}

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border-radius: 20px; font-size: 12.5px; font-weight: 550;
  background: var(--card-hi); border: 1px solid var(--border); color: var(--text-2);
}
.pill.live { background: rgba(255, 77, 106, .14); border-color: rgba(255, 77, 106, .35); color: #ff7d92; }
.pill.done { background: rgba(255, 255, 255, .05); color: var(--muted); }
.pill.soon { background: rgba(77, 141, 255, .13); border-color: rgba(77, 141, 255, .3); color: #86b3ff; }
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: #ff4d6a;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 44px; height: 44px; opacity: .35; margin-bottom: 12px; }

.skel {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.spin {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.2);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ 赛事列表 */
.league-group { margin-bottom: 22px; }
.league-hd {
  display: flex; align-items: center; gap: 9px; padding: 0 4px 9px;
  font-size: 13.5px; color: var(--text-2); font-weight: 550;
}
.league-hd .bar { width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }
.league-hd .n { color: var(--muted); font-weight: 400; }

.match-list { display: flex; flex-direction: column; gap: 8px; }

.match {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: transform .16s cubic-bezier(.16,1,.3,1), border-color .16s, background .16s;
}
.match:hover {
  background: var(--card-hi); border-color: var(--border-hi); transform: translateX(3px);
}
.match.is-live { border-color: rgba(255, 77, 106, .26); background: rgba(255, 77, 106, .035); }

.m-time { text-align: center; }
.m-time .hm { font-size: 17px; font-weight: 600; font-family: var(--mono); }
.m-time .st { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.m-time .st.live { color: #ff7d92; font-weight: 600; }

.m-teams { display: grid; grid-template-columns: 1fr 74px 1fr; align-items: center; gap: 10px; min-width: 0; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; }
.m-team.away { flex-direction: row-reverse; text-align: right; }
.m-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-score {
  text-align: center; font-family: var(--mono); font-size: 21px; font-weight: 650;
  letter-spacing: 1px;
}
.m-score.pending { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.m-half { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

.m-stats { display: flex; gap: 18px; align-items: center; font-size: 12.5px; }
.m-stat { text-align: center; min-width: 44px; }
.m-stat .k { color: var(--muted); font-size: 11px; letter-spacing: .3px; }
.m-stat .v { font-family: var(--mono); font-size: 14px; margin-top: 1px; }
.m-stat .v .h { color: var(--home); } .m-stat .v .a { color: var(--away); }
.m-star { color: var(--muted); padding: 4px; border-radius: 6px; transition: all .15s; }
.m-star:hover { background: var(--card-hi); color: var(--amber); }
.m-star.on { color: var(--amber); }

/* ============================================================ 比赛详情 */
.detail-hd {
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 18px; padding: 22px 26px; margin-bottom: 16px;
}
.dh-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13.5px; color: var(--text-2); }
.dh-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.dh-team { display: flex; flex-direction: column; gap: 4px; }
.dh-team.away { align-items: flex-end; text-align: right; }
.dh-team .nm { font-size: 27px; font-weight: 650; letter-spacing: .2px; }
.dh-team .sub { font-size: 12.5px; color: var(--muted); }
.dh-score { text-align: center; }
.dh-score .sc { font-family: var(--mono); font-size: 48px; font-weight: 700; letter-spacing: 2px; line-height: 1.1; }
.dh-score .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* xG 对比 */
.xg-box { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.xg-val { font-family: var(--mono); font-size: 38px; font-weight: 700; }
.xg-val.h { color: var(--home); } .xg-val.a { color: var(--away); text-align: right; }
.xg-mid { text-align: center; font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.xg-bar { height: 16px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; display: flex; margin-top: 10px; }
.xg-bar i { display: block; height: 100%; transition: width .5s cubic-bezier(.16,1,.3,1); }
.xg-bar i.h { background: linear-gradient(90deg, var(--home), #7fb0ff); }
.xg-bar i.a { background: linear-gradient(90deg, #ffc24d, var(--away)); }

/* 技术统计对比条 */
.stat-row { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.045); }
.stat-row:last-child { border-bottom: none; }
.stat-top { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; font-size: 15px; }
.stat-top .n { text-align: center; color: var(--text-2); font-size: 13.5px; }
.stat-top .h, .stat-top .a { font-family: var(--mono); font-weight: 600; }
.stat-top .a { text-align: right; }
.stat-bar { height: 12px; border-radius: 6px; background: rgba(255,255,255,.06); display: flex;
  margin-top: 7px; overflow: hidden; max-width: 560px; }
.stat-bar i { height: 100%; transition: width .45s cubic-bezier(.16,1,.3,1); }
.stat-bar i.h { background: var(--home); }
.stat-bar i.a { background: var(--away); margin-left: auto; }

/* 权重胜平负 */
.wdl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wdl-item {
  padding: 16px 12px; border-radius: var(--radius); text-align: center;
  border: 1px solid var(--border); background: var(--card); transition: all .2s;
}
.wdl-item.top { border-color: rgba(0,227,155,.4); background: rgba(0,227,155,.08); }
.wdl-item .k { font-size: 13.5px; color: var(--text-2); }
.wdl-item .v { font-family: var(--mono); font-size: 34px; font-weight: 700; margin: 3px 0; }
.wdl-item.top .v { color: var(--accent); }
.wdl-item .sub { font-size: 11.5px; color: var(--muted); }

.dim-row { display: grid; grid-template-columns: 90px minmax(0, 520px) 46px; gap: 12px;
  align-items: center; padding: 7px 0; font-size: 13.5px; }
.dim-bar { height: 24px; border-radius: 6px; display: flex; overflow: hidden; background: rgba(255,255,255,.05); }
.dim-bar i { height: 100%; display: grid; place-items: center; font-size: 12px; font-family: var(--mono); color: rgba(0,0,0,.65); font-weight: 600; }
.dim-bar i.w { background: rgba(0,227,155,.75); }
.dim-bar i.d { background: rgba(140,152,170,.6); color: rgba(255,255,255,.8); }
.dim-bar i.l { background: rgba(255,176,32,.75); }

/* 事件时间轴 */
.tl { position: relative; padding-left: 0; }
.tl-row { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 10px; align-items: center;
  padding: 6px 0; font-size: 14.5px; }
.tl-min { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); position: relative; }
.tl-min::before {
  content: ""; position: absolute; left: 50%; top: -14px; bottom: -14px; width: 1px;
  background: rgba(255,255,255,.07); transform: translateX(-50%); z-index: -1;
}
.tl-ev { display: flex; align-items: center; gap: 7px; }
.tl-ev.away { flex-direction: row-reverse; }
.tl-ico { width: 21px; height: 21px; display: grid; place-items: center; flex: none; font-size: 13px; }
.tl-ev.goal { font-weight: 600; }

/* 预警 */
.alert {
  display: flex; gap: 12px; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card); align-items: flex-start;
  transition: all .16s;
}
.alert:hover { border-color: var(--border-hi); }
.alert.warn { border-left: 3px solid var(--amber); }
.alert.danger { border-left: 3px solid var(--danger); background: rgba(255,77,106,.05); }
.alert.info { border-left: 3px solid var(--blue); }
.alert.unseen { box-shadow: inset 0 0 0 1px rgba(0,227,155,.15); }
.alert-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.alert.warn .alert-ico { background: rgba(255,176,32,.16); color: var(--amber); }
.alert.danger .alert-ico { background: rgba(255,77,106,.16); color: var(--danger); }
.alert.info .alert-ico { background: rgba(77,141,255,.16); color: var(--blue); }
.alert-bd { min-width: 0; flex: 1; }
.alert-bd .t { font-weight: 600; font-size: 15px; }
.alert-bd .m { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.alert-bd .f { color: var(--muted); font-size: 12px; margin-top: 5px; display: flex; gap: 10px; flex-wrap: wrap; }

/* AI 报告 */
.ai-box {
  background: linear-gradient(150deg, rgba(167,139,250,.07), rgba(77,141,255,.04));
  border: 1px solid rgba(167,139,250,.2); border-radius: var(--radius); padding: 18px 20px;
}
.ai-md { font-size: 15px; line-height: 1.9; color: var(--text-2); }
.ai-md h4 {
  color: var(--purple); font-size: 14.5px; font-weight: 650; margin: 18px 0 7px;
  letter-spacing: .4px; display: flex; align-items: center; gap: 7px;
}
.ai-md h4:first-child { margin-top: 0; }
.ai-md h4::before { content: ""; width: 4px; height: 15px; background: var(--purple); border-radius: 2px; }
.ai-md p { margin: 6px 0; }
.ai-md strong { color: var(--text); font-weight: 600; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 500;
  font-size: 12.5px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .14s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.028); }
.tbl .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.res { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 6px;
  font-size: 12.5px; font-weight: 650; }
.res.w { background: rgba(0,227,155,.18); color: var(--accent); }
.res.d { background: rgba(255,255,255,.09); color: var(--text-2); }
.res.l { background: rgba(255,77,106,.16); color: #ff7d92; }

/* 图表 */
.chart { width: 100%; overflow: visible; }
.chart .grid-line { stroke: rgba(255,255,255,.055); stroke-width: 1; }
.chart .axis-lbl { fill: var(--muted); font-size: 12px; font-family: var(--mono); }
.chart-legend { display: flex; gap: 18px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 14px; height: 5px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast {
  padding: 11px 16px; border-radius: var(--radius-sm); background: rgba(18,25,37,.95);
  border: 1px solid var(--border-hi); box-shadow: var(--shadow); font-size: 13px;
  animation: slideIn .3s cubic-bezier(.16,1,.3,1); max-width: 340px;
  backdrop-filter: blur(12px);
}
.toast.ok { border-left: 3px solid var(--accent); }
.toast.err { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* 弹层 */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  z-index: 200; display: grid; place-items: center; padding: 24px;
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-2); border: 1px solid var(--border-hi); border-radius: 18px;
  padding: 24px; max-width: 460px; width: 100%; box-shadow: var(--shadow);
  animation: rise .3s cubic-bezier(.16,1,.3,1);
}
.modal h3 { font-size: 16px; margin-bottom: 4px; }

/* 响应式 */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 216px; z-index: 100;
    transform: translateX(-100%); transition: transform .25s cubic-bezier(.16,1,.3,1);
  }
  .sidebar.open { transform: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .content { padding: 16px 14px 50px; }
  .topbar { padding: 11px 14px; }
  .search input { width: 150px; } .search input:focus { width: 190px; }
  .m-stats { display: none; }
  .match { grid-template-columns: 54px 1fr auto; padding: 11px 12px; }
  .dh-team .nm { font-size: 16px; }
  .dh-score .sc { font-size: 30px; }
}
.menu-btn { display: none; }
@media (max-width: 860px) { .menu-btn { display: inline-grid; place-items: center; } }
