/* 皇马会议室 · styles.css
 * 视觉方向：顶流体育媒体版式（The Athletic / 马卡一家亲）。
 * 纯白纸面、墨色正文、单一强调色、发丝线分隔、衬线大标题、
 * 记分牌式紧缩数字。装饰越少，编辑感越强。
 */

:root {
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --card: #ffffff;
  --wash: #f7f7f5;
  --ink: #121212;
  --ink-soft: #5f5f5f;
  --line: #e5e3dd;
  --line-strong: #c8c5bc;

  --gold: #8f6a10;        /* 大腿 / 最高分 */
  --gold-bright: #b8860b;
  --navy: #12356b;        /* 品牌主色：栏眉 / 标签 / 激活态 */
  --red: #b31b1b;         /* 内鬼 / 负 */
  --green: #1f6b40;       /* 胜 / 上升 */
  --orange: #9a4a00;      /* 过山车 */

  --font-body: "Archivo", "Noto Sans SC", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Oswald", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;

  --wrap: 1080px;
  --rbar-bg: #eceae4;
  --pos-gk-bg: #eef2f8;
  --pos-fw-bg: #f7f1e0;
}

/* 暗色模式：晚间版 */
:root[data-theme="dark"] {
  --paper: #14161a;
  --paper-strong: #14161a;
  --card: #171a1f;
  --wash: #1d2127;
  --ink: #ececec;
  --ink-soft: #9aa0a6;
  --line: #2b2f36;
  --line-strong: #3d434c;
  --gold: #d4a72c;
  --gold-bright: #d4a72c;
  --navy: #8fb3e8;
  --red: #e05c5c;
  --green: #5cb987;
  --orange: #d08b3a;
  --rbar-bg: #2b2f36;
  --pos-gk-bg: #1c2738;
  --pos-fw-bg: #2a2416;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }
input, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.muted { color: var(--ink-soft); }
.empty { text-align: center; color: var(--ink-soft); padding: 3rem 0; font-style: italic; }

/* ================= 报头 ================= */

.masthead {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.masthead-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 18px;
  border-top: 5px solid var(--ink);
  position: relative;
}
.masthead-top::before {
  content: "";
  position: absolute;
  top: 5px; left: 20px; right: 20px;
  border-top: 1px solid var(--ink);
}

.brand { min-width: 0; }

.brand-latin {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--navy);
  text-transform: uppercase;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.brand-crest {
  height: 0.92em;
  width: auto;
  vertical-align: -0.08em;
  margin-right: 14px;
}

.crest { object-fit: contain; }

.brand-sub {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.masthead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.season-tag {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 2px solid var(--navy);
  padding: 2px 2px 4px;
}

.masthead-tools { display: flex; gap: 6px; }
.toolbtn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 15px;
  line-height: 1;
}
.toolbtn:hover { border-color: var(--ink); }

.langsel-wrap { display: flex; align-items: center; gap: 8px; }
.langsel-label { font-size: 12px; color: var(--ink-soft); }
#langSel {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 3px 6px;
  font-size: 13px;
}

/* ================= 导航 ================= */

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs button {
  padding: 12px 18px 14px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

/* ================= 公共小件 ================= */

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 26px 0 18px;
}
.kicker::before, .kicker::after {
  content: "";
  height: 1px;
  background: var(--line-strong);
  flex: 1;
}
.kicker::before { max-width: 60px; }

