/* 球员详情页（v1），沿用球队页色系与字号规范。数据全部来自 90vs 原始字段。 */
.tm-main { padding-right: 48px; }

/* 球员名片 */
.pl-hero {
  display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin: 14px 0;
  background: linear-gradient(100deg, #F4F9FF 0%, #FFFFFF 62%);
}
.pl-hero-photo {
  width: 110px; height: 110px; flex: 0 0 110px; border-radius: 50%; overflow: hidden;
  background: #EAF2FF; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(10,85,213,.18);
  display: flex; align-items: center; justify-content: center;
  color: #0A55D5; font-size: 26px; font-weight: 800;
}
.pl-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pl-hero-photo.no-photo::after { content: '球員'; }
.pl-hero-main { flex: 1 1 auto; min-width: 0; }
.pl-hero-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pl-hero-title { font-size: 26px; font-weight: 800; color: #17325A; margin: 0; line-height: 1.2; }
.pl-hero-en { font-size: 14px; color: #5B7396; }
.pl-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pl-tag {
  font-size: 12px; color: #0A55D5; background: #EAF2FF; border: 1px solid #D6E5FF;
  padding: 3px 9px; border-radius: 12px;
}
.pl-tag.pl-pos { color: #fff; background: #C62828; border-color: #C62828; font-weight: 700; }
.pl-updated { font-size: 12px; color: #93A5BC; margin-top: 8px; }
.pl-hero-meta { display: flex; gap: 24px; flex: 0 0 auto; }
.pl-metric { text-align: center; min-width: 76px; }
.pl-metric b { display: block; font-size: 26px; font-weight: 800; color: #C62828; line-height: 1.2; }
.pl-metric span { display: block; font-size: 12px; color: #5B7396; margin-top: 4px; }

/* 数据概览 */
.pl-overview { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.pl-metric-card {
  background: #fff; border: 1px solid #E6EDF7; border-radius: 6px;
  padding: 12px 8px; text-align: center;
}
.pl-metric-num { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; }
.pl-metric-card span { display: block; font-size: 12px; color: #5B7396; margin-top: 6px; }
.pl-metric-num.m0 { color: #C62828; }   /* 进球：红 */
.pl-metric-num.m1 { color: #2E7D32; }   /* 点球：绿 */
.pl-metric-num.m2 { color: #8499B6; }   /* 乌龙：灰 */
.pl-metric-num.m3 { color: #C79100; }   /* 黄牌：黄 */
.pl-metric-num.m4, .pl-metric-num.m5 { color: #C62828; } /* 红牌 */

/* 比赛表现筛选：近况时间档标签 */
.pl-period-label { font-size: 12px; color: #8499B6; white-space: nowrap; }
.tm-count-seg button { font-size: 12px; padding: 5px 8px; }

/* 资料网格 */
.pl-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pl-box { padding: 16px 18px; }
.pl-box.tm-wide { grid-column: 1 / -1; }
.pl-box .tm-box-title { margin: 0 0 12px; }
.tm-box-title { font-size: 16px; font-weight: 800; color: #17325A; }

/* 基本资料 dl */
.tm-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; }
.tm-facts dt { font-size: 12px; color: #8499B6; padding: 9px 0 3px; border-bottom: 1px dashed #E6EDF7; }
.tm-facts dd { font-size: 13px; color: #243F63; font-weight: 700; margin: 0; padding: 3px 0 9px; }

/* 入球时间统计 */
.pl-goaltime-head, .pl-goaltime-body { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; text-align: center; }
.pl-goaltime-head span { font-size: 12px; color: #fff; background: #6BADDF; padding: 6px 0; border-radius: 3px; }
.pl-goaltime-body span { font-size: 13px; color: #243F63; padding: 10px 0; background: #F4F8FE; border-radius: 3px; margin-top: 4px; }
.pl-goaltime-body span.pl-peak { color: #C62828; font-weight: 800; background: #FFECEC; }

/* 比赛表现表 */
.pl-table-wrap { padding: 0; overflow-x: auto; }
.pl-match-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.pl-match-table th {
  font-size: 12px; color: #fff; background: linear-gradient(180deg, #2C7BD9, #1B5FB8);
  padding: 9px 4px; text-align: center; white-space: nowrap;
}
.pl-match-table td { font-size: 13px; color: #243F63; padding: 8px 4px; text-align: center; border-bottom: 1px solid #EDF2F9; }
/* 主客队分列比分两侧：主队右对齐贴比分，客队左对齐贴比分（表头同步） */
.pl-match-table th:nth-child(3) { text-align: right; padding-right: 4px; }
.pl-match-table th:nth-child(5) { text-align: left; padding-left: 6px; }
.pl-match-table td:nth-child(3) { text-align: right; padding-left: 4px; padding-right: 4px; }
.pl-match-table td:nth-child(5) { text-align: left; padding-left: 6px; padding-right: 4px; }
.pl-match-table td.pl-side-me { color: #C62828; font-weight: 800; }
.pl-match-table td.pl-score { font-weight: 800; color: #17325A; }
.pl-match-table td.pl-goal { color: #C62828; font-weight: 800; }
.pl-neutral { font-size: 12px; color: #2E7D32; margin-left: 3px; }
.pl-comp { display: inline-block; font-size: 12px; color: #fff; padding: 2px 6px; border-radius: 3px; }
/* 合计/平均/比率：标签右对齐贴住数值列（同 90vs），标签按行着色，数值按列保留语义色 */
.pl-sum td { background: #FFFBE8; font-weight: 700; }
/* 合计行数值统一居中：覆盖上面 td:nth-child(3)/(5) 给主客队设的左对齐 */
.pl-sum td.pl-sum-num { text-align: center; padding-left: 4px; padding-right: 4px; }
.pl-sum td.pl-sum-label { text-align: right; padding-right: 12px; }
.pl-sum.pl-sum-total td.pl-sum-label { color: #C62828; }
.pl-sum.pl-sum-avg td.pl-sum-label { color: #2E7D32; }
.pl-sum.pl-sum-rate td.pl-sum-label { color: #0A55D5; }
.pl-sum td.m0 { color: #C62828; }
.pl-sum td.m1 { color: #2E7D32; }
.pl-sum td.m2 { color: #8499B6; }
.pl-sum td.m3 { color: #C79100; }
.pl-sum td.m4, .pl-sum td.m5 { color: #C62828; }

/* 转会与荣誉：单列堆叠 */
.pl-career-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pl-career-table { width: 100%; border-collapse: collapse; }
.pl-career-table th {
  font-size: 12px; color: #fff; background: linear-gradient(180deg, #2C7BD9, #1B5FB8);
  padding: 8px 6px; text-align: left;
}
.pl-career-table td { font-size: 13px; color: #243F63; padding: 8px 6px; border-bottom: 1px solid #EDF2F9; }
.pl-career-table small { font-size: 12px; color: #93A5BC; }
/* 球员荣誉：复用球队页「荣誉一览」表格样式，保持两页视觉一致 */
.pl-honors { display: block; }
.pl-empty { font-size: 13px; color: #93A5BC; padding: 18px 0; text-align: center; }

@media (max-width: 1100px) {
  .pl-overview { grid-template-columns: repeat(3, 1fr); }
  .pl-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tm-main { padding-right: 32px; }
  .pl-hero { flex-wrap: wrap; }
  .pl-hero-meta { width: 100%; justify-content: space-around; }
}
@media (max-width: 700px) {
  .tm-main { padding-right: 0; }
  .pl-overview { grid-template-columns: repeat(2, 1fr); }
  .tm-facts { grid-template-columns: 1fr; }
}

/* 展示层链接：球队名→球队页、比分→90vs 比赛中心 */
.pl-match-table a.pl-team-link, .pl-match-table a.pl-score-link { color: inherit; text-decoration: none; }
.pl-match-table a.pl-team-link:hover { color: #0A55D5; text-decoration: underline; }
.pl-match-table a.pl-score-link:hover { text-decoration: underline; }

/* 非比赛表内的球队名链接：英雄区标签、基本资料、转会历史 */
a.pl-team-link { color: inherit; text-decoration: none; }
a.pl-team-link:hover { color: #0A55D5; text-decoration: underline; }
