/* entity 页专属样式（用户 2026-09-07 定案自 styles.css 拆分，更新互不影响） */
@media (prefers-color-scheme: dark) {
  .entity-page[data-entity-type="player"] .entity-profile-image {
    border-color: #3b3b40;
    background: linear-gradient(145deg, #29292e, #202024);
    box-shadow: 0 14px 30px rgb(0 0 0 / 28%);
  }
}

.entity-page{
  max-width: 1040px;
}
.entity-hero{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: end;
  gap: 42px;
  padding: 42px 0 32px;
  border-bottom: 2px solid var(--fg);
}
.entity-hero:has(.entity-profile-image[hidden]){
  grid-template-columns: minmax(0, 760px);
}
.entity-hero-copy,
.entity-profile-image{
  animation: entity-reveal 420ms ease both;
}
.entity-profile-image{
  animation-delay: 80ms;
}
.entity-hero-copy{
  min-width: 0;
}
.entity-hero .eyebrow{
  color: #5c5c5c;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.entity-hero h1{
  margin: 10px 0 0;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.entity-summary{
  max-width: 660px;
  margin: 14px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.75;
}
p.entity-summary{ display: none; }
.entity-aliases{
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 18px;
}
.entity-aliases[hidden]{
  display: none;
}
.entity-aliases span{
  position: relative;
  color: #686868;
  font-size: 12px;
}
.entity-aliases span + span::before{
  position: absolute;
  left: -7px;
  color: #a5a5a5;
  content: "·";
}
.entity-profile-facts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid #1b1b1b;
}
.entity-profile-facts div{
  min-width: 0;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #dedede;
}
.entity-profile-facts dt{
  color: #777;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}
.entity-profile-facts dd{
  margin: 0;
  color: #1e1e1e;
  font-size: 13px;
  line-height: 1.3;
}
.entity-profile-image{
  align-self: stretch;
  min-height: 322px;
  margin: 0;
  overflow: hidden;
  background: #ededed;
}
.entity-profile-image img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.entity-page[data-entity-type="competition"] .entity-profile-image{
  width: clamp(76px, 16vw, 128px);
  height: clamp(76px, 16vw, 128px);
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.entity-page[data-entity-type="competition"] .entity-profile-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.entity-page[data-entity-type="team"] .entity-hero{
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  align-items: center;
  border-bottom-color: var(--entity-accent, #b42525);
}
.entity-page[data-entity-type="team"] .entity-hero-copy{
  order: 2;
}
.entity-page[data-entity-type="team"] .entity-profile-image{
  order: 1;
  min-height: 250px;
  border: 1px solid #dedede;
  background: #f6f6f4;
}
.entity-page[data-entity-type="team"] .entity-profile-image img{
  object-fit: contain;
  padding: 34px;
  filter: none;
}
.entity-page[data-entity-type="media"] .entity-profile-image,
.entity-page[data-entity-type="journalist"] .entity-profile-image,
.entity-page[data-entity-type="celebrity"] .entity-profile-image{
  background: #fff;
}
.entity-page[data-entity-type="media"] .entity-profile-image img{
  object-fit: contain;
  padding: 34px;
  filter: none;
}
.entity-page[data-entity-type="coach"] .entity-hero{
  position: relative;
  border-bottom-color: var(--entity-accent, #b42525);
}
.entity-page[data-entity-type="coach"] .entity-hero::before{
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 116px;
  height: 6px;
  background: var(--entity-accent, #b42525);
  content: "";
}
.entity-page[data-entity-type="player"] .entity-hero{
  grid-template-columns: minmax(0, 1fr) minmax(150px, 192px);
  align-items: center;
  gap: clamp(24px, 5vw, 52px);
}
.entity-page[data-entity-type="player"] .entity-profile-image{
  width: clamp(150px, 18vw, 192px);
  height: clamp(150px, 18vw, 192px);
  min-height: 0;
  justify-self: end;
  aspect-ratio: 1;
  border: 1px solid #d8d8d4;
  border-radius: 18px;
  background: linear-gradient(145deg, #f2f2ef, #e5e5e1);
  box-shadow: 0 14px 30px rgb(20 20 18 / 10%);
}
.entity-page[data-entity-type="player"] .entity-profile-image img{
  object-fit: cover;
}
.entity-page[data-entity-type="player"] .entity-profile-facts{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.entity-page[data-entity-type="player"] .entity-dossier{
  grid-template-columns: minmax(0, 1fr);
}
.entity-page[data-entity-type="media"] .entity-dossier{
  grid-template-columns: minmax(0, 1fr);
}
.entity-page[data-entity-type="media"] .entity-dossier div,
.entity-page[data-entity-type="media"] .entity-dossier div:nth-child(odd),
.entity-page[data-entity-type="media"] .entity-dossier div:nth-child(even){
  padding-right: 0;
  padding-left: 0;
  border-left: 0;
}
.entity-page[data-entity-type="player"] .entity-dossier div,
.entity-page[data-entity-type="player"] .entity-dossier div:nth-child(odd),
.entity-page[data-entity-type="player"] .entity-dossier div:nth-child(even){
  padding-right: 0;
  padding-left: 0;
  border-left: 0;
}
@media (max-width: 640px) {
  .entity-page[data-entity-type="player"] .entity-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
  }

  .entity-page[data-entity-type="player"] .entity-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 14px;
  }

  .entity-page[data-entity-type="player"] .entity-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.entity-highlights-section{
  padding: 0 0 28px;
  border-bottom: 1px solid #1b1b1b;
}
.entity-market-value-section{ border: 1px solid var(--line, #d9e0e7); background: var(--surface, #fff); }
.entity-market-value-header{ background: #061d42; color: #fff; padding: 7px 14px; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.entity-market-value-current{ text-align: center; padding: 16px 12px 10px; font-weight: 700; }
.entity-market-value-legend{ display:flex; flex-wrap:wrap; gap:8px 14px; padding:0 14px 8px; color:#53677f; font-size:11px; }
.entity-market-value-legend span{ display:inline-flex; align-items:center; gap:4px; }
.entity-market-value-legend i{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.entity-market-value-chart{ position: relative; margin: 0 14px; padding: 4px 0 0 38px; background: #f7f8fb; color: #4f5664; border-radius: 12px; }
.entity-market-value-chart svg{ display: block; width: 100%; height: auto; }
.entity-market-value-chart polyline{ fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.entity-market-value-grid line{ stroke: #d9dde5; stroke-width: 1; stroke-dasharray: 4 4; }
.entity-market-value-markers circle{ fill: #fff; stroke: #102a92; stroke-width: 2; opacity: .9; transition: r .15s ease, stroke-width .15s ease; }
.entity-market-value-markers circle:hover,.entity-market-value-markers circle:focus,.entity-market-value-markers circle.is-active{ r: 6; stroke-width: 3; outline: none; }
.entity-market-value-markers circle{ cursor:crosshair; }
.entity-market-value-ylabels{ position: absolute; left: 0; top: 16px; bottom: 34px; display: flex; flex-direction: column; justify-content: space-between; color: #60758e; font-size: 11px; }
.entity-market-value-labels{ position:relative; height:16px; color:#60758e; font-size:12px; }
/* 年份标签按窗口中心绝对定位（SSR 计算并裁剪重叠，2026-09-12 定案）。 */
.entity-market-value-labels span{ position:absolute; transform:translateX(-50%); white-space:nowrap; }
.entity-market-value-chart-inner{ position: relative; }
.entity-market-value-tooltip[hidden]{ display:none; }
.entity-market-value-club-label{ position:absolute; top:4px; transform:translateX(-50%); z-index:1; display:flex; align-items:center; gap:4px; color:#27324a; font-size:11px; white-space:nowrap; pointer-events:none; }
.entity-market-value-club-label img{ width:20px; height:20px; object-fit:contain; }
/* 悬停竖线（用户 2026-09-15 定案）：颜色随当前节段线条（JS 写 stroke），只做视觉指示。 */
.entity-market-value-cursor{ stroke:#b9c0cf; stroke-width:1; stroke-dasharray:3 3; pointer-events:none; }
@media (max-width:720px){ .entity-market-value-club-label{ font-size:10px; gap:2px; } .entity-market-value-club-label img{ width:16px; height:16px; }
  /* 窄屏压缩（用户 2026-09-12 定案）：不显示左侧身价刻度与顶部队名，只留队徽；
     回收 y 轴指宽给图表；年份每窗口一个，重叠的后者隐藏（SSR 已裁剪）。 */
  .entity-market-value-ylabels{ display:none; }
  .entity-market-value-chart{ padding-left:6px; }
  .entity-market-value-club-label span{ display:none; }
  /* 无队徽的纯文字标签窄屏整体隐藏（没有队徽可留，避免压图）。
     2026-09-15 定案：宽屏仍显示队名，窄屏维持「只留队徽」的压缩规则。 */
  .entity-market-value-club-label.is-text-only{ display:none; }
  .entity-market-value-chart-inner{ margin-top:14px; } }
.entity-market-value-tooltip{ position: absolute; top: 8px; z-index: 2; width: 180px; padding: 10px 12px; border: 1px solid #e1e4eb; border-radius: 24px; background: rgba(255,255,255,.97); color: #1f2b44; box-shadow: 0 8px 20px rgba(24,36,64,.16); pointer-events: none; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.25; }
.entity-market-value-tooltip strong{ font-size: 14px; color: #1b3ca5; white-space: nowrap; }
.entity-market-value-tooltip span{ color:#7b8190; font-size:11px; white-space:nowrap; }
.entity-market-value-tooltip b{ margin-left:auto; border-radius: 14px; padding: 5px 8px; background:#102a92; color:#fff; font-size:13px; white-space:nowrap; }
/* 用户 2026-09-11 定案：tooltip 文字/背景色随当前节段线条色（--mv-line 由 JS 写入） */
.entity-market-value-tooltip.is-colored{ background: var(--mv-line, #102a92); border-color: var(--mv-line, #102a92); color: #fff; box-shadow: 0 8px 20px rgba(24,36,64,.28); }
.entity-market-value-tooltip.is-colored strong{ color: #fff; }
.entity-market-value-tooltip.is-colored span{ color: rgba(255,255,255,.85); }
.entity-market-value-tooltip.is-colored b{ background: #fff; color: var(--mv-line, #102a92); }
.entity-market-value-analysis{ display: block; text-align: right; padding: 12px 16px 14px; color: #087bb5; font-weight: 800; text-decoration: none; }
.entity-market-value-source{ margin: 0; padding: 2px 14px 10px; color:#a0a6b0; font-size:10px; text-align:right; }
.entity-market-value-analysis span{ font-size: 24px; vertical-align: -2px; margin-left: 5px; }
.entity-highlights{
  display: grid;
  /* 宽屏自适应列宽（用户 2026-09-11 定案）：等分弹性列，窄屏仍由 media query 控制为两列。 */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}
.entity-highlights div{
  min-width: 0;
  padding: 20px 16px 0;
  border-left: 1px solid #d9d9d9;
}
.entity-highlights div:first-child{
  padding-left: 0;
  border-left: 0;
}
.entity-highlights dd{
  margin: 0;
  color: #121212;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.entity-highlights dt{
  margin-top: 7px;
  color: #666;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}
.entity-dossier-section{
  display: grid;
  /* 批五定案：左侧标题列收窄（150-220 → 100-120），正文列获得更多宽度。 */
  grid-template-columns: minmax(100px, 120px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid #1b1b1b;
}
.entity-dossier-section[hidden]{
  display: none;
}
.entity-club-career-table{display:grid;gap:0;font-size:13px}
.entity-club-career-header,.entity-club-career-row{display:grid;grid-template-columns:1.2fr 1fr .8fr .8fr 1.1fr;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.entity-club-career-header{font-size:11px;color:#8a8176;text-transform:uppercase;letter-spacing:.04em}
.entity-club-career-row.is-long-tenure{background:color-mix(in srgb,var(--career-color,#777) 8%,transparent)}
.entity-club-career-team{display:flex;align-items:center;gap:7px;font-weight:600}
.entity-club-career-logo{width:20px;height:20px;object-fit:contain;vertical-align:middle}
.entity-club-career-method.is-muted{color:#aaa}
.entity-club-career-method b.entity-career-fee{font-weight:800}
/* 窄屏表头（宽屏隐藏，2026-09-11 定案） */
.entity-club-career-header-narrow{display:none}
/* 国家队履历表格（用户 2026-09-11 定案）：国家队/首秀时间/年龄/出场/进球/助攻 */
.entity-nation-career-table{display:grid;font-size:13px}
.entity-nation-career-header,.entity-nation-career-row{display:grid;grid-template-columns:minmax(0,1fr) 84px 48px repeat(3,40px);align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.entity-nation-career-header{font-size:11px;color:#8a8176;letter-spacing:.04em}
.entity-nation-career-header span:nth-child(n+4){text-align:right}
.entity-nation-team{font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 国家队队徽（用户 2026-09-15 定案）：与荣誉 chip 的队徽同尺度，缺失不 img。 */
.entity-nation-team{display:inline-flex;align-items:center;gap:6px}
.entity-nation-crest{width:18px;height:18px;object-fit:contain;flex:0 0 auto}
.entity-nation-debut,.entity-nation-age{font-size:12px;color:#53677f;white-space:nowrap}
.entity-nation-age{text-align:center}
.entity-nation-num{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:720px){
  .entity-nation-career-header,.entity-nation-career-row{grid-template-columns:minmax(0,1fr) 72px 40px repeat(3,32px);gap:6px;font-size:12px}
  .entity-nation-career-header{font-size:10px;white-space:nowrap}
}
@media (max-width:720px){
  /* 窄屏表格化（用户 2026-09-11 定案）：表头可见，4 列（加入球队（时间）合并时间行），
     年份/在队时长/加盟方式/年龄固定宽，表头与内容同网格对齐。 */
  .entity-club-career-header{display:none}
  .entity-club-career-header-narrow{display:grid;font-size:10px;color:#8a8176;text-transform:none;letter-spacing:.02em}
  .entity-club-career-header-narrow span{white-space:nowrap}
  .entity-club-career-header-narrow,.entity-club-career-row{
    grid-template-columns:minmax(0,1fr) 74px 94px 50px;
    grid-template-rows:auto auto;
    gap:2px 6px;
  }
  .entity-club-career-header-narrow{grid-template-rows:auto;gap:6px;padding:10px 0 6px}
  .entity-club-career-row{
    grid-template-areas:'team duration method age' 'time duration method age';
    padding:10px 0;
  }
  .entity-club-career-row>span:nth-child(1){grid-area:time;font-size:11px;color:#756d64;align-self:start}
  .entity-club-career-row>span:nth-child(2){grid-area:team;align-self:end;min-width:0}
  .entity-club-career-row .entity-club-career-team{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .entity-club-career-row>span:nth-child(3){grid-area:duration;font-size:11px;color:#756d64;align-self:center;white-space:nowrap}
  .entity-club-career-row>span:nth-child(4){grid-area:age;justify-self:end;align-self:center;font-weight:700;color:#3f3a34}
  .entity-club-career-row>span:nth-child(5){grid-area:method;font-size:11px;color:#756d64;align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .entity-club-career-row>span:nth-child(5).is-muted{color:#b8b0a4}
  .entity-club-career-logo{width:16px;height:16px}
}
.entity-dossier-heading p{
  margin: 0 0 6px;
  color: var(--entity-accent, #b42525);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.entity-dossier-heading h2{
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}
.entity-dossier{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #1b1b1b;
}
.entity-dossier div{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #dedede;
}
.entity-dossier div:nth-child(odd){
  padding-right: 18px;
}
.entity-dossier div:nth-child(even){
  padding-left: 18px;
  border-left: 1px solid #dedede;
}
.entity-dossier dt,
.entity-dossier dd{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.entity-transfers{
  grid-template-columns: 1fr;
}
.entity-transfers div,
.entity-transfers div:nth-child(odd),
.entity-transfers div:nth-child(even){
  grid-template-columns: minmax(88px, 0.35fr) minmax(0, 1fr);
  padding-right: 0;
  padding-left: 0;
  border-left: 0;
}
.entity-transfers dd{
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}
.entity-dossier dt{
  color: #595959;
}
.entity-dossier dd{
  color: #171717;
  font-weight: 700;
  text-align: right;
}
.entity-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.entity-chip-row span{
  padding: 2px 8px;
  border: 1px solid #d4d4d4;
  color: #333;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  line-height: 1.4;
}
.entity-career-list{
  display: grid;
  gap: 0;
  border-top: 1px solid #1b1b1b;
}
.entity-career-row{
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #dedede;
}
.entity-career-main{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.entity-career-main strong{
  font-size: 13px;
}
.entity-career-main span,
.entity-career-row p{
  margin: 0;
  color: #666;
  font-size: 12px;
}
.entity-career-row p{
  margin-top: 6px;
  color: #171717;
}
.entity-team-squad-list{
  display: grid;
  gap: 18px;
}
.entity-team-squad-group{
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #1b1b1b;
}
.entity-team-squad-group-head h3{
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}
.entity-team-squad-group-head p{
  margin: 4px 0 0;
  color: #666;
  font-size: 12px;
}
.entity-team-squad-headers{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.entity-team-squad-headers span{
  padding: 2px 8px;
  border: 1px solid #d7d7d7;
  color: #555;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}
.entity-team-squad-table{
  margin-top: 10px;
  border-top: 1px solid #1b1b1b;
}
.entity-team-squad-row{
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1.15fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
}
.entity-team-squad-avatar{
  width: 22px;
  height: 22px;
  align-self: center;
  justify-self: start;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}
.entity-team-squad-row span.entity-team-squad-avatar-fallback{
  display: inline-block;
}
.entity-team-squad-head{
  color: #666;
  font-size: 11px;
  font-weight: 700;
}
.entity-team-squad-row span{
  min-width: 0;
  overflow-wrap: anywhere;
}
.entity-team-squad-number,
.entity-team-squad-captain{
  text-align: center;
}
.entity-team-squad-name .entity-team-squad-captain{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid #b42525;
  border-radius: 3px;
  color: #b42525;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  vertical-align: 1px;
}
.entity-team-squad-stats{
  color: #171717;
}
.entity-team-squad-injury{
  align-self: center;
  color: #b42525;
  font-size: 11px;
  line-height: 1.45;
}
.entity-team-stat-leaders{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.entity-history-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.entity-history-grid .entity-team-history-group{
  min-width: 0;
}
.entity-team-stat-leader{
  flex: 1 1 220px;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  background: #fafafa;
}
.entity-stat-leader-avatar{
  display: grid;
  place-items: center;
}
.entity-stat-leader-avatar img,
.entity-stat-leader-avatar .entity-avatar-fallback{
  width: 32px;
  height: 32px;
}
.entity-stat-leader-body{
  display: grid;
  gap: 1px;
  min-width: 0;
}
.entity-team-stat-leader .entity-stat-leader-body strong{
  color: #666;
  font-size: 11px;
  font-weight: 700;
}
.entity-stat-leader-player{
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.entity-stat-leader-value{
  justify-self: end;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.entity-honours-list{
  display: grid;
  /* 每行只显示一个奖项（用户 2026-08-28 定案）。 */
  grid-template-columns: 1fr;
  margin: 0;
  border-top: 1px solid #1b1b1b;
}
.entity-honours-list div{
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #dedede;
}
.entity-honours-list dt,
.entity-honours-list dd{
  margin: 0;
}
.entity-honours-list dt{
  color: #171717;
  font-size: 12px;
  font-weight: 700;
}
.entity-honours-list dd{
  margin-top: 6px;
  /* 批六定案：年份 chips + 「+N」按钮行内化（不占独立行）。 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.entity-honours-list dd .entity-chip-row{
  /* 批六定案：内层 chip-row 与 +N 按钮同行（让 +N 紧跟最后 chip），保持 flex-wrap 自然换行。 */
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* 球员荣誉获奖行（用户 2026-09-11 定案）：队徽+简称+赛季 chip，全部平铺不折叠。 */
.entity-honours-list .entity-honour-win{
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.entity-honour-crest{
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}
/* 用户 2026-09-11 定案：球员荣誉单行布局（奖项图标+名称 与 获奖球队/年份同行）。 */
.entity-honours-list.entity-honours-player div{
  display: flex;
  align-items: center;
  gap: 12px;
  /* 高亮行不再有左边框，普通行同步补左内边距保持水平对齐（2026-09-12 定案）。 */
  padding-left: 10px;
}
.entity-honours-list.entity-honours-player dt{
  /* 图标+奖项×N 列固定宽（用户 2026-09-11 定案），超长截断。 */
  flex: 0 0 118px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.entity-honours-list.entity-honours-player dd{
  flex: 1 1 auto;
  margin-top: 0;
  min-width: 0;
}
.entity-honour-icon{
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.entity-team-history-list{
  display: grid;
  /* 进球/助攻/场次 一行三列（用户 2026-08-28 定案）。 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.entity-team-history-group{
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #1b1b1b;
}
.entity-team-history-group h3{
  margin: 0 0 8px;
  color: #666;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.entity-team-history-group ol{
  margin: 0;
  padding-left: 18px;
}
.entity-team-history-group li{
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.entity-team-managers{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #1b1b1b;
}
.entity-team-manager{
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #dedede;
}
.entity-team-manager strong,
.entity-team-manager em,
.entity-team-manager span,
.entity-team-manager p{
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}
.entity-team-manager strong{
  font-size: 13px;
}
.entity-team-manager em,
.entity-team-manager span{
  color: #666;
  font-size: 12px;
  font-style: normal;
}
.entity-team-manager p{
  margin-top: 6px;
  font-size: 12px;
}
.entity-competition-section{
  display: block;
  grid-template-columns: none;
  padding: 28px 0;
  border-bottom: 1px solid #1b1b1b;
}
.entity-competition-rules,
.entity-competition-standings,
.entity-competition-standings-group,
.entity-competition-history{
  min-width: 0;
}
.entity-competition-rules{
  display: grid;
  gap: 14px;
}
.entity-competition-rules-copy{
  margin: 0;
  color: #303030;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.entity-competition-zone-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entity-competition-zone-legend li{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #d9d9d9;
  background: #fafafa;
}
.entity-competition-zone-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #333;
  font-size: 12px;
  line-height: 1.4;
}
.entity-competition-zone-swatch{
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zone-color, #b9b9b9) 0 50%, var(--zone-split, var(--zone-color, #b9b9b9)) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.entity-competition-standings{
  display: grid;
  gap: 18px;
}
.entity-competition-standings-group h3{
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
}
.entity-competition-table-wrap{
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.entity-competition-table{
  display: block;
  width: 100%;
  min-width: 690px;
}
.entity-competition-table-row{
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(200px, 1.6fr) 44px 44px 44px 44px minmax(70px, 1fr) 60px;
  align-items: center;
  gap: 8px;
  padding: 12px 64px 12px 10px;
  border-bottom: 1px solid #ececec;
}
.entity-competition-table-row::before{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--zone-color, transparent);
  content: "";
}
.entity-competition-table-head{
  color: #666;
  font-size: 11px;
  font-weight: 700;
}
.entity-competition-table-head::before{
  background: transparent;
}
.entity-competition-cell{
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}
.entity-competition-rank{
  color: #111;
  font-weight: 700;
  text-align: center;
}
.entity-competition-team{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.entity-competition-team-logo,
.entity-competition-team-avatar{
  flex: none;
  width: 28px;
  height: 28px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  font-size: 10px;
  font-weight: 700;
}
.entity-competition-team-name-wrap{
  min-width: 0;
  display: grid;
  gap: 4px;
}
.entity-competition-team-name-wrap strong{
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.entity-competition-zone-tag{
  position: absolute;
  top: 0;
  left: 2px;
  display: inline-flex;
  width: fit-content;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #666;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.entity-competition-standings-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.entity-competition-cell.is-won{
  color: #1f8a3d;
  font-weight: 700;
}
.entity-competition-cell.is-drawn{
  color: #666;
}
.entity-competition-cell.is-lost{
  color: #c8161d;
  font-weight: 700;
}
.entity-competition-cell.is-points{
  color: #111;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}
.entity-competition-goals{
  display: grid;
  gap: 2px;
  line-height: 1.2;
}
.entity-competition-goals-main{
  color: #111;
  font-weight: 600;
}
.entity-competition-table-row .is-sub{
  color: #666;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.entity-competition-history{
  display: grid;
  gap: 12px;
}
.entity-competition-history-table-wrap{
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.entity-competition-history-table{
  width: 100%;
  border-collapse: collapse;
}
.entity-competition-history-more{
  margin: 10px auto 0;
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 12px;
}
.entity-competition-history-table th{
  padding: 8px 8px;
  border-bottom: 1px solid #1b1b1b;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}
.entity-competition-history-table td{
  padding: 9px 8px;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}
.entity-competition-history-table tr:last-child td{
  border-bottom-color: transparent;
}
.entity-competition-history-table .is-season{
  width: 56px;
  padding-right: 2px;
  color: #666;
  white-space: nowrap;
}
.entity-competition-history-table .is-team{
  display: table-cell;
  vertical-align: middle;
}
.entity-competition-history-table .is-team strong{
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.entity-competition-history-table td.is-person{
  display: table-cell;
  vertical-align: middle;
}
.entity-competition-history-table .is-person-main{
  display: grid;
  gap: 2px;
  min-width: 0;
}
.entity-competition-history-table .is-person-main strong{
  overflow-wrap: anywhere;
  font-size: 13px;
}
.entity-competition-history-table .is-sub{
  color: #666;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.entity-competition-history-table .is-value{
  text-align: right;
  color: #111;
  font-weight: 700;
  white-space: nowrap;
}
.entity-competition-history-table .is-rank{
  width: 34px;
  color: #666;
  font-weight: 700;
  text-align: center;
}
.entity-competition-history-avatar{
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efefef;
  object-fit: cover;
}
.entity-competition-history-table .entity-competition-player-avatar-fallback{
  flex: none;
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.entity-competition-history-note{
  margin: 2px 0 0;
  color: #999;
  font-size: 11px;
  text-align: right;
}
.entity-competition-history-chip{
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 1px 7px;
  border: 1px solid #e3e3e3;
  background: #f4f4f4;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}
.entity-competition-history-table .entity-competition-history-cell{
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
}
.entity-competition-top-scorers{
  display: block;
}
.entity-competition-top-scorers-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.entity-competition-top-scorers-col{
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entity-competition-top-scorers-row{
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #ececec;
  font-size: 13px;
  line-height: 1.4;
}
.entity-competition-top-scorers-row:last-child{
  border-bottom: 0;
}
.entity-competition-top-scorers-rank{
  color: #666;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.entity-competition-top-scorers-person{
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.entity-competition-top-scorers-value{
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.entity-competition-top-scorers-row .is-person-main{
  display: grid;
  gap: 2px;
  min-width: 0;
}
.entity-competition-top-scorers-row .is-person-main strong{
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.entity-competition-top-scorers-row .is-sub{
  color: #666;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.entity-competition-player-avatar-fallback{
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.entity-competition-player-avatar-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efefef;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}
.entity-competition-rules-block{
  display: grid;
  gap: 8px;
}
.entity-competition-rules-block h3{
  margin: 0;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.entity-competition-rules-points{
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #303030;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.entity-competition-rules-points.is-notes{
  color: #666;
  font-size: 12px;
  line-height: 1.65;
}
.entity-competition-zone-table{
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entity-competition-zone-row{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e3e3e3;
  background: #fafafa;
  font-size: 12px;
}
.entity-competition-zone-row .entity-competition-zone-swatch{
  flex: none;
}
.entity-competition-zone-name{
  font-weight: 700;
  color: #222;
}
.entity-competition-zone-range{
  margin-left: auto;
  color: #666;
  white-space: nowrap;
}
.entity-competition-table-row.has-zone{
  background: color-mix(in srgb, var(--zone-color, transparent) 13%, transparent);
}
@keyframes entity-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entity-classic-moments-section{
  padding: 30px 0 28px;
  border-bottom: 1px solid #1b1b1b;
}
.entity-classic-moments-heading{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.entity-classic-moments-heading h2{
  margin: 0;
  color: #171717;
  font-size: 20px;
  line-height: 1.3;
}
.entity-classic-moments{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entity-classic-moment{
  min-width: 0;
}
.entity-classic-moment button{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.entity-classic-moment-media{
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #d1d1d1;
  background: #e9e9e9;
}
.entity-classic-moment-media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 180ms ease, transform 180ms ease;
}
.entity-classic-moment-media img[data-motion-loaded="true"]{
  filter: grayscale(20%);
}
.entity-classic-moment-rank{
  position: absolute;
  top: 0;
  left: 0;
  min-width: 29px;
  padding: 4px 6px;
  background: #151515;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}
.entity-classic-moment-title{
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.entity-classic-moment-title time{
  color: #777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1.2;
}
.entity-classic-moment-title strong{
  display: -webkit-box;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.entity-classic-moment-caption{
  display: -webkit-box;
  overflow: hidden;
  color: #696969;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.entity-classic-moment-credit{
  display: inline-block;
  margin-top: 5px;
  color: #777;
  font-size: 10px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: #b4b4b4;
  text-underline-offset: 2px;
}
.entity-classic-moment button:hover .entity-classic-moment-media{
  border-color: #111;
}
.entity-classic-moment button:hover img{
  filter: grayscale(0%);
  transform: scale(1.025);
}
.entity-classic-moment button:focus-visible{
  outline: 2px solid #171717;
  outline-offset: 4px;
}
.entity-classic-moment-credit:focus-visible{
  outline: 2px solid #171717;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .entity-classic-moment-media img {
    transition: none;
  }

  .entity-classic-moment button:hover img {
    transform: none;
  }
}

.entity-section{
  padding-top: 30px;
}
.entity-section-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.entity-section h2{
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
@media (max-width: 640px) {
.entity-hero{
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 26px;
  }
.entity-page[data-entity-type="team"] .entity-hero{
    grid-template-columns: 1fr;
  }
.entity-page[data-entity-type="team"] .entity-hero-copy{
    order: 2;
  }
.entity-page[data-entity-type="team"] .entity-profile-image{
    order: 1;
    width: min(66vw, 240px);
    min-height: 0;
    aspect-ratio: 1;
  }
.entity-hero h1{
    font-size: 42px;
  }
.entity-profile-image{
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
.entity-profile-facts{
    margin-top: 20px;
  }
.entity-highlights-section{
    padding-bottom: 22px;
  }
.entity-dossier-section{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
.entity-dossier{
    grid-template-columns: 1fr;
  }
.entity-dossier div:nth-child(odd),
  .entity-dossier div:nth-child(even){
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }
.entity-honours-list,
  .entity-team-managers{
    grid-template-columns: 1fr;
  }
.entity-team-history-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
.entity-career-row,
  .entity-team-squad-group,
  .entity-team-history-group,
  .entity-team-manager{
    padding-right: 0;
    padding-left: 0;
  }
.entity-team-squad-row{
    grid-template-columns: 24px 36px minmax(0, 1.15fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 6px;
  }
.entity-team-squad-avatar{
    width: 18px;
    height: 18px;
  }
.entity-team-squad-head{
    font-size: 10px;
  }
.entity-team-stat-leaders{
    flex-direction: column;
  }
.entity-team-stat-leader{
    flex-basis: auto;
  }
.entity-history-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
.entity-competition-section{
    padding: 24px 0;
  }
.entity-competition-table{
    min-width: 470px;
  }
.entity-competition-table-row{
    grid-template-columns: 34px minmax(128px, 1.3fr) 30px 30px 30px 30px minmax(54px, 1fr) 44px;
    gap: 4px;
    padding: 10px 56px 10px 8px;
    font-size: 11px;
  }
.entity-competition-cell.is-points{
    font-size: 14px;
  }
.entity-competition-table-row .is-sub{
    font-size: 10px;
  }
.entity-competition-zone-tag{
    top: 0;
    left: 3px;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    padding: 0 5px;
  }
.entity-competition-history-table .entity-competition-history-cell{
    flex-direction: row;
    gap: 5px;
    text-align: left;
  }
.entity-competition-history-table .entity-competition-history-chip{
    order: 0;
    margin-right: 0;
  }
.entity-competition-history-table .is-person-main{
    justify-items: start;
  }
.entity-competition-history-table th,
  .entity-competition-history-table td{
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
  }
.entity-competition-history-table th{
    font-size: 10px;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
.entity-competition-history-table .entity-competition-history-avatar,
  .entity-competition-history-table .entity-competition-player-avatar-fallback{
    width: 24px;
    height: 24px;
  }
.entity-competition-top-scorers-cols{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
.entity-competition-top-scorers-row{
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 8px 6px;
    gap: 6px;
    font-size: 12px;
  }
.entity-competition-top-scorers-row .is-person-main strong{
    font-size: 12px;
  }
.entity-competition-top-scorers-row .is-sub{
    font-size: 11px;
  }
.entity-competition-top-scorers-value{
    font-size: 12px;
  }
.entity-competition-history-chip{
    min-width: 22px;
    padding: 0 5px;
    margin-right: 0;
    font-size: 10px;
  }
.entity-competition-history-table th,
  .entity-competition-history-table td{
    padding-left: 6px;
    padding-right: 6px;
  }
.entity-competition-history-table th:first-child,
  .entity-competition-history-table td:first-child{
    padding-left: 0;
  }
.entity-competition-history-table th:last-child,
  .entity-competition-history-table td:last-child{
    padding-right: 0;
  }
.entity-highlights{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.entity-highlights div{
    padding: 16px 12px 0;
  }
.entity-highlights dd{
    font-size: 22px;
    /* 窄屏长值（如“2034-06-30到期”）不再搪破格子引出页面横向滚动 */
    white-space: normal;
    overflow-wrap: anywhere;
  }
.entity-highlights div:nth-child(odd){
    padding-left: 0;
    border-left: 0;
  }
.entity-classic-moments-section{
    padding: 24px 0 22px;
  }
.entity-classic-moments-heading{
    margin-bottom: 12px;
  }
.entity-classic-moments-heading h2{
    font-size: 18px;
  }
.entity-classic-moments{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }
.entity-classic-moment-title strong{
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
.entity-hero-copy,
  .entity-profile-image{
    animation: none;
  }
}
@media (prefers-color-scheme: dark) {
.entity-hero .eyebrow{
    color: #9b9ba0;
  }
.entity-summary{
    color: #c9c9cd;
  }
.entity-aliases span{
    color: #8f8f95;
  }
.entity-aliases span + span::before{
    color: #55555b;
  }
.entity-profile-facts,
  .entity-dossier{
    border-top-color: #c9c9cd;
  }
.entity-profile-facts div,
  .entity-dossier div{
    border-bottom-color: #2e2e33;
  }
.entity-dossier div:nth-child(even){
    border-left-color: #2e2e33;
  }
.entity-profile-facts dt{
    color: #8f8f95;
  }
.entity-profile-facts dd{
    color: #d6d6da;
  }
.entity-profile-image{
    background: #1d1d20;
  }
.entity-page[data-entity-type="team"] .entity-profile-image{
    border-color: #333338;
    background: #19191c;
  }
.entity-competition-section{
    border-bottom-color: #2e2e33;
  }
.entity-competition-rules-copy{
    color: #d0d0d4;
  }
.entity-competition-rules-block h3{
    color: #9a9aa0;
  }
.entity-competition-rules-points{
    color: #d0d0d4;
  }
.entity-competition-zone-row{
    border-color: #2e2e33;
    background: #17171a;
  }
.entity-competition-zone-name{
    color: #e8e8e6;
  }
.entity-competition-zone-range{
    color: #9a9aa0;
  }
.entity-competition-player-avatar-fallback{
    background: #1d1d20;
    color: #e8e8e6;
  }
.entity-competition-zone-legend li{
    border-color: #2e2e33;
    background: #17171a;
  }
.entity-competition-history-table th{
    border-bottom-color: #c9c9cd;
  }
.entity-competition-history-table td{
    border-bottom-color: #2e2e33;
  }
.entity-competition-history-table .is-season,
  .entity-competition-history-table .is-sub,
  .entity-competition-history-table .is-rank,
  .entity-competition-history-note{
    color: #9a9aa0;
  }
.entity-competition-history-table .is-value,
  .entity-competition-history-table .is-team strong,
  .entity-competition-history-table .is-person-main strong{
    color: #e8e8e6;
  }
.entity-competition-history-avatar{
    background: #1d1d20;
  }
.entity-competition-zone-badge{
    color: #d6d6da;
  }
.entity-competition-zone-swatch{
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
.entity-competition-table-row{
    border-bottom-color: #2e2e33;
  }
.entity-competition-cell.is-won{
    color: #2fbf66;
  }
.entity-competition-cell.is-drawn{
    color: #8f8f95;
  }
.entity-competition-cell.is-lost{
    color: #ff5961;
  }
.entity-competition-cell.is-points{
    color: #e8e8e6;
  }
.entity-competition-goals-main{
    color: #e8e8e6;
  }
.entity-competition-table-row .is-sub{
    color: #9a9aa0;
  }
.entity-competition-top-scorers-row{
    border-bottom-color: #2e2e33;
  }
.entity-competition-top-scorers-rank,
  .entity-competition-top-scorers-row .is-sub{
    color: #9a9aa0;
  }
.entity-competition-top-scorers-value{
    color: #e8e8e6;
  }
.entity-competition-history-chip{
    background: #1d1d20;
    border-color: #2e2e33;
    color: #e8e8e6;
  }
.entity-competition-zone-tag{
    background: rgba(23, 23, 26, 0.7);
    color: #b9b9bd;
  }
.entity-competition-table-head{
    color: #9a9aa0;
  }
.entity-competition-rank,
  .entity-competition-team-name-wrap strong{
    color: #e8e8e6;
  }
.entity-competition-team-logo,
  .entity-competition-team-avatar{
    color: #e8e8e6;
  }
.entity-highlights-section,
  .entity-dossier-section,
  .entity-classic-moments-section{
    border-bottom-color: #c9c9cd;
  }
.entity-highlights div{
    border-left-color: #333338;
  }
.entity-highlights dd{
    color: #ececf0;
  }
.entity-highlights dt{
    color: #9a9aa0;
  }
.entity-team-history-group h3{
    color: #9a9aa0;
  }
.entity-team-squad-name .entity-team-squad-captain{
    border-color: #e08c85;
    color: #e08c85;
  }
.entity-team-squad-injury{
    color: #e08c85;
  }
.entity-classic-moments-heading h2{
    color: #e8e8e6;
  }
.entity-classic-moment-media{
    border-color: #33333a;
    background: #1d1d20;
  }
.entity-classic-moment-rank{
    background: #e8e8e6;
    color: #121214;
  }
.entity-classic-moment-title time{
    color: #8f8f95;
  }
.entity-classic-moment-title strong{
    color: #d6d6da;
  }
.entity-classic-moment-caption{
    color: #8f8f95;
  }
.entity-classic-moment-credit{
    color: #9a9aa0;
    text-decoration-color: #55555c;
  }
.entity-classic-moment button:hover .entity-classic-moment-media{
    border-color: #d6d6da;
  }
.entity-classic-moment button:focus-visible,
  .entity-classic-moment-credit:focus-visible{
    outline-color: #d6d6da;
  }
}
.entity-page[data-entity-type="team"] .entity-hero{
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 30px 0 28px;
  border-bottom: 3px solid var(--entity-accent, #b42525);
}
.entity-page[data-entity-type="team"] .entity-profile-image{
  width: 150px;
  height: 150px;
  min-height: 0;
  align-self: center;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid #e7e7e7;
  background: linear-gradient(180deg, #fff 0%, #f7f7f5 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.entity-page[data-entity-type="team"] .entity-profile-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.entity-page[data-entity-type="team"] .entity-hero-copy{
  min-width: 0;
}
.entity-page[data-entity-type="team"] .entity-hero h1{
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.12;
}
.entity-avatar-img{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e9e9e9;
  background: #f4f4f4;
}
.entity-avatar-fallback{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f0ece5;
  border: 1px solid #e3ddd3;
  color: #6b5d4d;
  font-size: 14px;
  font-weight: 800;
}
.entity-profile-fallback{
  width: 72px;
  height: 72px;
  font-size: 22px;
}
.entity-team-squad-group-head{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1b1b1b;
}
.entity-team-squad-group-head h3{
  margin: 0;
  font-size: 15px;
}
.entity-squad-count{
  color: var(--muted);
  font-size: 11px;
}
.entity-team-squad-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.entity-squad-card{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  background: #fff;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.entity-squad-card:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.entity-squad-card.is-captain{
  border-color: var(--entity-accent, #b42525);
}
.entity-squad-card.is-injured{
  opacity: 0.72;
}
.entity-squad-avatar{
  position: relative;
  flex: none;
  border-radius: 0;
}
.entity-squad-avatar .entity-avatar-img,
.entity-squad-avatar .entity-avatar-fallback{
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.entity-squad-number{
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #fff;
}
.entity-squad-body{
  min-width: 0;
}
.entity-squad-name{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
}
.entity-squad-captain-badge{
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--entity-accent, #b42525);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.entity-squad-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.entity-squad-mv{
  color: #1a7a3a;
  font-weight: 800;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  padding: 1px 6px;
  border-radius: 0;
}
.entity-squad-injury{
  /* 伤停备注：姓名下一行独立显示，不占表格列（用户 2026-08-28 定案）。 */
  flex-basis: 100%;
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}
.entity-team-squad-name-wrap{
  flex-wrap: wrap;
}
.entity-team-staff-list{
  display: grid;
  /* 管理团队单列：先教练组后工作人员，一行一组（用户 2026-08-28 定案）。 */
  grid-template-columns: 1fr;
  gap: 14px;
  border-top: 1px solid #1b1b1b;
  padding-top: 12px;
}
.entity-staff-card{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  background: #fff;
}
.entity-staff-avatar{ flex: none; border-radius: 0; }
.entity-staff-avatar .entity-avatar-img,
.entity-staff-avatar .entity-avatar-fallback{
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.entity-staff-body{
  min-width: 0;
  display: grid;
  gap: 2px;
}
.entity-staff-role{
  color: var(--entity-accent, #b42525);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.entity-staff-name{
  font-size: 14px;
  line-height: 1.2;
}
.entity-staff-en{
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.entity-history-group-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1b1b1b;
}
.entity-history-group-head h3{
  margin: 0;
  font-size: 14px;
}
.entity-history-more{
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.entity-history-list{
  display: grid;
  /* TOP5 纵向列表（用户 2026-08-28 定案）：三类各一列，行内不再分栏。 */
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entity-history-row{
  /* 批五定案（用户指定）：左列收窄让位姓名，去四边框改下边框，整体更松弛。 */
  display: grid;
  grid-template-columns: 5px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 5px;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  background: #fafafa;
}
.entity-history-row > img{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0ece5;
}
.entity-history-rank{
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.entity-history-avatar.entity-avatar-img,
.entity-history-avatar.entity-avatar-fallback{
  width: 32px;
  height: 32px;
  font-size: 11px;
  border-radius: 50%;
}
.entity-history-player{
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  /* 批五定案：姓名允许换行完整显示（用户要求名称可读优先，不再省略号截断）。 */
  overflow-wrap: anywhere;
}
.entity-history-value{
  color: #111;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.entity-team-managers{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #1b1b1b;
  padding-top: 12px;
}
.entity-team-manager{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 0;
  background: #fff;
}
.entity-manager-avatar{ flex: none; border-radius: 0; }
.entity-manager-avatar > img,
.entity-manager-avatar .entity-avatar-img,
.entity-manager-avatar .entity-avatar-fallback{
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.entity-manager-body{
  min-width: 0;
}
.entity-manager-body strong{ display: block; font-size: 13px; }
.entity-manager-body em, .entity-manager-body span{ display: block; color: var(--muted); font-size: 11px; font-style: normal; }
.entity-manager-body p{ margin: 6px 0 0; color: #1a1a1a; font-size: 11px; }
@media (max-width: 720px) {
  .entity-page[data-entity-type="player"] .entity-hero {
    grid-template-columns: clamp(112px, 32vw, 150px) minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 16px;
  }

  .entity-page[data-entity-type="player"] .entity-hero-copy {
    display: contents;
  }

  .entity-page[data-entity-type="player"] .entity-profile-image {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 100%;
    height: auto;
    min-height: 112px;
    max-width: 150px;
    aspect-ratio: 1;
    justify-self: start;
    order: 0;
  }

  .entity-page[data-entity-type="player"] .entity-hero .eyebrow,
  .entity-page[data-entity-type="player"] .entity-hero h1,
  .entity-page[data-entity-type="player"] .entity-hero .entity-aliases {
    grid-column: 2;
  }

  .entity-page[data-entity-type="player"] .entity-hero .eyebrow {
    grid-row: 1;
    align-self: end;
  }

  .entity-page[data-entity-type="player"] .entity-hero h1 {
    grid-row: 2;
    margin-top: 0;
    font-size: clamp(26px, 7vw, 38px);
    align-self: center;
  }

  .entity-page[data-entity-type="player"] .entity-hero .entity-aliases {
    grid-row: 3;
    margin-top: 0;
    align-self: start;
  }

  .entity-page[data-entity-type="player"] .entity-profile-facts {
    grid-column: 1 / -1;
    grid-row: 5;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin-top: 8px;
  }

  .entity-page[data-entity-type="player"] .entity-profile-facts div {
    padding: 8px 8px 8px 0;
  }

  .entity-page[data-entity-type="player"] .entity-profile-facts dd {
    font-size: 12px;
  }

  .entity-page[data-entity-type="team"] .entity-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
  }
  .entity-page[data-entity-type="team"] .entity-profile-image {
    width: 112px;
    height: 112px;
    border-radius: 14px;
  }
  .entity-page[data-entity-type="team"] .entity-profile-image img {
    padding: 8px;
  }
  .entity-page[data-entity-type="team"] .entity-hero h1 {
    font-size: clamp(24px, 7.2vw, 34px);
  }
  .entity-team-staff-list,
  .entity-team-managers,
  .entity-team-history-list,
  .entity-history-list {
    grid-template-columns: 1fr;
  }
}

.entity-team-squad-group-head{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1b1b1b;
}
.entity-team-squad-group-head h3{ margin: 0; font-size: 15px; }
.entity-squad-count{ color: var(--muted); font-size: 11px; }
.entity-team-squad-table{
  border-top: 0;
}
.entity-team-squad-row{
  display: grid;
  /* 批八定案：7 列显式模板（球员 + 出场/进球/助攻 + 零封/丢球 + 国籍 + 年龄 + 身价），
     数字列固定 32px（最多 3 位数字），国籍/身价 76px 定宽（防止 3.5千万折行）。 */
  grid-template-columns: minmax(104px, 1.3fr) repeat(3, 32px) 76px 30px 76px;
  gap: 6px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid #ececec;
}
.entity-team-squad-row:last-child{ border-bottom: 0; }
.entity-team-squad-row.entity-team-squad-item{
  display: block;
  padding: 0;
}
.entity-team-squad-item .entity-team-squad-main{
  display: grid;
  /* 批八：内层 main 与 head 行用同一显式 7 列模板，保证表头/内容栅格对齐。 */
  grid-template-columns: minmax(104px, 1.3fr) repeat(3, 32px) 76px 30px 76px;
  gap: 6px;
  align-items: center;
  padding: 7px 4px;
}
.entity-team-squad-item .entity-team-squad-main > span{
  text-align: center;
  min-width: 0;
  font-size: 12px;
}
.entity-team-squad-item .entity-team-squad-main > span.is-player{
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.entity-team-squad-injury-row{
    /* padding: 0 4px 8px 50px; */
    color: #b42525;
    font-size: 11px;
    line-height: 1.45;
    text-align: left;
}
.entity-team-squad-injury-row .entity-squad-injury{
  flex-basis: auto;
  color: inherit;
  font-weight: 700;
}
.entity-person-link{
  color: inherit;
  text-decoration: none;
}
.entity-person-link:hover{
  color: var(--entity-accent, #b42525);
}
.entity-team-squad-row.entity-team-staff-row{
  grid-template-columns: minmax(150px, 1.6fr) 1.2fr 1fr 56px;
}
.entity-team-staff-table .entity-team-squad-head{
  grid-template-columns: minmax(150px, 1.6fr) 1.2fr 1fr 56px;
}
.entity-team-squad-row.entity-team-squad-head{
  padding: 6px 4px;
  border-bottom: 1px solid #1b1b1b;
  color: #777;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}
.entity-team-squad-row > span{ min-width: 0; text-align: center; font-size: 12px; }
.entity-team-squad-row > span.is-player{
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.entity-team-squad-avatar{
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
}
.entity-team-squad-avatar img,
.entity-team-squad-avatar .entity-avatar-fallback{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.entity-team-squad-avatar .entity-team-squad-number{
  position: absolute;
  left: -14px;
  bottom: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  border: 2px solid #fff;
}
.entity-team-squad-name-wrap{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.entity-team-squad-name-wrap strong{
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entity-squad-captain-badge{
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--entity-accent, #b42525);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.entity-team-squad-row .is-mv{ color: #1a7a3a; font-weight: 700; }
.entity-team-squad-row .is-mv.has-value{
    color: #fff;
    background: #1a7a3a;
    border-radius: 0;
    padding: 2px 8px;
    font-size: 12px;
    justify-self: right;
    white-space: nowrap;
    width: 60px;
}
.entity-team-squad-row.is-injured .is-player{ opacity: 0.78; }
.entity-team-manager{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  background: #fff;
  transition: box-shadow 160ms ease;
}
.entity-team-manager:hover{ box-shadow: 0 6px 18px rgba(0,0,0,0.07); }
.entity-manager-avatar{ flex: none; }
.entity-manager-avatar .entity-avatar-img,
.entity-manager-avatar .entity-avatar-fallback{
  width: 48px;
  height: 48px;
}
.entity-manager-head{
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.entity-manager-head strong{ font-size: 14px; }
.entity-manager-period{
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
  white-space: nowrap;
}
.entity-manager-metrics{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.entity-manager-chip{
  display: inline-block;
  padding: 2px 9px;
  border-radius: 0;
  background: #f2f2ee;
  border: 1px solid #e3e3dc;
  color: #333;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}
.entity-manager-chip.is-rate{
  background: #fdf0ee;
  border-color: #f0d4cf;
  color: var(--entity-accent, #b42525);
}
.entity-team-season{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #1b1b1b;
}
.entity-season-card{
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  background: #fff;
}
.entity-season-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0ec;
}
.entity-season-head strong{ font-size: 15px; }
.entity-season-head > span{ color: var(--muted); font-size: 11px; white-space: nowrap; }
.entity-season-status{
  padding: 1px 8px;
  border-radius: 0;
  background: #f2f2ee;
  font-weight: 700;
}
.entity-season-status.is-promoted{ background: #1a7a3a; color: #fff; }
.entity-season-status.is-eliminated{ background: #b42525; color: #fff; }
.entity-season-status.is-ongoing{ background: #555; color: #fff; }
.entity-season-status.is-champion{ background: #2e7d32; color: #fff; }
.entity-season-card.is-eliminated .entity-season-status{ background: #f5eaea; color: #a33; }
.entity-season-card.is-champion .entity-season-status{ background: #e8f5e9; color: #2e7d32; }
.entity-season-main{
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
}
.entity-season-rank{
  display: grid;
  justify-items: center;
  padding-right: 16px;
  border-right: 1px solid #eee;
}
.entity-season-rank b{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.entity-season-rank span{ margin-top: 4px; color: var(--muted); font-size: 11px; }
.entity-season-stats{
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.entity-season-stats div{
  display: grid;
  justify-items: center;
  gap: 2px;
}
.entity-season-stats b{ font-size: 16px; line-height: 1.2; }
.entity-season-stats span{ color: var(--muted); font-size: 10px; }
.entity-season-stat-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}
.entity-season-stat{
  border-radius: 0;
  text-align: center;
  padding: 8px 4px;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.entity-season-stat b{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}
.entity-season-stat span{
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}
.entity-season-stat.is-win{ background: #e7f4ec; color: #1a7a3a; }
.entity-season-stat.is-draw{ background: #f0efec; color: #555; }
.entity-season-stat.is-loss{ background: #fbeaea; color: #b42525; }
/* 批九定案：暗色模式覆盖（@media prefers-color-scheme: dark 相邻块） */
@media (prefers-color-scheme: dark) {
  .entity-season-stat.is-win { background: rgba(26, 122, 58, 0.22); color: #7fd0a0; }
  .entity-season-stat.is-draw { background: rgba(255, 255, 255, 0.08); color: #bbb; }
  .entity-season-stat.is-loss { background: rgba(180, 37, 37, 0.25); color: #f0a0a0; }
}
.entity-season-foot{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.entity-season-foot span{
  padding: 1px 8px;
  border-radius: 0;
  background: #f2f2ee;
  color: #555;
  font-size: 11px;
  font-weight: 600;
}
.entity-season-cup-detail{ padding-top: 10px; display: grid; gap: 6px; }
.entity-season-cup-detail p{
  margin: 0;
  color: #333;
  font-size: 12px;
  line-height: 1.6;
}
.entity-season-cup-detail p.is-next{ color: #1a5c8a; font-weight: 700; }
.entity-season-card.is-league{ border-top: 3px solid var(--entity-accent, #b42525); }
.entity-season-card.is-cup{ border-top: 3px solid #c9b06a; }
.entity-season-card.is-eliminated{ opacity: 0.85; }
.entity-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.entity-chip-row span{
  flex: none;
  padding: 1px 8px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fafaf8;
  color: #555;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
button.entity-chip-more{
  flex: none;
  padding: 1px 9px;
  border: 1px dashed #c9b06a;
  border-radius: 0;
  background: #fdf9ee;
  color: #8a6d00;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.7;
  cursor: pointer;
}
button.entity-chip-more:hover{ background: #f7efd8; }
span.entity-chip-more{
  flex: none;
  padding: 1px 9px;
  border: 1px dashed #c9b06a;
  border-radius: 0;
  background: #fdf9ee;
  color: #8a6d00;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.7;
}
.entity-honours-divider{
  grid-column: 1 / -1;
  margin: 6px 0 2px;
  border-top: 1px dashed #d8d8d0;
}
.entity-honours-list div.is-minor{
  opacity: 0.55;
}
.entity-honours-list div.is-minor dt{
  font-weight: 600;
}
.entity-honours-list div.is-primary{
  /* tier1 奖项强调改底边框+背景色，不再用左侧边框（用户 2026-09-12 定案：
     左边框使高亮行与普通行水平错位）。 */
  border-bottom: 1px solid #9b6522;
  background: color-mix(in srgb, #9b6522 9%, transparent);
}
.entity-honours-list div.is-primary dt{
  color: #111;
  font-weight: 800;
  font-size: 13px;
}
.entity-seasons-toggle{
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.entity-seasons-toggle > summary{
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  /* 批六定案：summary 外观做成与 .entity-chip-row span 一致的小芯片。 */
  margin: 0;
  padding: 1px 8px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fafaf8;
  color: #555;
  font-family: Georgia, serif;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
  font-weight: 800;
  user-select: none;
  vertical-align: middle;
}
.entity-seasons-toggle > summary::-webkit-details-marker{
  display: none;
}
.entity-seasons-toggle[open] > summary{
  background: #efe9dd;
}
.entity-seasons-toggle > .entity-chip-row{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 0;
}
details.entity-seasons-toggle[open] > .entity-chip-row{ display: inline-flex; flex-wrap: wrap; }
.entity-history-list{ gap: 6px 14px; }
@media (max-width: 720px) {
  .entity-team-squad-row,
  .entity-team-squad-item .entity-team-squad-main {
    /* 批八定案：移动端 7 列显式模板（球员+出场/进球/助攻+零封/丢球+国籍+年龄+身价），
       数字列 26px，国籍 64px / 身价 60px，11px 字号下 nowrap 已有保障。 */
    grid-template-columns: minmax(80px, 1.25fr) repeat(3, 26px) 64px 24px 60px;
    gap: 4px;
  }
  /* 批七定案：移动端数据格居中 11px、姓名 12px；球员格水平排列。 */
  .entity-team-squad-row > span,
  .entity-team-squad-item .entity-team-squad-main > span { font-size: 11px; }
  .entity-team-squad-row.entity-team-squad-head > span { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .entity-team-squad-item .entity-team-squad-main > span.is-player { gap: 6px; }
  .entity-team-squad-row .is-player { gap: 6px; }
  .entity-team-squad-name-wrap strong { font-size: 12px; }
  .entity-team-squad-row .is-mv.has-value {
    color: #fff;
    background: #1a7a3a;
    border-radius: 0;
    padding: 2px 8px;
    font-size: 12px;
    justify-self: right;
    white-space: nowrap;
    width: 46px;
  }
  .entity-team-squad-injury-row { padding-left: 40px; } /* 30px 头像 + 6px gap + 4px 行距 */
  .entity-team-squad-avatar,
  .entity-team-squad-avatar img,
  .entity-team-squad-avatar .entity-avatar-fallback {
    width: 30px;
    height: 30px;
  }
  .entity-team-season { grid-template-columns: 1fr; }
  .entity-season-main { gap: 12px; }
  .entity-season-rank b { font-size: 28px; }
}
.entity-team-squad-row .is-empty{ color: #c0c0c0; font-weight: 400; }
.entity-team-squad-injury-cross{
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  line-height: 13px;
  border-radius: 50%;
  background: #c8161d;
  color: #fff;
  font-size: 9px;
  text-align: center;
  z-index: 3;
  font-weight: 700;
  font-style: normal;
}
@media (max-width: 640px) {
  .entity-page[data-entity-type="player"] .entity-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}