.demobanner {
  margin: 16px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.ghostbtn {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.ghostbtn:hover:not(:disabled) { border-color: var(--ink); }
.ghostbtn:disabled { opacity: 0.35; cursor: default; }

.poschip {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  color: var(--ink-soft);
  background: var(--wash);
  vertical-align: 1px;
}
.pos-GK { color: var(--navy); background: var(--pos-gk-bg); }
.pos-FW { color: var(--gold); background: var(--pos-fw-bg); }

.gacell {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  margin-left: 4px;
  background: var(--ink);
  color: var(--paper);
  vertical-align: 1px;
}

/* 图章：编辑风格的矩形标签，禁止旋转 */
.stamp {
  display: inline-block;
  padding: 2px 9px 1px;
  border: 1px solid currentColor;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stamp-carry { color: var(--gold); }
.stamp-villain { color: var(--red); }
.stamp-sm { font-size: 10px; padding: 1px 6px; margin-left: 6px; }

/* 标签 chips：方角、细线、小字 */
.chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border: 1px solid currentColor;
}
.chip-sm { font-size: 10px; padding: 0 7px; }
.chip-anchor { color: var(--navy); }
.chip-coaster { color: var(--orange); }
.chip-rising { color: var(--green); }
.chip-sliding { color: var(--red); }
.chip-biggame { color: var(--gold); }
.chip-sample { color: var(--ink-soft); border-style: solid; opacity: 0.65; }

/* 评分色 */
.rc-gold { color: var(--gold); }
.rc-good { color: var(--green); }
.rc-mid { color: var(--ink); }
.rc-bad { color: var(--red); }

.rbar {
  position: relative;
  flex: 1;
  min-width: 60px;
  height: 6px;
  background: var(--rbar-bg);
  overflow: hidden;
}
.rbar-fill {
  display: block;
  height: 100%;
  transition: width 0.4s ease;
}
.rbar-fill.rc-gold { background: var(--gold-bright); }
.rbar-fill.rc-good { background: var(--green); }
.rbar-fill.rc-mid { background: #8f8d86; }
.rbar-fill.rc-bad { background: var(--red); }

.spark { display: block; }
.spark polyline, .spark circle { vector-effect: non-scaling-stroke; }

/* 头像：无边框圆形，避免“小窗口”感 */
.avatarwrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--wash);
}
.avatarwrap .avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-pending { visibility: hidden; }
.avatar-monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-soft);
}
.avatarwrap.sm { width: 24px; height: 24px; }
.avatarwrap.sm .avatar-monogram { font-size: 11px; }
.avatarwrap.sm .avatar-fx { font-size: 9px; }
.avatarwrap.md { width: 40px; height: 40px; }
.avatarwrap.md .avatar-fx { font-size: 13px; }
.avatarwrap.lg { width: 64px; height: 64px; }
.avatarwrap.lg .avatar-fx { font-size: 20px; }

