/* ============================================================
   乒乓世界 · 首页「赛程中心」（.hub）
   ------------------------------------------------------------
   P1-C v2（2026-10-30 用户反馈改版）：
   三个 tab → 两个 tab；每屏一张大卡，卡内同时呈现
   「赛事 · 阶段 · 对阵双方 · 本场里程碑」。

   ⚠️ 独立文件，不依赖 v2.css：
      v2.css 的 main { padding-top } 会破坏首页全屏 hero。
   所有类名以 .hub / .match-card 开头，避免与 home.css / v2.css 撞车。
   ============================================================ */

.hub {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-7);
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(255, 92, 26, 0.08), transparent 60%),
    var(--bg-0);
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------
   头部：标题 + 新鲜度
   ------------------------------------------------------------ */
.hub__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.hub__head h2 {
  margin-top: var(--sp-3);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hub__fresh {
  max-width: 420px;
  text-align: right;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-1);
}

.hub__fresh strong {
  color: var(--text-0);
  font-weight: 600;
}

.hub__fresh.is-warn strong {
  color: var(--brand);
}

/* ------------------------------------------------------------
   Tabs
   ------------------------------------------------------------ */
.hub__tabs {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.hub__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 2px;
  border: 0;
  background: none;
  color: var(--text-1);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.hub__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.hub__tab:hover,
.hub__tab:focus-visible {
  color: var(--text-0);
}

.hub__tab.is-active {
  color: var(--text-0);
}

.hub__tab.is-active::after {
  transform: scaleX(1);
}

.hub__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   面板 / 舞台 / 轨道
   ------------------------------------------------------------ */
.hub__viewport {
  position: relative;
}

/* 男单 / 女单 子 tab */
.hub__genders {
  display: flex;
  gap: 8px;
  margin-bottom: var(--sp-4);
}

.hub__gender {
  padding: 6px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.hub__gender:hover {
  color: var(--text-0);
  border-color: var(--brand);
}

.hub__gender.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-hot);
}

.hub__gender:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hub__panel[hidden] {
  display: none;
}

.hub__stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  /* 横向手势交给 JS 切换卡片，纵向仍可滚动页面 */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.hub__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hub__slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* ------------------------------------------------------------
   比赛大卡
   ------------------------------------------------------------ */
.match-card {
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  min-height: 360px;
  padding: clamp(20px, 2.8vw, 32px);
  background:
    radial-gradient(720px 260px at 82% -12%, rgba(255, 92, 26, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg-1), rgba(8, 8, 10, 0.92));
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* 头部：赛事 + 阶段 */
.match-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.match-card__head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 实时赛果徽标：与归档赛果区分 */
.match-card__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 92, 26, 0.55);
  background: rgba(255, 92, 26, 0.08);
  color: var(--brand-hot);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.match-card__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-hot);
  box-shadow: 0 0 6px rgba(255, 92, 26, 0.8);
}

.match-card__event {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--text-0);
  line-height: 1.4;
}

.match-card__event small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
}

/* 比赛时间：居中、放大、提亮（2026-10-31 用户反馈：原来在左上角 12px 灰字太不显眼） */
.match-card__when {
  margin-top: calc(-1 * var(--sp-1));
  text-align: center;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--brand-hot);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 92, 26, 0.35);
}

.match-card__stage {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-hot);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-card__stage--live {
  background: var(--accent-soft);
  color: var(--accent);
}

/* 主对阵 */
.match-card__main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: 980px; /* 信息往中间收，左右留白对称 */
  margin: 0 auto;
}

.match-card__side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  align-items: flex-end; /* 左列靠中间 */
  text-align: right;
}

.match-card__side.is-right {
  align-items: flex-start;
  text-align: left;
}

.match-card__who {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  min-width: 0;
  max-width: 100%;
}

.match-card__avatar {
  flex: 0 0 auto;
  width: clamp(84px, 8vw, 120px);
  height: clamp(84px, 8vw, 120px);
  border-radius: 50%;
  overflow: hidden;
  /* WTT 头像是透明背景 PNG：背景要比卡片亮一档，头发才不会糊进背景 */
  background: radial-gradient(circle at 50% 36%, #32323e 0%, #23232d 62%, #16161d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 无头像 / 加载失败：首字母占位，保持左右对阵区对称 */
.match-card__avatar.is-empty::after {
  content: attr(data-initial);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: 0;
}

.match-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* 各照片头顶留白不同，顶部对齐最稳 */
  display: block;
  /* 透明 PNG 的 alpha 边界描一圈极淡的白光，头发与背景就分开了 */
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.3));
}

