/* ============================================================
   MATCHDAY / 赛况台 — 体育赛事门户主题
   基于 sports-arena 静态稿
   ============================================================ */

:root {
  --bg: #0a0d12;
  --bg-2: #0e131a;
  --panel: #141b25;
  --panel-2: #1a2330;
  --panel-3: #22303f;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);

  --txt: #eaf0f7;
  --txt-2: #9fb0c4;
  --txt-3: #8496aa;

  --volt: #c6f24e;
  --on-accent: #0a0d12;
  --bb: #ff6b2c;
  --fb: #2ed3a7;
  --live: #e01e46;
  --live-2: #ff5c78;

  /* 下面这些由 theme.css 的 body[data-skin] 覆盖，这里只留深色默认值 */
  --head-bg: rgba(10, 13, 18, .92);
  --hover-wash: rgba(255, 255, 255, .03);
  --stripe: rgba(255, 255, 255, .05);
  --stripe-faint: rgba(255, 255, 255, .02);
  --accent-wash: rgba(198, 242, 78, .13);
  --shadow: 0 8px 24px rgba(0, 0, 0, .4);
  --on-media: #fff;
  --on-media-dim: rgba(255, 255, 255, .74);
  --media-overlay-strong: rgba(10, 13, 18, .92);
  --media-overlay-mid: rgba(10, 13, 18, .55);
  --play-bg: rgba(10, 13, 18, .45);
  --banner-ctrl-bg: rgba(20, 27, 37, .94);
  --ph-ink: rgba(255, 255, 255, .36);
  --ph-mark: rgba(255, 255, 255, .10);

  --f-display: "Barlow Condensed", "Oswald", "Arial Narrow",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --pad: clamp(16px, 4vw, 44px);
  --maxw: 1320px;
}

* { box-sizing: border-box }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { display: block; max-width: 100% }
a { color: inherit }
ul, ol { list-style: none; margin: 0; padding: 0 }
h1, h2, h3, h4 { margin: 0 }

:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--volt);
  color: var(--on-accent);
  padding: 10px 18px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px }

/* ---------- 排版基元 ---------- */

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: .005em;
  text-wrap: balance;
}

.score {
  font-family: var(--f-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- 实时比分条 ---------- */

.scorebug {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.scorebug-inner { display: flex; align-items: stretch; padding-inline: 0 }
.scorebug-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--live);
  color: var(--on-media);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.tick { width: 9px; height: 9px; border-radius: 50%; background: var(--on-media); flex: 0 0 auto }
/* 一条进行中都没有时，条子里是「即将开始 / 最近完赛」：徽标换中性色，别拿直播红冒充直播 */
.scorebug-label.is-idle { background: var(--panel-3); color: var(--txt) }
.scorebug-label.is-idle .tick { background: var(--volt) }
.scorebug-view {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-3) transparent;
}
.scorebug-view::-webkit-scrollbar { height: 5px }
.scorebug-view::-webkit-scrollbar-thumb { background: var(--panel-3) }
.scorebug-track {
  display: flex;
  width: max-content;
  animation: bug-roll 32s linear infinite;
}
.scorebug-view:hover .scorebug-track,
.scorebug-view:focus-within .scorebug-track { animation-play-state: paused }
.bug-dup { display: flex }
@keyframes bug-roll { to { transform: translateX(-50%) } }

.bug {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.bug:hover { background: var(--panel) }
.bug .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto }
.bug .dot.bb { background: var(--bb) }
.bug .dot.fb { background: var(--fb) }
.bug .dot.live { background: var(--live); animation: pulse 1.5s infinite }
.bug .sc { font-size: 17px; color: var(--volt) }
.bug .clk { color: var(--txt-3); font-size: 12px }
.bug .teams { font-weight: 600 }

@keyframes pulse { 50% { opacity: .2 } }

/* ---------- 页头 ---------- */

.site-head {
  background: var(--head-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 70px }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
.logo-mark {
  width: 24px; height: 24px;
  background: var(--volt);
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 22% 100%, 0 38%);
  flex: 0 0 auto;
}

.nav { margin-left: auto }
.nav-list { display: flex; gap: 2px }
.nav-list li { flex: 0 0 auto }
.nav-list a {
  display: block;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--txt-2);
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--txt); background: var(--panel) }
.nav-list a[aria-current="true"] { color: var(--txt); border-bottom-color: var(--volt) }

