/* AnBA 内页扩展 — 与 anba-home.css 配合 */
.page-hero {
  padding: 28px 0 8px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 14px;
}
.crumb a { color: var(--dim); transition: color .15s; }
.crumb a:hover { color: var(--gold-2); }
.crumb .sep { opacity: .45; }
.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.page-title .sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.page-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.input {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 13px;
  min-width: 180px;
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--gold-dim); }
.input::placeholder { color: var(--dim-2); }
.select {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* 选手页 */
.player-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(226, 183, 20, 0.1), transparent 42%),
    var(--panel);
  margin-bottom: 12px;
  overflow: visible;
}
.player-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow: visible;
}
.player-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold) 50%, #a88408);
  color: #1a1405;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(226, 183, 20, 0.28);
  flex-shrink: 0;
}
.player-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}
/* 直播间角标（首页/排行榜共用，避免原图尺寸撑爆布局） */
.stream-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.stream-badge .st-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  display: block;
  opacity: 0.88;
  transition: transform 0.12s ease, opacity 0.12s ease, filter 0.12s ease;
}
.stream-badge:hover .st-logo {
  opacity: 1;
  transform: scale(1.18);
  filter: drop-shadow(0 0 4px rgba(226, 183, 20, 0.55));
}
.stream-badge:active .st-logo {
  transform: scale(1.05);
}
.stream-badge .st-live {
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.35);
  flex-shrink: 0;
  animation: stPulse 1.6s ease-in-out infinite;
}
@keyframes stPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.streak-badge {
  display: inline-block;
  height: 36px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 6px;
  margin-top: -4px;
  opacity: 0.92;
  transition: transform 0.12s ease, opacity 0.12s ease, filter 0.12s ease;
}
.streak-badge:hover {
  opacity: 1;
  transform: scale(1.18);
  filter: drop-shadow(0 0 4px rgba(226, 183, 20, 0.55));
}
.streak-badge:active {
  transform: scale(1.05);
}
/* 赛季冠亚季军：图标 + CSS 叠 S1/S2 文字，title 如「S1冠军」
   尺寸与 .streak-badge 对齐（同高同上限 + contain） */
.podium-badge {
  position: relative;
  display: inline-block;
  height: 36px;
  line-height: 0;
  margin-left: 6px;
  margin-top: -4px;
  vertical-align: middle;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.podium-badge .podium-img {
  height: 36px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  display: block;
}
.podium-badge .podium-season {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.podium-badge:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 4px rgba(226, 183, 20, 0.55));
}
.podium-badge:active {
  transform: scale(1.05);
}
/* 成就在姓名块右侧空白，不插入两行名字之间 */
.player-streaks {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
  flex-shrink: 0;
}
.player-id .player-streaks .streak-badge {
  height: 88px;
  max-width: 136px;
  width: auto;
  margin: 0;
  position: static;
}
.player-id .player-streaks .podium-badge {
  height: 88px;
  margin: 0;
}
.player-id .player-streaks .podium-badge .podium-img {
  height: 88px;
  width: auto;
  max-width: 136px;
  object-fit: contain;
}
.player-id .player-streaks .podium-badge .podium-season {
  font-size: 16px;
  bottom: 8%;
}
.player-tag {
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--dim);
}
.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(226, 183, 20, 0.1);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.stat-cell {
  background: var(--panel);
  padding: 18px 12px;
  text-align: center;
}
.stat-cell .v {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-cell .v.gold { color: var(--gold-2); }
.stat-cell .k {
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.12em;
}

.rival-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.rival-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.rival-emoji {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.rival-card .t {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.rival-card .n {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}
.rival-card .d {
  margin-top: 4px;
  font-size: 12px;
  color: var(--dim-2);
}
.rival-card.shrimp .n { color: var(--court); }
.rival-card.duck .n { color: #7dd3fc; }

.chart-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 20px;
}
.panel h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--text);
}
.spark {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 160px;
  padding-top: 8px;
}
.spark .bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(226, 183, 20, 0.85), rgba(226, 183, 20, 0.25));
  min-height: 8px;
  position: relative;
}
.spark .bar:hover { filter: brightness(1.1); }
.spark .bar span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--dim-2);
  font-family: var(--font-num);
}
.spark-labels {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.spark-labels span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--dim-2);
  font-family: var(--font-num);
}
.dist {
  display: grid;
  gap: 10px;
}
.dist-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
}
.dist-row .track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.dist-row .fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