.match-card__name {
  color: var(--text-0);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  /* 名字永远单行：一侧两行会让左右比分高低错位（2026-10-31 反馈） */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.match-card__name:hover {
  color: var(--brand-hot);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.match-card__org {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-2);
}

.match-card__score {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.match-card__side.is-winner .match-card__score {
  color: var(--brand);
}

.match-card__side.is-winner .match-card__name {
  color: var(--text-0);
}

.match-card__vs {
  align-self: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-2);
  text-transform: uppercase;
}

/* 逐局比分（2026-11-02）：大比分下面一行，胜负局用不同颜色 */
.match-card__games {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  margin-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}

.match-card__games-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-2);
  text-transform: uppercase;
}

.match-card__game {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text-2);
}

.match-card__game b {
  font-weight: 500;
}

.match-card__game b.is-win {
  color: var(--text-0);
  font-weight: 700;
}

.match-card__game i {
  font-style: normal;
  opacity: 0.45;
}

/* 里程碑区 */
.match-card__ms {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.match-card__ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.match-card__ms-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.match-card__ms-note {
  font-size: 11px;
  color: var(--text-2);
}

.match-card__ms-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.ms-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ms-col__player {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
}

.ms-col__h2h {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}

.ms-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 里程碑条目与生涯摘要同块显示（2026-10-31 反馈：不再一条一个卡片） */
.ms-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 1px 0;
  border: 0;
  background: none;
}

.ms-item::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-1);
  transform: translateY(-2px);
}

.ms-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-1);
}

.ms-item__sub {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-2);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

/* 本场达成：橙色圆点 + 文字，和「进度」区分开 */
.ms-item.is-achieved::before {
  background: var(--brand);
}

.ms-item.is-achieved p {
  color: var(--brand);
  font-weight: 600;
}

/* 赛前雷达条目保持原卡片样式（尚未开赛，信息更长） */
.ms-item.is-radar {
  display: block;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.ms-item.is-radar::before {
  display: none;
}

.ms-item.is-radar p {
  font-size: clamp(13px, 1.4vw, 14px);
  line-height: 1.45;
  color: var(--text-0);
}

.ms-item.is-radar span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.ms-cond {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.ms-cond--prob {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
}

/* 赛前雷达的达成概率（2026-11-03 Wave 2） */
.ms-prob {
  color: var(--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ms-col__empty {
  margin: 0;
  font-size: 12px;
  color: var(--text-2);
}

/* 底部信息 */
.match-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.match-card__foot b {
  color: var(--text-1);
  font-weight: 600;
}

/* ------------------------------------------------------------
   底部：箭头 + dots
   ------------------------------------------------------------ */
.hub__deck-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: var(--sp-4);
}

.hub__dots {
  display: flex;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.hub__dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.hub__dot[aria-current="true"] {
  background: var(--brand);
}

.hub__arrow {
  position: absolute;
  /* viewport 顶部 = 性别子 tab 顶部；约 48px 后才是卡片，再指向对阵区中心 */
  top: 190px;
  transform: translateY(-50%);
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text-0);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.hub__arrow--prev {
  left: 18px;
}

.hub__arrow--next {
  right: 18px;
}

.hub__arrow:hover {
  color: var(--brand-hot);
  border-color: var(--brand);
  background: rgba(20, 12, 8, 0.9);
  transform: translateY(-50%) scale(1.06);
}

.hub__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   空 / 错状态
   ------------------------------------------------------------ */
.hub__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 300px;
  padding: var(--sp-6);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--text-1);
  text-align: center;
}

.hub__empty p {
  margin: 0;
  font-size: 15px;
}

.hub__empty small {
  color: var(--text-2);
  font-size: 12px;
}

.hub__retry {
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-0);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.hub__retry:hover {
  background: var(--bg-2);
}

.hub__skeleton {
  min-height: 460px;
  border-radius: 20px;
  background: linear-gradient(
    100deg,
    var(--bg-1) 30%,
    var(--bg-2) 45%,
    var(--bg-1) 60%
  );
  background-size: 300% 100%;
  animation: hubShimmer 1.4s ease-in-out infinite;
}

@keyframes hubShimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

/* 赛后达成横条（有事件时置顶提示） */
.hub__news {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.hub__news-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  align-self: center;
}

.hub__news-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(255, 92, 26, 0.25);
  font-size: 12px;
  color: var(--text-0);
}

.hub__news-item b {
  font-weight: 700;
}

.hub__news-item span {
  color: var(--brand-hot);
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hub {
    padding: var(--sp-8) 0 var(--sp-7);
  }

  .hub__head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-3);
  }

  .hub__fresh {
    text-align: left;
    max-width: none;
  }

  .match-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .match-card__main {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    text-align: left;
  }

  .match-card__main {
    max-width: none;
  }

  .match-card__side,
  .match-card__side.is-right {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
  }

  /* 移动端统一：头像在左、名字在后、比分靠右 */
  .match-card__side.is-right .match-card__who {
    flex-direction: row-reverse;
  }

  .match-card__score {
    margin-left: auto;
  }

  .match-card__vs {
    display: none;
  }

  .match-card__score {
    font-size: 1.6rem;
  }

  .match-card__avatar {
    width: 72px;
    height: 72px;
  }

  .match-card__name {
    font-size: 1.15rem;
  }

  .match-card__side,
  .match-card__side.is-right {
    gap: 8px;
  }

  .match-card__ms-cols {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  /* 单列时两名球员的信息块之间加分隔，避免两段生涯摘要连在一起 */
  .ms-col + .ms-col {
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
  }

  /* 移动端：箭头常驻在 dots 两侧，同时支持左右滑动 */
  .hub__arrow {
    position: static;
    transform: none;
    width: 42px;
    height: 42px;
    font-size: 22px;
    background: transparent;
    backdrop-filter: none;
  }

  .hub__arrow:hover {
    transform: scale(1.06);
  }

  .hub__dots {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .match-card {
    padding: var(--sp-5) var(--sp-4);
  }

  .match-card__head {
    flex-direction: column;
  }

  .match-card__name {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub__track {
    transition: none;
  }

  .hub__skeleton {
    animation: none;
  }
}

/* ============================================================
   P2-C（2026-10-31）：三状态 + 赛事 chips + 晋级路线图
   ------------------------------------------------------------
   布局：状态 tabs → 赛事 chips → 男/女单 → 树（可横竖滚动）→ 卡片
   卡片样式沿用 P1 的 .match-card，不重复定义。
   ============================================================ */

/* 赛事 chips：横向滚动，不换行 */
.hub__events {
  display: flex;
  gap: 8px;
  margin-bottom: var(--sp-4);
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.hub__event-chip {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.hub__event-chip:hover,
.hub__event-chip:focus-visible {
  border-color: var(--brand);
  color: var(--text-0);
}

.hub__event-chip.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text-0);
}

.hub__event-chip__name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hub__event-chip__date {
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}

/* 舞台改为纵向：树在上，卡片在下；横向手势只绑在卡片区 */
.hub__stage {
  overflow: visible;
  touch-action: auto;
}

.hub__bracket-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-1);
  overflow: hidden;
}