/* 导航下拉 */
.nav-drop { position: relative }
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 15px;
  /* button 默认 line-height:normal，盒高比相邻链接矮 7px 左右，导致文字偏上；跟随 body 的 1.6 保持一致 */
  line-height: inherit;
  height: 100%;
  white-space: nowrap;
  color: var(--txt-2);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.nav-drop-btn:hover { color: var(--txt); background: var(--panel) }
.nav-arrow { font-size: 10px; transition: transform .2s }
.nav-drop[aria-expanded="true"] .nav-arrow { transform: rotate(180deg) }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  z-index: 40;
  padding: 4px 0;
}
.nav-drop[aria-expanded="true"] .nav-drop-menu { display: block }
.nav-drop-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 0;
}
.nav-drop-menu a:hover { background: var(--panel-2) }
.nav-drop-menu li { flex: none }

.head-live {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 700;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.head-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.5s infinite }
.head-live b { font-family: var(--f-display); font-size: 19px; color: var(--volt) }

.nav-toggle { display: none }

/* ---------- 分区骨架 ---------- */

.sec { padding-block: clamp(34px, 5vw, 62px); border-top: 1px solid var(--line) }
.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-head h2::before {
  content: "";
  width: 6px;
  height: .92em;
  background: var(--volt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 0 100%);
}
.sec-note { font-size: 13px; color: var(--txt-3) }
.sec-more {
  margin-left: auto;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--volt);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.sec-more:hover { background: var(--volt); color: var(--on-accent); border-color: var(--volt) }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
  min-width: 0;
}
.panel-top {
  height: 3px;
  background: linear-gradient(90deg, var(--volt), transparent 62%);
}
.panel-top.c-bb { background: linear-gradient(90deg, var(--bb), transparent 62%) }
.panel-top.c-fb { background: linear-gradient(90deg, var(--fb), transparent 62%) }
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-title h3 { font-size: 22px }

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  background: var(--panel-3);
  color: var(--txt-2);
}
.tag-bb { color: var(--bb); background: color-mix(in srgb, var(--bb) 14%, transparent) }
.tag-fb { color: var(--fb); background: color-mix(in srgb, var(--fb) 14%, transparent) }
.tag-live { color: var(--on-media); background: var(--live) }
.tag-volt { color: var(--on-accent); background: var(--volt) }

/* ---------- 直播中心 ---------- */

.live-hero { display: grid; gap: 14px }
.live-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 14px;
}
.live-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lfeature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 4px;
  padding: clamp(15px, 1.7vw, 22px);
  background:
    radial-gradient(115% 130% at 6% 0%, var(--accent-wash), transparent 58%),
    var(--panel);
  border: 1px solid var(--line-2);
}
.lfeature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, var(--stripe) 0 1px, transparent 1px 10px);
}
.lfeature > * { position: relative; z-index: 1 }
.lf-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.lf-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--live);
  color: var(--on-media);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  padding: 5px 13px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.lf-ribbon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on-media); animation: pulse 1.5s infinite }

.lf-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  margin: clamp(14px, 2vw, 24px) 0 clamp(12px, 1.7vw, 20px);
}
.lf-team { display: grid; justify-items: center; gap: 10px; min-width: 0 }
.crest.xl { width: clamp(40px, 3.6vw, 56px); height: clamp(40px, 3.6vw, 56px); font-size: clamp(19px, 1.8vw, 27px) }
.lf-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.9vw, 27px); line-height: 1.14; text-align: center }
.lf-score { display: flex; align-items: baseline; gap: 8px; font-size: clamp(38px, 4.4vw, 64px); line-height: .9; color: var(--txt-2) }
.lf-score .colon { color: var(--txt-3); font-size: .5em }
.lf-score .is-lead { color: var(--volt) }
.lf-vs {
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: .08em;
  color: var(--txt-3);
}

.lf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt-2);
}
.lf-cta {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--on-accent);
  background: var(--volt);
  padding: 7px 17px;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.lf-cta:hover { background: var(--txt) }

