:root {
  --bg: #070b14;
  --bg-soft: #0d1424;
  --card: rgba(23, 34, 56, 0.78);
  --card-solid: #172238;
  --card2: #1e2b45;
  --line: rgba(120, 150, 200, 0.16);
  --line-strong: rgba(120, 150, 200, 0.3);
  --txt: #eaf1ff;
  --txt2: #c3cfe6;
  --dim: #8b9cbd;
  --dim2: #64748f;
  --up: #ff6b6b;
  --down: #22d3a6;
  --acc: #3b82f6;
  --acc2: #22d3ee;
  --gold: #fbbf24;
  --violet: #8b5cf6;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .75);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--txt); font-size: 14px; line-height: 1.6;
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(59, 130, 246, .20), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(900px 500px at 50% 108%, rgba(34, 211, 238, .10), transparent 62%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(7, 11, 20, .82); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.brand-dot {
  width: 26px; height: 26px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--acc), var(--violet) 55%, var(--acc2));
  box-shadow: 0 0 16px rgba(59, 130, 246, .55), inset 0 0 0 1px rgba(255, 255, 255, .18);
  position: relative;
}
.brand-dot::after { content: "足"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; display: block; box-shadow: 0 4px 12px -6px rgba(37, 99, 235, .7); }
.brand small { display: block; font-size: 10.5px; color: var(--dim2); font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.stamp { color: var(--dim2); font-size: 11.5px; }
.ghost-btn {
  background: linear-gradient(180deg, rgba(59, 130, 246, .22), rgba(59, 130, 246, .08));
  color: #cfe0ff; border: 1px solid rgba(59, 130, 246, .45); border-radius: 10px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; font-weight: 600; transition: .15s;
}
.ghost-btn:hover { background: rgba(59, 130, 246, .3); }
.ghost-btn:active { transform: scale(.96); }
.subbar { max-width: 1000px; margin: 0 auto; padding: 0 16px 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.subbar span { background: rgba(30, 43, 69, .7); border: 1px solid var(--line); color: var(--dim); font-size: 11.5px; padding: 3px 10px; border-radius: 20px; }

/* ---------- layout ---------- */
.app { max-width: 1000px; margin: 0 auto; padding: 16px; }
.loading { color: var(--dim); text-align: center; padding: 46px 0; font-size: 13.5px; }
.day-note { color: var(--dim2); font-size: 12.5px; margin: 0 2px 12px; }
.day-note b { color: var(--acc2); font-weight: 600; }

/* ---------- match card ---------- */
.mcard {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; margin-bottom: 12px; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, background .18s ease;
  animation: rise .32s ease both;
}
.mcard:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(30, 43, 69, .85); }
.mcard:active { transform: scale(.992); }
.mcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--acc), var(--violet));
  opacity: .85;
}
.mcard.dim::before { background: linear-gradient(180deg, #475569, #334155); opacity: .6; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mcard-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.num-pill {
  font-weight: 800; font-size: 12px; letter-spacing: .4px; padding: 3px 10px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .95), rgba(139, 92, 246, .9));
  color: #fff; box-shadow: 0 4px 14px -6px rgba(59, 130, 246, .9);
}
.lg-chip { font-size: 11.5px; color: var(--dim); background: rgba(30, 43, 69, .85); border: 1px solid var(--line); padding: 2px 9px; border-radius: 7px; }
.kick { margin-left: auto; color: var(--dim); font-size: 12px; }
.hot-dot { color: #ff9f6b; font-size: 11px; border: 1px solid rgba(255, 159, 107, .4); background: rgba(255, 159, 107, .12); padding: 1px 7px; border-radius: 6px; }

.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.tm { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tm.away { justify-content: flex-end; }
.tm .nm { font-size: 15.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.tm .rk {
  flex: 0 0 auto; min-width: 21px; text-align: center;
  font-size: 10.5px; font-weight: 600; color: var(--dim);
  background: rgba(30, 43, 69, .85); border: 1px solid var(--line);
  border-radius: 7px; padding: 1px 5px; white-space: nowrap;
}
.ava {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px -6px rgba(0, 0, 0, .9);
}

/* 队徽（真实徽标 + 首字色块兜底） */
.crest { position: relative; width: 36px; height: 36px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.crest.lg { width: 56px; height: 56px; }
.crest img {
  width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}
.crest .crest-fb {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px -6px rgba(0, 0, 0, .9);
}
.crest.lg .crest-fb { border-radius: 17px; font-size: 21px; }
.crest img + .crest-fb { display: none; }
.crest.f img { display: none; }
.crest.f .crest-fb { display: flex; }
.vs-badge { font-size: 10.5px; color: var(--dim2); letter-spacing: 1px; border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; }

.odds-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ob {
  background: linear-gradient(180deg, rgba(30, 43, 69, .95), rgba(23, 34, 56, .7));
  border: 1px solid var(--line); border-radius: 12px; padding: 7px 8px; text-align: center; transition: .18s;
}
.ob .k { display: block; font-size: 10.5px; color: var(--dim2); letter-spacing: .5px; }
.ob .v { display: block; font-size: 16px; font-weight: 700; margin-top: 1px; }
.ob.low { border-color: rgba(251, 191, 36, .5); background: linear-gradient(180deg, rgba(251, 191, 36, .16), rgba(251, 191, 36, .05)); }
.ob.low .v { color: var(--gold); }
.ob.low .k { color: #d8b46a; }
.ob.na .v { color: var(--dim2); font-size: 13px; font-weight: 500; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { font-size: 11.5px; padding: 4.5px 12px; border-radius: 20px; background: rgba(30, 43, 69, .72); border: 1px solid var(--line); color: #dbe5f8; font-weight: 550; }
.chip em { font-style: normal; color: var(--dim2); margin-right: 6px; font-weight: 400; }
.chip.ok { color: #9fd8ff; border-color: rgba(59, 130, 246, .38); background: rgba(59, 130, 246, .12); }
.chip.mute { color: var(--dim2); }

/* ---------- detail hero ---------- */
.detail-head {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 200px at 50% -40%, rgba(59, 130, 246, .3), transparent 70%),
    linear-gradient(180deg, rgba(30, 43, 69, .95), rgba(15, 22, 38, .92));
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 16px 16px 15px;
  margin-bottom: 14px; box-shadow: var(--shadow); animation: rise .3s ease both;
}
.dh-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.dh-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.dh-team { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.dh-team .ava { width: 54px; height: 54px; border-radius: 17px; font-size: 21px; }
.dh-team .nm { font-size: 17px; font-weight: 700; }
.dh-team .sub { font-size: 11px; color: var(--dim2); }
.dh-center { text-align: center; color: var(--dim2); }
.dh-center .t { font-size: 15px; font-weight: 700; color: var(--txt); }
.dh-center .ks { font-size: 11.5px; margin-top: 2px; color: var(--dim2); }
.dh-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.dh-odds .ob { background: rgba(10, 16, 28, .5); }
.dh-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.dh-chips .chip { background: rgba(10, 16, 28, .55); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 7px 15px; border-radius: 12px; font-size: 13px; cursor: pointer;
  background: rgba(30, 43, 69, .6); border: 1px solid var(--line); color: var(--dim);
  transition: .18s; white-space: nowrap; font-weight: 550;
}
.tab:hover { color: var(--txt2); border-color: var(--line-strong); }
.tab.on {
  background: linear-gradient(135deg, var(--acc), #6366f1); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(59, 130, 246, .95);
}

/* ---------- panels ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 12px; box-shadow: var(--shadow);
  animation: rise .3s ease both;
}
.panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; letter-spacing: .2px; }
.panel h3::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--acc2), var(--acc)); }
.panel p { margin: 0 0 9px; color: var(--txt2); }
.panel p:last-child { margin-bottom: 0; }
.muted { color: var(--dim2); font-size: 12.5px; }

/* ---------- picks ---------- */
.picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pick {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 43, 69, .9), rgba(20, 30, 50, .8));
  border: 1px solid var(--line); border-radius: 15px; padding: 13px 14px;
}
.pick.primary { border-color: rgba(59, 130, 246, .5); background: linear-gradient(180deg, rgba(59, 130, 246, .17), rgba(20, 30, 50, .85)); }
.pick.primary::after { content: "首席观点"; position: absolute; top: 0; right: 0; font-size: 10px; padding: 2px 9px; border-bottom-left-radius: 10px; background: linear-gradient(135deg, var(--acc), var(--violet)); color: #fff; font-weight: 700; }
.pick .mk { font-size: 11.5px; color: var(--dim2); letter-spacing: .4px; }
.pick .pk { font-size: 17px; font-weight: 800; margin: 5px 0 8px; background: linear-gradient(90deg, #fff, #bfd6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pick.primary .pk { background: linear-gradient(90deg, #ffe6a8, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.pick .bs { color: var(--dim2); font-size: 11.5px; }
.bar { height: 6px; border-radius: 4px; overflow: hidden; margin-top: 9px; background: rgba(10, 16, 28, .75); }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .5s ease; }
.pick.primary .bar > i { background: linear-gradient(90deg, var(--gold), #ff9f43); }
.conf { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim2); margin-top: 6px; }

/* ---------- score ---------- */
.score-row { display: flex; align-items: center; gap: 11px; margin: 9px 0; }
.score-row .nm { width: 84px; color: var(--dim); font-size: 12.5px; flex: 0 0 auto; }
.score-row .bg { flex: 1; height: 9px; background: rgba(10, 16, 28, .8); border-radius: 5px; overflow: hidden; }
.score-row .bg i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.score-row .bg i.away { background: linear-gradient(90deg, var(--violet), #f472b6); }
.score-row .vl { width: 46px; text-align: right; font-weight: 700; font-size: 13px; }

ul.clean { margin: 0; padding-left: 0; list-style: none; color: var(--txt2); }
ul.clean li { position: relative; padding-left: 17px; margin-bottom: 8px; }
ul.clean li:last-child { margin-bottom: 0; }
ul.clean li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px rgba(59, 130, 246, .8); }
ul.clean.warn { color: #ffd9a0; }
ul.clean.warn li::before { background: var(--gold); box-shadow: 0 0 8px rgba(251, 191, 36, .7); }

/* ---------- tables ---------- */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.t th { color: var(--dim2); font-weight: 600; font-size: 11px; letter-spacing: .3px; padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.t td { padding: 8px 7px; border-bottom: 1px solid rgba(120, 150, 200, .09); text-align: center; white-space: nowrap; color: var(--txt2); }
table.t tbody tr:nth-child(even) td, table.t tr:nth-child(even) td { background: rgba(30, 43, 69, .28); }
table.t tr:last-child td { border-bottom: none; }
table.t td.left, table.t th.left { text-align: left; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.up { color: var(--up); font-weight: 600; }
.down { color: var(--down); font-weight: 600; }

/* ---------- index view ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: rgba(10, 16, 28, .7); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 11px; }
.seg-btn {
  border: none; background: transparent; color: var(--dim); font-size: 13px; font-weight: 600;
  padding: 6px 18px; border-radius: 9px; cursor: pointer; transition: .18s; font-family: inherit;
}
.seg-btn:hover { color: var(--txt2); }
.seg-btn.on { background: linear-gradient(135deg, var(--acc), #6366f1); color: #fff; box-shadow: 0 6px 16px -9px rgba(59, 130, 246, .95); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; margin-bottom: 9px; }

table.t.idx td { padding: 9px 6px; }
table.t.idx .cpy { color: #dbe5f8; font-weight: 550; }

/* ---------- correct score grid ---------- */
.subhead { font-size: 11.5px; color: var(--dim2); letter-spacing: .3px; margin: 14px 0 8px; }
.grid-crs { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.crs-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(30, 43, 69, .5); border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px;
}
.crs-cell .sc { font-size: 13px; font-weight: 700; color: var(--txt2); }
.crs-cell .od { font-size: 11.5px; color: var(--dim); }
.crs-cell.hot { border-color: rgba(251, 191, 36, .42); background: rgba(251, 191, 36, .1); }
.crs-cell.hot .sc { color: var(--gold); }
.crs-cell.hot .od { color: #d8b46a; }
.crs-cell.other { border-style: dashed; }
.crs-cell.other .sc { font-size: 11.5px; color: var(--dim2); font-weight: 600; }
.grp { display: inline-flex; align-items: baseline; gap: 5px; color: var(--dim); font-size: 12.5px; }
.grp .ln { color: var(--txt2); font-weight: 700; }
.ov { font-weight: 700; color: var(--txt2); transition: color .2s; }
.ov.up, .ln.up { color: var(--up); }
.ov.down, .ln.down { color: var(--down); }
.ov i { font-style: normal; font-size: 9px; margin-left: 1px; opacity: .9; }
/* 赛果配色：胜红、平绿、负蓝 */
.w { color: #ff5c5c; font-weight: 700; }
.d { color: #22d3a6; font-weight: 700; }
.l { color: #4d8dff; font-weight: 700; }
.good { color: #22d3a6; }
.bad { color: #ff5c5c; }
.arrow { color: var(--dim2); font-size: 11px; }

/* ---------- injuries ---------- */
.inj { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .inj { grid-template-columns: 1fr 1fr; } }
.inj .side { background: rgba(30, 43, 69, .55); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; }
.inj .side h4 { margin: 0 0 9px; font-size: 13px; color: var(--gold); display: flex; align-items: center; gap: 7px; }
.inj .side h4 em { font-style: normal; font-size: 11px; color: var(--dim2); background: rgba(10, 16, 28, .6); border-radius: 5px; padding: 0 6px; }
.inj .side ul { margin: 0; padding-left: 16px; color: var(--txt2); font-size: 12.5px; }
.inj .side li { margin-bottom: 5px; }
.inj .side .none { color: var(--dim2); font-size: 12.5px; }
.pos-tag { font-size: 10.5px; color: var(--dim2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-right: 5px; }
.reason { color: #ffb4b4; }

/* ---------- kv ---------- */
.kv { display: flex; flex-wrap: wrap; gap: 8px; }
.kv span { background: rgba(30, 43, 69, .6); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; font-size: 12.5px; color: var(--dim); }
.kv span b { color: var(--txt); font-weight: 700; }

/* ---------- news ---------- */
.news-item { display: block; padding: 11px 0; border-bottom: 1px solid rgba(120, 150, 200, .1); transition: .15s; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 6px; }
.news-item .nt { font-size: 13.5px; color: #dce7fb; font-weight: 550; }
.news-item .nd { color: var(--dim2); font-size: 12px; margin-top: 3px; }
.news-item .ne { color: #5b6b88; font-size: 10.5px; margin-top: 4px; letter-spacing: .3px; }
.news-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #bcd4ff;
  background: rgba(59, 130, 246, .13); border: 1px solid rgba(59, 130, 246, .32);
  border-radius: 8px; padding: 3px 10px; margin: 12px 0 2px;
}
.news-cat em { font-style: normal; font-size: 10.5px; color: var(--dim2); }
.news-group:first-child .news-cat { margin-top: 0; }
.fresh {
  display: inline-block; font-size: 10px; font-weight: 700; color: #7fe7c4;
  border: 1px solid rgba(34, 211, 166, .45); background: rgba(34, 211, 166, .12);
  border-radius: 4px; padding: 0 4px; margin-right: 5px; vertical-align: 1px;
}

/* ---------- 天气 ---------- */
.chip.wx { color: #cfe4ff; border-color: rgba(96, 165, 250, .32); background: rgba(30, 58, 95, .45); }

/* ---------- 阵容 ---------- */
.squad-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.squad-head b { font-size: 14px; }
.squad-head em { font-style: normal; color: var(--dim2); font-size: 11px; margin-left: auto; }
.form-tag {
  font-size: 12px; font-weight: 700; color: #ffe6a8;
  background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .4);
  border-radius: 7px; padding: 1px 9px; letter-spacing: .5px;
}
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.squad-grid .pl {
  display: flex; align-items: center; gap: 6px; background: rgba(30, 43, 69, .5);
  border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px; font-size: 12.5px; color: var(--txt2);
}
.squad-grid .pl i { font-style: normal; color: var(--dim2); font-size: 11px; min-width: 16px; }
.squad-grid .pl u { text-decoration: none; margin-left: auto; font-size: 10.5px; color: var(--dim2); }
.squad-grid.sub .pl { color: var(--dim); border-style: dashed; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* ---------- 阵容图 ---------- */
.pitch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.pitch-head .ph-side { color: var(--txt); font-weight: 600; }
.pitch-head .ph-side b { color: var(--gold); margin-left: 5px; font-size: 13.5px; }
.pitch-head .ph-side.away b { margin-left: 0; margin-right: 5px; }
.pitch-head .ph-vs { color: var(--dim2); font-size: 11.5px; }
.pitch-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
  background: rgba(10, 16, 28, .45); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
.pi-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pi-col.away { text-align: right; align-items: flex-end; }
.pi-team { font-size: 13.5px; font-weight: 700; color: var(--txt); margin-bottom: 2px; }
.pi-team b { color: var(--gold); font-size: 14px; margin-left: 6px; }
.pi-col.away .pi-team b { margin-left: 0; margin-right: 6px; }
.pi-row { font-size: 11.5px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pi-row span { color: var(--dim2); margin-right: 5px; }
.pi-full { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--txt2); border-top: 1px solid var(--line); padding-top: 7px; margin-top: 3px; }

.pitch {
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #1f6b3a 0%, #175630 48%, #175630 52%, #123f24 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .35);
}
.pitch-inner { position: relative; padding: 14px 6px; }
.pitch-line { position: absolute; background: rgba(255, 255, 255, .22); }
.pitch-line.half { left: 0; right: 0; top: 50%; height: 1px; }
.pitch-line.circle {
  left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  background: none; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
}
.pitch-line.box.top { left: 22%; right: 22%; top: 0; height: 46px; background: none; border: 1px solid rgba(255, 255, 255, .18); border-top: none; }
.pitch-line.box.bottom { left: 22%; right: 22%; bottom: 0; height: 46px; background: none; border: 1px solid rgba(255, 255, 255, .18); border-bottom: none; }

.pitch-side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.pitch-side.top { padding-bottom: 16px; }
.pitch-side.bottom { padding-top: 16px; }
.prow { display: flex; align-items: center; gap: 6px; }
.prow-body { flex: 1; display: flex; justify-content: space-around; align-items: flex-start; gap: 2px; padding: 0 4px; }

.pl-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 58px; }
.pl-badge {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .1));
  border: 1.5px solid rgba(255, 255, 255, .55);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.pl-badge i {
  position: absolute; right: -7px; top: -7px; font-style: normal;
  font-size: 9px; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 5px;
  background: #ef4444; color: #fff; border: 1px solid rgba(255, 255, 255, .6);
}
.pl-chip.inj .pl-badge { border-color: rgba(239, 68, 68, .9); background: rgba(120, 20, 20, .45); }
.pl-chip.inj .pl-name { color: #ffb4b4; text-decoration: line-through; text-decoration-color: rgba(255, 120, 120, .8); }
.pl-name {
  font-size: 10.5px; color: #eaf1ff; text-align: center; line-height: 1.25;
  max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.prow-body > .pl-chip:only-child { justify-self: center; }

/* ================= 浅色主题 ================= */
:root {
  --bg: #eef2f8;
  --bg-soft: #f6f8fc;
  --card: #ffffff;
  --card-solid: #ffffff;
  --card2: #f4f7fc;
  --line: rgba(16, 36, 66, .12);
  --line-strong: rgba(16, 36, 66, .22);
  --txt: #0f1c2e;
  --txt2: #37465e;
  --dim: #66748b;
  --dim2: #8a97ab;
  --shadow: 0 6px 20px -10px rgba(16, 36, 66, .28);
}
body {
  background-image:
    radial-gradient(900px 420px at 8% -6%, rgba(59, 130, 246, .10), transparent 62%),
    radial-gradient(700px 380px at 96% 2%, rgba(139, 92, 246, .08), transparent 60%);
}
.topbar { background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line); }
.brand small { color: var(--dim2); }
.stamp { color: var(--dim2); }
.ghost-btn { background: #fff; color: #2563eb; border-color: rgba(37, 99, 235, .35); }
.ghost-btn:hover { background: #eef4ff; }
.subbar span { background: #fff; border-color: var(--line); color: var(--dim); }

.mcard { background: #fff; box-shadow: var(--shadow); }
.mcard:hover { background: #fff; border-color: var(--line-strong); }
.lg-chip { background: var(--card2); }
.tm .rk { background: #e3ebf9; color: #1f3a5f; border-color: rgba(37, 99, 235, .26); font-weight: 700; }
.ob { background: var(--card2); }
.ob.low { background: rgba(251, 191, 36, .16); }
.ob .k { color: var(--dim2); }
.chip { background: #edf3fd; border-color: rgba(37, 99, 235, .2); color: #16325c; }
.chip em { color: #4b6b96; }
.dh-chips .chip { background: #e7effc; border-color: rgba(37, 99, 235, .3); color: #10294d; }
.dh-chips .chip em { color: #3f6491; }
.chip.wx { background: #eaf2ff; border-color: rgba(59, 130, 246, .28); color: #1d4ed8; }

.detail-head {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fd 100%);
  border-color: var(--line);
}
.dh-center .ks { color: var(--dim2); }
.tab { background: #fff; border-color: var(--line); color: var(--dim); }
.tab.on { color: #fff; }
.panel { background: #fff; box-shadow: var(--shadow); }
.muted { color: var(--dim2); }
ul.clean { color: var(--txt2); }
ul.clean.warn { color: #b45309; }

.pick { background: var(--card2); border-color: var(--line); }
.pick.primary { background: linear-gradient(180deg, #eaf2ff, #f7faff); border-color: rgba(59, 130, 246, .4); }
.pick .pk { background: linear-gradient(90deg, #16233b, #33557f); -webkit-background-clip: text; background-clip: text; }
.pick.primary .pk { background: linear-gradient(90deg, #b45309, #d97706); -webkit-background-clip: text; background-clip: text; }
.pick .mk, .pick .bs, .conf { color: var(--dim2); }
.bar { background: #e2e8f2; }
.score-row .bg { background: #e2e8f2; }

table.t th, table.t td { color: var(--txt2); border-bottom-color: var(--line); }
table.t tbody tr:nth-child(even) td, table.t tr:nth-child(even) td { background: rgba(16, 36, 66, .035); }
.inj .side { background: var(--card2); border-color: var(--line); }
.inj .side h4 em { background: #e8edf6; color: var(--dim2); }
.kv span { background: var(--card2); border-color: var(--line); color: var(--dim); }
.kv span b { color: var(--txt); }
.pos-tag { color: var(--dim2); }
.reason { color: #c2410c; }

.news-item { border-bottom-color: var(--line); }
.news-item .nt { color: var(--txt); }
.news-item .nd { color: var(--dim); }
.news-item .ne { color: var(--dim2); }
.news-cat { background: #eaf2ff; border-color: rgba(59, 130, 246, .3); color: #1d4ed8; }
.fresh { color: #0f766e; border-color: rgba(13, 148, 136, .4); background: rgba(13, 148, 136, .1); }

.squad-grid .pl { background: var(--card2); border-color: var(--line); color: var(--txt2); }
.squad-grid .pl i { color: var(--dim2); }
.squad-grid .pl u { color: var(--dim2); }
.squad-grid.sub .pl { background: #fbfcfe; color: var(--dim); }
.form-tag { color: #b45309; background: rgba(251, 191, 36, .18); border-color: rgba(217, 119, 6, .35); }
.pitch-info { background: var(--card2); border-color: var(--line); }
.pi-row { color: var(--txt2); }
.pi-full { border-top-color: var(--line); color: var(--txt2); }

.tl { border-bottom-color: var(--line); }
.tl .tm { color: var(--dim2); }
.tl .vl { color: var(--txt2); }
.tl .vl b { color: var(--txt); }
.tl .st { color: var(--dim2); border-color: var(--line); }
.tl .st.live { color: #0f766e; border-color: rgba(13, 148, 136, .4); background: rgba(13, 148, 136, .1); }

.seg { background: var(--card2); border-color: var(--line); }
.seg-btn { color: var(--dim); }
.seg-btn.on { color: #fff; }
.legend .down, .down { color: #0f9d76; }
.legend .up, .up { color: #dc2626; }
.ov.up, .ln.up { color: #dc2626; }
.ov.down, .ln.down { color: #0f9d76; }
table.t.idx .cpy { color: var(--txt); }
.grp { color: var(--dim); }
.grp .ln { color: var(--txt2); }

.crs-cell { background: var(--card2); border-color: var(--line); }
.crs-cell .sc { color: var(--txt2); }
.crs-cell .od { color: var(--dim); }
.crs-cell.other { border-color: var(--line-strong); }
.skel { background: linear-gradient(90deg, #e8edf5 25%, #f4f7fb 37%, #e8edf5 63%); background-size: 400% 100%; }
.back { color: #2563eb; border-color: rgba(37, 99, 235, .35); background: #eef4ff; }
.empty { color: var(--dim2); }
.foot { color: #8a97ab; }

/* 场上姓名仍用浅色，因为底是绿色球场 */
.pl-name { color: #f4fbf7; }
.pl-badge { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.12)); }

/* ---------- timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; align-items: center; gap: 9px; padding: 6px 2px; border-bottom: 1px dashed rgba(120, 150, 200, .12); font-size: 12.5px; }
.tl:last-child { border-bottom: none; }
.tl .tm { color: var(--dim2); width: 92px; flex: 0 0 auto; font-size: 11.5px; }
.tl .vl { color: var(--txt2); }
.tl .vl b { color: var(--txt); }
.tl .st { margin-left: auto; font-size: 10.5px; color: var(--dim2); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.tl .st.live { color: #7fe7c4; border-color: rgba(34, 211, 166, .45); background: rgba(34, 211, 166, .1); }

/* ---------- misc ---------- */
.empty { color: var(--dim2); font-size: 13px; padding: 10px 0; text-align: center; }
.back { color: var(--acc); font-size: 12.5px; cursor: pointer; border: 1px solid rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .1); border-radius: 9px; padding: 4px 11px; font-weight: 600; }
.back:hover { background: rgba(59, 130, 246, .2); }
.foot { max-width: 1000px; margin: 20px auto 0; padding: 0 16px; color: #4d5c76; font-size: 11.5px; line-height: 1.8; }
.foot p { margin: 0 0 4px; }
.skel { height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(30, 43, 69, .5) 25%, rgba(45, 62, 95, .7) 37%, rgba(30, 43, 69, .5) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; margin-bottom: 12px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- 近况走势条（胜红 平绿 负蓝） ---------- */
.fm-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.fm-row .fm-team { color: var(--txt2); font-size: 12.5px; font-weight: 600; margin-right: 4px; min-width: 64px; }
.fm-row .fm { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; line-height: 1.5; }
.fm-row .fm.w { color: #e0403f; background: rgba(224, 64, 63, .12); border: 1px solid rgba(224, 64, 63, .3); }
.fm-row .fm.d { color: #16a37b; background: rgba(22, 163, 123, .12); border: 1px solid rgba(22, 163, 123, .3); }
.fm-row .fm.l { color: #2f6fd8; background: rgba(47, 111, 216, .12); border: 1px solid rgba(47, 111, 216, .3); }
.fm-row .fm-sum { color: var(--dim2); font-size: 11.5px; margin-left: 4px; }

/* ---------- 伤停球员的出场/进球/助攻 ---------- */
.istat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 3px 0 8px; font-size: 11.5px; color: var(--txt2); }
.istat .dim { color: var(--dim2); }
.istat b { color: var(--txt); font-weight: 600; }
.istat .role { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.istat .role.main { color: #b91c1c; background: rgba(220, 38, 38, .12); border: 1px solid rgba(220, 38, 38, .3); }
.istat .role.half { color: #b45309; background: rgba(217, 119, 6, .12); border: 1px solid rgba(217, 119, 6, .3); }
.istat .role.sub { color: #2f6fd8; background: rgba(47, 111, 216, .12); border: 1px solid rgba(47, 111, 216, .3); }

/* 竞彩单关标记 */
.chip.single { border-color: rgba(217, 119, 6, .45); background: rgba(217, 119, 6, .1); }
.chip.single em { color: #b45309; }

/* 主页面的单关标记（红色醒目） */
.single-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .5px; line-height: 1.6;
  padding: 1px 8px; border-radius: 6px; color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px -3px rgba(220, 38, 38, .8);
}

/* ---------- 头号射手 ---------- */
.sc-row { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; border-bottom: 1px dashed rgba(120, 150, 200, .18); }
.sc-row:last-child { border-bottom: none; }
.sc-team { flex: 0 0 auto; min-width: 76px; color: var(--txt2); font-weight: 600; font-size: 12.5px; padding-top: 3px; }
.sc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sc { font-size: 12px; color: var(--txt2); background: rgba(120, 150, 200, .08); border: 1px solid var(--line); border-radius: 8px; padding: 2px 9px; }
.sc b { color: var(--txt); font-weight: 700; }
.sc u { text-decoration: none; color: var(--dim2); margin-left: 5px; }
.sc.top { border-color: rgba(59, 130, 246, .4); background: rgba(59, 130, 246, .1); }
.sc.top em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #2563eb; margin-right: 6px; }
.sc.inj { border-color: rgba(220, 38, 38, .45); background: rgba(220, 38, 38, .08); }
.sc.inj s { text-decoration: none; color: #dc2626; font-weight: 700; margin-left: 6px; }

/* ---------- 近期战绩筛选条 ---------- */
.fbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0 8px; }
.fbar .flb { color: var(--dim2); font-size: 11.5px; margin: 0 2px 0 8px; }
.fbar .flb:first-child { margin-left: 0; }
.fseg { display: inline-flex; gap: 4px; }
.fbtn { font: inherit; font-size: 11.5px; line-height: 1.5; padding: 3px 10px; border-radius: 8px; cursor: pointer;
  color: var(--txt2); background: rgba(120, 150, 200, .08); border: 1px solid var(--line); }
.fbtn:hover { background: rgba(59, 130, 246, .12); }
.fbtn.on { color: #fff; background: linear-gradient(135deg, var(--acc), #2563eb); border-color: transparent; font-weight: 600; }
.fsum { color: var(--dim2); font-size: 11.5px; margin: 2px 0 6px; }

/* ---------- 情报条目：标题 + 正文 ---------- */
ul.clean li.nw b { display: block; font-weight: 650; color: var(--txt); margin-bottom: 2px; line-height: 1.5; }
ul.clean li.nw span { display: block; color: var(--txt2); font-size: 12.8px; line-height: 1.68; word-break: break-word; overflow-wrap: anywhere; }
ul.clean li.nw .nb {
  margin-top: 5px; color: var(--txt); font-size: 12.8px; line-height: 1.75;
  background: rgba(59, 130, 246, .06); border-left: 3px solid rgba(59, 130, 246, .45);
  padding: 7px 10px; border-radius: 0 9px 9px 0; word-break: break-word; overflow-wrap: anywhere;
}
details.nb { margin-top: 5px; }
details.nb summary {
  cursor: pointer; list-style: none; color: var(--txt); font-size: 12.8px; line-height: 1.75;
}
details.nb summary::-webkit-details-marker { display: none; }
details.nb summary::marker { content: ""; }
details.nb summary .more {
  display: inline-block; margin-top: 4px; color: #2563eb; font-size: 12px; font-weight: 650;
  border-bottom: 1px dashed rgba(37, 99, 235, .5);
}
details.nb[open] summary .lead { display: none; }
details.nb[open] summary .more { margin-bottom: 6px; }
details.nb[open] summary .more::before { content: "收起 · "; }
details.nb .full { margin-top: 6px; color: var(--txt); font-size: 12.8px; line-height: 1.82; word-break: break-word; overflow-wrap: anywhere; }

/* ---------- 复盘 ---------- */
.navlink { font-size: 12.5px; font-weight: 600; color: var(--acc); border: 1px solid rgba(59, 130, 246, .4); background: rgba(59, 130, 246, .1); border-radius: 9px; padding: 4px 11px; white-space: nowrap; }
.navlink:hover { background: rgba(59, 130, 246, .2); }
.rv-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rv-k { background: rgba(59, 130, 246, .07); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.rv-k b { display: block; font-size: 18px; font-weight: 750; color: var(--txt); }
.rv-k span { display: block; font-size: 11px; color: var(--dim2); margin-top: 2px; }
.rv-trend { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 14px; }
.rv-trend i { width: 11px; height: 11px; border-radius: 3px; display: block; }
.rv-trend i.w { background: #ff5c5c; }
.rv-trend i.l { background: #4d8dff; }
.rv-trend i.n { background: rgba(120, 150, 200, .35); }

/* ---------- 手机适配 ---------- */
@media (max-width: 560px) {
  html, body { overflow-x: hidden; }
  .app { padding: 12px 11px; }
  .topbar-inner, .subbar, .foot { padding-left: 11px; padding-right: 11px; }
  .brand { font-size: 15px; }
  .brand small { display: none; }
  .ghost-btn { padding: 5px 11px; font-size: 12.5px; }
  .stamp { font-size: 11px; }
  .panel { padding: 12px 11px; border-radius: 15px; }
  .panel h3 { font-size: 13.5px; margin-bottom: 10px; }
  .detail-head { padding: 13px 12px; border-radius: 17px; }
  .dh-main { gap: 6px; }
  .crest.lg { width: 44px; height: 44px; }
  .dh-team .nm { font-size: 15px; }
  .dh-center .t { font-size: 13px; }
  .dh-chips { margin-top: 12px; gap: 6px; }
  .chip { font-size: 11px; padding: 4px 9px; }
  .tab { padding: 6px 11px; font-size: 12.5px; }
  .tabs { gap: 5px; padding-bottom: 9px; }
  table.t { font-size: 12px; }
  table.t th { font-size: 10.5px; padding: 7px 5px; }
  table.t td { padding: 7px 5px; }
  table.t td.left, table.t th.left { white-space: normal; word-break: break-word; }
  .scroll { margin: 0 -2px; padding: 0 2px; }
  .odds-row, .dh-odds { gap: 6px; }
  .ob .v { font-size: 15px; }
  .inj .side { padding: 10px; }
  .seg-btn { padding: 6px 11px; font-size: 12.5px; }
  .fbar { gap: 4px; }
  .fbtn { padding: 3px 8px; font-size: 11px; }
}

/* 首页：按竞彩业务日分组（今天 / 明天 / 后天） */
.day-sep {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 16px 2px 8px; padding: 6px 10px; font-size: 13px; color: #475569;
  background: #eef4ff; border-left: 3px solid #93b4ff; border-radius: 6px;
}
.day-sep.today { color: #1d4ed8; background: #e3edff; border-left-color: #2563eb; }
.day-sep b { font-weight: 600; }
.day-sep span { color: #64748b; font-size: 12px; }

/* 情报页：极品爆料卡（一条一张卡，主队/客队分开） */
.bcards { display: flex; flex-direction: column; gap: 10px; }
.bcard { border: 1px solid #e6edf7; border-radius: 10px; padding: 10px 12px; background: #fbfdff; }
.bcard.home { border-left: 3px solid #e05252; }
.bcard.away { border-left: 3px solid #2f6fd0; }
.bcard.mix { border-left: 3px solid #9aa7b8; }
.bc-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bc-tag { font-size: 12px; font-weight: 600; color: #fff; background: #64748b; border-radius: 4px; padding: 1px 6px; }
.bcard.home .bc-tag { background: #e05252; }
.bcard.away .bc-tag { background: #2f6fd0; }
.bc-src { font-size: 11.5px; color: #94a3b8; }
.bc-t { font-size: 14.5px; line-height: 1.5; color: #16202e; margin: 2px 0 4px; }
.bc-b { font-size: 13.5px; line-height: 1.7; color: #33445c; }
.bc-p { margin: 0 0 4px; }
.inj-one .side { border: none; padding: 0; background: none; }
.inj-one .side h4 { display: none; }

/* 动态条目：标题可点开原文 */
.nw .nwt { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.nw .nwt:hover { text-decoration: underline; }
.nw .nwt::after { content: " ↗"; font-size: 11px; color: #93b4ff; }