/* 中间列：左半决赛（上）/ 决赛（中）/ 右半决赛（下） */
/* 用双类提高优先级：文件末尾的 .hub__round-nodes 会覆盖单类规则 */
.hub__round-nodes.hub__center-stack {
  justify-content: center;
  gap: var(--col-gap, 32px);
}

.hub__center-stack .hub__node-cell {
  flex: 0 0 auto;
  min-height: 0;
}

.hub__round.is-center .hub__round-title {
  font-size: 12px;
  white-space: nowrap;
}

/* 晋级图缩放控制：居中置顶、加大（2026-10-31 反馈） */
.hub__zoom {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(18, 26, 41, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.hub__zoom-label {
  align-self: center;
  padding: 0 8px 0 5px;
  margin-right: 2px;
  border-right: 1px solid var(--line);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hub__zoom button {
  padding: 7px 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.hub__zoom button:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.07);
}

.hub__zoom button.is-active {
  background: linear-gradient(120deg, var(--brand), #ff8a4d);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 92, 26, 0.3);
}

/* 两端渐隐：提示还有更多轮次可以横向滑动 */
.hub__bracket-wrap::before,
.hub__bracket-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 44px;
  pointer-events: none;
}

.hub__bracket-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-1) 10%, transparent);
}

.hub__bracket-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-1) 10%, transparent);
}

.hub__bracket {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: safe center; /* 内容不足一屏时居中；超宽时退回 flex-start 保证可滚动 */
  gap: var(--col-gap, 32px);
  /* 顶部多留空间给居中的缩放控件 */
  padding: 68px 24px 18px;
  max-height: 660px;
  overflow: auto;
  scrollbar-width: thin;
}

/* 两边向中间：左半区 | 决赛 | 右半区 */
.hub__side,
.hub__center {
  display: flex;
  align-items: flex-start;
  gap: var(--col-gap, 32px);
  flex: 0 0 auto;
}

.hub__round {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.hub__round-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-1);
  border-bottom: 1px solid var(--line-strong);
  text-transform: uppercase;
  white-space: nowrap;
}