/* 头像贴纸层：会后痕迹（蛋渍/创可贴/玫瑰/唇印） */
.avatar-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  font-size: 14px;
  line-height: 1;
}
.fx-item { position: absolute; }
.fx-splat { top: -3px; left: -3px; font-size: 1.5em; transform: rotate(-24deg); }
.fx-band { top: 4px; left: 50%; transform: translateX(-50%) rotate(9deg); font-size: 0.95em; }
.fx-rose { bottom: -3px; right: -3px; font-size: 1.15em; }
.fx-kiss { top: 36%; right: -1px; font-size: 0.9em; }
.fx-poponce { animation: fx-pop 0.6s ease-out both; }
@keyframes fx-pop {
  0% { transform: scale(0.3) translateY(14px); opacity: 0; }
  45% { opacity: 1; transform: scale(1.4) translateY(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(0.9); opacity: 0.9; }
}
.avatarwrap.fx-hit { animation: fx-hit 0.45s ease; }
@keyframes fx-hit {
  0%, 100% { transform: none; }
  25% { transform: translate(-3px, 2px) rotate(-6deg) scale(0.96); }
  50% { transform: translate(3px, -1px) rotate(5deg) scale(1.03); }
  75% { transform: translate(-2px, 1px) rotate(-3deg); }
}

/* ================= 最新判决 ================= */

.sbwrap {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 26px 24px 20px;
  text-align: center;
}

.sb-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.compbadge {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 2px 9px;
  background: var(--ink);
  color: var(--paper);
}

.venuechip { border: 1px solid var(--line-strong); padding: 1px 8px; }

.sb-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  margin: 14px 0 6px;
}
.sb-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sb-crest { width: clamp(42px, 6vw, 56px); height: auto; object-fit: contain; }
.sb-code {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.08em;
}
.sb-nums {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.sb-nums.win { color: var(--ink); }
.sb-nums.draw { color: var(--ink-soft); }
.sb-nums.loss { color: var(--red); }
.sb-dash { font-style: normal; color: var(--line-strong); padding: 0 6px; }

.sb-result {
  display: inline-block;
  font-family: var(--font-num);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  padding-left: 0.3em;
}
.res-W { color: var(--green); }
.res-D { color: var(--ink-soft); }
.res-L { color: var(--red); }

.verdict-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.qstat {
  background: var(--paper);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.qstat-k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.qstat-v { font-family: var(--font-num); font-weight: 600; font-size: 19px; }
.qstat-v b { font-size: 21px; }

.matchnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 4px;
}
.matchnav-count { font-family: var(--font-num); color: var(--ink-soft); font-size: 14px; letter-spacing: 0.1em; }

.ratinglist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 26px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ratinglist-head .muted { font-size: 12px; font-weight: 400; }

.ratinglist { list-style: none; margin: 0; padding: 0; }
.rrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.rrow:hover { background: var(--wash); }
.rrow .avatarwrap { width: 32px; height: 32px; }
.rrank {
  width: 2ch;
  text-align: right;
  font-family: var(--font-num);
  color: var(--ink-soft);
  font-size: 13px;
  flex-shrink: 0;
}
.rname {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.rname-text { font-weight: 600; }
.rname-meta { color: var(--ink-soft); font-size: 12px; font-family: var(--font-num); }
.rscore {
  width: 3.4ch;
  text-align: right;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.footnote { margin: 14px 0 0; font-size: 12px; color: var(--ink-soft); }

/* 会议记录金句 */
.minute-line { margin-top: 10px; font-size: 13px; color: var(--ink-soft); font-style: italic; }
.minute-tag {
  font-family: var(--font-num);
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 1px 6px;
  margin-right: 8px;
}
.minute-tag-red { color: var(--red); border-color: var(--red); }

.share-row { margin-top: 14px; display: flex; gap: 10px; }
.raterow-bar { margin-top: 10px; display: flex; justify-content: flex-end; }
.rate-summary {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
}
.rate-stepper { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
.rate-stepper button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--font-num);
  line-height: 1;
}
.rate-stepper button:hover { border-color: var(--ink); }
.rate-stepper b { font-family: var(--font-num); font-weight: 600; min-width: 3ch; text-align: center; }

/* 下期会议 / 预测 */
.nextcard {
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--navy);
  background: var(--paper);
  padding: 16px 18px;
  margin-bottom: 26px;
}
.nextcard-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.kicker-inline {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.nextcard-opp { font-weight: 700; }
.nextcard-count { margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.nextcard-count b { font-family: var(--font-num); color: var(--ink); }
.pred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.pred-k { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pred-cell .filterrow { gap: 4px; }
.pred-cell .filterchip { padding: 3px 12px; }
.pred-select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 5px 8px;
  font-size: 13px;
}
.pred-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pred-settled { padding: 8px 0; font-size: 13px; color: var(--ink-soft); }
.chem-pair { font-weight: 600; }

/* 黑话词典 */
.dict-head h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: 8px;
}
.dict-head .kicker { margin-top: 0; }
.dict-list { margin-bottom: 60px; }
.dict-item { border-top: 2px solid var(--ink); padding: 14px 0 16px; }
.dict-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.dict-item p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* 打印版：报纸风 */
@media print {
  .tabs, .matchnav, .hype-actions, .foot, .drawer, .demobanner,
  .share-row, .raterow-bar, .nextcard, .masthead-side, .boards-posfilter,
  .board-toggle, .players-tools { display: none !important; }
  body { background: #fff; }
  .masthead-top { border-top-width: 3px; }
  .bcard, .pcard { border: 1px solid var(--line-strong); }
}

/* ================= 会后互动 ================= */

.hype-actions { display: flex; gap: 6px; justify-content: center; margin-top: 9px; flex-wrap: wrap; }
.hype-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  transition: border-color 0.15s, background 0.15s;
}
.hype-btn:hover { border-color: var(--ink); background: var(--wash); }
.hype-btn:active { transform: scale(0.96); }
.hype-btn b { font-family: var(--font-num); color: var(--navy); }

.rrow { position: relative; }
.hype-particle {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  font-size: 17px;
  z-index: 6;
}
.hype-fall { animation: hype-fall 1.15s ease-in both; }
.hype-rise { animation: hype-rise 1.15s ease-out both; }
.hype-pop { animation: hype-pop 0.55s ease-out both; }
@keyframes hype-fall {
  0% { transform: translateY(-26px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(56px) rotate(140deg); opacity: 0; }
}
@keyframes hype-rise {
  0% { transform: translateY(34px); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-38px) rotate(-12deg); opacity: 0; }
}
@keyframes hype-pop {
  0% { transform: scale(0.4); opacity: 0; }
  35% { opacity: 1; transform: scale(1.35); }
  100% { transform: scale(1.6); opacity: 0; }
}
.hype-shake { animation: hype-shake 0.45s ease; }
@keyframes hype-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.hype-splat {
  background-image:
    radial-gradient(circle at 22% 60%, rgba(233, 191, 48, 0.4) 0 6%, transparent 7%),
    radial-gradient(circle at 55% 28%, rgba(233, 191, 48, 0.35) 0 5%, transparent 6%),
    radial-gradient(circle at 78% 68%, rgba(233, 191, 48, 0.3) 0 7%, transparent 8%);
}

/* ================= 榜单 ================= */

.boards-head h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: 6px;
}
.boards-head { margin-bottom: 22px; }
.boards-head .kicker { margin-top: 0; }
.boards-posfilter { margin: 14px 0 2px; }

.boards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}

