.squad-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 20px 12px;
}

.squad-summary > div,
.squad-summary > .squad-summary-card {
  box-sizing: border-box;
  display: grid;
  min-height: 88px;
  align-content: center;
  padding: 13px 8px;
  text-align: center;
  border: 1px solid #dce8e1;
  border-radius: 14px;
  background: #fff;
}

.squad-summary-card {
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.squad-summary > :not(.lineup-value-summary) { grid-column: span 2; }

.squad-summary b,
.squad-summary span {
  display: block;
}

.squad-summary b { color: var(--green-800); font-size: 20px; }
.squad-summary b.value-over-cap { color: #bf3131; }
.squad-summary span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.squad-summary > .lineup-value-summary { grid-column: span 3; min-height: 88px; padding: 13px 8px; text-align: center; }
.squad-summary > .lineup-value-summary b { font-size: 20px; }

.owned-roster-panel { margin: 0 20px 16px; padding: 13px; border: 1px solid #cfe3d5; border-radius: 16px; background: #f8fcf9; }
.owned-roster-panel .section-head { margin-bottom: 8px; }
.owned-roster-panel .secondary-btn { padding: 7px 10px; font-size: 11px; }
.owned-roster-list { display: grid; gap: 7px; max-height: 440px; overflow-y: auto; }
.owned-roster-player { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 1px solid #dce8e1; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.owned-roster-player:active { transform: scale(.99); }
.owned-roster-player > span:nth-child(2) { flex: 1; min-width: 0; }
.owned-roster-player b, .owned-roster-player small, .owned-roster-player i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owned-roster-player b { color: var(--green-950); font-size: 12px; }
.owned-roster-player small, .owned-roster-player i { margin-top: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.owned-roster-player i { color: #678075; }
.owned-roster-player em { display: inline-block; margin-left: 5px; color: #278451; font-size: 10px; font-style: normal; }
.owned-roster-player > strong { flex: 0 0 auto; color: var(--green-700); font-size: 11px; }

.squad-warning {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff5dc;
  color: #8a5c00;
  font-size: 13px;
  line-height: 1.5;
}

.squad-warning.ready { background: #e8f7ed; color: #186137; }

.lineup-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.lineup-settings label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lineup-settings select {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px 8px;
  border: 1px solid #cfddd5;
  border-radius: 10px;
  background: #fff;
  color: var(--green-900);
  font: inherit;
  font-size: 13px;
}

.lineup-hint { color: var(--muted); font-size: 12px; }

.squad-list { display: grid; gap: 8px; margin-bottom: 16px; }

.squad-player {
  display: grid;
  grid-template-columns: auto 36px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #dce8e1;
  border-radius: 13px;
  background: #fff;
}

.squad-player.selected { border-color: var(--green-600); background: #f0faf3; }
.squad-player input { width: 18px; height: 18px; accent-color: var(--green-700); }
.squad-player-main b,
.squad-player-main small { display: block; }
.squad-player-main b { color: var(--green-900); font-size: 14px; }
.squad-player-main small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.squad-player > strong { color: var(--green-800); font-size: 18px; }

/* 球员头像：优先使用导入表中的图片链接，失效时显示姓名首字母。 */
.player-photo,
.detail-photo,
.auction-player-avatar,
.squad-player-avatar {
  position: relative;
  overflow: hidden;
}

.player-photo img,
.detail-photo img,
.auction-player-avatar img,
.squad-player-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.has-image .avatar-fallback { display: none; }

.auction-player-chip { justify-content: flex-start; }
.auction-player-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.auction-player-identity > span:last-child { display: grid; min-width: 0; gap: 2px; }
.auction-player-chip .auction-player-identity b { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.auction-player-chip .auction-player-identity small { color: var(--muted); font-size: 10px; font-weight: 700; }
.auction-player-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: linear-gradient(135deg, #355c4d, #96bea6); color: #fff; font-size: 11px; font-weight: 900; }
.squad-player-avatar { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #355c4d, #96bea6); color: #fff; font-size: 11px; font-weight: 900; }
.player-result-main em { display: block; overflow: hidden; margin-top: 2px; color: #87938d; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-style: normal; }
.detail-original-name { position: relative; z-index: 1; margin: 2px 0 0; color: #d6ecdf; font-size: 12px; }

.simulation-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 20px 16px;
  padding: 14px;
  border: 1px solid #bcdac4;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff9f1, #ffffff);
}

.simulation-entry h2 { margin: 0; color: var(--green-900); font-size: 15px; }
.simulation-entry p { margin: 4px 0 0; color: #557263; font-size: 11px; line-height: 1.45; }
.simulation-entry .secondary-btn { flex: 0 0 auto; }

.lineup-lock-notice { display: grid; gap: 4px; margin: 0 20px 14px; padding: 11px 13px; border: 1px solid #bcdac4; border-radius: 13px; background: #f1f9f3; color: #426955; }
.lineup-lock-notice b { color: var(--green-800); font-size: 12px; }
.lineup-lock-notice span { font-size: 11px; line-height: 1.45; }
.lineup-lock-notice.locked { border-color: #dfbd58; background: #fff9e8; color: #78632e; }
.lineup-lock-notice.locked b { color: #8a6810; }
.simulation-slot:disabled, .simulation-candidate:disabled { cursor: not-allowed; opacity: .66; }

.simulation-page { padding-bottom: 112px; }
.lineup-save-form,
.friendly-lineup-page > form[data-form="save-friendly-template"],
.friendly-lineup-page > form[data-form="submit-friendly-invite"],
.friendly-lineup-page > form[data-form="submit-friendly-lineup"] { margin: 0 20px 16px; }
.simulation-intro { margin: 2px 20px 12px; }
.simulation-intro h1 { margin: 0; color: var(--green-950); font-size: 22px; letter-spacing: -.6px; }
.simulation-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.simulation-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 20px 10px; }
.simulation-settings label { color: var(--muted); font-size: 11px; font-weight: 800; }
.simulation-settings select { box-sizing: border-box; width: 100%; margin-top: 5px; border: 1px solid #cadbd0; border-radius: 10px; padding: 9px 8px; background: #fff; color: var(--green-900); font: inherit; font-size: 12px; }
.tactical-settings-details { margin: 0 20px 12px; border: 1px solid #dce8e1; border-radius: 13px; background: #fff; overflow: hidden; }
.tactical-settings-details > summary { display: flex; align-items: center; min-height: 38px; padding: 0 12px; cursor: pointer; color: var(--green-800); font-size: 12px; font-weight: 800; list-style: none; }
.tactical-settings-details > summary::-webkit-details-marker { display: none; }
.tactical-settings-details > summary::after { content: "⌄"; margin-left: auto; color: var(--green-700); font-size: 16px; transition: transform .16s ease; }
.tactical-settings-details[open] > summary { border-bottom: 1px solid #e5eee8; }
.tactical-settings-details[open] > summary::after { transform: rotate(180deg); }
.tactical-settings-details > p { margin: 9px 12px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tactical-settings-details .simulation-settings { margin: 9px 12px 12px; gap: 8px; }
.tactical-settings-details .simulation-settings select { padding: 8px; }
.simulation-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 20px 12px; }
.simulation-summary > div { padding: 10px 12px; border-radius: 13px; background: #fff; border: 1px solid #dce8e1; }
.simulation-summary b, .simulation-summary span { display: block; }
.simulation-summary b { color: var(--green-800); font-size: 16px; }
.simulation-summary b.value-over-cap { color: #bf3131; }
.simulation-summary span { margin-top: 3px; color: var(--muted); font-size: 10px; }

.football-pitch {
  position: relative;
  height: 510px;
  margin: 0 20px 16px;
  overflow: hidden;
  border: 5px solid #f8fff9;
  border-radius: 20px;
  background: repeating-linear-gradient(90deg, #2f8c5a 0, #2f8c5a 10%, #358f5e 10%, #358f5e 20%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.36), 0 6px 16px rgba(12,62,36,.16);
}

.football-pitch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.63); transform: translateX(-50%); }
.football-pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 98px; height: 98px; border: 2px solid rgba(255,255,255,.63); border-radius: 50%; transform: translate(-50%, -50%); }
.simulation-slot { position: absolute; z-index: 2; left: var(--slot-x); top: var(--slot-y); width: 78px; min-height: 49px; transform: translate(-50%, -50%); border: 1px dashed rgba(255,255,255,.88); border-radius: 13px; padding: 5px 4px; background: rgba(10,62,37,.45); color: #fff; text-align: center; box-shadow: 0 3px 8px rgba(7,43,25,.17); }
.simulation-slot.active { border: 2px solid #ffd463; box-shadow: 0 0 0 3px rgba(255,212,99,.28); }
.simulation-slot.filled { border-style: solid; background: #fff; color: var(--green-950); }
.simulation-slot span, .simulation-slot b, .simulation-slot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simulation-slot span { opacity: .88; font-size: 8px; font-weight: 800; }
.simulation-slot b { margin-top: 2px; font-size: 10px; }
.simulation-slot small { margin-top: 2px; color: inherit; font-size: 8px; }
.simulation-slot.filled small { color: var(--muted); }

.simulation-picker { margin: 0 20px 16px; padding: 14px; border: 1px solid #d5e5d9; border-radius: 17px; background: #fff; }
.simulation-picker .section-head { margin-bottom: 9px; }
.simulation-picker .section-head > div:first-child { min-width: 0; flex: 1 1 auto; }
/* The default-lineup slot reset sits beside a multi-line position note on
   small phones. Keep it as the same compact outline control, but reserve
   enough width for its four Chinese characters instead of letting flexbox
   compress it into two lines. */
.simulation-picker .section-head > button[data-action="clear-lineup-slot"] {
  flex: 0 0 82px;
  min-width: 82px;
  min-height: 40px;
  padding: 8px 10px;
  line-height: 1.15;
  white-space: nowrap;
}
.simulation-picker .section-title { font-size: 15px; }
.simulation-hint { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.simulation-search { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.simulation-search input { min-width: 0; border: 1px solid #c4d8ca; border-radius: 10px; padding: 10px; color: var(--ink); font: inherit; font-size: 12px; }
.simulation-candidates { display: grid; gap: 7px; max-height: 400px; margin-top: 11px; overflow-y: auto; }
.simulation-candidate { display: flex; align-items: center; gap: 9px; width: 100%; border: 1px solid #dce8e1; border-radius: 12px; padding: 8px; background: #fff; color: var(--ink); text-align: left; }
.simulation-candidate > span:nth-child(2) { flex: 1; min-width: 0; }
.simulation-candidate b, .simulation-candidate small, .simulation-candidate em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simulation-candidate b { color: var(--green-950); font-size: 12px; }
.simulation-candidate small, .simulation-candidate em { margin-top: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.simulation-candidate em { color: #678075; }
.simulation-candidate > strong { flex: 0 0 auto; color: var(--green-700); font-size: 10px; }
.simulation-candidate.is-unavailable { border-color: #dfbd58; background: #fffaf0; }
.simulation-candidate.is-unavailable em,
.simulation-candidate.is-unavailable > strong { color: #8a6810; }
.simulation-candidate-avatar { width: 38px; height: 38px; flex: 0 0 auto; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, #355c4d, #96bea6); color: #fff; font-size: 11px; font-weight: 900; }
.simulation-candidate-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.simulation-empty { margin: 8px 0; color: var(--muted); text-align: center; font-size: 11px; }
.simulation-note { margin: 10px 20px 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.45; }

.fixtures-page { padding-bottom: 104px; }
.fixtures-page > .ranking-tabs { margin: 0 20px 15px; padding: 0 0 4px; }
.fixtures-page > .fixtures-progress { margin: -3px 20px 17px; }

.fixture-round {
  margin: 0 20px 16px;
  overflow: hidden;
  border: 1px solid #d8e7dd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(17, 36, 29, .055);
}

.fixture-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid #e2ece5;
  background: linear-gradient(135deg, #f5fbf6, #fff);
}

.fixture-round-head > div { min-width: 0; }
.fixture-round-head h2 { margin: 0; color: var(--green-900); font-size: 16px; }
.fixture-round-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.fixture-round-head > span { flex: 0 0 auto; margin-left: auto; padding: 5px 8px; border-radius: 999px; background: #e7f4eb; color: var(--green-700); font-size: 11px; font-weight: 800; }
.fixture-round-toggle { flex: 0 0 auto; margin-left: 0; border: 1px solid #cfe3d5; border-radius: 999px; padding: 6px 9px; background: #fff; color: var(--green-800); font-size: 11px; font-weight: 800; }
.fixture-round-list { padding: 0 14px; }
.fixture-round.is-collapsed .fixture-round-list { display: none; }
.fixture-round.is-collapsed .fixture-round-head { border-bottom: 0; }
.friendly-rule-note { display: block; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.fixture-round .fixture-card {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e5eee8;
  background: transparent;
}

.fixture-round .fixture-card:last-child { border-bottom: 0; }
.fixture-round .fixture-card.mine { margin: 0 -7px; padding-right: 7px; padding-left: 7px; border-radius: 10px; background: #f1faf3; box-shadow: inset 3px 0 0 var(--green-500); }
.fixture-team-slot { min-width: 0; display: grid; gap: 2px; color: var(--green-900); }
.fixture-team-slot.away { text-align: right; }
.fixture-team-slot .team-name-link { overflow: hidden; color: inherit; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.fixture-team-slot small { grid-column: auto; color: var(--muted); font-size: 10px; text-align: inherit; }
.fixture-score { color: var(--green-800); text-align: center; font-size: 14px; }
.fixture-card > small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; text-align: center; }
.fixture-detail-link { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fixture-detail-link:active { transform: scale(.99); }
.team-name-link { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: inherit; cursor: pointer; }
.team-name-link:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.team-name-link:active { transform: scale(.98); }
.fixture-result-link { border: 0; padding: 3px 1px; background: transparent; font: inherit; font-weight: 900; cursor: pointer; }
.fixture-result-link:hover { color: var(--green-600); text-decoration: underline; }
.fixture-detail-meta { grid-column: 1 / -1; border: 0; padding: 2px 0 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; text-align: center; cursor: pointer; }
.fixture-detail-meta:hover { color: var(--green-700); text-decoration: underline; }
.fixtures-progress { margin: -3px 0 17px; color: var(--muted); font-size: 12px; text-align: center; }

.cup-view-switch { display: flex; gap: 7px; margin: -5px 20px 15px; }
.cup-view-switch .ranking-tab { min-width: 82px; }
.cup-bracket,
.cup-bracket-pending { margin: 0 20px 18px; border: 1px solid #d8e7dd; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(17, 36, 29, .055); }
.cup-bracket-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px 11px; border-bottom: 1px solid #e2ece5; background: linear-gradient(135deg, #f5fbf6, #fff); }
.cup-bracket-heading > div { min-width: 0; }
.cup-bracket-heading h2 { margin: 0; }
.cup-bracket-heading p { max-width: 620px; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cup-bracket-champion { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #e7f4eb; color: var(--green-700); font-size: 11px; font-weight: 800; }
.cup-bracket-scroll { overflow-x: auto; padding: 13px; scrollbar-color: #b8d0bf transparent; scrollbar-width: thin; }
.cup-bracket-board { min-width: 760px; display: grid; gap: 14px; }
.cup-bracket-half { display: grid; gap: 8px; }
.cup-bracket-stage-row { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; padding: 4px 0; }
.cup-bracket-stage-row h2,
.cup-bracket-final > h2 { margin: 0; color: #678075; font-size: 11px; font-weight: 800; line-height: 1.35; text-align: center; }
.cup-bracket-stage-grid { display: grid; gap: 9px; }
.stage-round_of_16 .cup-bracket-stage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stage-quarter_final .cup-bracket-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 56%; margin: 0 auto; }
.stage-semi_final .cup-bracket-stage-grid { grid-template-columns: minmax(0, 1fr); width: 26%; margin: 0 auto; }
.cup-bracket-stage-row.upper:not(:last-child)::after,
.cup-bracket-stage-row.lower:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 29px); width: 1px; height: 9px; background: #c8dbce; }
.cup-bracket-stage-row.upper:not(:last-child)::after { bottom: -7px; }
.cup-bracket-stage-row.lower:not(:last-child)::after { top: -7px; }
.cup-bracket-final { display: grid; grid-template-columns: 58px minmax(0, 210px); align-items: center; justify-content: center; gap: 10px; padding: 5px 0; }
.cup-bracket-final > h2 { color: var(--green-800); }
.cup-bracket-tie { min-width: 0; padding: 9px 8px 8px; border: 1px solid #dce8e1; border-radius: 12px; background: #fff; box-shadow: 0 2px 5px rgba(20, 69, 43, .035); text-align: center; }
.cup-bracket-tie.is-mine { border-color: #8fc7a0; background: #f3fbf5; box-shadow: inset 3px 0 0 var(--green-500), 0 2px 5px rgba(20, 69, 43, .035); }
.cup-bracket-tie.is-placeholder { border-style: dashed; background: #fbfdfb; color: #9aaea0; }
.cup-bracket-scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center; gap: 3px; min-height: 25px; }
.cup-bracket-scoreline.is-upcoming { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.cup-bracket-scoreline .team-name-link,
.cup-bracket-team-placeholder { min-width: 0; overflow: hidden; color: var(--green-900); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cup-bracket-scoreline > .team-name-link:last-child,
.cup-bracket-scoreline > .cup-bracket-team-placeholder:last-child { text-align: right; }
.cup-bracket-versus { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; min-height: 20px; border-radius: 999px; padding: 0 5px; background: #e7f4eb; color: var(--green-700); font-size: 9px; font-weight: 900; line-height: 1; }
.cup-bracket-tie.is-placeholder .cup-bracket-team-placeholder { color: #9aaea0; }
.cup-bracket-tie.is-placeholder .cup-bracket-versus { background: #f0f6f1; color: #93a99a; }
.cup-bracket-score-link { border: 0; padding: 2px 1px; background: transparent; color: var(--green-800); font: inherit; font-weight: 900; cursor: pointer; }
.cup-bracket-score-link:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.cup-bracket-leg-score { color: #789083; font-size: 10px; font-weight: 700; }
.cup-bracket-total { min-width: 34px; color: var(--green-950); font-size: 12px; white-space: nowrap; }
.cup-bracket-penalty,
.cup-bracket-result,
.cup-bracket-next { display: block; margin-top: 5px; font-size: 10px; line-height: 1.3; }
.cup-bracket-penalty { color: #9f3a65; }
.cup-bracket-result { color: var(--green-700); font-weight: 800; }
.cup-bracket-next { color: var(--muted); }
.cup-bracket-pending { padding: 18px 14px; text-align: center; }
.cup-bracket-pending h2 { margin: 0; }
.cup-bracket-pending p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.ranking-tabs { display: flex; gap: 7px; margin: 0 0 15px; overflow-x: auto; padding: 0 1px 4px; scrollbar-width: none; }
.ranking-tabs::-webkit-scrollbar { display: none; }
.ranking-tab { flex: 0 0 auto; border: 1px solid #ccddd1; border-radius: 999px; padding: 8px 11px; background: #fff; color: #597266; font: inherit; font-size: 12px; font-weight: 800; }
.ranking-tab.active { border-color: var(--green-700); background: var(--green-800); color: #fff; }
.standings-table { overflow: hidden; border: 1px solid #d5e4d9; border-radius: 14px; background: #fff; }
.standings-row { display: grid; grid-template-columns: minmax(108px, 1.7fr) repeat(4, 27px) minmax(51px, .85fr) 27px; align-items: center; min-height: 42px; gap: 2px; padding: 0 8px; border-top: 1px solid #edf3ef; color: var(--ink); font-size: 11px; text-align: center; }
.standings-row:first-child { border-top: 0; }
.standings-row > span:first-child { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.standings-row > span:first-child b { display: inline-grid; width: 19px; height: 19px; place-items: center; margin-right: 3px; border-radius: 6px; background: #e7f4eb; color: var(--green-800); }
.standings-row > b { color: var(--green-800); font-size: 13px; }
.standings-head { min-height: 32px; border: 0; background: #f1f8f3; color: var(--muted); font-size: 10px; font-weight: 800; }
.standings-head > span:first-child { padding-left: 2px; }
.standings-team-link { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: #fff; font: inherit; cursor: pointer; }
.standings-team-link:hover { background: #f6fbf7; }
.standings-team-link:active { background: #edf7ef; transform: scale(.995); }
.ranking-team-hint { margin: 9px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.ranking-list { display: grid; gap: 8px; }
.ranking-player { display: grid; grid-template-columns: 25px 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; border: 1px solid #dce8e1; border-radius: 13px; padding: 8px; background: #fff; color: var(--ink); font: inherit; text-align: left; }
.ranking-number { color: var(--green-700); font-size: 15px; text-align: center; }
.ranking-player > span:nth-child(3) { min-width: 0; }
.ranking-player > span:nth-child(3) b, .ranking-player small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-player > span:nth-child(3) b { color: var(--green-950); font-size: 13px; }
.ranking-player small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ranking-player small .team-name-link { color: var(--green-700); font-size: 10px; }
.ranking-player > strong { color: var(--green-700); font-size: 12px; white-space: nowrap; }
.ranking-team { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; border: 1px solid #dce8e1; border-radius: 13px; padding: 10px 9px; background: #fff; color: var(--ink); }
.ranking-team > span { min-width: 0; }
.ranking-team-link { display: block; max-width: 100%; overflow: hidden; color: var(--green-950); font-size: 13px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ranking-team small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-team > strong { color: var(--green-700); font-size: 12px; white-space: nowrap; }

.team-profile-page { padding-bottom: 34px; }
.team-profile-hero { margin: 8px 20px 13px; padding: 20px 16px 16px; border-radius: 20px; background: linear-gradient(135deg, #0d513d, #168059); color: #fff; text-align: center; }
.team-profile-hero > span { display: block; color: #d4eee0; font-size: 11px; }
.team-profile-hero > b { display: inline-grid; width: 31px; height: 31px; place-items: center; margin: 5px 0 2px; border-radius: 10px; background: rgba(255,255,255,.17); font-size: 17px; }
.team-profile-hero h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.6px; }
.team-profile-hero p { margin: 6px 0 0; color: #d7eee1; font-size: 11px; }
.team-profile-hero .team-profile-stadium-text { margin-top: 4px; color: #e5f5ea; font-weight: 800; }
.team-profile-stadium-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; height: auto; margin: -3px 20px 13px; padding: 12px 13px; border: 1px solid #dce8e1; border-radius: 15px; background: #fff; box-shadow: 0 3px 12px rgba(17,36,29,.06); }
.team-profile-stadium-card > div { min-width: 0; flex: 0 1 128px; }
.team-profile-stadium-card b, .team-profile-stadium-card small { display: block; }
.team-profile-stadium-card b { color: var(--green-900); font-size: 13px; }
.team-profile-stadium-card small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.team-profile-stadium-card form { display: grid; flex: 1 1 210px; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.team-profile-stadium-card input { box-sizing: border-box; min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #cfe0d4; border-radius: 11px; background: #fbfefc; color: var(--green-950); font: inherit; font-size: 12px; outline: none; }
.team-profile-stadium-card input:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(34,126,77,.11); }
.team-profile-stadium-card .secondary-btn { padding: 8px 10px; white-space: nowrap; font-size: 11px; }
.team-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 20px 12px; }
.team-profile-stats > div { min-width: 0; padding: 10px 6px; border: 1px solid #dce8e1; border-radius: 13px; background: #fff; text-align: center; }
.team-profile-stats b, .team-profile-stats span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-profile-stats b { color: var(--green-800); font-size: 13px; }
.team-profile-stats span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.team-profile-record { margin: 0 20px 14px; padding: 13px; border: 1px solid #dce8e1; border-radius: 15px; background: #fff; }
.team-profile-record h2 { margin: 0 0 8px; }
.team-profile-record > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.team-profile-record b { color: var(--green-800); font-size: 15px; }
.team-profile-record > .team-profile-form { display: block; margin-top: 10px; border-top: 1px solid #edf3ef; padding-top: 9px; }
.team-profile-form > small { display: block; margin: 0 1px 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.team-profile-form-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 1px 1px 4px; scrollbar-width: thin; scrollbar-color: #c9ddd0 transparent; }
.team-profile-form-scroll::-webkit-scrollbar { height: 4px; }
.team-profile-form-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #c9ddd0; }
.team-profile-form-chip { display: inline-grid; flex: 0 0 27px; min-height: 25px; place-items: center; border: 1px solid #d7e5db; border-radius: 8px; background: #f5f9f6; color: #60786a; font-size: 11px; font-weight: 900; }
.team-profile-form-chip.win { border-color: #b9dfc7; background: #e8f6ec; color: var(--green-800); }
.team-profile-form-chip.draw { border-color: #d9e2dc; background: #f6f8f6; color: #6e8275; }
.team-profile-form-chip.loss { border-color: #efc9ce; background: #fff3f4; color: #b84e5c; }
.team-rank-history { padding: 13px; }
.team-rank-history .section-head { margin-bottom: 8px; }
.team-rank-history .team-profile-empty { margin: 0; }
.team-rank-chart-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 1px 8px; }
.team-rank-chart-summary b { color: var(--green-800); font-size: 13px; }
.team-rank-chart-summary span { color: var(--muted); font-size: 10px; }
.team-rank-chart-wrap { overflow: hidden; border: 1px solid #e0ece4; border-radius: 12px; background: #fbfefc; }
.team-rank-chart { display: block; width: 100%; height: auto; }
.team-rank-chart-grid { stroke: #dcebe1; stroke-width: 1; stroke-dasharray: 2 3; }
.team-rank-chart-line { fill: none; stroke: var(--green-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.team-rank-chart-dot { fill: #fff; stroke: var(--green-700); stroke-width: 2; }
.team-rank-chart-axis { fill: #71877a; font-family: inherit; font-size: 9px; font-weight: 700; }
.team-profile-section { margin: 0 20px 17px; }
.team-profile-section .section-head { margin-bottom: 8px; }
.team-profile-fixtures { display: grid; gap: 8px; }
.team-profile-fixture { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; padding: 12px; border: 1px solid #dce8e1; border-radius: 15px; background: #fff; box-shadow: 0 3px 10px rgba(17,36,29,.04); }
.team-profile-fixture .fixture-team { color: var(--green-900); font-size: 13px; }
.team-profile-fixture .fixture-score { min-width: 0; color: var(--green-800); font-size: 14px; }
.team-profile-fixture .fixture-detail-meta { grid-column: 1 / -1; min-width: 0; margin-top: 2px; border-top: 1px solid #edf3ef; padding: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: left; white-space: normal; }
.team-profile-fixture .fixture-detail-meta:hover { color: var(--green-700); }
.team-profile-empty { margin: 0; padding: 16px; border: 1px dashed #cbded0; border-radius: 13px; background: #fbfdfb; color: var(--muted); text-align: center; font-size: 11px; }
.season-final-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px; border: 1px solid #d9bf61; border-radius: 14px; background: linear-gradient(135deg, #fff8dc, #fff); }
.season-final-banner > span { font-size: 25px; }
.season-final-banner b, .season-final-banner small { display: block; }
.season-final-banner b { color: #725600; font-size: 13px; }
.season-final-banner small { margin-top: 3px; color: #8b7733; font-size: 10px; }

.match-detail-score { margin: 4px 20px 18px; padding: 17px 12px; border-radius: 18px; background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; text-align: center; }
.match-detail-score > span, .match-detail-score small { display: block; color: #d6ecdf; font-size: 11px; }
.match-detail-score .match-venue-hint, .live-scoreboard .match-venue-hint { margin-top: 6px; color: #e1f4e7; font-weight: 800; }
.match-detail-score > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 10px 0; }
.match-detail-score b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.match-detail-score b:last-child { text-align: right; }
.match-detail-score strong { font-size: 25px; letter-spacing: .5px; }
.match-detail-score .team-name-link, .live-scoreboard .team-name-link { overflow: hidden; color: inherit; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.match-detail-score .team-name-link:last-child, .live-scoreboard .team-name-link:last-child { text-align: right; }
.match-detail-score .team-name-link:hover, .live-scoreboard .team-name-link:hover { color: #d9f6e4; }
.ranked-team { min-width: 0; display: grid; gap: 2px; }
.ranked-team.away { text-align: right; }
.ranked-team small { color: inherit; opacity: .78; font-size: 10px; }
.match-detail-score .ranked-team small, .live-scoreboard .ranked-team small { display: block; color: #d6ecdf; }
.match-events { margin: 0 20px; }
.match-events .section-title { margin-bottom: 10px; }
.match-event { display: grid; grid-template-columns: 39px 1fr; gap: 10px; align-items: center; margin: 7px 0; padding: 10px; border-left: 4px solid #b4c9bb; border-radius: 0 12px 12px 0; background: #fff; }
.match-event.goal { border-left-color: #2a9b60; }
.match-event.yellow_card { border-left-color: #e7b725; }
.match-event.red_card { border-left-color: #d95252; }
.match-event.injury { border-left-color: #8d6cbd; }
.match-event time { color: var(--green-700); font-size: 12px; font-weight: 900; text-align: center; }
.match-event b, .match-event small { display: block; }
.match-event b { color: var(--green-950); font-size: 12px; }
.match-event small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.match-detail-page { padding-bottom: 32px; }
.match-events, .match-statistics { margin: 0 20px 22px; }
.match-report-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.match-report-heading .section-title, .match-statistics .section-title { margin: 0; }
.match-report-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.match-report-heading small b { color: var(--green-800); }

.match-timeline { position: relative; padding: 2px 0; }
.match-timeline::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 8px; bottom: 8px; width: 2px; background: #d6e5da; transform: translateX(-50%); }
.timeline-event { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 39px minmax(0, 1fr); gap: 7px; align-items: center; min-height: 42px; margin: 7px 0; }
.timeline-side { min-width: 0; display: flex; }
.timeline-side.home { justify-content: flex-end; text-align: right; }
.timeline-side.away { justify-content: flex-start; text-align: left; }
.timeline-minute { display: grid; width: 39px; height: 27px; place-items: center; border: 2px solid #bdd4c4; border-radius: 999px; background: #fff; color: var(--green-700); font-size: 10px; font-weight: 900; }
.timeline-event-card { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid #dce8e1; border-left: 3px solid #a9c0b0; border-radius: 10px; background: #fff; box-shadow: 0 2px 5px rgba(20, 69, 43, .04); }
.timeline-event-card.goal { border-left-color: #259558; background: #f0fbf4; }
.timeline-event-card.own_goal { border-left-color: #d85b91; background: #fff2f7; }
.timeline-event-card.yellow_card { border-left-color: #e7b725; background: #fffaf0; }
.timeline-event-card.red_card { border-left-color: #d95252; background: #fff3f3; }
.timeline-event-card.injury { border-left-color: #8d6cbd; background: #f7f4fc; }
.timeline-event-card.substitution { border-left-color: #5c83be; background: #f3f7fd; }
.timeline-event-card i { flex: 0 0 auto; font-style: normal; font-size: 13px; }
.timeline-event-card span { min-width: 0; }
.timeline-event-card b { display: block; overflow: hidden; color: var(--green-950); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; }
.timeline-phase { position: relative; z-index: 2; display: flex; justify-content: center; margin: 12px 0; }
.timeline-phase span { border: 1px solid #cbdacd; border-radius: 999px; padding: 5px 10px; background: #f6faf7; color: var(--green-800); font-size: 10px; font-weight: 800; }
.timeline-penalty-kick .timeline-minute { border-color: transparent; background: transparent; }
.timeline-penalty-kick .timeline-minute::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a9c4b1; }
.timeline-penalty-kick .timeline-event-card { border-left-color: #b95a85; background: #fff5f9; }

.match-lineups { margin: 0 20px 18px; padding: 14px 12px 11px; border: 1px solid #d5e5d9; border-radius: 17px; background: linear-gradient(135deg, #fbfefc, #fff); }
.match-lineups .match-report-heading { margin-bottom: 9px; }
.lineup-history-note { margin: -1px 0 9px; color: #527362; font-size: 10px; }
.match-lineup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.match-lineup-team { min-width: 0; overflow: hidden; border: 1px solid #dce8e1; border-radius: 12px; background: #fff; }
.match-lineup-team.away { border-color: #d8e3ef; }
.match-lineup-team header { padding: 8px; border-bottom: 1px solid #edf3ef; background: #f4faf6; }
.match-lineup-team.away header { background: #f4f8fc; }
.match-lineup-team header b, .match-lineup-team header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-lineup-team header b { color: var(--green-900); font-size: 11px; }
.match-lineup-team header .team-name-link { display: block; width: 100%; overflow: hidden; color: var(--green-900); font-size: 11px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.match-lineup-team header small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.match-lineup-team ol { margin: 0; padding: 4px 7px 7px; list-style: none; }
.match-lineup-team li { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 21px; border-bottom: 1px solid #f0f4f1; color: var(--ink); font-size: 9px; }
.match-lineup-team li:last-child { border-bottom: 0; }
.match-lineup-team li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-lineup-team li small { flex: 0 0 auto; color: var(--muted); font-size: 8px; white-space: nowrap; }
.match-lineup-team .lineup-pending { justify-content: center; min-height: 75px; color: var(--muted); font-size: 10px; }

/* 比赛阵容：一整块竖向球场，上半区主队、下半区客队。 */
.match-lineups.match-lineups-pitch { padding-bottom: 10px; overflow: hidden; }
.match-lineups.is-collapsed .match-lineups-content { display: none; }
.match-lineups-pitch .match-report-heading { padding: 0 1px; }
.match-full-pitch {
  position: relative;
  min-height: 930px;
  margin: 0 -12px;
  overflow: hidden;
  border: 4px solid #f9fffb;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.09) 0 1px, transparent 2px),
    repeating-linear-gradient(0deg, #249452 0, #249452 10%, #2d9b5a 10%, #2d9b5a 20%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 0 45px rgba(0,44,20,.12);
}
.match-full-pitch::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255,255,255,.72);
  transform: translateY(-50%);
}
.match-full-pitch::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.match-pitch-penalty {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 58%;
  height: 12%;
  border: 2px solid rgba(255,255,255,.67);
  transform: translateX(-50%);
}
.match-pitch-penalty.home { top: -2px; border-top: 0; border-radius: 0 0 10px 10px; }
.match-pitch-penalty.away { bottom: -2px; border-bottom: 0; border-radius: 10px 10px 0 0; }
.match-pitch-centre {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  width: calc(100% - 20px);
  min-height: 44px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px;
  background: rgba(8,69,37,.82);
  box-shadow: 0 2px 10px rgba(0,38,17,.22);
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}
.match-pitch-centre > div { min-width: 0; }
.match-pitch-centre .team-name-link { display: block; width: 100%; overflow: hidden; border: 0; background: transparent; color: #fff; font: inherit; font-size: 10px; font-weight: 900; text-align: inherit; text-overflow: ellipsis; white-space: nowrap; }
.match-pitch-centre > div:first-child .team-name-link { text-align: right; }
.match-pitch-centre > div:last-child .team-name-link { text-align: left; }
.match-pitch-centre small { display: block; overflow: hidden; margin-top: 2px; color: #d3efdc; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.match-pitch-centre b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.68); border-radius: 50%; background: #f4fbf6; color: var(--green-900); font-size: 9px; }
.match-pitch-player {
  position: absolute;
  z-index: 3;
  left: var(--pitch-x);
  top: var(--pitch-y);
  display: grid;
  justify-items: center;
  width: 80px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.match-pitch-player:focus-visible { outline: 3px solid #ffd263; outline-offset: 3px; border-radius: 18px; }
.match-pitch-role { min-height: 13px; margin-bottom: 1px; color: rgba(255,255,255,.92); font-size: 8px; font-weight: 900; line-height: 13px; text-shadow: 0 1px 2px rgba(0,40,19,.75); }
.match-pitch-avatar {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: linear-gradient(135deg, #155f38, #8ec2a2);
  box-shadow: 0 2px 6px rgba(0,38,18,.34);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.match-pitch-player.away .match-pitch-avatar { border-color: #d5ebff; background: linear-gradient(135deg, #235f91, #78abd7); }
.match-pitch-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.match-pitch-player-name { display: block; width: 100%; overflow: hidden; margin-top: 3px; color: #fff; font-size: 9px; font-weight: 900; line-height: 1.2; text-align: center; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,35,17,.92); white-space: nowrap; }
.match-pitch-rating { min-width: 30px; margin-top: 3px; padding: 2px 5px; border-radius: 5px; background: rgba(1,64,32,.82); color: #fff; font-size: 10px; line-height: 1; text-align: center; box-shadow: 0 1px 2px rgba(0,34,16,.25); }
.match-pitch-rating.excellent { background: #f5c431; color: #614b00; }
.match-pitch-rating.good { background: #167743; }
.match-pitch-rating.poor { background: #b13d3d; }
.match-pitch-rating.pending { min-width: 35px; background: rgba(255,255,255,.82); color: #296143; font-size: 8px; }
.match-pitch-event-badge { position: absolute; top: 12px; left: calc(50% + 17px); z-index: 2; max-width: 44px; overflow: hidden; padding: 2px 3px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(255,255,255,.95); color: #315642; font-size: 7px; font-weight: 900; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,42,19,.28); }
.match-pitch-empty { position: absolute; z-index: 2; left: 50%; width: 160px; margin: 0; padding: 9px; border: 1px dashed rgba(255,255,255,.8); border-radius: 10px; background: rgba(6,74,37,.38); color: #e1f6e8; font-size: 10px; text-align: center; transform: translateX(-50%); }
.match-pitch-empty.home { top: 24%; }
.match-pitch-empty.away { top: 72%; }
.match-rating-note { margin: 10px 2px 0; color: #527362; font-size: 9px; line-height: 1.48; }
.match-benches { margin: 12px 2px 0; padding: 10px; border: 1px solid #dce8e1; border-radius: 11px; background: rgba(255,255,255,.94); }
.match-benches h3 { margin: 0 0 8px; color: var(--green-900); font-size: 12px; }
.match-benches > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.match-benches > div > div { min-width: 0; }
.match-benches > div > div > b, .match-benches .team-name-link { display: block; overflow: hidden; color: var(--green-800); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.match-bench-player { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; width: 100%; min-height: 32px; margin-top: 3px; border: 0; border-top: 1px solid #edf3ef; padding: 4px 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.match-bench-player span { min-width: 0; }
.match-bench-player b, .match-bench-player small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-bench-player b { font-size: 10px; }
.match-bench-player small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.match-bench-goal { display: inline-block; margin-left: 5px; color: #167743; font-weight: 900; }
.match-bench-player em { padding-left: 4px; color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.account-settings-modal .field { margin: 12px 0; }
.account-settings-modal .form-help { margin: 7px 0 16px; }
.password-reset-code-modal .form-help { margin: 8px 0 15px; }
.password-reset-code { margin: 12px 0 16px; padding: 15px; border: 1px dashed #8bbca0; border-radius: 13px; background: #f1f9f3; color: var(--green-900); font-size: 26px; font-weight: 900; letter-spacing: 5px; text-align: center; }
.team-status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; }
.team-status-actions .secondary-btn { padding: 6px 9px; border-radius: 9px; font-size: 10px; }
.team-status-actions .link-btn { color: #b42318; font-size: 11px; }
.team-status-watch { display: grid; gap: 10px; }
.team-status-group { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: start; }
.team-status-group > b { padding-top: 2px; font-size: 11px; }
.team-status-list { display: flex; flex-wrap: wrap; gap: 5px 9px; min-width: 0; }
.team-status-list > span { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; }
.team-status-player { overflow: hidden; max-width: 128px; border: 0; padding: 0; background: transparent; color: var(--green-800); font: inherit; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.team-status-player:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.team-status-player:active { transform: scale(.98); }
.team-status-list small { color: #785414; font-size: 11px; white-space: nowrap; }
@media (max-width: 360px) {
  .team-status-group { grid-template-columns: 54px minmax(0, 1fr); gap: 6px; }
  .team-status-player { max-width: 105px; }
}
.match-bench-player em.rated { color: var(--green-700); font-weight: 900; }
.match-bench-empty { margin: 6px 0; color: var(--muted); font-size: 9px; }
.lineup-bench-grid { display: grid; grid-template-columns: 1fr; gap: 5px; }
.lineup-bench-grid .owned-roster-player { margin: 0; }
.lineup-bench-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; }
.lineup-bench-slot .owned-roster-player { min-width: 0; margin: 0; }
.bench-slot-remove { align-self: center; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #cfe3d5; border-radius: 50%; padding: 0; background: #fff; color: var(--green-800); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.bench-slot-remove:hover { border-color: #a9cfb5; background: #eef7f0; color: var(--green-900); }
.bench-slot-remove:active { transform: scale(.96); }
@media (max-width: 360px) {
  .match-full-pitch { min-height: 820px; }
  .match-pitch-player { width: 70px; }
  .match-pitch-avatar { width: 38px; height: 38px; }
  .match-pitch-player-name { font-size: 8px; }
  .match-pitch-centre { width: calc(100% - 12px); }
}
.match-awaiting, .live-intro, .live-finished { margin: 0 20px 18px; padding: 13px; border: 1px solid #d5e5d9; border-radius: 15px; background: #fff; color: var(--green-900); font-size: 12px; }
.match-awaiting p, .live-intro p, .live-finished p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.watch-live-btn, .skip-live-btn { display: block; width: calc(100% - 40px); margin: 0 20px 17px; border: 0; border-radius: 13px; padding: 12px; background: linear-gradient(135deg, #1e7c4a, #0f5d34); color: #fff; font: inherit; font-size: 13px; font-weight: 900; }
.live-playback-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; margin: 0 20px 17px; }
.live-playback-actions .skip-live-btn { width: auto; margin: 0; }
.resume-live-btn { border: 1px solid #a8c9b3; border-radius: 13px; padding: 12px 8px; background: #f5faf6; color: var(--green-800); font: inherit; font-size: 13px; font-weight: 900; }

.match-live-page { padding-bottom: 34px; }
.match-live-page > .primary-btn.full-btn {
  width: calc(100% - 40px);
  margin: 0 20px 18px;
}
.live-scoreboard { margin: 4px 20px 18px; padding: 17px 12px; border: 1px solid #167044; border-radius: 18px; background: radial-gradient(circle at 50% 0, #319b65, #0d442a); color: #fff; text-align: center; }
.live-scoreboard .live-pulse { display: inline-block; color: #d6ffdf; font-size: 10px; font-weight: 900; letter-spacing: .3px; }
.live-scoreboard .live-pulse::first-letter { color: #ff5858; }
.live-scoreboard > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 10px 0; }
.live-scoreboard b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.live-scoreboard b:last-child { text-align: right; }
.live-scoreboard strong { font-size: 27px; letter-spacing: .7px; }
.live-scoreboard small { color: #d6ecdf; font-size: 10px; }

@media (max-width: 440px) {
  /* Keep the stadium editor compact on a phone.  The former column layout
     retained the form's flex basis as empty vertical space. */
  .team-profile-stadium-card { align-items: center; flex-direction: row; gap: 9px; padding: 10px; }
  .team-profile-stadium-card > div { flex-basis: 76px; }
  .team-profile-stadium-card small { display: none; }
  .team-profile-stadium-card form { width: auto; min-height: 0; flex: 1 1 auto; gap: 6px; }
  .team-profile-stadium-card input { padding: 8px 9px; }
  .team-profile-stadium-card .secondary-btn { padding: 8px 9px; }
}
.live-finished { border-color: #d6b963; background: linear-gradient(135deg, #fff9de, #fff); color: #735800; text-align: center; }
.live-finished b { font-size: 15px; }
.skip-live-btn { margin-top: -4px; background: #f1f6f2; color: var(--green-800); }

.match-statistics { padding: 14px 12px 10px; border: 1px solid #d5e5d9; border-radius: 17px; background: linear-gradient(135deg, #fbfefc, #fff); }
.match-stat-team-head { display: flex; justify-content: space-between; gap: 12px; margin: 5px 1px 11px; color: var(--muted); font-size: 10px; font-weight: 800; }
.match-stat-team-head span { overflow: hidden; max-width: 44%; text-overflow: ellipsis; white-space: nowrap; }
.match-stat-team-head span:last-child { text-align: right; }
.match-stat-team-head .team-name-link { overflow: hidden; max-width: 44%; color: inherit; text-overflow: ellipsis; white-space: nowrap; }
.match-stat-team-head .team-name-link:last-child { text-align: right; }

.single-auction-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; color: var(--green-700); font-size: 11px; }
.single-auction-controls .single-auction-start { margin-top: 0; }
.auction-group-settled { display: inline-flex; align-items: center; margin-top: 7px; border-radius: 999px; padding: 4px 8px; background: #e7f4ea; color: var(--green-700); font-size: 10px; font-weight: 800; }
.match-stat-row { display: grid; grid-template-columns: minmax(0, 1fr) 57px minmax(0, 1fr); gap: 7px; align-items: center; min-height: 29px; border-top: 1px solid #edf3ef; }
.match-stat-row:first-of-type { border-top: 0; }
.match-stat-row > strong { color: var(--muted); font-size: 10px; text-align: center; }
.match-stat-side { display: grid; align-items: center; gap: 6px; min-width: 0; }
.match-stat-side.home { grid-template-columns: auto minmax(0, 1fr); }
.match-stat-side.away { grid-template-columns: minmax(0, 1fr) auto; }
.match-stat-side b { color: var(--green-900); font-size: 10px; white-space: nowrap; }
.match-stat-side.away b { text-align: right; }
.match-stat-side span { display: flex; overflow: hidden; height: 7px; border-radius: 999px; background: #e7f0e9; }
.match-stat-side.home span { justify-content: flex-end; }
.match-stat-side i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6eb78b, #207b4b); }
.match-stat-side.away i { background: linear-gradient(90deg, #4d88bd, #265e9b); }
.player-season-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.player-season-grid > div { padding: 10px; border: 1px solid #dce8e1; border-radius: 11px; background: #fff; }
.player-season-grid b, .player-season-grid span { display: block; }
.player-season-grid b { color: var(--green-800); font-size: 15px; }
.player-season-grid span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.match-simulation-box { border-left: 3px solid #d08b1d; }

.transfer-lot { border-left: 3px solid #7462ad; }
.transfer-seller { margin: 8px 0; color: var(--muted); font-size: 11px; }
.transfer-seller b { color: var(--green-800); }
.transfer-listing-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.transfer-listing-form select, .admin-tool-form select, .admin-tool-form input, .admin-player-search input { box-sizing: border-box; min-width: 0; width: 100%; border: 1px solid #c8d9ce; border-radius: 10px; padding: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.admin-tools-page { padding-bottom: 98px; }
.admin-tool-card { margin: 0 20px 15px; padding: 14px; border: 1px solid #d5e5d9; border-radius: 17px; background: #fff; }
.admin-tool-card h2 { margin: 0 0 8px; color: var(--green-900); font-size: 15px; }
.admin-tool-card > p { margin: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-tool-form { display: grid; gap: 8px; }
.admin-player-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.admin-player-results { display: grid; gap: 7px; margin: 10px 0; max-height: 260px; overflow-y: auto; }
.admin-player-result { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 9px; width: 100%; border: 1px solid #dce8e1; border-radius: 12px; padding: 8px; background: #fff; color: var(--ink); font: inherit; text-align: left; }
.admin-player-result.selected { border-color: var(--green-600); background: #f0faf3; }
.admin-player-result > span:last-child { min-width: 0; }
.admin-player-result b, .admin-player-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-player-result b { color: var(--green-950); font-size: 12px; }
.admin-player-result small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.selected-admin-player { padding: 10px; border-radius: 10px; background: #edf8f0; color: #426955; font-size: 12px; }
.score-correction-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.score-correction-inputs span { color: var(--green-800); font-size: 20px; font-weight: 900; }
.system-log { display: grid; grid-template-columns: 74px 1fr; gap: 8px; margin: 7px 0; padding: 9px 0; border-top: 1px solid #e8f0eb; }
.system-log time { color: var(--muted); font-size: 10px; line-height: 1.45; }
.system-log p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.5; }
.season-final-card { border-color: #cbb35d; background: linear-gradient(135deg, #fffbed, #fff); }
.season-final-card h2 { color: #816300; }
.plain-player-link { display: inline; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.single-auction-start { margin-top: 8px; font-size: 11px; }
.single-auction-start[disabled] { opacity: .55; cursor: not-allowed; }
.single-next-round { margin: 0 20px 8px; width: calc(100% - 40px); }

.fixture-admin-box { border-left: 3px solid var(--green-600); }

.quick-card.friendly-entry { grid-column: 1 / -1; min-height: 72px; background: linear-gradient(135deg, #f5edff, #fff); border: 1px solid #dfd0f3; }
.quick-card.friendly-entry b { color: #5f4387; }
.search-box-with-position { display: grid; grid-template-columns: 1fr 112px; gap: 7px; padding-right: 66px; }
.search-box-with-position select { min-width: 0; border: 1px solid #c4d8ca; border-radius: 10px; padding: 8px; background: #fff; color: var(--green-900); font: inherit; font-size: 11px; }

.friendlies-page { padding-bottom: 100px; }
.friendly-create, .friendly-list { margin: 0 20px 16px; padding: 14px; border: 1px solid #d5e5d9; border-radius: 17px; background: #fff; }
.friendly-create { background: linear-gradient(135deg, #f5edff, #fff); border-color: #dfd0f3; }
.friendly-create h2, .friendly-list h2 { margin: 0 0 6px; color: var(--green-900); font-size: 15px; }
.friendly-create p { margin: 0 0 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.friendly-create-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.friendly-create-form select { min-width: 0; border: 1px solid #c8d9ce; border-radius: 10px; padding: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.friendly-list .section-head { margin-bottom: 8px; }
.friendly-match-card { margin-top: 9px; padding: 12px; border: 1px solid #dce8e1; border-radius: 13px; background: #fff; }
.friendly-match-card.incoming { border-color: #9875c4; box-shadow: 0 3px 10px rgba(113, 76, 157, .11); }
.friendly-match-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.friendly-match-top b { border-radius: 999px; padding: 4px 7px; background: #f2ebfc; color: #715098; font-size: 10px; }
.friendly-match-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; margin: 10px 0 6px; color: var(--green-900); font-size: 12px; font-weight: 800; }
.friendly-match-score span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friendly-match-score span:last-child { text-align: right; }
.friendly-match-score strong { color: #715098; font-size: 17px; }
.friendly-match-score .team-name-link { overflow: hidden; color: inherit; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.friendly-match-score .team-name-link:last-child { text-align: right; }
.friendly-match-card > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.friendly-match-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.friendly-match-actions .primary-btn, .friendly-match-actions .secondary-btn { padding: 8px 10px; font-size: 11px; }
.friendly-lineup-page .simulation-intro h1 { color: #5f4387; }

/* Shared page gutters and controls. Keep all feature-specific layouts inside this shell. */
:root {
  --page-gutter: 20px;
  --control-radius: 12px;
  --control-border: #c8d9ce;
}

/* The search page uses the candidate card component outside a panel. */
.page > .simulation-candidates {
  max-height: none;
  margin: 0 var(--page-gutter) 16px;
}

.page > .simulation-candidates .empty-state {
  margin: 0 !important;
  border-radius: 17px !important;
}

/* Inputs and native select menus share the same visual language across pages. */
:is(
  .inline-form,
  .admin-tool-form,
  .admin-player-search,
  .transfer-listing-form,
  .friendly-create-form,
  .lineup-settings,
  .simulation-settings,
  .simulation-search,
  .supplement-search,
  .auction-bid-form
) :is(input:not([type="hidden"]), select),
.search-box-with-position select {
  border-color: var(--control-border);
  border-radius: var(--control-radius);
  color: var(--ink);
  font-family: inherit;
}

:is(
  .inline-form,
  .admin-tool-form,
  .admin-player-search,
  .transfer-listing-form,
  .friendly-create-form,
  .lineup-settings,
  .simulation-settings,
  .simulation-search,
  .supplement-search,
  .auction-bid-form
) :is(input:not([type="hidden"]), select):focus,
.search-box-with-position select:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(28, 115, 82, .11);
  outline: 0;
}

/* Command buttons retain their colour semantics while sharing dimensions and corners. */
.primary-btn,
.secondary-btn,
.outline-btn,
.warning-btn,
.danger-btn {
  border-radius: var(--control-radius);
}

.search-submit {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 38px;
  padding: 8px 12px;
  box-shadow: none;
}

/* Keep every leaderboard inside the same content gutter as the page header. */
.rankings-page > .ranking-tabs,
.rankings-page > .standings-table,
.rankings-page > .ranking-list {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
}

.rankings-page > .ranking-tabs {
  margin-bottom: 15px;
}

.rankings-page > .ranking-list {
  margin-bottom: 16px;
}

/* The irreversible league commands use the same card rhythm and gutters as
   the rest of league management, while keeping reset/delete colour cues. */
.admin-danger-stack {
  display: grid;
  gap: 12px;
  margin: 20px var(--page-gutter) 28px;
}

.admin-danger-stack .admin-danger-card {
  width: auto;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  box-shadow: none;
}

.admin-danger-stack .admin-danger-card h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.admin-danger-stack .admin-danger-card p {
  margin-bottom: 18px;
  font-size: 13px;
}

.admin-danger-stack .warning-btn,
.admin-danger-stack .danger-btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--control-radius);
}

@media (max-width: 360px) {
  .squad-summary { grid-template-columns: repeat(2, 1fr); }
  .squad-summary > :not(.lineup-value-summary),
  .squad-summary > .lineup-value-summary { grid-column: span 1; }
  .lineup-settings { grid-template-columns: 1fr; }
  .fixture-card { grid-template-columns: 1fr 36px 1fr; gap: 5px; padding: 10px; }
  .fixture-team { font-size: 12px; }
  .football-pitch { height: 455px; margin-left: 12px; margin-right: 12px; }
  .simulation-slot { width: 68px; }
  .transfer-listing-form { grid-template-columns: 1fr; }
  .friendly-create-form { grid-template-columns: 1fr; }
  .search-box-with-position { grid-template-columns: 1fr; padding-right: 66px; }
}

/* Compact, green-and-white multi-filter controls for the player search. */
.search-box-with-filters { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:stretch; gap:7px; padding:0; }
.search-box-with-filters input { min-width:0; }
.search-box-with-filters .search-filter-toggle, .search-box-with-filters .search-submit { position:static; min-height:44px; padding:8px 11px; white-space:nowrap; }
.search-filter-panel { margin:0 var(--page-gutter) 12px; padding:13px; border:1px solid #d5e5d9; border-radius:17px; background:linear-gradient(135deg,#f7fbf8,#fff); box-shadow:0 4px 14px rgba(22,89,59,.05); }
.search-filter-heading, .search-filter-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.search-filter-heading h2 { margin:0; color:var(--green-950); font-size:15px; }
.search-filter-heading p { margin:3px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.search-filter-section { padding:11px 0; border-top:1px solid #e4eee7; }
.search-filter-section h3 { margin:0 0 7px; color:var(--green-900); font-size:12px; }
.search-filter-choices { display:flex; flex-wrap:wrap; gap:6px; }
.search-filter-choice { min-height:30px; padding:5px 9px; border:1px solid #c9dccf; border-radius:999px; background:#fff; color:var(--green-900); font:inherit; font-size:11px; font-weight:750; }
.search-filter-choice.is-selected, .search-switch.is-selected { border-color:var(--green-700); background:#e6f4e9; color:var(--green-950); }
.search-filter-switches { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.search-switch { min-width:0; padding:9px; border:1px solid #d1e1d6; border-radius:11px; background:#fff; color:var(--ink); text-align:left; font:inherit; }
.search-switch b, .search-switch small { display:block; }
.search-switch b { color:var(--green-900); font-size:11px; }
.search-switch small { margin-top:2px; color:var(--muted); font-size:9px; line-height:1.35; }
.search-switch:disabled { opacity:.52; cursor:not-allowed; }
.search-sort-select { width:100%; min-height:38px; padding:8px 10px; border:1px solid #c8d9ce; border-radius:var(--control-radius); background:#fff; color:var(--ink); font:inherit; font-size:12px; }
.search-filter-actions { padding-top:12px; border-top:1px solid #e4eee7; }
.search-filter-actions > * { flex:1; min-height:40px; }
.search-active-filters { display:flex; flex-wrap:wrap; gap:6px; margin:0 var(--page-gutter) 2px; }
.search-active-filter, .search-clear-all { min-height:28px; padding:4px 8px; border:1px solid #c9dccf; border-radius:999px; background:#f3faf5; color:var(--green-900); font:inherit; font-size:10px; font-weight:750; }
.search-active-filter b { margin-left:2px; font-size:13px; line-height:0; }
.search-clear-all { border-color:transparent; background:transparent; color:var(--muted); }
.search-auction-status, .search-player-favorite { display:inline-block; margin-left:4px; padding:1px 5px; border-radius:999px; background:#eef3ef; color:#547063; font-size:9px; font-style:normal; font-weight:800; white-space:nowrap; }
.search-auction-status.is-active { background:#dff3e5; color:#17703c; }
.search-auction-status.is-sold { background:#edf1ee; color:#65766b; }
.search-auction-status.is-unsold { background:#fff4e8; color:#9b5d12; }
.search-player-favorite { background:#f0e8ff; color:#67458c; }
.search-load-more { display:block; width:calc(100% - (var(--page-gutter) * 2)); margin:0 var(--page-gutter) 20px; }
@media (max-width:390px) { .search-box-with-filters { grid-template-columns:minmax(0,1fr) auto; } .search-box-with-filters .search-submit { grid-column:1 / -1; } .search-filter-switches { grid-template-columns:1fr; } }

/* Transfer listings are a three-row decision form. They must not inherit the
   compact two-column admin form grid, which otherwise collapses select fields. */
.transfer-listing-panel { padding: 15px; }
.transfer-listing-panel > p { margin-bottom: 12px; }
.transfer-listing-panel .team-status { margin: 0 0 12px !important; padding: 11px 12px; border: 1px solid #ead8a2; border-radius: 14px; background: #fff8dc; color: #6d5721; font-size: 11px; line-height: 1.55; }
.transfer-listing-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 2px; }
.transfer-listing-slot { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; }
.transfer-listing-slot > span { color: #52705c; font-size: 11px; font-weight: 800; white-space: nowrap; }
.transfer-listing-form select { min-height: 42px; padding: 9px 10px; }
.transfer-listing-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 3px; }
.transfer-listing-actions .primary-btn { width: 100%; min-height: 42px; }
.transfer-listing-actions .secondary-btn { min-height: 42px; padding: 8px 12px; white-space: nowrap; }

@media (max-width: 460px) {
  .transfer-listing-slot { grid-template-columns: 1fr; gap: 5px; }
  .transfer-listing-actions { grid-template-columns: 1fr; }
  .transfer-listing-actions .secondary-btn { width: 100%; }
}

/* Completed matches can become an independent portrait share image. The source
   card is intentionally compact so a full event timeline stays within mobile
   canvas limits instead of cloning the scrollable report UI. */
.match-report-actions { display: flex; margin: 0 var(--page-gutter) 12px; }
.report-share-btn { width: 100%; min-height: 42px; border: 1px solid #a7cdb2; border-radius: var(--control-radius); background: #f4faf5; color: var(--green-800); font: inherit; font-size: 12px; font-weight: 800; }
.report-share-btn:disabled { opacity: .62; cursor: progress; }

.match-share-modal { position: fixed; z-index: 90; inset: 0; overflow: auto; padding: 18px; background: rgba(6, 34, 23, .58); }
.match-share-dialog { width: min(100%, 760px); margin: 0 auto; border: 1px solid #c8ddd0; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .24); }
.match-share-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 15px; border-bottom: 1px solid #e2ece5; }
.match-share-dialog > header b, .match-share-dialog > header small { display: block; }
.match-share-dialog > header b { color: var(--green-950); font-size: 14px; }
.match-share-dialog > header small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.match-share-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c9dace; border-radius: 50%; background: #fff; color: var(--green-800); font-size: 21px; line-height: 1; }
.match-share-preview { max-height: 66vh; overflow: auto; padding: 12px; background: #f2f6f2; }
.match-share-preview img { display: block; width: 100%; height: auto; border: 1px solid #d9e5dc; background: #fff; }
.match-share-dialog > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 14px; }
.match-share-dialog > footer > * { min-height: 42px; }

.match-share-capture-shell { position: fixed; z-index: 1; top: 0; left: -10000px; width: 720px; pointer-events: none; contain: layout paint style; }
.match-share-card { box-sizing: border-box; width: 720px; padding: 22px; background: #edf3ef; color: #193427; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.match-share-hero { padding: 25px 26px 22px; border: 1px solid #0b603a; border-radius: 14px; background: #0d5937; color: #fff; }
.match-share-brand { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.match-share-brand span { color: #ccebd7; font-size: 14px; font-weight: 700; }
.match-share-brand b { font-size: 18px; }
.match-share-hero > p { margin: 18px 0 8px; color: #d9f2e1; font-size: 13px; text-align: center; }
.match-share-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.match-share-score section { min-width: 0; }
.match-share-score section:last-child { text-align: right; }
.match-share-score section b, .match-share-score section small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-share-score section b { font-size: 22px; }
.match-share-score section small { margin-top: 5px; color: #c2e1cd; font-size: 12px; }
.match-share-score strong { color: #fff; font-size: 44px; line-height: 1; white-space: nowrap; }
.match-share-score strong i { color: #cfe8d8; font-style: normal; }
.match-share-date { display: block; margin-top: 18px; color: #c6e1ce; font-size: 12px; text-align: center; }

.match-share-section { margin-top: 14px; padding: 17px; border: 1px solid #d2e2d6; border-radius: 13px; background: #fff; }
.match-share-section > h2 { margin: 0 0 13px; color: #123b28; font-size: 18px; }
.match-share-lineups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; }
.match-share-team { overflow: hidden; border: 1px solid #d7e5db; border-radius: 10px; background: #fbfdfb; }
.match-share-team > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; background: #e9f4ec; }
.match-share-team:nth-child(2) > header { background: #e8f0f8; }
.match-share-team > header b, .match-share-team > header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-share-team > header b { color: #125d39; font-size: 14px; }
.match-share-team:nth-child(2) > header b { color: #285f98; }
.match-share-team > header small { color: #5f796a; font-size: 10px; }
.match-share-starters { padding: 5px 9px; }
.match-share-player { display: grid; grid-template-columns: 19px minmax(0, 1fr) 30px; gap: 7px; align-items: center; min-height: 40px; border-top: 1px solid #edf2ee; }
.match-share-player:first-child { border-top: 0; }
.match-share-player-number { color: #7b9785; font-size: 10px; font-weight: 800; text-align: center; }
.match-share-player div { min-width: 0; }
.match-share-player b, .match-share-player small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-share-player b { color: #193b2a; font-size: 12px; }
.match-share-player small { margin-top: 2px; color: #6c8274; font-size: 9px; }
.match-share-player em, .match-share-bench-player em { color: #0f663d; font-size: 12px; font-style: normal; font-weight: 900; text-align: right; }
.match-share-team:nth-child(2) .match-share-player em, .match-share-team:nth-child(2) .match-share-bench-player em { color: #28689e; }
.match-share-bench { padding: 9px; border-top: 1px solid #dce8df; background: #f7faf7; }
.match-share-bench > span { display: block; margin-bottom: 4px; color: #637a6b; font-size: 10px; font-weight: 800; }
.match-share-bench-player { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 7px; align-items: center; min-height: 34px; border-top: 1px solid #e8efea; }
.match-share-bench-player div { min-width: 0; }
.match-share-bench-player b, .match-share-bench-player small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-share-bench-player b { color: #2c4939; font-size: 11px; }
.match-share-bench-player small { margin-top: 2px; color: #708374; font-size: 9px; }
.match-share-empty { margin: 8px 0; color: #73857a; font-size: 11px; }

.match-share-events { padding-bottom: 12px; }
.match-share-event { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 39px; margin-top: 7px; padding: 7px 10px; border: 1px solid #dbe8de; border-left: 4px solid #579771; border-radius: 8px; background: #fbfdfb; }
.match-share-event.away { border-left-color: #3979b3; }
.match-share-event.goal { border-color: #a8d7b7; background: #eff9f1; }
.match-share-event.own_goal { border-color: #efb5c7; background: #fff0f5; }
.match-share-event.yellow_card { border-color: #ecd589; background: #fffbed; }
.match-share-event.red_card { border-color: #ecb2b2; background: #fff2f2; }
.match-share-event.substitution { border-color: #b8cbea; background: #f2f6fd; }
.match-share-event time { color: #476e57; font-size: 11px; font-weight: 900; text-align: center; }
.match-share-event span { color: #1e3c2b; font-size: 12px; font-weight: 700; line-height: 1.35; }
.match-share-phase { display: flex; justify-content: center; margin: 10px 0; }
.match-share-phase span { padding: 6px 11px; border: 1px solid #c8dace; border-radius: 999px; background: #f5f9f6; color: #4b6c59; font-size: 11px; font-weight: 800; }
.match-share-statistics article { display: grid; grid-template-columns: 1fr 100px 1fr; gap: 8px; align-items: center; min-height: 32px; border-top: 1px solid #edf2ee; }
.match-share-statistics article:first-of-type { border-top: 0; }
.match-share-statistics b { color: #175d3b; font-size: 12px; }
.match-share-statistics b:last-child { color: #2d679b; text-align: right; }
.match-share-statistics span { color: #617b6b; font-size: 11px; font-weight: 800; text-align: center; }
.match-share-footer { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 19px; align-items: center; margin-top: 14px; padding: 18px 22px; border: 1px solid #c5dccb; border-radius: 13px; background: #f7fbf7; }
.match-share-footer img { display: block; width: 126px; height: 126px; padding: 6px; border: 1px solid #d4e4d8; background: #fff; }
.match-share-footer b, .match-share-footer small, .match-share-footer span { display: block; }
.match-share-footer b { color: #133d29; font-size: 19px; }
.match-share-footer small { margin-top: 8px; color: #47715a; font-size: 12px; overflow-wrap: anywhere; }
.match-share-footer span { margin-top: 11px; color: #73887b; font-size: 11px; line-height: 1.5; }

@media (max-width: 460px) {
  .match-share-modal { padding: 10px; }
  .match-share-dialog > footer { grid-template-columns: 1fr; }
}