/* 对局列表 */
.match-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.match-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.match-list-head h3 { font-size: 16px; font-weight: 700; }
.match-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(42, 42, 74, 0.45);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: rgba(255, 255, 255, 0.03); }
.place-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dim);
  flex-shrink: 0;
}
.place-badge.p1 { background: rgba(255, 215, 0, 0.16); color: #ffd700; }
.place-badge.p2 { background: rgba(192, 192, 192, 0.14); color: #d7d7de; }
.place-badge.p3 { background: rgba(205, 127, 50, 0.16); color: #e0a070; }
.hero-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.hero-img img {
  width: 120%;
  height: 120%;
  margin: -10% 0 0 -10%;
  object-fit: cover;
  /* 圆框不动，原图右移，压掉右侧空白 */
  transform: translateX(10%);
  display: block;
}
.match-row .who { flex: 1; min-w: 0; }
.match-row .who .name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-row .who .meta {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}
.match-row .pts {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-2);
  min-width: 48px;
  text-align: right;
}
.match-row .pts.neg { color: var(--dim-2); }
.match-row .when {
  font-size: 11px;
  color: var(--dim-2);
  font-family: var(--font-num);
  min-width: 88px;
  text-align: right;
}

/* 对局详情 */
.match-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}
.chip strong { color: var(--text); font-weight: 600; }
.chip.gold {
  background: rgba(226, 183, 20, 0.1);
  border-color: rgba(226, 183, 20, 0.22);
  color: var(--gold-2);
}
.notice {
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 12px;
}
.board-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--dim-2);
  word-break: break-all;
}

/* 排行榜完整页表格微调 */
.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  transition: all .15s;
}
.pager button:hover,
.pager button.is-on {
  color: var(--gold-2);
  border-color: var(--gold-dim);
  background: rgba(226, 183, 20, 0.08);
}

@media (max-width: 800px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .rival-grid, .chart-grid { grid-template-columns: 1fr; }
  .match-row .when { display: none; }

  /* 成就：独占一行，放在头像+姓名下方 */
  .player-id {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .player-id .player-streaks {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
    /* 与姓名列对齐（头像 72 + gap 16） */
    padding-left: 88px;
    box-sizing: border-box;
  }
  .player-id .player-streaks .streak-badge {
    height: 56px;
    max-width: 88px;
  }
  .player-id .player-streaks .podium-badge {
    height: 56px;
  }
  .player-id .player-streaks .podium-badge .podium-img {
    height: 56px;
    max-width: 88px;
  }
}

.match-row .when { display: none; }

}

/* 最近对局 — 固定 4×2，无标题栏 */
.recent-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-row {
  display: block;
  padding: 12px;
  border: 1px solid rgba(42, 42, 74, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.recent-row:last-child { border-bottom: 1px solid rgba(42, 42, 74, 0.7); }
.recent-row:hover { background: rgba(255, 255, 255, 0.03); }
.recent-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.recent-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 0;
  min-height: 48px;
}
.recent-hero {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel);
}
.recent-hero img {
  width: 120%;
  height: 120%;
  margin: -10% 0 0 -10%;
  object-fit: cover;
  display: block;
}

.hero-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  line-height: 0;
}
.hero-av img {
  width: 120%;
  height: 120%;
  margin: -10% 0 0 -10%;
  object-fit: cover;
  display: block;
}
.hero-av.lg { width: 44px; height: 44px; }
.recent-info { min-width: 0; flex: 1; }
.rp-name {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-meta {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}
.rp-pts { color: var(--gold-2); font-family: var(--font-num); }
.rp-dim { color: var(--dim-2); font-family: var(--font-num); }

/* 最近对局内部 — 对齐目标图：大卡、4 列、8 人 4×2 */
.lgm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lgm-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 0;
  min-height: 56px;
  box-sizing: border-box;
}
.lgm-hero {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
}
.lgm-hero img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  display: block;
}
.lgm-text { min-width: 0; flex: 1; }
.lgm-name {
  font-size: 13px;
  line-height: 1.3;
  color: #e8e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lgm-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #8b8b9e;
  line-height: 1.3;
}
.lgm-pts {
  color: #e2b714;
  font-family: Consolas, ui-monospace, monospace;
}
.lgm-dim {
  color: #5c5c72;
  font-family: Consolas, ui-monospace, monospace;
}
@media (max-width: 900px) {
  .lgm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

select.season-pill {
  color: var(--gold-2);
  font-family: inherit;
  outline: none;
}
select.season-pill option {
  color: var(--text);
  background: var(--panel);
}