.bcard {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 16px 4px 12px;
  display: flex;
  flex-direction: column;
}
.bcard-wide { grid-column: 1 / -1; }

.bcard-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.bcard-icon { flex-shrink: 0; }
.bicon { display: block; width: 24px; height: 24px; }
.bi-carry { color: var(--gold); }
.bi-chain { color: var(--red); }
.bi-coaster { color: var(--orange); }
.bi-anchor { color: var(--navy); }
.bi-trend { color: var(--green); }
.bi-biggame { color: var(--gold); }
.bcard-head h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.bcard-head p { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

.blist { list-style: none; margin: 0; padding: 0; flex: 1; }
.brow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.brow:last-child { border-bottom: none; }
.brow:hover { background: var(--wash); }
.brow .avatarwrap { width: 30px; height: 30px; }
.brank {
  width: 2.4ch;
  text-align: right;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.brow:nth-child(1) .brank { color: var(--gold); font-weight: 700; }
.bname { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bname-text { font-weight: 600; }
.bname-sub { width: 100%; font-size: 12px; color: var(--ink-soft); font-family: var(--font-num); }
.bmain {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.board-toggle { margin-top: 10px; width: 100%; }

.trendcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.trendcols h4 {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 8px 0 4px;
}
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

/* ================= 球员 ================= */

.players-head h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: 16px;
}
.players-head .kicker { margin-top: 0; }

.players-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.filterrow { display: flex; flex-wrap: wrap; gap: 6px; }
.filterchip {
  border: 1px solid var(--line-strong);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--paper);
  transition: all 0.15s;
}
.filterchip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 6px 12px;
  min-width: 200px;
}
.search:focus { border-color: var(--ink); outline: none; }

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 60px;
}

.pcard {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 4px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.pcard:hover { background: var(--wash); }
.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.pcard-top .avatarwrap { width: 44px; height: 44px; }
.pcard-num {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 22px;
  color: var(--line-strong);
}
.pcard-num.big { font-size: 40px; }
.pcard-name { font-size: 16px; font-weight: 700; margin-top: 8px; padding: 0 12px; }
.pcard-avg {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 30px;
  margin-top: 4px;
  padding: 0 12px;
  font-variant-numeric: tabular-nums;
}
.pcard .spark { margin: 8px 0 4px; width: 100%; height: 34px; }
.pcard-meta { font-size: 12px; color: var(--ink-soft); font-family: var(--font-num); padding: 0 12px; }
.pcard .chips { margin-top: 8px; padding: 0 12px; }

/* ================= 赛程 ================= */

.matches-head h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: 8px;
}
.matches-head .kicker { margin-top: 0; }
.matchchips { margin: 12px 0 4px; }