/* 推荐位轮播 */
.lbanner {
  position: relative;
  min-width: 0;
  min-height: clamp(180px, 15vw, 250px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
}
.bslide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
}
.bslide.is-on { visibility: visible; opacity: 1 }
.bslide.is-on img { animation: b-enter .5s ease }
.bslide img { width: 100%; height: 100%; object-fit: cover; display: block }
@keyframes b-enter {
  from { transform: scale(1.045) }
  to { transform: scale(1) }
}
.bcap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 54px 9px 11px;
  background: var(--panel-2);
}
.bttl { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 14px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bslide:hover .bttl { color: var(--volt) }

/* Banner 缺省占位 */
.bslide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      var(--stripe-faint) 20px,
      var(--stripe-faint) 40px
    ),
    linear-gradient(135deg, var(--panel-2) 0%, var(--panel-3) 100%);
}
.bslide-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.bslide-placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--txt-3);
  opacity: .5;
}
.bslide-placeholder-text {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--txt-2);
  letter-spacing: .05em;
}
.bslide-placeholder-hint {
  font-size: 13px;
  color: var(--txt-3);
}
.bslide-placeholder:hover .bslide-placeholder-icon { color: var(--volt); opacity: .8 }
.bslide-placeholder:hover .bslide-placeholder-text { color: var(--volt) }

.bbtns {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  background: var(--banner-ctrl-bg);
  border: 1px solid var(--line-2);
}
.bbtn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--txt);
  cursor: pointer;
}
.bbtn:last-child { border-right: 0 }
.bbtn:hover { background: var(--panel-3) }
.ico { display: block; width: 8px; height: 8px }
.ico.prev { border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) }
.ico.next { border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg) }
.ico.pause { width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor }
[data-bstop].is-paused .ico.pause {
  width: 0;
  height: 0;
  border: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: none;
}
.bdots {
  position: absolute;
  right: 11px;
  bottom: 11px;
  display: flex;
  gap: 5px;
}
.bdot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--txt-2);
  background: none;
  cursor: pointer;
}
.bdot[aria-current="true"] { background: var(--volt); border-color: var(--volt) }

.lcard {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 15px 16px 13px;
}
.lcard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--volt);
}
.lcard.is-bb::before { background: var(--bb) }
.lcard.is-fb::before { background: var(--fb) }
.lcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lstat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--txt-2) }
.lstat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--txt-3); flex: 0 0 auto }
.lstat.is-live { color: var(--live-ink) }
.lstat.is-live .dot { background: var(--live); animation: pulse 1.5s infinite }

.lcard-teams { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.lcard-teams li { display: flex; align-items: center; gap: 10px; min-width: 0 }
.crest {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--panel-3);
  color: var(--txt);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  clip-path: polygon(0 0, 100% 0, 100% 66%, 50% 100%, 0 66%);
}
img.crest { display: block; object-fit: cover }
.lcard .nm { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lcard .sc { font-size: 23px; color: var(--txt-2) }
.lcard .sc.is-lead { color: var(--volt) }
/* 未开赛：比分位显示小号 VS，不再用占位横线 */
.lcard .sc.is-vs { font-size: 13px; font-weight: 700; color: var(--txt-3); letter-spacing: .08em }

.lcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--txt-3);
}
.lcard-cta {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--volt);
  text-decoration: none;
  border: 1px solid var(--volt);
  padding: 4px 12px;
  white-space: nowrap;
}
.lcard-cta:hover { background: var(--volt); color: var(--on-accent) }

/* 整卡可点：绝对定位的透明热区铺满卡片，点任意位置都进详情；
   「看比赛」按钮抬到热区之上，hover / 键盘焦点保持原样 */
.card-hit {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
}
.lf-cta, .lcard-cta { position: relative; z-index: 4 }
.lfeature:hover, .lcard:hover { border-color: color-mix(in srgb, var(--volt) 38%, transparent) }
.lfeature:has(.lf-cta:focus-visible), .lcard:has(.lcard-cta:focus-visible) {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}

/* ---------- 赛程板 ---------- */

.board-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
  align-items: start;
}
.day-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
}
.day-head span { font-family: var(--f-body); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--txt-3) }

/* 赛程行两列铺：本站只有足球一栏，单列通铺一行横跨整屏太空旷；
   两列后行高不变、一屏能扫的比赛翻倍，窄屏自动收一列 */