.hub__round-nodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub__node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: minmax(24px, auto);
  gap: 2px 10px;
  width: var(--node-w, 156px);
  padding: 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  font: inherit;
  font-size: var(--node-font, 12px);
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.hub__node:hover,
.hub__node:focus-visible {
  border-color: var(--brand);
  color: var(--text-0);
}

.hub__node.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand) inset;
  color: var(--text-0);
}

.hub__node.is-placeholder {
  border-style: dashed;
  opacity: 0.6;
}

.hub__node.is-live {
  border-left: 3px solid var(--brand-hot);
}

.hub__node-row {
  grid-column: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.hub__node-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.hub__node-row.is-winner .hub__node-name {
  color: var(--text-0);
  font-weight: 700;
}

.hub__node-score {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: var(--score-font, 13px);
  font-weight: 800;
  color: var(--text-0);
  font-variant-numeric: tabular-nums;
}

/* SVG 连线铺在内容层，随容器滚动 */
.hub__edges {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}

.hub__edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.hub__legend {
  margin: var(--sp-3) 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
}

.hub__counter {
  min-width: 52px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* 新结构的箭头在底部控制条内，不再是绝对定位 */
.hub__deck {
  position: relative;
}

.hub__deck-foot .hub__arrow {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 20px;
}

.hub__empty[hidden],
.hub__deck[hidden],
.hub__bracket-wrap[hidden] {
  display: none;
}

.hub__gender.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .hub__bracket {
    gap: 28px;
    padding: 12px;
    max-height: 420px;
  }

  .hub__side,
  .hub__center {
    gap: 28px;
  }

  /* 窄屏走单列布局，缩放档位无意义 */
  .hub__zoom {
    display: none;
  }

  .hub__node {
    width: 164px;
    font-size: 11px;
    padding: 6px 8px;
  }

  .hub__event-chip {
    padding: 7px 11px;
  }

  .hub__deck-foot .hub__arrow {
    width: 38px;
    height: 38px;
  }
}

/* 签表列节点等分：父节点垂直居中于两个子节点，连线水平 */
.hub__round-nodes {
  justify-content: space-between;
  gap: 0;
}

.hub__node-cell {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 76px;
}

/* 里程碑条件标签：深色卡片上不能用低对比度的 accent 文字 */
.ms-cond {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-0);
}

.ms-cond--prob {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
}

/* 桌面端：切换箭头放在卡片左右（移动端仍在底部控制条） */
.hub__deck-foot .hub__arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.hub__deck-foot .hub__arrow--prev {
  left: -26px;
}

.hub__deck-foot .hub__arrow--next {
  right: -26px;
}

@media (max-width: 720px) {
  .hub__deck-foot .hub__arrow {
    position: static;
    transform: none;
    width: 38px;
    height: 38px;
  }
}

/* 赛后生涯摘要（第 N 场 / 对对手连胜 / 累计得分） */
.ms-col__career {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

/* 箭头对准卡片对阵区中心（卡片高度随内容变化，用百分比） */
.hub__deck-foot .hub__arrow {
  top: 33%;
}

/* ============================================================
   赛前雷达分组折叠 + 纪录墙联动（2026-11-01）
   ============================================================ */
.radar-group {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.radar-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.radar-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radar-group__head:hover,
.radar-group__head:focus-visible {
  border-color: rgba(255, 92, 26, 0.45);
  background: rgba(255, 92, 26, 0.09);
  outline: none;
}

.radar-group__head::-webkit-details-marker {
  display: none;
}

.radar-group__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-1);
}

/* 小三角：折叠时指向右，展开时指向下（比浏览器默认 marker 显眼） */
.radar-group__chev {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--brand);
  transition: transform 0.15s ease;
  transform-origin: 30% 50%;
}

.radar-group[open] .radar-group__chev {
  transform: rotate(90deg);
}

.radar-group__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radar-group__count {
  font-size: 11px;
  color: var(--text-2);
}

/* 「展开 / 收起」文字，让人一眼知道可以点 */
.radar-group__toggle::after {
  content: "展开";
}

.radar-group[open] .radar-group__toggle::after {
  content: "收起";
}

.radar-group__toggle {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 92, 26, 0.14);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.radar-group[open] .radar-group__label {
  color: var(--brand);
}

.ms-item__link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ms-item__link:hover,
.ms-item__link:focus-visible {
  text-decoration: underline;
}

.match-card__record-link {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.match-card__record-link:hover,
.match-card__record-link:focus-visible {
  text-decoration: underline;
}