.mlist { display: flex; flex-direction: column; margin-bottom: 60px; }
.mrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
  font-size: 14px;
  white-space: nowrap;
}
.mrow:hover { background: var(--wash); }
.mrow-date { width: 58px; flex-shrink: 0; font-family: var(--font-num); color: var(--ink-soft); font-size: 13px; }
.mrow-venue { flex-shrink: 0; color: var(--ink-soft); font-size: 12px; width: 30px; }
.mrow-opp { flex-shrink: 1; font-weight: 700; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.mrow-score {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.mrow-score.win { color: var(--green); }
.mrow-score.loss { color: var(--red); }
.mrow-score.draw { color: var(--ink-soft); }
.mrow-avg { flex-shrink: 0; width: 48px; font-family: var(--font-num); font-weight: 600; text-align: right; }
.mrow-pick {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 28px;
}
.mrow-pick.pick-villain { flex-grow: 1.15; }

/* ================= 球员抽屉 ================= */

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.45);
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--line-strong);
  padding: 28px 24px 40px;
  overflow-y: auto;
  animation: drawerIn 0.22s ease;
}
@keyframes drawerIn {
  from { transform: translateX(30px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

.drawer-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  background: var(--paper);
}
.drawer-close:hover { border-color: var(--ink); }

.drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  padding-right: 40px;
  border-bottom: 2px solid var(--ink);
}
.drawer-head .avatarwrap.lg { margin-top: 2px; }
.drawer-head h2 { font-family: var(--font-serif); font-weight: 900; font-size: 24px; }
.drawer-head .chips { margin-top: 6px; }
.drawer-avg {
  margin-left: auto;
  text-align: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
.drawer-avg small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.dstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 16px 0;
}
.dstat {
  background: var(--paper);
  padding: 9px 6px;
  text-align: center;
}
.dstat-k { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.dstat-v { font-family: var(--font-num); font-weight: 700; font-size: 16px; }

/* 赛事拆解 */
.percomp { display: flex; flex-wrap: wrap; gap: 8px; }
.percomp-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 3px 10px;
  font-family: var(--font-num);
  font-size: 13px;
}
.percomp-item i { font-style: normal; color: var(--ink-soft); }
.percomp-item b { font-weight: 700; }
.percomp-item u { text-decoration: none; color: var(--ink-soft); font-size: 11px; }

.drawer-sub {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 20px 0 8px;
}

.dbars { display: flex; flex-direction: column; }
.dbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.dbar:hover { background: var(--wash); }
.dbar-label { width: 118px; flex-shrink: 0; font-size: 12px; color: var(--ink-soft); font-family: var(--font-num); }
.dbar-score { width: 3.4ch; text-align: right; font-family: var(--font-num); font-weight: 700; }

/* ================= 页脚 ================= */

.foot {
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
  margin-top: 20px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 28px;
}
.foot-note { font-size: 12px; color: var(--ink-soft); max-width: 480px; }
.foot-actions { display: flex; align-items: center; gap: 14px; }
.foot-made { font-size: 12px; color: var(--ink-soft); font-style: italic; }

/* ================= 响应式 ================= */

@media (max-width: 860px) {
  .boards-grid { grid-template-columns: 1fr; }
  .mrow { gap: 10px; }
  .mrow .compbadge, .mrow-venue, .mrow-pick { display: none; }
  .mrow-opp { flex: 1; }
  .mrow-date { width: 58px; }
  .mrow-avg { text-align: left; width: auto; }
}

@media (max-width: 640px) {
  .masthead-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .masthead-side { flex-direction: row; align-items: center; }
  .verdict-quick { grid-template-columns: 1fr; }
  .qstat { flex-direction: row; justify-content: space-between; text-align: left; }
  .rname-meta { width: 100%; order: 5; margin-left: 32px; }
  .trendcols { grid-template-columns: 1fr; }
  .dstats { grid-template-columns: repeat(2, 1fr); }
  .sbwrap { padding: 20px 14px 16px; }
  .search { width: 100%; min-width: 0; }
  .pcard-top, .pcard-name, .pcard-avg, .pcard-meta, .pcard .chips { padding-left: 8px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