.board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 列间竖线 + 行间横线，最后一行不留底线（奇数条时右格空着，左格仍收边） */
.board-list .fx:nth-child(odd) { border-right: 1px solid var(--line) }
.board-list .fx:nth-last-child(-n+2):nth-child(odd),
.board-list .fx:nth-last-child(-n+2):nth-child(even) { border-bottom: 0 }
.board-list .fx:last-child { border-bottom: 0 }

.fx {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .15s;
  min-width: 0;
}
.fx:last-child { border-bottom: 0 }
.fx:hover { background: var(--panel-2) }
.fx-time { font-size: 18px; color: var(--txt-2) }
.fx.is-live .fx-time { color: var(--live-ink) }
.fx-main { min-width: 0 }
.fx-teams { font-weight: 600; font-size: 15px; line-height: 1.35 }
.fx-teams .sep { color: var(--txt-3); margin: 0 6px; font-weight: 400 }
/* 队徽：20px 圆底，logo 透明底也能看清；加载失败自动露出首字 */
.fx-team { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle }
.fx-crest-wrap {
  position: relative;
  flex: 0 0 20px;
  width: 20px; height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-2, rgba(0, 0, 0, .06));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.fx-crest-init { font-size: 11px; font-weight: 700; color: var(--txt-3); line-height: 1 }
.fx-crest { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.fx-sub { display: flex; gap: 8px; align-items: center; margin-top: 5px; font-size: 12px; color: var(--txt-3) }
.fx-right { text-align: right }
.fx-score { font-size: 22px; color: var(--volt) }
.fx.is-up .fx-score { color: var(--txt-3) }
.fx-cta { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--volt) }

/* ---------- 欧国联人物（静态档案板块） ---------- */
/* 格线用 1px 透明槽 + 格子实底模拟：不用 nth-child 边框，换列数（响应式）也不会断线 */
.ppl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.ppl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 18px 10px 14px;
  background: var(--panel);
  text-align: center;
  min-width: 0;
}
.ppl-ava {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 4px;
}
.ppl-ava-init { font-weight: 700; font-size: 19px; color: var(--txt-3) }
.ppl-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ppl-name { font-weight: 700; font-size: 15px }
.ppl-en { font-size: 11px; color: var(--txt-3); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
.ppl-meta { font-size: 12px; color: var(--txt-3) }
.ppl-note { font-size: 12px; color: var(--txt-2) }

/* 近期战绩的胜 / 平 / 负小圆片（跟在 .who small 里） */
.form { display: inline-flex !important; gap: 4px; align-items: center }
.form i {
  font-style: normal;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
}
.form .fw { background: color-mix(in srgb, var(--fb) 18%, transparent); color: var(--fb) }
.form .fd { background: color-mix(in srgb, var(--txt-3) 18%, transparent); color: var(--txt-3) }
.form .fl { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live) }

/* ---------- 数据榜 ---------- */

.rank-cols {
  display: grid;
  /* 自动铺列：只有一块（接口没返回另一块 / 本站只出足球榜）时撑满整行，不留半屏空白 */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}
/* 两块等高：积分榜表格与得分榜列表各自撑满面板，行高随最高的一块走 */
.rank-cols > .panel { display: flex; flex-direction: column; min-width: 0 }
.rank-cols > .panel .table-scroll { flex: 1 }
.rank-cols > .panel .ranks { flex: 1; display: flex; flex-direction: column; justify-content: space-between }
.rank-cols > .panel .ranks li { flex: 1 }
.table-scroll { overflow-x: auto; min-width: 0; scrollbar-width: thin }
table.stand { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14px }
table.stand caption { text-align: left; padding: 12px 18px; font-size: 12px; color: var(--txt-3) }
table.stand th {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--txt-2);
  text-align: right;
  padding: 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
  white-space: nowrap;
}
table.stand th:first-child, table.stand th:nth-child(2) { text-align: left }
table.stand td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.stand td:first-child, table.stand td:nth-child(2) { text-align: left }
table.stand tbody tr:last-child td { border-bottom: 0 }
table.stand tbody tr:hover { background: var(--panel-2) }
.st-rank { font-size: 18px; color: var(--txt-3); width: 40px }
.st-team { font-weight: 600 }
.st-team small { display: block; font-weight: 400; font-size: 11px; color: var(--txt-3) }
.st-pts { font-size: 20px; color: var(--volt) }
tr.is-qual td:first-child { box-shadow: inset 3px 0 0 var(--fb) }
tr.is-play td:first-child { box-shadow: inset 3px 0 0 var(--bb) }
tr.is-drop td:first-child { box-shadow: inset 3px 0 0 var(--live) }

