/* 华人明日之星杯 · 浅色（苹果风格）主题 */
:root {
  --bg: #f5f5f7; --card: #fff; --line: #e5e5ea; --text: #1d1d1f; --muted: #6e6e73;
  --accent: #0066cc; --btn: #d6e9ff; --btn-text: #0b3a6b; --btn-hover: #c2deff;
  --blue-soft: #e3f0ff; --blue-mid: #8ec5ff;
  --a: #8ec5ff; --b: #3d7fd9; --err: #c4161c; --ok: #1d7a3a; --warn: #b25000;
  /* 旧变量名保留，指向新颜色，避免遗漏 */
  --gold: #0b3a6b; --gold2: #0066cc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251,251,253,.85); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.brand { font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: -.2px; }
.brand:hover { text-decoration: none; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
nav a { color: var(--text); opacity: .8; text-decoration: none; }
nav a.on { opacity: 1; font-weight: 600; }
nav a:hover { opacity: 1; text-decoration: none; }
nav form { margin: 0; }
.top.admin { background: rgba(255,248,240,.92); border-bottom: 1px solid #f0d9c0; }
.top.admin .brand small { color: var(--warn); font-size: 13px; font-weight: 400; }

main, main.wrap { padding: 28px 20px 48px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; margin: 0 0 14px; }
h2 { font-size: 21px; font-weight: 600; letter-spacing: -.2px; margin: 0 0 10px; }
h3 { font-size: 17px; font-weight: 600; }

.card { background: var(--card); border: 0; border-radius: 18px; padding: 24px 26px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.big { font-size: 30px; font-weight: 700; letter-spacing: -.4px; margin: 0; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
ul.inbox { list-style: none; padding: 0; }
ul.inbox li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.inbox li.unread b { color: var(--accent); }

/* 组别：A 浅蓝、B 深一点的蓝（明暗不同，色弱也能分） */
.ga, .card.ga, .match-head.ga { border-top: 4px solid var(--a); }
.gb, .card.gb, .match-head.gb { border-top: 4px solid var(--b); }

/* 按钮：淡蓝底、深蓝字 */
.btn, button { background: var(--btn); color: var(--btn-text); border: 0; border-radius: 980px; padding: 10px 22px;
  font: 600 15px/1.3 inherit; font-family: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover, button:hover { background: var(--btn-hover); text-decoration: none; }
.btn.off, button:disabled { background: #e8e8ed; color: #8e8e93; cursor: default; }
.btn-ghost, button.btn-ghost { background: transparent; color: var(--text); border: 1px solid #d2d2d7; font-weight: 400; }
.btn-ghost:hover { background: #f2f2f7; }

/* 表单 */
label { display: block; margin: 14px 0; }
label.inline { display: inline-block; margin-right: 20px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 16px/1.4 inherit; font-family: inherit;
  color: var(--text); background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { line-height: 1.6; }
input[type=radio], input[type=checkbox] { display: inline; width: auto; margin: 0 6px 0 0; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 16px 0; padding: 8px 18px 14px; }
legend { color: var(--muted); font-size: 14px; padding: 0 6px; }
.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.row input { margin: 0; }
.row button { white-space: nowrap; }

small, .small { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.err { color: var(--err); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.note { background: var(--blue-soft); border: 0; border-radius: 12px; padding: 10px 14px; color: #0b3a6b; }
.code { font-size: 24px; letter-spacing: 4px; font-weight: 700; color: var(--text); }
code { background: #f2f2f7; padding: 1px 6px; border-radius: 6px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
.kv th { width: 110px; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 980px; font-size: 12px; font-weight: 600; background: #f2f2f7; color: var(--muted); }
.tag.approved { background: #e3f5e8; color: var(--ok); }
.tag.waitlist { background: #fff1e0; color: var(--warn); }
.tag.rejected, .tag.withdrawn { background: #fff0f0; color: var(--err); }
.scroll { overflow-x: auto; }
table.admin { font-size: 14px; min-width: 1000px; }
table.admin .acts button { padding: 4px 10px; font-size: 12px; margin: 2px 0; }
table.admin .acts input, table.admin .acts select { display: inline-block; width: auto; padding: 4px 6px; font-size: 12px; border-radius: 8px; margin: 0; }
tr.risk-高 td:first-child { box-shadow: inset 3px 0 0 var(--err); }
tr.risk-中 td:first-child { box-shadow: inset 3px 0 0 #ff9f0a; }

.timeline li { margin: 6px 0; }
.prose ul { padding-left: 20px; }
details.danger { margin-top: 20px; } details.danger summary { color: var(--muted); cursor: pointer; }
details.danger button { background: #fff0f0; color: var(--err); margin-top: 8px; }
.foot { color: var(--muted); font-size: 12px; padding: 20px 20px 36px; text-align: center; border-top: 1px solid #d2d2d7; }

/* 章程 */
.rules h1 { text-align: center; }
.rules h1 + p, .rules h1 + p + p { text-align: center; color: var(--muted); }
.rules h2 { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-top: 30px; }
.rules h3 { color: var(--text); font-size: 17px; margin: 18px 0 6px; }
.rules ol, .rules ul { padding-left: 22px; }

/* ---------- 首页 ---------- */
.home-hero { margin: -28px calc(50% - 50vw) 0; padding: 88px 20px 64px; text-align: center; color: #f5f5f7;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.55) 55%, rgba(0,0,0,.82)), url(/static/hero.webp?v=1) center 30% / cover no-repeat, #000; }
.home-hero h1, .home-hero p { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.home-hero .kicker { margin: 0; font-size: 19px; font-weight: 600; color: #d2d2d7; }
.home-hero h1 { margin: 8px 0 0; font-size: 72px; line-height: 1.05; letter-spacing: -1.5px; color: #fff; }
.home-hero .credits { margin: 16px 0 0; font-size: 15px; color: #d2d2d7; }
.home-hero .ctas { margin-top: 28px; display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.home-hero .ctas .btn { padding: 12px 26px; font-size: 17px; }
.home-hero .ctas a.link { color: #b8dcff; font-size: 17px; }
.home-hero .ctas .btn.off { background: rgba(255,255,255,.2); color: #e5e5ea; }
.stats { margin: 28px auto 0; max-width: 820px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: rgba(255,255,255,.14); border-radius: 18px; overflow: hidden; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stats div { background: rgba(22,22,23,.62); padding: 22px 14px; }
.stats b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -.5px; color: #fff; line-height: 1.2; }
.stats span { display: block; margin-top: 4px; font-size: 14px; color: #a1a1a6; }
.home-hero .contact { margin: 24px 0 0; font-size: 14px; color: #d2d2d7; }
.home-hero .contact a, .home-hero .thanks a { color: #b8dcff; }
.home-hero .thanks { margin: 6px 0 0; font-size: 13px; color: #a1a1a6; }
.band-img { display: block; width: 100vw; max-width: none; height: auto; margin: 56px calc(50% - 50vw) 0; aspect-ratio: 1920 / 400; object-fit: cover; }
.band-img.band-top { margin: -28px calc(50% - 50vw) 28px; }
.home-sec { padding: 64px 0 8px; }
.home-sec > h2 { text-align: center; font-size: 40px; font-weight: 700; letter-spacing: -.6px; margin: 0; }
.home-sec > .sub { text-align: center; font-size: 17px; color: var(--muted); margin: 10px 0 0; }
.groups { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.groups .card { padding: 36px; border-radius: 22px; margin: 0; border-top: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; color: var(--btn-text); background: var(--blue-soft); padding: 4px 10px; border-radius: 980px; }
.groups .rng { margin-top: 16px; font-size: 36px; font-weight: 700; letter-spacing: -.5px; }
.groups p { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.gcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
.gcard .bar { grid-column: 1 / -1; }
.prize { text-align: right; }
.gcard .rng { white-space: nowrap; }
.prize .pill { background: transparent; color: var(--muted); padding: 4px 0; }
@media (max-width: 560px) { .gcard { grid-template-columns: 1fr; } .prize { margin-top: 18px; text-align: left; } }
.bar { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.bar i { flex: 1; height: 6px; background: #e8e8ed; border-radius: 3px; overflow: hidden; display: block; }
.bar i b { display: block; height: 6px; background: var(--blue-mid); }
.zones { margin-top: 20px; border-radius: 22px; padding: 30px 36px; }
.zones .head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.zones .head b { font-size: 21px; }
.zones .head span { font-size: 14px; color: var(--muted); }
.zgrid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.zgrid .zt { display: flex; justify-content: space-between; font-size: 15px; }
.zgrid .zt span { color: var(--muted); }
.zgrid .bar { margin-top: 8px; }
.zgrid small { display: block; margin-top: 6px; color: #8e8e93; font-size: 12px; }
.zones p { margin: 18px 0 0; font-size: 14px; color: #424245; }
.fine { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.tline { margin-top: 48px; position: relative; }
.tline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 64px; height: 3px; border-radius: 2px; background: #cfe5ff; }
.tline ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tline li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tline .d { font-size: 26px; font-weight: 700; letter-spacing: -.3px; line-height: 34px; }
.tline .dot { height: 40px; margin-top: 10px; display: flex; align-items: center; }
.tline .dot::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-mid); box-sizing: border-box; }
.tline li:last-child .dot::before { width: 18px; height: 18px; border: 0; background: var(--blue-mid); box-shadow: 0 0 0 6px var(--blue-soft); }
.tline .n { margin-top: 10px; font-size: 15px; font-weight: 600; }
.tline .t { margin-top: 4px; font-size: 13px; color: var(--muted); max-width: 220px; }
.feats { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feats .card { margin: 0; border-radius: 22px; padding: 30px; }
.feats b { font-size: 19px; }
.feats p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.feats .btn { margin-top: 14px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 760px) {
  .home-hero { padding: 56px 16px 44px; }
  .home-hero h1 { font-size: 44px; letter-spacing: -.5px; }
  .stats b { font-size: 26px; }
  .groups, .zgrid, .feats { grid-template-columns: 1fr; }
  .home-sec > h2 { font-size: 30px; }
  .tline::before { display: none; }
  .tline ol { grid-template-columns: 1fr 1fr; row-gap: 24px; }
}

/* ---------- 对阵表 ---------- */
.bracket { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 12px; min-width: 880px; }
.rwrap { display: flex; flex-direction: column; }
.rcol { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.rwrap h3 { color: var(--text); font-size: 15px; margin: 0 0 4px; }
.rwrap h3 small { color: var(--muted); font-weight: 400; }
.mbox { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--text); text-decoration: none; }
.mbox:hover { border-color: var(--blue-mid); text-decoration: none; }
.mbox .pl { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.mbox .pl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbox .pl.win { color: var(--accent); font-weight: 700; }
.mbox small { color: var(--muted); font-size: 11px; }
.mbox.st-ready { border-left: 3px solid #34c759; }
.mbox.st-empty { opacity: .4; }
.mbox.st-bye { opacity: .55; }
.bracket2 { position: relative; margin: 4px auto; }
.bracket2 svg { position: absolute; left: 0; top: 0; pointer-events: none; }
.bracket2 path { fill: none; stroke: #c7c7cc; stroke-width: 1.5; }
.bracket2 path.on { stroke: var(--b); }
.bracket2 .bh { position: absolute; top: 0; text-align: center; color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bracket2 .bh small { color: var(--muted); font-weight: 400; }
.bracket2 .mbox { position: absolute; box-sizing: border-box; padding: 2px 6px; overflow: hidden; }
.bracket2 .mbox .pl { font-size: 12px; line-height: 15px; gap: 4px; }
.bracket2 .mbox small { display: block; font-size: 10px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bracket2 .mbox.rt .pl { flex-direction: row-reverse; }
.bracket2 .mbox.rt small { text-align: right; }
.bracket2 .mbox.rt.st-ready { border-left: 1px solid var(--line); border-right: 3px solid #34c759; }
.bkedit .dz { cursor: grab; border-radius: 3px; }
.bkedit .dz:hover { background: var(--blue-soft); }
.bkedit .dz.sel { outline: 2px solid var(--b); background: var(--blue-soft); }
.bkedit .dz.over { outline: 2px dashed var(--b); }

/* ---------- 比赛 / BP 页 ---------- */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.vs small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.vs .sc { font-size: 34px; color: var(--text); letter-spacing: 4px; }
.maps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 10px 0; }
.mapc { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 86px; text-align: center; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: #fafafc; margin: 0; }
.mapc span { font-size: 12px; color: var(--muted); }
.mapc.ban { opacity: .45; text-decoration: line-through; border-color: #ffb3b3; }
.mapc.pick { border-color: var(--b); }
.mapc.sys { border-color: #34c759; box-shadow: 0 0 0 1px #34c759 inset; }
.mapc.pickable { cursor: pointer; }
.mapc.pickable:hover { border-color: var(--blue-mid); }
.mapc.pickable input { display: none; }
.mapc.pickable:has(input:checked) { border-color: var(--b); background: var(--blue-soft); }
.civ { display: inline-block; margin: 4px 6px 0 0; padding: 3px 12px; border-radius: 980px; background: #f2f2f7; }
.civ.out { opacity: .45; text-decoration: line-through; }
.civ.final { background: var(--btn); color: var(--btn-text); font-weight: 700; }
.bpform { margin-top: 8px; }
.bpform select { margin-bottom: 8px; }
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .maps { grid-template-columns: repeat(2, 1fr); }
  .vs { font-size: 18px; } .vs .sc { font-size: 26px; }
  h1 { font-size: 26px; }
}
.poster { display: block; width: 100%; height: auto; border-radius: 14px; margin-bottom: 16px; }
nav .lang { white-space: nowrap; padding-left: 12px; border-left: 1px solid #d2d2d7; }
nav .lang a { margin-left: 4px; font-size: 13px; }
@media (max-width: 640px) { nav .lang { padding-left: 0; border-left: 0; } }

/* 约时间 */
.s2step { margin: 12px 0 16px; }
.s2picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.s2pick { border: 2px dashed #b8dcff; border-radius: 14px; padding: 10px 14px; cursor: pointer; background: #fff; }
.s2pick span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.s2pick small { display: block; font-size: 12px; color: var(--muted); }
.s2pick.on { border-style: solid; border-color: var(--b); background: #f0f6ff; }
table.s2tab { border-collapse: separate; border-spacing: 4px; margin: 4px 0 10px; }
table.s2tab th { font-size: 13px; padding: 4px 8px; white-space: nowrap; border: 0; }
table.s2tab td { padding: 0; text-align: center; border: 0; }
.tc { min-width: 84px; padding: 7px 8px; border: 0; border-radius: 8px; background: #f2f2f7; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 400; }
.tc:hover { background: #e3e3e8; }
.tc.p0 { background: #ff9f0a; color: #fff; font-weight: 600; }
.tc.p1, .tc.p2 { background: var(--b); color: #fff; font-weight: 600; }

/* 后台审核：筛选条 + 详情面板 */
.seg { display: inline-flex; flex-wrap: wrap; background: #e3e3e8; border-radius: 10px; padding: 2px; gap: 2px; }
.seg a { padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--text); text-decoration: none; }
.seg a.on { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg a:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.sumrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.sumrow div { background: #fff; border-radius: 12px; padding: 8px 14px; min-width: 110px; }
.sumrow small { display: block; }
.sumrow b { font-size: 17px; }
.plist { background: #fff; border-radius: 16px; overflow: hidden; }
.plist .pr { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #f0f0f2; flex-wrap: wrap; }
.plist .pr:first-child { border-top: 0; }
.plist .pr .nm { flex: 1; min-width: 160px; }
.plist .pr .nm a { font-weight: 600; color: var(--text); }
.plist .pr .nm small { display: block; }
.plist .pr form { margin: 0; }
.plist .pr button { padding: 6px 16px; font-size: 13px; }
.plist .pr.r-高 { box-shadow: inset 3px 0 0 var(--err); }
.plist .pr.r-中 { box-shadow: inset 3px 0 0 #ff9f0a; }
.warnbox { background: #fff8ec; color: #6b3d00; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.warnbox b { color: var(--warn); }
.more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { color: var(--accent); cursor: pointer; font-size: 14px; }
.acts2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.acts2 form { margin: 0; display: flex; gap: 6px; align-items: center; }
.acts2 input, .acts2 select { display: inline-block; width: auto; margin: 0; padding: 6px 8px; font-size: 13px; border-radius: 8px; }
.acts2 button { padding: 6px 14px; font-size: 13px; }
button.danger { background: #fff0f0; color: var(--err); }
button.danger:hover { background: #ffe0e0; }

/* ---------- 夜间模式（html[data-theme=dark]，默认跟随系统，可手动切换） ---------- */
button.thm { background: transparent; color: var(--text); padding: 2px 6px; font-size: 16px; line-height: 1; font-weight: 400; opacity: .8; }
button.thm:hover { background: transparent; opacity: 1; }
button.thm::before { content: "☾"; }
html[data-theme=dark] button.thm::before { content: "☀"; }
html[data-theme=dark] { color-scheme: dark;
  --bg: #000; --card: #1c1c1e; --line: #38383a; --text: #f5f5f7; --muted: #98989d;
  --accent: #4da3ff; --btn: #1d3a5c; --btn-text: #d6e9ff; --btn-hover: #24496f;
  --blue-soft: #16273b; --blue-mid: #5aa9ff; --a: #8ec5ff; --b: #4d8fe6;
  --err: #ff6961; --ok: #4cd964; --warn: #ffb340; --gold: #d6e9ff; --gold2: #4da3ff; }
html[data-theme=dark] .top { background: rgba(22,22,23,.82); border-bottom-color: rgba(255,255,255,.1); }
html[data-theme=dark] .top.admin { background: rgba(43,31,18,.92); border-bottom-color: #5a4226; }
html[data-theme=dark] input, html[data-theme=dark] select, html[data-theme=dark] textarea { background: #2c2c2e; border-color: #48484a; }
html[data-theme=dark] .btn.off, html[data-theme=dark] button:disabled { background: #2c2c2e; color: #6e6e73; }
html[data-theme=dark] .btn-ghost { border-color: #48484a; }
html[data-theme=dark] .btn-ghost:hover { background: #2c2c2e; }
html[data-theme=dark] .note { color: #cfe5ff; }
html[data-theme=dark] code, html[data-theme=dark] .tag, html[data-theme=dark] .civ, html[data-theme=dark] .tc { background: #2c2c2e; }
html[data-theme=dark] .tc:hover { background: #3a3a3c; }
html[data-theme=dark] .tc.p1, html[data-theme=dark] .tc.p2 { background: var(--b); }
html[data-theme=dark] .tag.approved { background: #15301d; }
html[data-theme=dark] .tag.waitlist { background: #3a2a12; }
html[data-theme=dark] .tag.rejected, html[data-theme=dark] .tag.withdrawn,
html[data-theme=dark] details.danger button, html[data-theme=dark] button.danger { background: #3a1a1a; }
html[data-theme=dark] button.danger:hover { background: #4a2020; }
html[data-theme=dark] .foot, html[data-theme=dark] nav .lang { border-color: #38383a; }
html[data-theme=dark] .bar i { background: #3a3a3c; }
html[data-theme=dark] .zones p { color: #c7c7cc; }
html[data-theme=dark] .tline::before { background: #1d3a5c; }
html[data-theme=dark] .tline .dot::before { background: #1c1c1e; }
html[data-theme=dark] .mbox, html[data-theme=dark] .s2pick, html[data-theme=dark] .sumrow div, html[data-theme=dark] .plist { background: #1c1c1e; }
html[data-theme=dark] .mapc { background: #232325; }
html[data-theme=dark] .bracket2 path { stroke: #48484a; }
html[data-theme=dark] .bracket2 path.on { stroke: var(--b); }
html[data-theme=dark] .s2pick { border-color: #2f5a88; }
html[data-theme=dark] .s2pick.on { background: #16273b; border-color: var(--b); }
html[data-theme=dark] .seg { background: #2c2c2e; }
html[data-theme=dark] .seg a.on { background: #48484a; box-shadow: none; }
html[data-theme=dark] .seg a:hover { background: rgba(255,255,255,.08); }
html[data-theme=dark] .plist .pr { border-top-color: #2c2c2e; }
html[data-theme=dark] .warnbox { background: #3a2a12; color: #ffd9a0; }
html[data-theme=dark] .mapc.ban { border-color: #7a3030; }
html[data-theme=dark] .band-img, html[data-theme=dark] .poster { filter: brightness(.9); }
html[data-theme=dark] [style*="background:#f5f5f7"], html[data-theme=dark] [style*="background: #f5f5f7"] { background: #2c2c2e !important; }
html[data-theme=dark] [style*="background:#f0f6ff"] { background: #16273b !important; }

/* 后台对阵图：撑满屏幕宽度，自动缩放到能看到全局 */
.bkwide { width: min(1680px, calc(100vw - 48px)); max-width: none; position: relative; left: 50%; transform: translateX(-50%); box-sizing: border-box; }
.bracket2 .mbox .pl i.sd { font-style: normal; color: var(--muted); font-size: 11px; }
.bkzoom { vertical-align: middle; margin-left: 6px; }
