.squad-summary {
  display: grid;
  /* The retired bench-value card left a lone fourth tile under a 3-column
     row. Keep the remaining four lineup facts as an intentional 2 × 2 grid. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 20px;
}

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

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

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

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

.squad-summary b { color: var(--green-800); font-size: 16px; line-height: 1.12; }
.squad-summary b.value-over-cap { color: #bf3131; }
.squad-summary span { margin-top: 1px; color: var(--muted); font-size: 10px; }
.squad-summary > .lineup-value-summary { grid-column: span 1; min-height: 56px; padding: 7px 6px; text-align: center; }
.squad-summary > .lineup-value-summary b { font-size: 16px; }

/* The squad landing area is a control surface, not a dashboard. Keep its
   status cards compact so the manager reaches the actual formation quickly. */
.squad-page > .simulation-entry { gap: 10px; margin: 8px 20px 10px; padding: 9px 11px; border-radius: 13px; }
.squad-page > .simulation-entry h2 { font-size: 14px; }
.squad-page > .simulation-entry p { margin-top: 2px; font-size: 10px; line-height: 1.35; }
.squad-page > .simulation-entry .secondary-btn { min-height: 32px; padding: 6px 9px; font-size: 10px; }
.squad-page > .squad-warning { margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; font-size: 11px; line-height: 1.38; }
.squad-page > .lineup-lock-notice { gap: 2px; margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; }
.squad-page > .lineup-lock-notice b { font-size: 11px; }
.squad-page > .lineup-lock-notice span { font-size: 10px; line-height: 1.35; }
.squad-page > .simulation-intro { margin: 1px 20px 8px; }
.squad-page > .simulation-intro h2 { font-size: 18px; }
.squad-page > .simulation-intro p { margin-top: 3px; font-size: 11px; line-height: 1.38; }

.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; }
.lineup-drafts-panel { margin-top: 0; margin-bottom: 12px; padding: 10px 11px; }
.lineup-drafts-panel .lineup-drafts-head { align-items: center; margin: 0; }
.lineup-drafts-panel .section-title { display: flex; align-items: baseline; gap: 6px; font-size: 16px; }
.lineup-drafts-panel .section-title small { color: #718678; font-size: 10px; font-weight: 750; letter-spacing: 0; }
.lineup-drafts-panel .lineup-drafts-head .secondary-btn { min-height: 30px; padding: 5px 9px; font-size: 10px; }
.lineup-draft-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.lineup-draft-card { display: flex; flex: 1 1 138px; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 7px 8px; border: 1px solid #d7e7dc; border-radius: 10px; background: #fff; }
.lineup-draft-card > div { display: grid; min-width: 0; gap: 1px; }
.lineup-draft-card b { color: var(--green-900); font-size: 11px; }
.lineup-draft-card small { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.lineup-draft-card.is-empty { background: #fbfdfb; }
.lineup-draft-card.is-empty > span { color: #9aaba0; font-size: 9px; font-weight: 800; }
.lineup-draft-card .fixture-round-toggle { min-height: 28px; padding: 5px 7px; font-size: 9px; }
.lineup-draft-save-row { display: flex; gap: 7px; margin-top: 7px; }
.lineup-draft-save-row select { flex: 1 1 auto; min-width: 0; border: 1px solid #cadbd0; border-radius: 9px; padding: 7px; background: #fff; color: var(--green-900); font: inherit; font-size: 10px; }
.lineup-draft-save-row .secondary-btn { flex: 0 0 auto; white-space: nowrap; }
.owned-roster-list { display: grid; gap: 7px; max-height: 440px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
/* Candidate cards must remain ordinary scroll surfaces on mobile. Only their
   small dedicated grip owns a touch drag gesture. */
.owned-roster-list [data-lineup-drag-source="true"]:not(.lineup-drag-handle) { touch-action: pan-y; }
.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; }

/* Dedicated season-registration flow: keep the irreversible roster decision
   visually separate from the ordinary squad editor while retaining its palette. */
.season-registration-page { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.season-registration-hero { margin: 5px 20px 17px; }
.season-registration-hero h1 { margin: 0; color: var(--green-950); font-size: 25px; letter-spacing: -.7px; line-height: 1.18; }
.season-registration-hero p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.season-registration-state-notice { margin: -5px 20px 13px; padding: 9px 11px; border: 1px solid #ead39b; border-radius: 11px; background: #fff8df; color: #8a620f; font-size: 11px; font-weight: 750; line-height: 1.45; }
.season-registration-state-notice.locked { border-color: #d9dede; background: #f4f5f4; color: #7a8580; }
.season-registration-qualification { display: flex; align-items: center; gap: 12px; margin: 0 20px 13px; padding: 14px; border: 1px solid #c8e4d0; border-radius: 17px; background: linear-gradient(135deg, #f5fcf6 0%, #edf8ef 100%); }
.season-registration-qualification-icon { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #d7f1dd; color: #087344; font-size: 22px; font-weight: 900; box-shadow: inset 0 0 0 1px #b6dfc0; }
.season-registration-qualification h2, .season-registration-picker h2 { margin: 0; color: var(--green-950); font-size: 17px; letter-spacing: -.25px; }
.season-registration-qualification p { margin: 4px 0 0; color: #617569; font-size: 11px; line-height: 1.45; }
.season-registration-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 20px 14px; }
.season-registration-option { min-height: 46px; border: 1px solid #b7d0bf; border-radius: 13px; background: #fff; color: var(--green-950); font: inherit; font-size: 14px; font-weight: 850; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.season-registration-option:hover:not(:disabled) { border-color: #6aa681; background: #f3fbf4; }
.season-registration-option:active:not(:disabled) { transform: scale(.985); }
.season-registration-option.active { border-color: #0d6845; background: linear-gradient(135deg, #0b6342, #075338); color: #fff; box-shadow: 0 6px 14px rgba(11, 86, 56, .18); }
.season-registration-option:disabled { cursor: not-allowed; border-color: #d9e4dc; background: #f5f7f5; color: #a5b2a9; }
.season-registration-remedy-wrap { margin: -4px 20px 14px; }
.season-registration-remedy { width: 100%; min-height: 39px; border: 1px dashed #b98b36; border-radius: 12px; background: #fff9e9; color: #80540b; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.season-registration-remedy:hover { border-style: solid; background: #fff3d3; }
.season-registration-picker { margin: 0 20px; padding: 14px 12px 12px; border: 1px solid #d8e7dc; border-radius: 18px; background: #fff; box-shadow: 0 7px 18px rgba(18, 58, 39, .035); }
.season-registration-picker-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 1px 1px 11px; }
.season-registration-picker-head > div { min-width: 0; }
.season-registration-picker-head p { margin: 0; color: #688076; font-size: 11px; line-height: 1.42; text-align: right; }
.season-registration-picker-head p.is-ready { color: #148350; font-weight: 800; }
.season-registration-player-list { display: grid; gap: 8px; max-height: 495px; overflow-y: auto; padding: 1px; scrollbar-color: #b8d5c1 transparent; scrollbar-width: thin; }
.season-registration-player { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 9px 10px; border: 1px solid #e0eae3; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.season-registration-player:hover:not(:disabled) { border-color: #a8ceaf; background: #fbfefb; }
.season-registration-player:active:not(:disabled) { transform: scale(.992); }
.season-registration-player.is-selected { border-color: #9bcfab; background: #f3fbf4; box-shadow: inset 0 0 0 1px #d5ecda; }
.season-registration-player:disabled { cursor: not-allowed; opacity: .55; }
.season-registration-player-check { display: grid; flex: 0 0 auto; width: 31px; height: 31px; place-items: center; border: 1.5px solid #b9cfbf; border-radius: 50%; background: #fff; color: #fff; font-size: 18px; font-weight: 900; line-height: 1; }
.season-registration-player.is-selected .season-registration-player-check { border-color: #087346; background: #087346; box-shadow: 0 2px 7px rgba(8, 115, 70, .18); }
.season-registration-player-copy { min-width: 0; flex: 1 1 auto; }
.season-registration-player-copy b, .season-registration-player-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-registration-player-copy b { color: var(--green-950); font-size: 13px; }
.season-registration-player-copy small { margin-top: 4px; color: #728278; font-size: 10px; }
.season-registration-player-chevron { flex: 0 0 auto; color: #8c9a91; font-size: 27px; font-weight: 300; line-height: 1; }
.season-registration-submit { position: sticky; z-index: 2; bottom: 0; margin-top: 14px; padding: 11px 20px max(11px, env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(245, 245, 239, 0) 0%, #f5f5ef 28%); }
.season-registration-submit .primary-btn { width: 100%; min-height: 48px; border-radius: 14px; font-size: 15px; box-shadow: 0 7px 16px rgba(8, 79, 49, .16); }
.season-registration-submit .primary-btn:disabled { box-shadow: none; }
.season-registration-entry.is-locked { border-color: #dde3df; background: #f5f6f5; }
.season-registration-entry.is-locked h2, .season-registration-entry.is-locked p { color: #77827c; }
.season-registration-entry .secondary-btn:disabled { border-color: #d7ded9; background: #e8ece9; color: #94a099; box-shadow: none; }
@media (max-width: 390px) {
  .season-registration-picker-head { display: block; }
  .season-registration-picker-head p { margin-top: 5px; text-align: left; }
  .season-registration-qualification { align-items: flex-start; }
}

.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,
.responsibility-avatar {
  position: relative;
  overflow: hidden;
}

.player-photo img,
.detail-photo img,
.auction-player-avatar img,
.squad-player-avatar img,
.responsibility-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; }
.football-pitch .simulation-slot.filled:disabled { opacity: 1; cursor: default; }

.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.three-column-tactical-settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.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; }
.tactical-introduction-details { margin: 0 20px 12px; border: 1px solid #dce8e1; border-radius: 13px; background: #fff; overflow: hidden; }
.tactical-introduction-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-introduction-details > summary::-webkit-details-marker { display: none; }
.tactical-introduction-details > summary::after { content: "⌄"; margin-left: auto; color: var(--green-700); font-size: 16px; transition: transform .16s ease; }
.tactical-introduction-details[open] > summary { border-bottom: 1px solid #e5eee8; }
.tactical-introduction-details[open] > summary::after { transform: rotate(180deg); }
.tactical-introduction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 12px 12px; }
.tactical-introduction-item { min-width: 0; padding: 9px 10px; border: 1px solid #e4eee7; border-radius: 10px; background: #f8fbf9; }
.tactical-introduction-item b { display: block; color: var(--green-800); font-size: 12px; line-height: 1.35; }
.tactical-introduction-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tactical-introduction-item .tactical-introduction-limitation { color: #6e806f; }
@media (max-width: 520px) { .tactical-introduction-grid { grid-template-columns: 1fr; } }
.match-responsibilities-details { margin: 0 20px 12px; }
.match-responsibilities-details > summary { gap: 8px; }
.match-responsibilities-details > summary small { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.match-responsibilities-body { padding: 10px 12px 12px; }
.responsibility-group + .responsibility-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e7efe9; }
.responsibility-group h3 { margin: 0 0 7px; color: var(--green-900); font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.responsibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.responsibility-grid label { min-width: 0; color: var(--muted); font-size: 10px; font-weight: 800; }
.responsibility-grid select { box-sizing: border-box; width: 100%; margin-top: 4px; border: 1px solid #cadbd0; border-radius: 9px; padding: 8px 7px; background: #fff; color: var(--green-900); font: inherit; font-size: 11px; }
.responsibility-hint { margin: 9px 0 10px; color: #647b6d; font-size: 10px; line-height: 1.5; }
.shootout-order-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid #e7efe9; }
.shootout-order-head b, .shootout-order-head small { display: block; }
.shootout-order-head b { color: var(--green-900); font-size: 12px; }
.shootout-order-head small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.shootout-order-list { display: grid; gap: 5px; max-height: 250px; margin: 9px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.shootout-order-list li { display: grid; grid-template-columns: 20px 27px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 38px; padding: 5px 7px; border: 1px solid #e0ebe3; border-radius: 10px; background: #fbfefc; }
.shootout-order-list li > strong { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: #e8f4eb; color: var(--green-800); font-size: 10px; }
.shootout-order-list li > span { min-width: 0; }
.shootout-order-list li b, .shootout-order-list li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shootout-order-list li b { color: var(--green-950); font-size: 11px; }
.shootout-order-list li small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.responsibility-avatar { width: 27px; height: 27px; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, #355c4d, #96bea6); color: #fff; font-size: 8px; font-weight: 900; }
.responsibility-order-btn { width: 26px; height: 25px; margin-left: 3px; border: 1px solid #cadbd0; border-radius: 7px; background: #fff; color: var(--green-800); font: inherit; font-size: 12px; font-weight: 900; line-height: 1; }
.responsibility-order-btn:disabled { opacity: .36; }
.responsibility-empty { display: block !important; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.simulation-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 20px 10px; }
.simulation-summary > div { min-height: 58px; box-sizing: border-box; padding: 8px 10px; 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: 15px; line-height: 1.2; }
.simulation-summary b.value-over-cap { color: #bf3131; }
.simulation-summary span { margin-top: 2px; color: var(--muted); font-size: 9px; }
/* Simulation and friendly lineup summaries now contain three cards: make the
   value card deliberately span the second row instead of leaving a half row. */
.simulation-summary > :last-child:nth-child(odd) { grid-column: 1 / -1; }

.football-pitch {
  position: relative;
  height: 510px;
  min-height:510px;
  margin: 0 20px 16px;
  overflow: hidden;
  border: 5px solid #f8fff9;
  border-radius: 20px;
  /* Same lawn, centre line and penalty-area geometry as the match lineup. */
  background:
    linear-gradient(to right, transparent 21%, rgba(255,255,255,.67) 21%, rgba(255,255,255,.67) 79%, transparent 79%) 0 12% / 100% 2px no-repeat,
    linear-gradient(to right, transparent 21%, rgba(255,255,255,.67) 21%, rgba(255,255,255,.67) 79%, transparent 79%) 0 88% / 100% 2px no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,.67) 0 12%, transparent 12%) 21% 0 / 2px 100% no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,.67) 0 12%, transparent 12%) 79% 0 / 2px 100% no-repeat,
    linear-gradient(to bottom, transparent 0 88%, rgba(255,255,255,.67) 88%) 21% 0 / 2px 100% no-repeat,
    linear-gradient(to bottom, transparent 0 88%, rgba(255,255,255,.67) 88%) 79% 0 / 2px 100% no-repeat,
    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), 0 6px 16px rgba(12,62,36,.16);
}

.football-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%); }
.football-pitch::after { content: ""; position: absolute; z-index:1; left: 50%; top: 50%; width: 128px; height: 128px; border: 2px solid rgba(255,255,255,.72); 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); }
.match-management-empty-slot { border-color: rgba(255,224,137,.9); background: rgba(8,54,32,.34); color: #f8e9ad; pointer-events: auto; }
.match-management-empty-slot b { font-size: 10px; }
.match-management-empty-slot small { color: rgba(255,255,255,.82); }
.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); }
[data-lineup-drag-source="true"] {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
[data-lineup-drag-source="true"] img,
[data-lineup-drag-source="true"] .player-photo,
[data-lineup-drag-source="true"] .player-avatar {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
[data-lineup-drag-source="true"]:active { cursor: grabbing; }
.owned-roster-player.lineup-drag-ready { box-shadow: 0 0 0 2px rgba(22, 129, 76, .34); }
.lineup-drag-handle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  margin-left: 2px;
  border: 1px solid #c6decf;
  border-radius: 9px;
  background: #f4faf5;
  color: var(--green-700);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.lineup-drag-handle.lineup-drag-ready,
.lineup-drag-handle:active { border-color: #4d9a68; box-shadow: 0 0 0 2px rgba(22, 129, 76, .24); cursor: grabbing; }
.lineup-dragging { opacity: .52; transform: translate(-50%, -50%) scale(.96); }
.owned-roster-player.lineup-dragging { transform: scale(.985); }
.lineup-drag-handle.lineup-dragging { transform: scale(.92); }
.lineup-drop-target.lineup-drag-over { border-color: #f1c54e !important; box-shadow: 0 0 0 3px rgba(241,197,78,.38), 0 7px 16px rgba(7,43,25,.20); }
.owned-roster-player.lineup-drop-target.lineup-drag-over { background: #fffaf0; }

.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-date { margin: 0 20px 13px; }
.fixture-date-head { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 8px; padding: 1px 2px 8px; }
.fixture-date-head > div { min-width: 0; }
.fixture-date-head h2 { margin: 0; color: var(--green-900); font-size: 14px; line-height: 18px; }
.fixture-date-head p { margin: 1px 0 0; color: var(--muted); font-size: 10px; line-height: 14px; }
.fixture-date-toggle { flex: 0 0 auto; min-height: 30px; border: 1px solid #cfe3d5; border-radius: 999px; padding: 4px 8px; background: #fff; color: var(--green-800); font: inherit; font-size: 10px; font-weight: 800; line-height: 14px; }
.fixture-date-content { display: grid; gap: 8px; }
.fixture-date-content .fixture-round { margin: 0; }
.fixture-date.is-collapsed { margin-bottom: 7px; border-bottom: 1px solid #dbe8df; }
.fixture-date.is-collapsed .fixture-date-head { padding-bottom: 7px; }
.fixture-date.is-collapsed .fixture-date-content { display: none; }

.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; }
.fixture-round.is-collapsed { margin-bottom: 9px; border-radius: 14px; }
.fixture-round.is-collapsed .fixture-round-head { min-height: 50px; padding: 8px 12px; gap: 6px; }
.fixture-round.is-collapsed .fixture-round-head h2 { font-size: 14px; line-height: 18px; }
.fixture-round.is-collapsed .fixture-round-head p { margin-top: 2px; font-size: 10px; line-height: 14px; }
.fixture-round.is-collapsed .fixture-round-head > span { padding: 4px 7px; font-size: 10px; }
.fixture-round.is-collapsed .fixture-round-toggle { min-height: 30px; padding: 4px 8px; font-size: 10px; line-height: 14px; }
.fixture-group-match-block { padding: 10px 0 2px; }
.fixture-group-match-block + .fixture-group-match-block { margin-top: 3px; border-top: 1px dashed #d9e8dd; }
.fixture-group-match-block h3 { margin: 0 0 6px; color: var(--green-700); font-size: 12px; font-weight: 850; letter-spacing: .03em; }
.fixture-group-match-list { display: grid; gap: 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: minmax(0, 1fr) max-content minmax(0, 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-round .fixture-card.is-live { margin: 0 -7px; padding-right: 7px; padding-left: 7px; border-radius: 10px; background: linear-gradient(90deg, #e7f8ec, #ffffff); box-shadow: inset 3px 0 0 #16803c; }
.fixture-round .fixture-card.is-live .fixture-score,
.fixture-round .fixture-card.is-live .fixture-detail-meta { color: #167044; font-weight: 850; }
.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 { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; color: var(--green-800); font-size: 14px; line-height: 1.15; text-align: center; white-space: nowrap; }
.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,
.cup-bracket-source { 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-source { color: #789083; font-size: 9px; }
.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; }
.cup-group-standings { margin: 0 20px 18px; overflow: hidden; border: 1px solid #d8e7dd; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(17, 36, 29, .055); }
.cup-group-standings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 14px 11px; border-bottom: 1px solid #e2ece5; background: linear-gradient(135deg, #f5fbf6, #fff); }
.cup-group-standings-heading h2 { margin: 0; }
.cup-group-standings-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.cup-group-standings-heading > small { flex: 0 0 auto; padding-top: 2px; color: #71857a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.cup-group-standings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 11px; }
.cup-group-table { overflow: hidden; border: 1px solid #dce8e1; border-radius: 12px; background: #fff; }
.cup-group-table > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; background: #f6faf7; color: var(--green-800); }
.cup-group-table > header b { font-size: 13px; }
.cup-group-table > header span { color: #789083; font-size: 10px; font-weight: 700; }
.cup-group-table-row { display: grid; grid-template-columns: 19px minmax(0, 1fr) auto; align-items: center; gap: 5px; min-height: 28px; padding: 4px 8px; border-top: 1px solid #edf3ee; }
.cup-group-table-row em { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #f1f5f2; color: #74877b; font-size: 10px; font-style: normal; font-weight: 800; }
.cup-group-table-row.is-qualifying em { background: #e1f1e5; color: var(--green-700); }
.cup-group-table-row.is-eliminated { opacity: .64; }
.cup-group-team { min-width: 0; overflow: hidden; color: var(--green-900); font-size: 11px; font-weight: 750; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.cup-group-table-row > span { color: #65786d; font-size: 10px; white-space: nowrap; }
.cup-group-table-row > span b { color: var(--green-800); font-size: 11px; }
@media (max-width: 560px) { .cup-group-standings-grid { grid-template-columns: 1fr; } }

.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; }
.standings-remedy-star { display: inline-block; margin-left: 2px; color: #b75d12; font-size: 11px; font-weight: 900; line-height: 1; vertical-align: top; }
.standings-remedy-legend { margin-top: 8px; padding: 0 7px; text-align: left; line-height: 1.45; }
.standings-remedy-legend > b { color: #b75d12; font-size: 12px; }
.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; }
.prediction-credit-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #fff5c8; color: #a87400; font-size: 22px; font-weight: 900; line-height: 1; }
.ranking-prediction-credit { border-color: #eadcaa; background: linear-gradient(135deg, #fffdf6, #fff); }
.ranking-prediction-credit > span:nth-child(3) > b { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ranking-prediction-credit > span:nth-child(3) > small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-prediction-credit > strong { color: #9a6d00; font-size: 14px; }
.prediction-king-badge { flex: 0 0 auto; padding: 2px 5px; border-radius: 999px; background: #f7d65b; color: #624800; font-size: 9px; font-style: normal; font-weight: 900; }
.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; }
.management-ability-card { align-items: start; padding: 11px 10px; border-color: #cfe2d5; background: linear-gradient(135deg, #fbfefb, #fff); }
.management-ability-card .ranking-number { padding-top: 4px; }
.management-ability-main { min-width: 0; }
.management-ability-main > i { display: block; overflow: hidden; margin-top: 6px; color: #72877a; font-size: 10px; font-style: normal; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.management-ability-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
.management-ability-metrics > span { min-width: 0; padding: 5px 4px; border: 1px solid #e1ece4; border-radius: 8px; background: #f5faf6; text-align: center; }
.management-ability-metrics small, .management-ability-metrics b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.management-ability-metrics small { margin: 0; color: #789080; font-size: 9px; }
.management-ability-metrics b { margin-top: 2px; color: var(--green-800); font-size: 11px; }
.management-ability-score { display: grid; justify-items: end; align-content: center; min-width: 52px; min-height: 69px; color: var(--green-800) !important; font-size: 21px !important; font-variant-numeric: tabular-nums; line-height: 1; }
.management-ability-score small { margin: 0 0 3px; color: #718777; font-size: 9px; font-weight: 800; }
.management-ability-score em { margin-top: 3px; color: #7d9385; font-size: 9px; font-style: normal; font-weight: 800; }
@media (max-width: 380px) {
  .management-ability-card { grid-template-columns: 22px minmax(0, 1fr); }
  .management-ability-score { grid-column: 2; justify-items: start; min-height: 0; margin-top: 8px; font-size: 18px !important; }
}

.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-venue-rate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 20px 14px; }
.team-venue-rate-card { min-width: 0; margin: 0; padding: 12px; }
.team-venue-rate-card h2 { margin-bottom: 7px; font-size: 13px; }
.team-venue-rate-card > div { display: block; }
.team-venue-rate-card b { display: block; font-size: 21px; line-height: 1.08; }
.team-venue-rate-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.team-venue-rate-card > small { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid #edf3ef; color: #8ca094; font-size: 9px; line-height: 1.35; }
.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; }
.league-standings-trend { margin-bottom: 16px; padding: 15px 12px 12px; border: 1px solid #d5e4d9; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(27, 67, 46, .045); }
.league-standings-trend .section-head { margin: 0 1px 7px; }
.league-standings-trend .section-title { font-size: 16px; }
.league-standings-trend .simulation-hint { margin-top: 3px; font-size: 10px; }
.league-standings-trend .fixture-round-toggle { flex: 0 0 auto; margin-top: 1px; }
.league-standings-trend.is-collapsed { padding-bottom: 12px; }
.league-standings-trend-collapsed-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 1px; color: var(--green-800); font-size: 11px; }
.league-standings-trend-collapsed-summary span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.league-standings-trend-empty { margin: 8px 1px 2px; color: var(--muted); font-size: 12px; }
.league-standings-trend-summary { display: grid; gap: 4px; margin: 0 1px 10px; color: #6e8377; font-size: 10px; line-height: 1.45; }
.league-standings-trend-summary b { color: var(--green-800); font-size: 11px; }
.league-standings-trend-scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid #e0ece4; border-radius: 12px; background: #fbfefc; -webkit-overflow-scrolling: touch; scrollbar-color: #aacbb6 transparent; scrollbar-width: thin; }
.league-standings-trend-scroll::-webkit-scrollbar { height: 6px; }
.league-standings-trend-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #aacbb6; }
.league-standings-trend-svg { display: block; min-width: 420px; }
.league-standings-trend-grid { stroke: #dfebe3; stroke-width: 1; stroke-dasharray: 2 4; }
.league-standings-trend-axis { fill: #73897b; font-family: inherit; font-size: 8px; font-weight: 800; }
.league-standings-trend-line { fill: none; stroke: var(--trend-color); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; opacity: .42; pointer-events: none; transition: opacity .16s ease, stroke-width .16s ease; }
.league-standings-trend-line.is-selected { stroke-width: 3.1; opacity: 1; }
.league-standings-trend-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.league-standings-trend-selected-guide { stroke: #879d90; stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; pointer-events: none; }
.league-standings-trend-dot { fill: #fff; stroke: var(--green-800); stroke-width: 1.8; cursor: pointer; }
.league-standings-trend-dot.is-active { fill: var(--green-800); stroke: #fff; stroke-width: 2.3; }
.league-standings-trend-current-point { fill: #fff; stroke: var(--trend-color); stroke-width: 2.8; pointer-events: none; }
.league-standings-trend-popup rect { fill: #173f2d; stroke: rgba(255,255,255,.2); stroke-width: 1; filter: drop-shadow(0 3px 5px rgba(17, 49, 34, .22)); }
.league-standings-trend-popup text { fill: #fff; font-family: inherit; font-size: 8px; font-weight: 750; }
.league-standings-trend-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 7px; margin-top: 10px; }
.league-standings-trend-legend-item { display: flex; min-width: 0; align-items: center; gap: 5px; padding: 4px 5px; overflow: hidden; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #62796d; font: inherit; font-size: 9px; font-weight: 750; text-align: left; cursor: pointer; }
.league-standings-trend-legend-item i { flex: 0 0 auto; width: 13px; height: 3px; border-radius: 999px; background: var(--trend-color); }
.league-standings-trend-legend-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-standings-trend-legend-item.is-selected { border-color: #9ec8ab; background: #eff8f1; color: var(--green-800); }
.league-standings-trend-legend-item.is-selected i { height: 4px; }
@media (min-width: 620px) { .league-standings-trend-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.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) max-content 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: 54px; 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; }
.auction-honor-banner { display:flex; align-items:center; gap:10px; margin:0 0 14px; padding:11px 12px; border:1px solid #c8dccd; border-left:4px solid #bd9334; border-radius:14px; background:linear-gradient(135deg,#fffdf5,#fff); }
.auction-honor-banner > span { font-size:22px; }
.auction-honor-banner div { min-width:0; }
.auction-honor-banner b, .auction-honor-banner strong, .auction-honor-banner small { display:block; }
.auction-honor-banner b { color:#8a6820; font-size:10px; letter-spacing:.04em; }
.auction-honor-banner strong { margin-top:2px; color:var(--green-900); font-size:14px; }
.auction-honor-banner small { margin-top:3px; color:#7a866f; font-size:10px; }
.season-honors { margin:0 0 14px; padding:12px; border:1px solid #d8e4da; border-radius:14px; background:#fff; }
.season-honors h2 { margin:0 0 9px; color:var(--green-900); font-size:13px; }
.season-honors-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.season-honors-grid article { min-width:0; min-height:76px; padding:8px 6px; border:1px solid #e2ece4; border-radius:10px; background:#f8fbf8; text-align:center; }
.season-honors-grid article > span, .season-honors-grid small, .season-honors-grid b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.season-honors-grid article > span { font-size:17px; line-height:1; }
.season-honors-grid small { margin-top:5px; color:#738779; font-size:9px; font-weight:750; }
.season-honors-grid b { margin-top:4px; color:var(--green-800); font-size:10px; }
.season-honors-grid .plain-player-link, .season-honors-grid .plain-team-link { max-width:100%; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; font-size:10px; }
@media (max-width: 500px) { .season-honors-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .season-honors-grid article { min-height:70px; } }
.season-team-of-season { margin:0 0 14px; overflow:hidden; border:1px solid #d8c775; border-radius:14px; background:#fff; box-shadow:0 3px 12px rgba(86,68,10,.08); }
.season-team-of-season > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; cursor:pointer; list-style:none; }
.season-team-of-season > summary::-webkit-details-marker { display:none; }
.season-team-of-season > summary > span { min-width:0; }
.season-team-of-season > summary b, .season-team-of-season > summary small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.season-team-of-season > summary b { color:#705600; font-size:13px; }
.season-team-of-season > summary small { margin-top:3px; color:#8b7733; font-size:10px; }
.season-team-of-season > summary > em { flex:0 0 auto; color:#7e6825; font-size:10px; font-style:normal; font-weight:800; }
.season-team-of-season[open] > summary > em { font-size:0; }
.season-team-of-season[open] > summary > em::after { content:"收起"; font-size:10px; }
.season-team-of-season-content { padding:0 12px 11px; border-top:1px solid #eee6c9; }
.season-team-pitch { height:520px; margin:11px 0 0; border-width:4px; border-radius:14px; background:repeating-linear-gradient(0deg,#248d50 0,#248d50 10%,#2c9959 10%,#2c9959 20%); }
.season-team-penalty { position:absolute; z-index:1; left:50%; width:56%; height:13%; border:2px solid rgba(255,255,255,.68); transform:translateX(-50%); }
.season-team-penalty-top { top:-2px; border-top:0; border-radius:0 0 9px 9px; }
.season-team-penalty-bottom { bottom:-2px; border-bottom:0; border-radius:9px 9px 0 0; }
.season-team-player { position:absolute; z-index:3; left:var(--season-pitch-x); top:var(--season-pitch-y); display:grid; justify-items:center; width:76px; margin:0; border:0; padding:0; background:transparent; color:#fff; font:inherit; text-align:center; cursor:pointer; transform:translate(-50%,-50%); }
.season-team-player:focus-visible { outline:3px solid #ffd263; outline-offset:3px; border-radius:12px; }
.season-team-player-role { min-height:13px; margin-bottom:1px; color:rgba(255,255,255,.94); font-size:8px; font-weight:900; line-height:13px; text-shadow:0 1px 2px rgba(0,40,19,.78); }
.season-team-avatar { display:grid; width:42px; height:42px; overflow:hidden; place-items:center; border:2px solid #f6d269; border-radius:50%; background:linear-gradient(135deg,#215b39,#55a16d); box-shadow:0 2px 6px rgba(0,36,18,.4); color:#fff; font-size:10px; font-weight:900; }
.season-team-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.season-team-player b, .season-team-player small { display:block; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-shadow:0 1px 2px rgba(0,35,17,.95); }
.season-team-player b { margin-top:3px; color:#fff; font-size:9px; }
.season-team-player small { margin-top:1px; color:#e1f6e8; font-size:7px; }
.season-team-player em { min-width:31px; margin-top:3px; border:1px solid rgba(255,255,255,.55); border-radius:5px; padding:2px 4px; background:rgba(97,70,2,.88); color:#fff6c9; font-size:9px; font-style:normal; font-weight:900; line-height:1; box-shadow:0 1px 2px rgba(0,42,19,.25); }
.season-team-of-season-note { margin:8px 0 0; color:#7a744f; font-size:10px; text-align:center; }
@media (max-width: 360px) { .season-team-pitch { height:486px; } .season-team-player { width:68px; } .season-team-avatar { width:37px; height:37px; } .season-team-player b { font-size:8px; } .season-team-player small { font-size:7px; } }

.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-result-decision { margin: 10px 2px 0; padding: 8px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; color: #fff3c4; background: rgba(77, 36, 11, .28); font-size: 11px; font-weight: 700; line-height: 1.55; text-align: left; }
.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; }
.live-text-commentary { margin: 0 20px 22px; padding: 14px 12px 10px; border: 1px solid #d5e5d9; border-radius: 17px; background: linear-gradient(135deg, #fbfefc, #fff); }
.live-text-commentary .match-report-heading { margin-bottom: 10px; }
.match-commentary-summary { cursor: pointer; list-style: none; user-select: none; }
.match-commentary-summary::-webkit-details-marker { display: none; }
.match-commentary-summary::marker { content: ""; }
.match-commentary-summary:focus-visible { outline: 2px solid #73af89; outline-offset: 4px; border-radius: 8px; }
.match-commentary-summary .commentary-toggle-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border: 1px solid #bcd7c5; border-radius: 999px; color: var(--green-800); background: #fff; font-size: 10px; font-weight: 900; pointer-events: none; white-space: nowrap; }
.match-commentary-summary .commentary-toggle-label::after { content: "⌄"; display: inline-block; font-size: 14px; line-height: .6; transition: transform .16s ease; }
.match-commentary-history[open] .match-commentary-summary .commentary-toggle-label::after { transform: rotate(180deg); }
.match-commentary-history:not([open]) { padding-bottom: 12px; }
.match-commentary-history:not([open]) .match-report-heading { margin-bottom: 0; }
.live-commentary-feed { display: grid; gap: 8px; }
.live-commentary-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px 0; border-top: 1px solid #edf3ef; }
.live-commentary-row:first-child { border-top: 0; padding-top: 2px; }
.live-commentary-row time { padding-top: 2px; color: #14734c; font-size: 12px; font-weight: 800; text-align: center; }
.live-commentary-row small { display: block; color: #71857a; font-size: 11px; font-weight: 700; }
.live-commentary-row p { margin: 3px 0 0; color: var(--green-950); font-size: 13px; line-height: 1.58; }
.match-commentary-history { background: linear-gradient(135deg, #fbfefc, #f7fbf8); }
.match-commentary-history.is-collapsed { padding-bottom: 12px; }
.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-player > * { pointer-events: none; }
.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: flex; width: 100%; min-width: 0; margin-top: 3px; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 900; line-height: 1.2; text-align: center; text-shadow: 0 1px 2px rgba(0,35,17,.92); }
.match-pitch-player-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-responsibility-mark { display: inline-grid; flex: 0 0 auto; place-items: center; min-width: 13px; height: 13px; margin-left: 3px; border: 1px solid rgba(255,255,255,.9); border-radius: 5px; background: #e6b82e; color: #554000; font-size: 7px; font-style: normal; font-weight: 1000; line-height: 1; text-shadow: none; vertical-align: 1px; }
.match-responsibility-mark.vice { min-width: 17px; background: #dbecf4; color: #24526e; }
.match-pitch-metrics { display: flex; min-height: 17px; margin-top: 3px; align-items: center; justify-content: center; gap: 3px; }
.match-pitch-rating { min-width: 30px; 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-live-ability { display: block; min-width: 38px; padding: 2px 4px; border: 1px solid rgba(255,255,255,.82); border-radius: 5px; background: rgba(255,255,255,.94); color: #1f6042; font-size: 8px; font-weight: 900; line-height: 1; letter-spacing: -.1px; text-align: center; box-shadow: 0 1px 2px rgba(0,34,16,.2); white-space: nowrap; }
.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-live-ability-note { margin: 0 2px 10px; padding: 8px 9px; border: 1px solid #c8e2ec; border-radius: 9px; background: #f2fbff; color: #346276; font-size: 9px; line-height: 1.48; }
.match-leadership-strip { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 6px; margin: 0 2px 10px; }
.match-leadership-strip span { display: block; min-width: 0; overflow: hidden; padding: 6px 7px; border: 1px solid #dce9df; border-radius: 8px; background: #f6faf7; color: #426854; font-size: 9px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.match-leadership-strip b { margin-right: 4px; color: var(--green-900); font-weight: 1000; }
.season-registration-monitor-card .section-head { align-items: flex-start; }
.season-registration-monitor-card .section-head .form-help { margin: 4px 0 0; }
.season-registration-monitor-summary { margin: 0 0 9px; padding: 8px 10px; border: 1px solid #d5e8da; border-radius: 9px; background: #f5faf6; color: #356348; font-size: 10px; font-weight: 800; line-height: 1.4; }
.season-registration-monitor-list { display: grid; gap: 7px; }
.season-registration-monitor-row { padding: 9px 10px; border: 1px solid #dbe9df; border-radius: 10px; background: #fff; }
.season-registration-monitor-head { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }
.season-registration-monitor-head > div { min-width: 0; }
.season-registration-monitor-head .team-name-link { display: block; overflow: hidden; color: var(--green-900); font-size: 11px; font-weight: 900; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.season-registration-monitor-head small, .season-registration-monitor-row > small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.season-registration-monitor-row > p { margin: 7px 0 0; color: #315b41; font-size: 10px; font-weight: 800; }
.season-registration-monitor-state { flex: 0 0 auto; padding: 3px 5px; border-radius: 6px; font-size: 8px; font-weight: 900; line-height: 1.15; white-space: nowrap; }
.season-registration-monitor-state.ok { background: #e5f4e8; color: #187444; }
.season-registration-monitor-state.draft { background: #edf5e8; color: #5b7326; }
.season-registration-monitor-state.missing { background: #fff0ef; color: #b23632; }
.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 { display: flex; min-width: 0; align-items: center; font-size: 10px; }
.match-bench-player-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-bench-player .match-responsibility-mark { vertical-align: -1px; }
.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-competitions { display: grid; gap: 7px; min-width: 0; }
.team-status-competition { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 7px; align-items: start; min-width: 0; }
.team-status-competition + .team-status-competition { padding-top: 7px; border-top: 1px solid rgba(159, 120, 28, .20); }
.team-status-competition > b { padding-top: 1px; color: #79520e; font-size: 11px; white-space: nowrap; }
.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-metrics { gap: 2px; }
  .match-pitch-live-ability { min-width: 34px; padding-right: 3px; padding-left: 3px; font-size: 7px; }
  .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-process-statistics { margin-top: 10px; border-top: 1px solid #e4eee7; }
.match-process-statistics > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; color: var(--green-dark); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.match-process-statistics > summary::-webkit-details-marker { display: none; }
.match-process-statistics > summary::after { content: "⌄"; color: var(--muted); font-size: 15px; transition: transform .16s ease; }
.match-process-statistics[open] > summary::after { transform: rotate(180deg); }
.match-process-statistics > summary small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 600; }
.match-process-statistics-body { padding-bottom: 3px; }
.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; }

/* Every auction group's routine controls share one compact button row.  The
   schedule control is a native details element, but its summary deliberately
   uses the exact same button language as collapse and refresh. */
.auction-group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; overflow-x: auto; scrollbar-width: none; }
.auction-group-actions::-webkit-scrollbar { display: none; }
.auction-group-actions > .auction-group-action-btn,
.auction-group-actions > .auction-schedule-form > .auction-group-action-btn {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  /* These deliberately match the established "刷新本组" control.  The
     !important is scoped to this one action row so a generic .secondary-btn
     rule from an older stylesheet can never inflate just these controls. */
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px;
  margin: 0;
  padding: 0 10px !important;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  color: var(--green-800);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.auction-group-actions > .auction-group-action-btn:hover,
.auction-group-actions > .auction-schedule-form > .auction-group-action-btn:hover { background: #eff8f1; }
.auction-group-actions > .auction-schedule-form { flex: 0 0 auto; margin: 0; }
.auction-group-actions > .auction-schedule-form > summary { cursor: pointer; list-style: none; }
.auction-group-actions > .auction-schedule-form > summary::-webkit-details-marker { display: none; }
.auction-group-actions > .auction-schedule-form[open] { flex-basis: 100%; }
.auction-group-actions > .auction-schedule-form[open] > summary { width: max-content; }
.auction-group-actions > .auction-schedule-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 7px; margin-top: 8px; padding: 9px; border: 1px solid #d9e8de; border-radius: 12px; background: #f8fcf9; }
.auction-group-actions > .auction-schedule-form label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.auction-group-actions > .auction-schedule-form input { min-width: 0; padding: 7px 8px; border: 1px solid #c8ddd0; border-radius: 9px; background: #fff; color: var(--green-950); font: inherit; font-size: 11px; }
.auction-group-actions > .auction-schedule-form form .secondary-btn { min-height: 34px; align-self: end; padding: 7px 10px; white-space: nowrap; }
@media (max-width: 360px) { .auction-group-actions { flex-wrap: nowrap; } .auction-group-actions > .auction-schedule-form[open] { flex: 0 0 100%; } .auction-group-actions > .auction-schedule-form form { grid-template-columns: 1fr; } .auction-group-actions > .auction-schedule-form form .secondary-btn { width: 100%; } }
.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; }
.cup-group-ranking-grid { display: grid; gap: 10px; }
.cup-group-ranking-card { overflow: hidden; border: 1px solid #dce8e1; border-radius: 13px; background: #fff; }
.cup-group-ranking-card h2 { margin: 0; padding: 10px 12px; color: var(--green-800); font-size: 15px; background: #f4f8f5; }
.cup-group-ranking-card .standings-table { margin: 0; border: 0; border-radius: 0; }
.player-injury-history { display: grid; gap: 7px; }
.player-injury-history > h3 { margin-bottom: 1px; }
.player-injury-history-item { padding: 10px; border: 1px solid #dce8e1; border-left: 3px solid #d39a31; border-radius: 11px; background: #fffdf7; }
.player-injury-history-item b, .player-injury-history-item small { display: block; }
.player-injury-history-item b { color: var(--green-800); font-size: 12px; line-height: 1.4; }
.player-injury-history-item small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.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 { 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.
   Honor cards are direct children too: without this rule they stretch to the
   app shell while the title/tabs retain their 20px inset. */
.rankings-page > .season-final-banner,
.rankings-page > .auction-honor-banner,
.rankings-page > .season-honors,
.rankings-page > .season-team-of-season,
.rankings-page > .ranking-tabs,
.rankings-page > .league-standings-trend,
.rankings-page > .standings-table,
.rankings-page > .cup-group-ranking-grid,
.rankings-page > .ranking-list,
.rankings-page > .ranking-team-hint {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
}

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

/* Secondary tabs belong only to the rating leaderboard. Keep the same green
   pill language as the primary board switcher, but make the hierarchy clear
   on narrow phone screens without adding another card or large heading. */
.rankings-page > .rating-position-tabs {
  margin-top: -7px;
  margin-bottom: 13px;
}
.rating-position-tabs .ranking-tab {
  padding: 7px 10px;
  font-size: 11px;
}

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

/* Prediction's two horizontal selectors are scroll containers.  Padding only
   moves their buttons; it leaves the scrollbar flush with the app edge.  Make
   the containers themselves follow the same page gutter as the cards. */
.prediction-page > .prediction-competition-tabs {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
  padding-left: 0;
  padding-right: 0;
}

/* 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);
}

.prediction-credit-reset {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #dfc4bf;
}

.prediction-credit-reset > b { color: #8c2f26; font-size: 13px; }
.prediction-credit-reset .form-help { margin: 5px 0 10px; }
.prediction-credit-reset .danger-btn { min-height: 38px; padding: 8px 12px; font-size: 12px; }

@media (max-width: 360px) {
  .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; }

/* Historical tactics are deliberately presented as a compact, read-only match
   snapshot. It uses the same sheet and card language as the rest of the app. */
.match-tactics-scrim { z-index: 88; }
.match-tactics-modal { width: min(100%, 760px); max-height: min(86dvh, 720px); overflow: auto; }
.match-tactics-modal .modal-head { gap: 12px; }
.match-tactics-modal .modal-head > div { min-width: 0; }
.match-tactics-modal .modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.match-tactics-note { margin: 13px 0; padding: 9px 10px; border-left: 3px solid var(--green-500); border-radius: 0 9px 9px 0; background: #f2f8f3; color: #557262; font-size: 11px; line-height: 1.5; }
.match-tactics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.match-tactics-team { overflow: hidden; border: 1px solid #d6e5da; border-radius: 14px; background: #fff; }
.match-tactics-team > header { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px; border-bottom: 1px solid #e5eee8; background: #eff8f1; }
.match-tactics-team.away > header { background: #eef4fb; }
.match-tactics-team header > div { min-width: 0; }
.match-tactics-team header b, .match-tactics-team header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-tactics-team header b { color: var(--green-900); font-size: 13px; }
.match-tactics-team.away header b { color: #2e679e; }
.match-tactics-team header small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.match-tactics-team header > span { flex: 0 0 auto; max-width: 54%; overflow: hidden; color: var(--green-700); font-size: 10px; font-weight: 800; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.match-tactics-team.away header > span { color: #3d70a2; }
.match-tactics-team > section { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 11px; border-bottom: 1px solid #edf2ee; }
.match-tactics-team h3 { margin: 0; color: #647d6c; font-size: 10px; }
.match-tactics-team > section strong { color: var(--green-800); font-size: 13px; text-align: right; }
.match-tactics-team.away > section strong { color: #346e9f; }
.match-tactics-team dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.match-tactics-team dl > div { min-width: 0; padding: 9px 10px; border-top: 1px solid #edf2ee; }
.match-tactics-team dl > div:nth-child(odd) { border-right: 1px solid #edf2ee; }
.match-tactics-team dl > div:nth-child(-n+2) { border-top: 0; }
.match-tactics-team dt { color: #71877a; font-size: 9px; font-weight: 700; }
.match-tactics-team dd { overflow: hidden; margin: 3px 0 0; color: #244937; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.match-tactics-team.away dd { color: #315f8a; }
.match-tactics-team.is-pending > p { margin: 0; padding: 13px 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.halftime-tactics-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 20px 16px; padding: 13px; border: 1px solid #d6e6da; border-left: 4px solid #2f8b59; border-radius: 15px; background: linear-gradient(135deg, #f4fbf5, #fff); }
.halftime-tactics-panel b { display: block; color: var(--green-900); font-size: 14px; }
.halftime-tactics-panel p { margin: 4px 0 0; color: #638070; font-size: 11px; line-height: 1.5; }
.halftime-tactics-panel.is-editing { display: block; }
.halftime-tactics-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.halftime-tactics-head small { display: block; margin-top: 5px; color: #4e7b61; font-size: 10px; line-height: 1.4; }
.halftime-tactical-settings { margin-top: 12px; }
.halftime-tactics-panel .tactical-settings-details { margin-top: 9px; }
.halftime-tactics-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 12px; }
.halftime-tactics-actions button { min-height: 40px; font-size: 12px; }
.halftime-tactics-panel.is-locked { border-left-color: #b48b35; }
@media (max-width: 460px) { .halftime-tactics-panel:not(.is-editing) { grid-template-columns: 1fr; } .halftime-tactics-panel:not(.is-editing) .secondary-btn { width: 100%; } }

/* Full-screen live manager: the draft stays outside the live-rendered match
   page so WebSocket score updates cannot recreate an open native selector. */
.match-management-page { padding-bottom: 34px; }
.match-management-livebar { margin: 4px 20px 12px; padding: 13px; border: 1px solid #c9dfd0; border-left: 4px solid #238155; border-radius: 14px; background: linear-gradient(135deg, #eff9f1, #fff); text-align: center; }
.match-management-livebar > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.match-management-livebar span { overflow: hidden; color: var(--green-900); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.match-management-livebar span:last-child { text-align: right; }
.match-management-livebar b { color: var(--green-950); font-size: 20px; white-space: nowrap; }
.match-management-livebar small { display: block; margin-top: 5px; color: var(--green-700); font-size: 11px; font-weight: 800; }
.match-management-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 20px 10px; }
.match-management-summary > div { min-width: 0; min-height: 54px; box-sizing: border-box; padding: 8px; border: 1px solid #dce8e1; border-radius: 12px; background: #fff; }
.match-management-summary b, .match-management-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-management-summary b { color: var(--green-800); font-size: 12px; }
.match-management-summary span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.match-management-warning, .match-management-pending { margin: 0 20px 12px; padding: 10px 12px; border-radius: 12px; font-size: 11px; line-height: 1.45; }
.match-management-warning { display: grid; gap: 3px; border: 1px solid #eccb7f; background: #fff8e9; color: #82631d; }
.match-management-warning b { font-size: 12px; }
.match-management-pending { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: start; border-left: 3px solid #377bad; background: #eef6fd; color: #406983; }
.match-management-pending > div { min-width: 0; }
.match-management-pending b { color: #285675; font-size: 12px; }
.match-management-pending span { display: block; margin-top: 2px; font-weight: 800; }
.match-management-pending small { grid-column: 1 / -1; color: #5c778a; font-size: 10px; line-height: 1.55; }
.match-management-cancel-plan { min-height: 31px; padding: 5px 9px; border-color: #8fb5cf; color: #2d668e; font-size: 11px; white-space: nowrap; }
.match-management-section { margin: 0 20px 14px; padding: 14px; border: 1px solid #dbe7df; border-radius: 15px; background: #fff; }
.match-management-section .section-head { align-items: flex-start; gap: 10px; }
.match-management-section .section-head > div { min-width: 0; }
.match-management-section .section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.match-management-section .simulation-settings { margin-left: 0; margin-right: 0; }
.match-management-inline-tactics { margin: 14px 0 16px; padding-top: 13px; border-top: 1px solid #e3ece6; }
.match-management-inline-tactics .section-head { align-items: flex-start; gap: 10px; }
.match-management-inline-tactics .section-head > div { min-width: 0; }
.match-management-inline-tactics .section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.match-management-inline-tactics .simulation-settings { margin-left: 0; margin-right: 0; }
.match-management-inline-tactics .match-management-advanced-details { margin: 0; }
.match-management-inline-tactics .match-management-advanced-details .simulation-settings { margin-left: 12px; margin-right: 12px; }
.match-management-section .football-pitch { margin: 4px 0 0; height: 452px; border-radius: 15px; }
.match-management-slot {
  position: absolute;
  z-index: 2;
  width: min(78px, calc((100% - 12px) / 4));
  overflow: visible;
  pointer-events: auto;
  cursor: pointer;
}
.match-management-slot:focus,
.match-management-slot:focus-within { z-index: 5; }
.match-management-slot .lineup-drag-handle {
  position: absolute;
  z-index: 6;
  top: -7px;
  right: -7px;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 2px solid #b9d7c3;
  border-radius: 10px;
  background: rgba(244,250,245,.96);
  color: #286e4b;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(10,62,37,.16);
}
.match-management-slot .lineup-drag-handle.lineup-drag-ready,
.match-management-slot .lineup-drag-handle:active {
  border-color: #4d9a68;
  box-shadow: 0 0 0 2px rgba(22,129,76,.24);
}
.match-management-slot.is-scheduled-out { border-color: #ca6d61; background: #fff8f6; color: #8d332b; }
.match-management-slot.is-scheduled-out small { color: #a54b42; }
.match-management-slot:disabled { cursor: not-allowed; }

/* Editable squad/friendly/simulation pitches use the same compact avatar
   language as the match lineup.  There is no separate drag button: holding
   the portrait is the only drag affordance. */
.football-pitch .simulation-slot.filled {
  display:grid;
  justify-items:center;
  width:86px;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#fff;
  box-shadow:none;
}
.football-pitch.editor-dense-pitch { min-height:600px; }
.football-pitch .simulation-slot.filled > * { pointer-events:none; }
.football-pitch .simulation-slot.filled .editable-pitch-avatar-drag { pointer-events:auto; touch-action:none; cursor:grab; }
.football-pitch .simulation-slot.filled .editable-pitch-avatar-drag:active { cursor:grabbing; }
.editable-pitch-role { min-height:13px; color:rgba(255,255,255,.96); font-size:9px !important; font-weight:900 !important; line-height:13px; text-shadow:0 1px 2px rgba(0,40,19,.78); }
.editable-pitch-avatar { display:grid; width:44px; height:44px; overflow:hidden; place-items:center; border:2px solid rgba(255,255,255,.96); border-radius:50%; background:transparent; box-shadow:0 2px 6px rgba(0,38,18,.34); color:#fff; font-size:10px; font-weight:900; }
.editable-pitch-avatar img { display:block; width:100%; height:100%; object-fit:cover; opacity:1; filter:none; -webkit-user-drag:none; user-select:none; }
.editable-pitch-avatar .avatar-fallback { background:linear-gradient(135deg,#155f38,#8ec2a2); }
.editable-pitch-avatar.has-image .avatar-fallback { display:none !important; }
.editable-pitch-avatar.has-image { background:transparent; }
[data-lineup-drag-avatar], [data-lineup-drag-avatar] img, .quick-player-avatar img { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-user-drag:none; touch-action:none; }
.lineup-quick-overlay { position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(10,30,20,.42); box-sizing:border-box; }
.lineup-quick-card { position:relative; width:100%; max-width:380px; max-height:80dvh; overflow:auto; padding:22px; border-radius:20px; background:#fff; color:#183f2b; box-shadow:0 12px 45px rgba(0,25,10,.25); box-sizing:border-box; }
.lineup-quick-card > [data-quick-close] { position:absolute; top:8px; right:10px; border:0; background:transparent; color:#537160; font-size:27px; cursor:pointer; }
.lineup-quick-card header { display:flex; align-items:center; gap:14px; }
.lineup-quick-card h3 { margin:0; font-size:18px; padding-right:12px; }
.lineup-quick-card p { margin:9px 0; font-size:12px; line-height:1.5; }
.quick-player-avatar { display:grid; place-items:center; flex-shrink:0; width:65px; height:65px; overflow:hidden; border-radius:50%; background:#286143; color:#fff; }
.quick-player-avatar img { width:100%; height:100%; object-fit:cover; }
.quick-player-info { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:17px 0; }
.quick-player-info span { padding:10px 5px; border-radius:10px; background:#f0f6f2; text-align:center; font-size:11px; }
.quick-player-info b { display:block; margin-top:5px; font-size:16px; }
.lineup-quick-card footer { display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
.lineup-quick-card footer button { flex:1 1 90px; padding:10px; border:1px solid #bdd4c5; border-radius:10px; background:#eef7f1; color:#185836; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.quick-player-marks { display:flex; flex-wrap:wrap; gap:5px; }
.quick-player-marks span { padding:3px 6px; border-radius:5px; background:#fff3cc; font-size:10px; }
.quick-duty-panel { margin-top:15px; padding-top:15px; border-top:1px solid #e0ebe4; }
.quick-duty-panel label { display:grid; gap:8px; font-size:12px; }
.quick-duty-panel select { width:100%; padding:10px; border:1px solid #bfd4c6; border-radius:9px; background:#fff; color:#1b5534; font:inherit; }
.quick-duty-panel small { font-size:10px; color:#72867a; }
.spatial-pitch-controls { display:flex; gap:6px; margin:0 20px 9px; }
.spatial-pitch-controls button { flex:1; padding:7px 3px; border:1px solid #c4dacb; border-radius:9px; background:#f5faf6; color:#356349; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.spatial-pitch-controls button.active { background:#196d42; border-color:#196d42; color:#fff; }
.match-lineups .spatial-pitch-controls { margin:8px 0; }
.football-pitch.spatial-preview-active .simulation-slot.filled { width:66px; }
.spatial-analysis { margin-top:12px; border:1px solid #dce9e0; border-radius:12px; overflow:hidden; background:#f8fbf9; }
.spatial-analysis summary { padding:10px 12px; color:#285d3d; font-size:12px; font-weight:800; cursor:pointer; }
.spatial-analysis > div { padding:0 12px 12px; }
.spatial-analysis article { display:grid; grid-template-columns:1fr 2fr 1fr; padding:7px 0; border-top:1px solid #e5eee8; text-align:center; font-size:11px; }
.spatial-analysis article b { color:#1e643c; }
.spatial-analysis p { margin:9px 0 0; color:#56715f; font-size:11px; line-height:1.5; }
.football-pitch .simulation-slot.filled span { opacity:1; }
.football-pitch .simulation-slot.filled .editable-pitch-avatar-drag,
.football-pitch .simulation-slot.filled .editable-pitch-avatar { overflow:visible; }
.football-pitch .simulation-slot.filled .editable-pitch-avatar { overflow:hidden; }
.editable-pitch-name { width:100%; margin-top:3px; overflow:hidden; color:#fff; font-size:10px !important; 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; }
.football-pitch .simulation-slot.filled small { min-width:36px; margin-top:3px; padding:2px 5px; border-radius:7px; background:rgba(255,255,255,.9); color:#286143; font-size:8px; font-weight:900; line-height:1; box-shadow:0 1px 2px rgba(0,34,16,.24); }
.football-pitch .simulation-slot.filled.active { border:0; box-shadow:none; }
.football-pitch .simulation-slot.filled.active .editable-pitch-avatar { border-color:#ffd463; box-shadow:0 0 0 3px rgba(255,212,99,.42),0 2px 6px rgba(0,38,18,.34); }
.match-management-slot .lineup-drag-handle { display:none; }
.match-management-slot.is-scheduled-out { border:0; background:transparent; color:#fff; }
.match-management-slot.is-scheduled-out .editable-pitch-avatar { border-color:#f0a19a; filter:saturate(.68); }
.match-management-slot.is-scheduled-out small { color:#8d332b; }
.match-management-tactics { margin: 0; }
.match-management-change { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 30px; gap: 7px; align-items: end; padding: 10px 0; border-bottom: 1px solid #edf2ee; }
.match-management-change:last-of-type { border-bottom: 0; }
.match-management-change label { min-width: 0; color: var(--muted); font-size: 10px; font-weight: 800; }
.match-management-change select { width: 100%; margin-top: 4px; border: 1px solid #cadbd0; border-radius: 9px; padding: 8px 6px; background: #fff; color: var(--green-900); font: inherit; font-size: 11px; }
.match-management-arrow { align-self: end; padding-bottom: 9px; color: var(--green-700); font-weight: 900; text-align: center; }
.match-management-change .icon-btn { width: 30px; height: 34px; border: 1px solid #e2c4c1; border-radius: 9px; background: #fff7f6; color: #a5433c; font-size: 18px; line-height: 1; }
.match-management-departed { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; color: var(--muted); font-size: 10px; }
.match-management-departed b { margin-right: 2px; color: #87633a; }
.match-management-departed span { padding: 4px 6px; border-radius: 7px; background: #f4f0e8; }
.match-management-selection-hint { margin: 8px 0 9px; padding: 8px 10px; border: 1px solid #d9e7dd; border-radius: 10px; background: #f7fbf8; color: #61796b; font-size: 10px; line-height: 1.45; }
.match-management-selection-hint.is-selecting { border-color: #dfc36d; background: #fffaf0; color: #806421; font-weight: 800; }
.match-management-bench { margin-top: 0; }
.match-management-bench .section-head { align-items: flex-start; }
.match-management-bench-count { flex: 0 0 auto; padding: 5px 8px; border-radius: 9px; background: #e9f5ec; color: var(--green-800); font-size: 11px; }
.match-management-bench-player { position: relative; }
.match-management-bench-player.is-scheduled-in { border-color: #8bc4a0; background: #f4fbf6; }
.match-management-bench-player.is-scheduled-in i { color: #287b4b; font-weight: 800; }
.match-management-bench-player.is-scheduled-in > strong { color: #9b453d; }
.match-management-bench-player:disabled { cursor: not-allowed; opacity: .6; }
.match-management-submit-bar { position: sticky; z-index: 10; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 4px 20px 20px; padding: 12px 14px; border: 1px solid #bfd8c6; border-radius: 16px; background: rgba(250,252,249,.98); box-shadow: 0 8px 22px rgba(17,68,41,.14); backdrop-filter: blur(10px); }
.match-management-submit-bar > div { min-width: 0; }
.match-management-submit-bar b, .match-management-submit-bar span { display: block; }
.match-management-submit-bar b { color: var(--green-800); font-size: 11px; }
.match-management-submit-bar span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.match-management-submit-bar .primary-btn { min-width: 168px; min-height: 42px; white-space: nowrap; }

@media (max-width: 390px) {
  .match-management-summary { gap: 5px; margin-left: 14px; margin-right: 14px; }
  .match-management-summary > div { padding: 8px; }
  .match-management-summary b { font-size: 11px; }
  .match-management-section { margin-left: 14px; margin-right: 14px; padding: 11px; }
  .match-management-section .football-pitch { height: 420px; }
  .match-management-change { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 28px; gap: 4px; }
  .match-management-change select { font-size: 10px; }
  .match-management-submit-bar { margin-left: 14px; margin-right: 14px; }
}

@media (max-width: 460px) {
  .match-management-submit-bar { grid-template-columns: 1fr; gap: 9px; }
  .match-management-submit-bar .primary-btn { width: 100%; min-width: 0; }
}
.fixture-card-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf3ef; }
.fixture-card-actions .secondary-btn { min-height: 34px; padding: 7px 8px; font-size: 11px; }
.team-profile-fixture .fixture-card-actions { margin-top: 0; }

@media (max-width: 560px) {
  .match-tactics-grid { grid-template-columns: 1fr; }
}

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

/* Detailed auction rules: informational only; auction controls retain their layout. */
.auction-rules-card .auction-rule-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auction-rules-card .auction-rule-head > b { min-width: 0; }
.auction-rules-toggle { flex: 0 0 auto; margin: 0; padding: 5px 9px; font-size: 10px; }
.auction-rules-card.is-collapsed { padding-bottom: 12px; }
.auction-rule-body {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.auction-rule-section {
  padding: 10px 11px;
  border: 1px solid #d9e7dd;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
}

.auction-rule-section strong {
  display: block;
  color: var(--green-900);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.auction-rule-section p {
  margin: 5px 0 0;
  color: #526a5d;
  font-size: 11px;
  line-height: 1.65;
}

.auction-rule-section p + p {
  padding-top: 7px;
  border-top: 1px solid #e0ebe3;
}

.auction-rule-section.blind-rule-section {
  border-color: #dccb92;
  background: linear-gradient(135deg, #fffaf0, rgba(255, 255, 255, 0.72));
}

.auction-rule-section.blind-rule-section strong {
  color: #87641b;
}

/* Revealed blind bids are compact by default so completed packages remain
   scannable while every valid offer stays auditable. */
.blind-bid-history {
  margin-top: 12px;
  border-top: 1px solid #eadfbd;
}

.blind-bid-history summary {
  padding: 10px 0 2px;
  color: #755c23;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style-position: inside;
}

.blind-bid-history ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.blind-bid-history li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #eee7d3;
  border-radius: 8px;
  background: #fffdf8;
  color: #665b42;
  font-size: 11px;
}

.blind-bid-history li.is-winner {
  border-color: #d9bf73;
  background: #fff9e8;
}

.blind-bid-rank {
  color: #927339;
  font-weight: 900;
  text-align: center;
}

.blind-bid-team {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blind-bid-history b {
  color: var(--green-900);
  font-size: 11px;
  white-space: nowrap;
}

.blind-bid-history time {
  grid-column: 2;
  margin-top: 1px;
  color: #8a816e;
  font-size: 9px;
}

.blind-bid-history em {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  margin-top: 1px;
  color: #8a671d;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 420px) {
  .auction-rule-section {
    padding: 9px 10px;
  }

  .auction-rule-section p {
    font-size: 10.5px;
    line-height: 1.6;
  }
}

/* Security re-verification is intentionally non-dismissible, but it uses the
   same calm bottom-sheet language as the rest of the game instead of looking
   like a browser error page. */
.security-reverification-scrim { z-index: 120; align-items: center; padding: 18px; }
.security-reverification-modal { width: min(100%, 430px); margin: auto; padding: 22px 20px 24px; border-radius: 22px; box-shadow: 0 20px 55px rgba(4, 28, 18, .32); }
.security-reverification-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 0 13px; border-radius: 14px; background: linear-gradient(135deg, #0d653f, #238258); color: #fff; font-size: 22px; box-shadow: 0 8px 18px rgba(10, 88, 53, .22); }
.security-reverification-copy { margin: 12px 0 7px; color: #a44141; font-size: 13px; font-weight: 800; line-height: 1.65; }
.security-reverification-note { margin: 0 0 13px; color: #60776a; font-size: 11px; line-height: 1.65; }
.security-reverification-turnstile { min-height: 68px; margin: 7px 0 4px; }
.security-reverification-retry { width: 100%; margin: 9px 0 0; font-size: 11px; }
.security-reverification-modal .primary-btn { margin-top: 13px; }
.local-security-captcha { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; align-items: stretch; margin: 7px 0 4px; }
.local-security-captcha img { width: 100%; min-width: 0; height: 72px; object-fit: fill; border: 1px solid #cfe0d4; border-radius: 12px; background: #eff7f0; }
.local-security-captcha label { display: grid; gap: 5px; align-content: center; color: #5b7567; font-size: 10px; font-weight: 700; line-height: 1.25; }
.local-security-captcha input { width: 100%; min-width: 0; height: 38px; padding: 0 9px; border: 1px solid #b9d1c0; border-radius: 10px; color: #173e2a; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fff; }
.local-security-captcha input:focus { outline: 2px solid rgba(34, 125, 78, .22); border-color: #277c52; }
@media (max-width: 360px) { .local-security-captcha { grid-template-columns: 1fr; } .local-security-captcha img { height: 68px; } }
.admin-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.security-exemption-btn { white-space: nowrap; }

/* A few feature panels are direct children of their page rather than living
   inside `.section`.  Give those roots the same shared 20px gutter as every
   card around them; otherwise they visually stick to the app-shell edge on
   mobile while the heading, pitch and picker are inset. */
.squad-page > .squad-warning {
  margin-left: var(--page-gutter);
  margin-right: var(--page-gutter);
}

.simulation-page > form[data-form="save-simulation"] {
  margin: 0 var(--page-gutter) 16px;
}

.prediction-page > .prediction-empty {
  margin: 0 var(--page-gutter) 20px;
}

@media (max-width: 420px) {
  .security-reverification-scrim { align-items: flex-end; padding: 0; }
  .security-reverification-modal { border-radius: 24px 24px 0 0; }
}
/* This remains visible only before app.js has successfully rendered a page.
   It gives mobile/WeChat users a recoverable state instead of a blank screen
   when a stale cached script or an interrupted network request never boots. */
.boot-fallback {
  width: min(100%, 560px);
  min-height: 52vh;
  margin: 0 auto;
  padding: 96px 28px 48px;
  box-sizing: border-box;
  text-align: center;
  color: #123a2c;
}

.boot-fallback__mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: #075f43;
  box-shadow: 0 12px 26px rgba(7, 95, 67, 0.18);
  color: #f7e8a0;
  font-size: 34px;
}

.boot-fallback h1 {
  margin: 0 0 10px;
  font-size: 27px;
}

.boot-fallback p {
  margin: 0;
  color: #567268;
  font-size: 16px;
}

.boot-fallback__help {
  max-width: 320px;
  margin: 22px auto 20px !important;
  font-size: 13px !important;
  line-height: 1.65;
}

.boot-fallback__retry {
  min-width: 150px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #075f43;
  color: #fff;
  font: inherit;
  font-weight: 800;
}

/* FC27 next-season ability profile.  This is intentionally data-dense on
   desktop, while each group collapses into a single readable column on a
   phone. */
.fc27-ability-profile { padding: 18px; }
.fc27-ability-heading { display:flex; justify-content:space-between; align-items:center; }
.fc27-ability-heading h3 { margin:0; }
.fc27-ability-heading small { color:#6b7d73; font-weight:700; }
.fc27-radar { position:relative; width:min(100%, 360px); aspect-ratio:1; margin:8px auto 18px; }
.fc27-radar svg { position:absolute; inset:17% 17%; width:66%; height:66%; overflow:visible; }
.fc27-radar-grid { fill:#f3f7f4; stroke:#c7d8cf; stroke-width:1.2; }
.fc27-radar-shape { fill:rgba(37,161,204,.34); stroke:#1689b6; stroke-width:1.5; }
.fc27-radar-labels span { position:absolute; display:grid; gap:2px; font-size:12px; color:#526a5d; text-align:center; }
.fc27-radar-labels em { font-style:normal; font-size:15px; color:#0c6447; font-weight:900; }
.fc27-radar-labels span:nth-child(1){left:40%;top:0}.fc27-radar-labels span:nth-child(2){right:0;top:23%}.fc27-radar-labels span:nth-child(3){right:0;bottom:19%}.fc27-radar-labels span:nth-child(4){left:40%;bottom:0}.fc27-radar-labels span:nth-child(5){left:0;bottom:19%}.fc27-radar-labels span:nth-child(6){left:0;top:23%}
.fc27-attribute-group { border-top:1px solid #e2ebe6; padding:14px 0; }
.fc27-attribute-group h4,.fc27-position-map h4 { margin:0 0 10px; font-size:16px; color:#244438; }
.fc27-attribute-group > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 18px; }
.fc27-attribute-group article { display:grid; grid-template-columns:48px minmax(44px,1fr) 30px; align-items:center; gap:7px; font-size:13px; }
.fc27-attribute-group article b { height:7px; border-radius:20px; background:linear-gradient(90deg,#55b982 var(--ability),#e6eee9 var(--ability)); }
.fc27-attribute-group article em { font-style:normal; color:#bc771c; font-weight:900; text-align:right; }
.fc27-position-map { border-top:1px solid #e2ebe6; padding-top:14px; }
.fc27-pitch { position:relative; height:272px; overflow:hidden; border:2px solid #d2e6d9; border-radius:14px; background:repeating-linear-gradient(0deg,#eaf7ed 0 31px,#e1f1e5 31px 62px); }
.fc27-pitch::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 49.6%,rgba(41,105,72,.22) 49.8% 50.2%,transparent 50.4%),radial-gradient(circle at 50% 50%,transparent 0 37px,rgba(41,105,72,.2) 38px 39px,transparent 40px),linear-gradient(180deg,transparent 0 16%,rgba(41,105,72,.18) 16.2% 16.8%,transparent 17% 83%,rgba(41,105,72,.18) 83.2% 83.8%,transparent 84%); pointer-events:none; }
.fc27-pitch::after { content:""; position:absolute; left:50%; bottom:-1px; width:34%; height:11%; transform:translateX(-50%); border:1px solid rgba(41,105,72,.22); border-bottom:0; border-radius:8px 8px 0 0; pointer-events:none; }
.fc27-position { position:absolute; z-index:1; display:grid; place-items:center; align-content:center; width:34px; height:34px; transform:translate(-50%,-50%); border:2px solid rgba(255,255,255,.95); border-radius:50%; box-shadow:0 2px 6px rgba(24,74,47,.22); color:#fff; text-align:center; }
.fc27-position span { font-size:9px; line-height:10px; font-weight:900; }.fc27-position b { font-size:12px; line-height:13px; }
.fc27-position-gk{left:50%;top:90%;background:#7d8b84}.fc27-position-cb{left:50%;top:75%;background:#378860}.fc27-position-lb{left:15%;top:74%;background:#378860}.fc27-position-rb{left:85%;top:74%;background:#378860}.fc27-position-lwb{left:12%;top:58%;background:#4c9b76}.fc27-position-rwb{left:88%;top:58%;background:#4c9b76}.fc27-position-cdm{left:50%;top:61%;background:#2e8aa3}.fc27-position-cm{left:50%;top:48%;background:#2e8aa3}.fc27-position-lm{left:19%;top:47%;background:#4a9bb4}.fc27-position-rm{left:81%;top:47%;background:#4a9bb4}.fc27-position-cam{left:50%;top:34%;background:#da9135}.fc27-position-lw{left:18%;top:25%;background:#dd763d}.fc27-position-rw{left:82%;top:25%;background:#dd763d}.fc27-position-cf{left:50%;top:20%;background:#d2554d}.fc27-position-st{left:50%;top:7%;background:#c94642}
@media (max-width:420px){.fc27-attribute-group > div{grid-template-columns:1fr}.fc27-pitch{height:250px}.fc27-position{width:32px;height:32px}}
.dual-shape-controls>div {display:flex;flex-direction:column;gap:6px;min-width:0;}
.dual-shape-controls select {width:100%;border:1px solid #c7dacf;border-radius:10px;padding:8px;background:#fff;color:#254b35;}
.page:has(.dual-shape-controls) label:has(select[data-match-management-formation]),
.page:has(.dual-shape-controls) label:has(select[data-squad-control="formation"]) {display:none;}
.lineup-quick-card footer {display:flex;flex-wrap:wrap;gap:8px;}
.lineup-quick-card footer button {flex:1 1 40%;}
.quick-match-stats { border-top:1px solid #dbe6df; margin-top:18px; padding-top:12px; }
.quick-match-stats h4 { margin:0; font-size:14px; }
.quick-match-stats h5 { margin:14px 0 7px; font-size:12px; }
.quick-match-stats summary { cursor:pointer; color:#285d42; font-size:13px; font-weight:700; }
.quick-match-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.quick-match-grid span { border-radius:8px; padding:8px; background:#f0f6f2; font-size:11px; }
.quick-match-grid b { display:block; margin-top:4px; font-size:13px; overflow-wrap:anywhere; }