.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 18px; font-size: 12px; color: var(--txt-2); border-top: 1px solid var(--line) }
.legend i { width: 10px; height: 10px; display: inline-block; margin-right: 6px }
.legend .q { background: var(--fb) }
.legend .p { background: var(--bb) }
.legend .d { background: var(--live) }

/* 球员榜 */
.ranks li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.ranks li:last-child { border-bottom: 0 }
.ranks li:hover { background: var(--panel-2) }
.ranks .rk { font-size: 20px; color: var(--txt-3) }
.ranks li:nth-child(-n+3) .rk { color: var(--volt) }
.ranks .who { font-weight: 600; font-size: 15px }
.ranks .who small { display: block; font-weight: 400; font-size: 12px; color: var(--txt-3) }
.ranks .val { font-size: 22px; color: var(--txt) }
.ranks .val i { font-style: normal; font-size: 12px; color: var(--txt-3); margin-left: 4px }

/* ---------- 集锦墙 ---------- */

/* 集锦墙：4 列小卡，图片在上（4:3 裁切），标题放在图片下方 */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vid {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .15s;
}
.vid:hover { border-color: rgba(198, 242, 78, .5) }
.vid-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2) }
.vid-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.vid-body { padding: 10px 12px 12px; color: var(--txt) }
.vid-body h3 { font-size: 14px; line-height: 1.45; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.vid-body h3 a { text-decoration: none; color: inherit }
.vid-body h3 a:hover { color: var(--volt) }
.vid-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 11px; color: var(--txt-3) }
.play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.play span.tri {
  width: 52px; height: 52px;
  border: 2px solid var(--txt);
  background: var(--play-bg);
  display: grid;
  place-items: center;
  color: var(--on-media);
  font-size: 16px;
  padding-left: 4px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.play:hover span.tri { background: var(--volt); border-color: var(--volt); color: var(--on-accent) }

/* ---------- 赛事回放（剧场卡：16:9 大图 + 卡内底栏；和集锦的 4 列小卡、资讯的列表行分开） ---------- */

/* flex + 上限宽度：条数少的时候（现在只有 1~2 条）卡片不会被拉成整屏那么宽 */
.replay-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
/* 只有 1~2 条时居中，避免一张卡挂左边、右半屏空着 */
.replay-shelf--center { justify-content: center }
.replay-card {
  flex: 1 1 400px;
  max-width: 640px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.replay-card:hover { border-color: color-mix(in srgb, var(--volt) 42%, transparent); transform: translateY(-2px) }
.replay-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-2) }
.replay-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
/* 播放键：圆形，压在画面正中；悬停换成强调色 */
.replay-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center }
.replay-play::before {
  content: "▶";
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 4px;
  font-size: 18px;
  color: #fff;
  background: rgba(8, 12, 18, .58);
  border: 1px solid rgba(255, 255, 255, .6);
  transition: background .15s, border-color .15s, color .15s;
}
.replay-card:hover .replay-play::before { background: var(--volt); border-color: var(--volt); color: var(--on-accent) }
.replay-badge {
  position: absolute;
  left: 10px; top: 10px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--volt);
  color: var(--on-accent);
}
.replay-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px 14px }
.replay-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--txt);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.replay-card:hover .replay-title { color: var(--volt) }
.replay-meta { flex: none; font-size: 12px; color: var(--txt-3) }
@media (max-width: 620px) {
  .replay-shelf { grid-template-columns: minmax(0, 1fr) }
}

/* ---------- 赛事回顾 ---------- */

