/**
 * 曼联站的三个静态单页：关于曼联 / 阵容 / 进球榜。
 *
 * 只在这三页由 public_static_page() 的 $extraCss 加载（about.css 一起加载，
 * 关于页的 ab-* 卡片样式还在那份里）。
 * 类名一律 mt- 前缀，颜色走 cs06 主题令牌 + 「进球」用 --cs06-hot-text（红色强调），
 * 后台换主题时跟着变色，不写死颜色。
 */

/* ------------------------------------------------------------------
 * 通用小节头（荣誉室 / 进球榜共用）
 * ------------------------------------------------------------------ */
.mt-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 14px;
}

.mt-sec-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.4px;
  color: var(--cs06-ink-title);
}

.mt-sec-head p {
  margin: 5px 0 0;
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--cs06-muted);
}

.mt-src {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--cs06-line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--cs06-muted);
}

/* ------------------------------------------------------------------
 * 主教练卡（关于曼联页）
 * ------------------------------------------------------------------ */
.mt-coach {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--cs06-line);
  border-radius: 14px;
  background: var(--cs06-card);
  box-shadow: var(--cs06-shadow);
}

.mt-coach img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgb(var(--accent-rgb) / 0.35);
  background: var(--cs06-card-2);
}

.mt-coach-x {
  min-width: 0;
  flex: 1;
}

.mt-coach-x b {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--cs06-muted);
}

.mt-coach-x h3 {
  margin: 4px 0 0;
  font-size: 19px;
  color: var(--cs06-ink-title);
}

.mt-coach-x p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--cs06-muted);
}

.mt-coach-link {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(var(--accent-rgb) / 0.35);
  background: rgb(var(--accent-rgb) / 0.08);
  color: var(--cs06-accent-ink, rgb(var(--accent-rgb)));
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mt-coach-link:hover {
  background: rgb(var(--accent-rgb) / 0.16);
}

/* ------------------------------------------------------------------
 * 荣誉室
 * ------------------------------------------------------------------ */
.mt-hon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mt-hon-card {
  padding: 16px 16px 15px;
  border: 1px solid var(--cs06-line);
  border-radius: 12px;
  background: var(--cs06-card);
  box-shadow: var(--cs06-shadow);
}

.mt-hon-num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--cs06-hot-text, var(--cs06-ink-title));
}

.mt-hon-num b {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.mt-hon-num span {
  font-size: 12px;
  color: var(--cs06-muted);
}

.mt-hon-card h3 {
  margin: 8px 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cs06-ink-title);
}

.mt-hon-years {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.mt-hon-years span {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--cs06-soft);
  font-size: 11px;
  line-height: 1.6;
  color: var(--cs06-ink-2);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
 * 阵容：概览四格
 * ------------------------------------------------------------------ */
.mt-sq-ov {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--cs06-line);
  border-radius: 14px;
  background: var(--cs06-card);
  box-shadow: var(--cs06-shadow);
  overflow: hidden;
}

.mt-sq-ov > div {
  padding: 16px 18px;
  border-right: 1px solid var(--cs06-line);
}

.mt-sq-ov > div:last-child {
  border-right: 0;
}

.mt-sq-ov b {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--cs06-ink-title);
}

.mt-sq-ov b small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cs06-muted);
}

.mt-sq-ov span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--cs06-muted);
}

.mt-sq-note {
  margin: 12px 0 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cs06-muted);
}

/* ------------------------------------------------------------------
 * 阵容：按位置分组
 * ------------------------------------------------------------------ */
.mt-sq-group {
  margin-bottom: 22px;
}

.mt-sq-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cs06-line);
}

.mt-sq-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--cs06-ink-title);
}

.mt-sq-head span {
  font-size: 12px;
  color: var(--cs06-muted);
}

.mt-sq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.mt-sq-card {
  padding: 12px;
  border: 1px solid var(--cs06-line);
  border-radius: 12px;
  background: var(--cs06-card);
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.mt-sq-card:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--accent-rgb) / 0.4);
}

/* 头像 + 号码角标：号码挂在 .mt-sq-av 上（头像本身 overflow:hidden，角标放里面会被裁掉） */
.mt-sq-av {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
}

.mt-sq-photo {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cs06-card-2);
  border: 1px solid var(--cs06-line);
}

.mt-sq-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-sq-none {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 26px;
  font-weight: 800;
  color: var(--cs06-muted);
}

.mt-sq-no {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cs06-hot-text, #d92329);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--cs06-card);
}