.review-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 0 34px;
}
@media (max-width: 620px) {
  .review-cols { grid-template-columns: minmax(0, 1fr) }
  .lf-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .lf-score { grid-column: 1 / -1; order: -1; justify-content: center }
  .crest.xl { width: 46px; height: 46px; font-size: 22px }
  .lf-cta { font-size: 17px }
}
.review-list { list-style: none; margin: 0; padding: 0; min-width: 0 }
.review-list li + li { border-top: 1px solid var(--line) }
.review-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  text-decoration: none;
}
.review-list a:hover { background: var(--bg-2) }
.rv-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--volt);
  text-align: right;
  line-height: 1.3;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.rv-meta { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--txt-3); margin-bottom: 8px }
/* 20px + 关掉全局的 text-wrap:balance：balance 会把多行标题压成两行等宽（右侧留大片空白），
   这里改回贪婪填满，第一行一直排到列宽放不下才换行 */
.review-list h3 { font-size: 20px; line-height: 1.35; text-wrap: initial }
.review-list a:hover h3 { color: var(--volt) }
.rv-body p { margin: 7px 0 0; font-size: 14px; line-height: 1.6; color: var(--txt-2) }

/* ---------- 资讯流 ---------- */

.news-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 28px;
}
.news-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.news-item:hover h4 { color: var(--volt) }
/* 整卡可点的视觉反馈：悬停描边 + 底色微亮 */
.news-item:hover { background: var(--hover-wash); border-bottom-color: color-mix(in srgb, var(--volt) 35%, transparent) }
.news-lead:hover { border-color: color-mix(in srgb, var(--volt) 38%, transparent) }
.news-lead:hover h3 a { color: var(--volt) }
.news-item img { width: 92px; height: 66px; object-fit: cover; border: 1px solid var(--line-2) }
/* 缺省封面：标题哈希色相渐变 + 首字，占住和缩略图一样的格子 */
.news-item .ph {
  width: 92px;
  height: 66px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1;
  color: var(--ph-ink);
  user-select: none;
}
.news-item h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.18;
  transition: color .15s;
}
.news-item .meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--txt-3) }

/* 首页资讯流：一个板块铺两列，行比内页紧凑（标题两行 + 一句简介 + 日期） */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  column-gap: 26px;
  padding: 4px 18px;
}
.news-grid .news-item,
.news-grid .news-item:last-child {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.news-grid .news-item img,
.news-grid .news-item .ph { width: 96px; height: 64px }
.news-grid .news-item h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-grid .news-item .sum {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--txt-3);
}
.news-grid .news-item .meta { margin-top: 6px; font-size: 11px }

.news-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}
.news-lead { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px; border: 1px solid var(--line) }
.news-lead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1 }
/* 头条缺省封面：整块铺渐变，首字当水印 */
.news-lead > .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: clamp(72px, 12vw, 150px);
  line-height: 1;
  color: var(--ph-mark);
  user-select: none;
}
/* 头条大图不压暗：去掉整卡渐变遮罩，标题靠文字阴影保证可读 */
.news-lead .lb { position: relative; z-index: 2; padding: clamp(18px, 2.6vw, 28px); color: var(--on-media) }
.news-lead h3 { font-size: clamp(24px, 3.2vw, 38px); margin: 10px 0 8px }
.news-lead h3 a { text-decoration: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .45) }
.news-lead h3 a:hover { text-decoration: underline; text-underline-offset: 3px }
.news-lead p { margin: 0; font-size: 14px; color: var(--on-media-dim); max-width: 52ch; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .45) }

.hot-list li + li { border-top: 1px solid var(--line) }
.hot-list a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  text-decoration: none;
}
.hot-list a:hover { background: var(--panel-2) }
.hot-list .no { font-size: 22px; color: var(--txt-3); flex: 0 0 26px }
.hot-list li:nth-child(-n+3) .no { color: var(--live-ink) }
.hot-list .t { font-size: 15px; font-weight: 600; line-height: 1.4 }
.hot-list .m { display: block; margin-top: 4px; font-size: 12px; color: var(--txt-3); font-weight: 400 }

/* ---------- 热门标签 ---------- */

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags-cloud a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-2);
  text-decoration: none;
  transition: all .15s;
}
.tags-cloud a:hover {
  color: var(--on-accent);
  background: var(--volt);
  border-color: var(--volt);
}

/* ---------- 页脚 ---------- */