.mt-sq-card h3 {
  margin: 0;
  font-size: 14px;
  color: var(--cs06-ink-title);
}

.mt-sq-meta {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--cs06-muted);
}

.mt-sq-stats {
  margin: 7px 0 0;
  padding-top: 7px;
  border-top: 1px dashed var(--cs06-line);
  font-size: 11.5px;
  color: var(--cs06-muted);
}

.mt-sq-stats b {
  color: var(--cs06-ink-title);
  font-weight: 700;
}

/* ------------------------------------------------------------------
 * 进球榜
 * ------------------------------------------------------------------ */
.mt-sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px 20px;
  border: 1px solid var(--cs06-line);
  border-radius: 14px;
  background: var(--cs06-card);
  box-shadow: var(--cs06-shadow);
}

.mt-sc-title h2 {
  margin: 0;
  font-size: 20px;
  color: var(--cs06-ink-title);
}

.mt-sc-title p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--cs06-muted);
}

.mt-sc-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cs06-hot-soft, var(--cs06-soft)) 70%, transparent);
  border: 1px solid rgb(var(--cs06-hot-rgb) / 0.25);
  white-space: nowrap;
}

.mt-sc-top span {
  font-size: 11.5px;
  color: var(--cs06-muted);
}

.mt-sc-top b {
  font-size: 15px;
  color: var(--cs06-ink-title);
}

.mt-sc-top i {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  color: var(--cs06-hot-text, #d92329);
}

.mt-sc-card {
  border: 1px solid var(--cs06-line);
  border-radius: 14px;
  background: var(--cs06-card);
  box-shadow: var(--cs06-shadow);
  overflow: hidden;
}

.mt-sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.mt-sc-table th {
  padding: 11px 14px;
  background: var(--cs06-card-2);
  border-bottom: 1px solid var(--cs06-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--cs06-muted);
  text-align: left;
  white-space: nowrap;
}

.mt-sc-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--cs06-line);
  color: var(--cs06-ink-2);
  vertical-align: middle;
}

.mt-sc-table tbody tr:last-child td {
  border-bottom: 0;
}

.mt-sc-table tbody tr:hover td {
  background: var(--cs06-soft);
}

.mt-sc-table .is-rank {
  width: 52px;
  text-align: center;
  color: var(--cs06-muted);
  font-variant-numeric: tabular-nums;
}

.mt-sc-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mt-sc-table td.is-goals {
  font-size: 15px;
  font-weight: 800;
  color: var(--cs06-hot-text, #d92329);
}

.mt-sc-table tr.is-top .is-rank {
  font-weight: 800;
  color: var(--cs06-ink-title);
}

.mt-sc-table tr.is-top td {
  background: rgb(var(--cs06-hot-rgb) / 0.04);
}

/* 球员列：<td> 保持表格单元格，头像 / 名字那排用里面的 .mt-sc-p 排（别把 td 变成 flex） */
.mt-sc-table .mt-sc-p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mt-sc-av {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cs06-card-2);
  border: 1px solid var(--cs06-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--cs06-muted);
}

.mt-sc-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-sc-name {
  font-weight: 700;
  color: var(--cs06-ink-title);
}

.mt-sc-table .is-player em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--cs06-muted);
  white-space: nowrap;
}

/* ------------------------------------------------------------------
 * 响应式
 * ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .mt-hon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 概览是三格（人数 / 平均年龄 / 总身价），窄屏并成三行，去掉竖分隔线 */
  .mt-sq-ov {
    grid-template-columns: 1fr;
  }

  .mt-sq-ov > div {
    border-right: 0;
    border-bottom: 1px solid var(--cs06-line);
    padding: 12px 16px;
  }

  .mt-sq-ov > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .mt-coach {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .mt-coach-link {
    margin-left: 92px;
  }

  .mt-hon-grid {
    grid-template-columns: 1fr;
  }

  .mt-sq-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
  }

  .mt-sq-av {
    width: 72px;
    height: 72px;
  }

  .mt-sc-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mt-sc-table {
    font-size: 12.5px;
  }

  .mt-sc-table th,
  .mt-sc-table td {
    padding: 8px 10px;
  }

  .mt-sc-table .is-opt,
  .mt-sc-table .is-rank {
    width: auto;
  }

  /* 窄屏藏身价列，球员名那列才不会被挤成两行 */
  .mt-sc-table .is-opt {
    display: none;
  }

  .mt-sc-table .is-player em {
    display: none;
  }
}