.site-foot {
  margin-top: auto;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: 36px 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.foot-brand p { font-size: 13px; color: var(--txt-3); margin: 12px 0 0 }
/* 友情链接整块靠右：列贴右缘，标题和链接胶囊右对齐；
   列宽由内容决定（auto 列），链接太多时在 420px 内换行，不参与百分比定宽（auto 列里百分比会被压扁） */
.foot-col { justify-self: end; text-align: right }
.foot-col h4 { font-size: 15px; margin-bottom: 12px; color: var(--txt) }
.flinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 9px;
  max-width: 420px;
}
.flinks a {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--txt-2);
  text-decoration: none;
}
.flinks a:hover { color: var(--on-accent); background: var(--volt); border-color: var(--volt) }
.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 12px;
  color: var(--txt-3);
}
.foot-bar a { color: var(--txt-3); text-decoration: none; border-bottom: 1px solid var(--line-2) }
.foot-bar a:hover { color: var(--volt); border-bottom-color: var(--volt) }

/* ---------- 返回顶部 ---------- */

.md-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  color: var(--volt);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.md-to-top.is-visible { opacity: 1; visibility: visible; transform: none }
.md-to-top:hover { background: var(--volt); color: var(--on-accent); border-color: var(--volt) }

/* ---------- 响应式 ---------- */

@media (max-width: 1040px) {
  .rank-cols, .news-top { grid-template-columns: 1fr }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .head-live { display: none }
}

@media (max-width: 880px) {
  .head-inner { flex-wrap: wrap; padding-block: 10px }
  .nav-toggle {
    display: block;
    margin-left: auto;
    font: inherit;
    font-weight: 700;
    background: var(--panel);
    color: var(--txt);
    border: 1px solid var(--line-2);
    padding: 8px 14px;
    cursor: pointer;
  }
  .nav { margin-left: 0; flex-basis: 100%; display: none }
  .nav.is-open { display: block }
  .nav-list { flex-direction: column }
  .nav-list a { border-bottom: 1px solid var(--line) }
  .nav-drop { position: static }
  .nav-drop-btn { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line) }
  .nav-drop-menu {
    position: static;
    border: 0;
    box-shadow: none;
    background: var(--panel-2);
    padding: 0;
  }
  .nav-drop-menu a { padding-left: 28px }
}

@media (max-width: 720px) {
  body { font-size: 15px }
  .sec-more { margin-left: 0 }
  /* 赛程板窄屏收成单列；桌面两列的竖线 / 「最后两行去底线」在这里全部还原，只留行间横线 */
  .board-list { grid-template-columns: 1fr }
  .board-list .fx:nth-child(odd) { border-right: 0 }
  .board-list .fx:nth-last-child(-n+2):nth-child(odd):not(:last-child),
  .board-list .fx:nth-last-child(-n+2):nth-child(even):not(:last-child) { border-bottom: 1px solid var(--line) }
  /* 行内布局：时间收窄，比分和「看直播 / 预约」落到第二行横排，按钮做成描边胶囊，点按目标更大 */
  .fx { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 10px; padding: 12px 14px }
  .fx-time { font-size: 16px }
  .fx-right { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left }
  .fx-score { font-size: 17px }
  .fx-cta { display: inline-block; margin-top: 0; padding: 3px 12px; border: 1px solid currentColor; border-radius: 999px; line-height: 1.5 }
  /* 人物档案窄屏两列，卡片不至于挤 */
  .ppl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .ppl { padding: 14px 8px 12px }
  .ppl-ava { width: 46px; height: 46px; font-size: 17px }
  table.stand { font-size: 13px }
  .mosaic { grid-template-columns: 1fr }
  .news-cols { gap: 0 }
  .foot-grid { grid-template-columns: 1fr }
  .lcard .sc { font-size: 20px }
  .live-top, .live-stack { grid-template-columns: minmax(0, 1fr) }
  .lbanner { min-height: 0; width: 100%; aspect-ratio: 16 / 9; max-height: 200px }
  .review-list a { grid-template-columns: 50px minmax(0, 1fr); gap: 11px }
  .rv-score { font-size: 16px; padding-right: 9px }
  .review-list h3 { font-size: 18px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .scorebug-track { animation: none }
  .scorebug-view { overflow-x: auto }
  .bug .dot.live, .head-live .dot, .lstat.is-live .dot, .lf-ribbon .dot { animation: none }
}
