.pl-season-screen {
  --pl-bg: #1e0021;
  --pl-surface: #28002d;
  --pl-surface-light: #381d53;
  --pl-line: rgba(255, 255, 255, 0.1);
  --pl-muted: rgba(255, 255, 255, 0.64);
  --pl-soft: rgba(255, 255, 255, 0.08);
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 80% -10%, rgba(104, 45, 132, 0.34), transparent 38rem),
    var(--pl-bg);
}

.pl-season-screen[data-league-competition="championship"] {
  --pl-bg: #9b8334;
  --pl-surface: #a9903a;
  --pl-surface-light: #061b84;
  --pl-line: rgba(255, 255, 255, .24);
  --pl-muted: rgba(255, 255, 255, .78);
  --pl-soft: rgba(6, 27, 132, .16);
  background:
    radial-gradient(circle at 82% -8%, rgba(255, 255, 255, .24), transparent 34rem),
    linear-gradient(145deg, #bea447, #9b8334 62%, #806a2b);
}

.pl-season-screen[data-league-competition="championship"] .pl-season-header,
.pl-season-screen[data-league-competition="championship"] .pl-table thead,
.pl-season-screen[data-league-competition="championship"] .pl-standings-table thead {
  background: #061b84;
}

.pl-season-screen[data-league-competition="championship"] :is(.pl-primary-button, .primary-button) {
  color: #061b84;
  background: #fff;
  box-shadow: inset 0 0 0 1px #b79a3f;
}

.pl-season-screen[data-league-competition="championship"] :is(.pl-season-card, .pl-panel, .pl-fixture-card, .pl-squad-card) {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(122, 101, 37, .7);
}

.pl-season-screen[data-league-competition="championship"] :is(.pl-club-code, .pl-team-code) {
  color: #fff;
  background: #061b84;
}

.pl-season-screen button,
body.pl-match-mode-active button {
  touch-action: manipulation;
}

/* Paint the PL shell immediately on direct-route refreshes. */
html.route-pl-loading,
html.route-pl-loading body {
  min-height: 100%;
  background: #1e0021;
}

html.route-pl-loading #appShell {
  display: none !important;
}

html.route-pl-loading #premierLeagueSeasonScreen {
  display: block !important;
}

html.route-championship-loading,
html.route-championship-loading body {
  min-height: 100%;
  background: #9b8334;
}

html.route-championship-loading #appShell {
  display: none !important;
}

html.route-championship-loading #premierLeagueSeasonScreen {
  display: block !important;
}

/* Match the established World Cup header structure. */
.pl-season-header {
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 0 28px;
  background: #381d53;
}

.pl-season-header-left,
.pl-season-utility-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.pl-season-header-left {
  grid-column: 1;
  justify-self: start;
}

.pl-season-site-brand {
  grid-column: 2;
  justify-self: center;
}

.pl-season-utility-actions {
  grid-column: 3;
  justify-self: end;
}

.pl-season-restart-button,
.pl-season-header :is(.utility-button) {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d9b6ed;
  background: transparent;
  font: 800 11px "Manrope", system-ui, sans-serif;
  cursor: pointer;
}

.pl-season-restart-button {
  padding: 0;
  font-size: 20px;
}

.pl-season-header :is(.pl-season-restart-button, .utility-button):hover {
  color: #fff;
  background: rgba(117, 65, 143, 0.48);
}

/* Keep navigation plain and remove the managed-fixture banner treatment. */
.pl-season-action-row .pl-back-button,
.pl-season-action-row .pl-back-button:hover {
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.pl-fixture-row.is-managed-match {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pl-season-finale {
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 237, 0.2);
  border-radius: 18px;
  background: #28002d;
  box-shadow: 0 22px 60px rgba(20, 0, 24, 0.32);
}

.pl-finale-hero {
  display: grid;
  justify-items: center;
  padding: 26px 24px 22px;
  border-bottom: 1px solid rgba(217, 182, 237, 0.16);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 107, 187, 0.34), transparent 48%),
    #381d53;
}

.pl-finale-section-title {
  color: #d9b6ed;
  font: 800 10px "DM Mono", monospace;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.pl-finale-hero img {
  width: 72px;
  height: 72px;
  margin: 12px 0 8px;
  object-fit: contain;
}

.pl-finale-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -1.8px;
}

.pl-finale-hero p {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  color: #d9b6ed;
  font-size: 13px;
  font-weight: 700;
}

.pl-finale-hero p strong {
  color: #fff;
  font-size: 13px;
}

.pl-finale-hero p span {
  color: inherit;
  font-size: 12px;
}

.pl-finale-body {
  padding: 20px;
}

.pl-finale-section-title {
  margin: 0;
}

.pl-finale-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
}

.pl-finale-place,
.pl-finale-award {
  border: 1px solid rgba(217, 182, 237, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, #3d1749, #28102f);
  box-shadow: inset 3px 0 0 #00ff85, 0 10px 24px rgba(17, 0, 20, 0.2);
}

.pl-finale-place {
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr);
  min-height: 60px;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
}

.pl-finale-place > b {
  color: #d9b6ed;
  font-size: 20px;
}

.pl-finale-place img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pl-finale-place span {
  display: grid;
  gap: 2px;
}

.pl-finale-place strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-finale-place small {
  color: #b896c4;
  font: 700 9px "DM Mono", monospace;
}

.pl-finale-promoted {
  margin-top: 20px;
}

.pl-finale-promoted h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.45px;
}

.pl-finale-promoted-clubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pl-finale-promoted-club {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-width: 0;
  min-height: 84px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 182, 237, 0.16);
  border-radius: 12px;
  background: linear-gradient(135deg, #3d1749, #28102f);
  box-shadow: inset 3px 0 0 #00ff85, 0 10px 24px rgba(17, 0, 20, 0.2);
}

.pl-finale-promoted-badge {
  display: grid;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  padding: 0;
  place-items: center;
  object-fit: contain;
  justify-self: center;
}

.pl-finale-promoted-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.pl-finale-promoted-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.pl-finale-promoted-copy small {
  color: #b896c4;
  font: 700 9px "DM Mono", monospace;
  line-height: 1.35;
}

.pl-finale-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.pl-finale-award {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 78px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
}

.pl-finale-award-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #60357e;
  font-size: 17px;
}

.pl-finale-award-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pl-finale-award-copy > span {
  color: #d9b6ed;
  font: 800 9px "DM Mono", monospace;
  letter-spacing: 1px;
}

.pl-finale-award-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-finale-award-copy small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b896c4;
  font-size: 11px;
  font-weight: 700;
}

.pl-finale-award-copy img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.pl-finale-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pl-finale-actions button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(217, 182, 237, 0.24);
  border-radius: 9px;
  color: #fff;
  background: #381d53;
  font: 800 11px "Manrope", sans-serif;
  cursor: pointer;
}

.pl-finale-actions button:is(:hover, :focus-visible) {
  border-color: rgba(0, 255, 133, 0.72);
  background: #51246b;
}

.pl-finale-actions button:focus-visible {
  outline: 3px solid #00ff85;
  outline-offset: 3px;
}

.pl-finale-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.pl-finale-actions .is-primary {
  color: #1e0021;
  background: #fff;
}

@media (max-width: 760px) {
  .pl-season-header {
    padding-inline: 14px;
  }

  .pl-season-header :is(.utility-button) > span:last-child {
    display: none;
  }

  .pl-finale-podium,
  .pl-finale-awards,
  .pl-finale-promoted-clubs {
    grid-template-columns: 1fr;
  }

  .pl-finale-body {
    padding: 18px;
  }

  .pl-finale-actions {
    flex-wrap: wrap;
  }
}

.pl-season-open #appShell {
  display: none !important;
}

.pl-season-screen[hidden] {
  display: none;
}

.pl-season-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 82px;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--pl-line);
  background: rgba(30, 0, 33, 0.9);
  backdrop-filter: blur(18px);
}

.pl-back-button,
.pl-quiet-button,
.pl-primary-button,
.pl-season-tabs button,
.pl-matchweek-nav button,
.pl-squad-card,
.pl-table-row {
  font: inherit;
}

.pl-back-button,
.pl-quiet-button,
.pl-primary-button,
.pl-season-tabs button,
.pl-matchweek-nav button {
  border: 0;
  color: inherit;
  cursor: pointer;
  transition:
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms ease,
    border-color 160ms ease;
}

.pl-back-button:active,
.pl-quiet-button:active,
.pl-primary-button:active,
.pl-season-tabs button:active,
.pl-matchweek-nav button:active {
  transform: scale(0.97);
}

.pl-back-button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: var(--pl-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.pl-season-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pl-season-brand img {
  width: 40px;
  height: 46px;
  object-fit: contain;
}

.pl-season-brand div {
  display: grid;
}

.pl-season-brand span {
  color: var(--pl-muted);
  font: 800 9px "DM Mono", monospace;
  letter-spacing: 1.5px;
}

.pl-season-brand strong {
  font-size: 15px;
  letter-spacing: -0.3px;
}

.pl-season-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pl-quiet-button,
.pl-primary-button {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.pl-quiet-button {
  border: 1px solid var(--pl-line);
  background: rgba(255, 255, 255, 0.04);
}

.pl-primary-button {
  color: #1e0021;
  background: #fff;
}

.pl-primary-button:disabled {
  color: rgba(30, 0, 33, 0.52);
  cursor: default;
  opacity: 0.72;
}

.pl-season-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) 0 80px;
}

.pl-season-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: 42px;
}

.pl-season-kicker,
.pl-season-progress-card > span,
.pl-panel-heading span,
.pl-squad-rating span {
  color: #c8a8d2;
  font: 800 10px "DM Mono", monospace;
  letter-spacing: 1.2px;
}

.pl-season-hero h1 {
  max-width: 780px;
  margin: 10px 0 10px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: clamp(-3px, -0.055em, -1.2px);
}

.pl-season-hero p {
  margin: 0;
  color: var(--pl-muted);
  font-size: 16px;
}

.pl-season-progress-card {
  padding: 22px;
  border: 1px solid var(--pl-line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pl-surface-light), rgba(56, 29, 83, 0.55));
}

.pl-season-progress-card strong {
  display: block;
  margin: 9px 0 16px;
  font-size: 18px;
}

.pl-season-progress-card > div {
  overflow: hidden;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}

.pl-season-progress-card i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.pl-season-tabs {
  display: flex;
  gap: 8px;
  margin: 42px 0 24px;
  padding: 6px;
  border: 1px solid var(--pl-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.pl-season-tabs button {
  min-height: 40px;
  flex: 1;
  border-radius: 9px;
  color: var(--pl-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.pl-season-tabs button.active {
  color: #fff;
  background: var(--pl-surface-light);
}

.pl-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: 20px;
}

.pl-panel {
  overflow: hidden;
  border: 1px solid var(--pl-line);
  border-radius: 22px;
  background: var(--pl-surface);
}

.pl-panel-heading {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--pl-line);
}

.pl-panel-heading div {
  display: grid;
  gap: 4px;
}

.pl-panel-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.6px;
}

.pl-panel-heading p {
  margin: 0;
  color: var(--pl-muted);
  font-size: 10px;
}

.pl-panel-heading button {
  padding: 8px 0;
  border: 0;
  color: #d6b8df;
  background: transparent;
  font: 800 11px "Manrope", sans-serif;
  cursor: pointer;
}

.pl-panel-heading a {
  padding: 8px 0;
  color: #d6b8df;
  font: 800 11px "Manrope", sans-serif;
  text-decoration: none;
}

.pl-panel-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 24px;
  border-top: 1px solid var(--pl-line);
}

.pl-panel-footer button {
  padding: 8px 0;
  border: 0;
  color: #d6b8df;
  background: transparent;
  font: 800 11px "Manrope", sans-serif;
  cursor: pointer;
}

.pl-latest-transfers-panel {
  margin-top: 20px;
}

.pl-transfer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pl-transfer-row {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--pl-line);
  color: #fff;
  background: transparent;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.pl-transfer-row:nth-child(odd) {
  border-right: 1px solid var(--pl-line);
}

.pl-transfer-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.pl-transfer-row:active {
  transform: scale(0.985);
}

.pl-transfer-row time {
  display: grid;
  width: 42px;
  height: 50px;
  align-content: center;
  justify-items: center;
  border-right: 1px solid rgba(217, 182, 237, 0.2);
  color: #fff;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
}

.pl-transfer-row time b {
  font-size: 17px;
  line-height: 1;
}

.pl-transfer-row time span {
  margin-top: 4px;
  color: #ba8bcf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.pl-transfer-copy {
  display: grid;
  overflow: hidden;
  min-width: 0;
  gap: 8px;
}

.pl-transfer-copy > strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-transfer-route {
  display: flex;
  overflow: hidden;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.pl-transfer-route > b {
  flex: 0 0 auto;
  color: #ba8bcf;
  font-size: 12px;
}

.pl-transfer-club {
  display: flex;
  overflow: hidden;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--pl-muted);
  font-size: 10px;
  font-weight: 700;
}

.pl-transfer-club.is-destination {
  color: #fff;
}

.pl-transfer-club .pl-club-flag,
.pl-transfer-monogram {
  display: block;
  min-width: 20px;
  max-width: 20px;
  width: 20px;
  min-height: 20px;
  max-height: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.pl-transfer-monogram {
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #ba8bcf;
  background: rgba(96, 53, 126, 0.5);
  font: 800 7px "DM Mono", monospace;
}

.pl-transfer-club > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-transfer-open {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  transition: color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pl-transfer-row:hover {
    background: rgba(96, 53, 126, 0.24);
  }

  .pl-transfer-row:hover .pl-transfer-open {
    color: #fff;
    transform: translate(2px, -2px);
  }
}

.pl-fixture-list {
  display: grid;
  padding: 0 24px;
}

.pl-fixture-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr) auto;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--pl-line);
}

.pl-fixture-play {
  width: 96px;
  height: 36px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #fff;
  background: #381d53;
  font: 800 11px "Manrope", sans-serif;
  cursor: pointer;
  transition: transform 140ms ease, background-color 160ms ease;
}

.pl-fixture-play:hover {
  background: #4a2869;
}

.pl-fixture-play:active {
  transform: scale(0.97);
}

body.pl-match-mode-active {
  --bg: #1e0021;
  --surface: #28002d;
  --surface-2: #381d53;
  --domestic-fixture-accent: #75418f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.58);
  --soft: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: #1e0021;
}

body.pl-match-mode-active #appShell {
  display: grid !important;
  background:
    radial-gradient(circle at 74% 0%, rgba(96, 53, 126, 0.26), transparent 34rem),
    #1e0021;
}

body.pl-match-mode-active #legacyDraftBackButton,
body.pl-match-mode-active #legacyHeaderBackButton,
body.pl-match-mode-active #newTournamentButton,
body.pl-match-mode-active #storyStrip,
body.pl-match-mode-active .plot-panel {
  display: none !important;
}

body.pl-match-mode-active:not(.club-competition-match-mode-active) #plLiveBackButton:not([hidden]) {
  display: inline-flex;
}

body.pl-match-mode-active:not(.club-competition-match-mode-active) #uclLiveBackButton,
body.pl-match-mode-active.club-competition-match-mode-active #plLiveBackButton,
#plLiveBackButton[hidden],
#uclLiveBackButton[hidden] {
  display: none !important;
}

body.pl-match-mode-active .match-stage {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 28%, rgba(85, 34, 112, 0.38), transparent 18rem),
    #28002d;
}

body.pl-match-mode-active .primary-button,
body.pl-match-mode-active .round-link.active,
body.pl-match-mode-active .secondary-button:hover {
  color: #fff;
  background: #381d53;
}

body.pl-match-mode-active .round-nav {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: #381d53 transparent;
}

body.pl-match-mode-active .pl-club-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pl-engine-table-panel {
  overflow: hidden;
}

.pl-engine-table-head,
.pl-engine-table-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 7px;
}

.pl-engine-table-head {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.pl-engine-table-row {
  min-height: 43px;
  padding: 6px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
}

.pl-engine-table-row.is-selected {
  background: rgba(96, 53, 126, 0.32);
}

.pl-engine-table-row > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.pl-engine-table-row > span strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-engine-table-row img,
.pl-engine-table-row .pl-club-code {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.pl-engine-table-row i {
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
}

.pl-engine-full-table {
  width: calc(100% - 24px);
  margin: 10px 12px 12px;
  color: #d9bce7;
}

.community-knockout-bracket {
  display: flex;
  gap: 14px;
  padding: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.community-knockout-round {
  display: grid;
  min-width: min(290px, 82vw);
  align-content: start;
  gap: 10px;
  scroll-snap-align: start;
}

.community-knockout-round h3 {
  margin: 0;
  color: var(--pl-muted);
  font: 800 11px "DM Mono", monospace;
}

.community-knockout-round-matches {
  display: grid;
  gap: 8px;
}

.community-knockout-tie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  background: var(--pl-surface-light);
}

.community-knockout-tie > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.community-knockout-tie > span:last-of-type {
  flex-direction: row-reverse;
  text-align: right;
}

.community-knockout-tie > span > img {
  display: block;
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.community-knockout-tie b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-knockout-tie > strong {
  color: inherit;
  font: 800 12px "DM Mono", monospace;
}

.community-knockout-tie > small {
  grid-column: 1 / -1;
  color: var(--pl-muted);
  text-align: center;
}

.community-knockout-bracket.is-compact .community-knockout-round {
  min-width: min(250px, 76vw);
}

.pl-fixture-row:last-child {
  border-bottom: 0;
}

.pl-fixture-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.pl-fixture-team.home {
  justify-content: flex-end;
  text-align: right;
}

.pl-fixture-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-fixture-team img,
.pl-table-team img,
.pl-squad-card img {
  flex: 0 0 auto;
  object-fit: contain;
}

.pl-fixture-team img {
  width: 34px;
  height: 34px;
}

.pl-club-code {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: var(--pl-surface-light);
  font: 800 8px "DM Mono", monospace;
}

.pl-fixture-score {
  display: grid;
  place-items: center;
  text-align: center;
}

.pl-fixture-score strong {
  font-size: 17px;
  letter-spacing: -0.4px;
}

.pl-fixture-score small {
  margin-top: 3px;
  color: var(--pl-muted);
  font: 700 9px "Manrope", system-ui, sans-serif;
  letter-spacing: 0.2px;
}

.pl-table {
  padding: 4px 14px 14px;
}

.pl-table-head,
.pl-table-row {
  display: grid;
  grid-template-columns: 38px minmax(180px, 1fr) repeat(8, 48px);
  min-height: 52px;
  align-items: center;
  gap: 4px;
}

.pl-table-head {
  min-height: 45px;
  color: #c7a7d1;
  font-size: 10px;
}

.pl-table-head span:not(:nth-child(2)),
.pl-table-row > span:not(.pl-table-team) {
  text-align: center;
}

.pl-table-row {
  position: relative;
  border-top: 1px solid var(--pl-line);
  font-size: 12px;
}

.pl-table-row.is-selected {
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}

.pl-table-row.is-champions-league::before,
.pl-table-row.is-relegation::before {
  position: absolute;
  left: -8px;
  width: 3px;
  height: 24px;
  border-radius: 99px;
  content: "";
}

.pl-table-row.is-champions-league::before {
  background: #9a7cff;
}

.pl-table-row.is-relegation::before {
  background: #ff5b77;
}

.pl-table-row > span:first-child,
.pl-table-row > strong {
  font-weight: 800;
}

.pl-table-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.pl-table-team img {
  width: 28px;
  height: 28px;
}

.pl-table-team b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-table-row > strong {
  text-align: center;
  font-size: 13px;
}

/* The overview table sits in a half-width card, so keep the key standings
   columns visible instead of clipping GD and points off the right edge. */
.pl-overview-grid .pl-table-head,
.pl-overview-grid .pl-table-row {
  grid-template-columns: 36px minmax(120px, 1fr) 38px 42px 42px;
}

.pl-overview-grid .pl-table-head > :nth-child(n + 4):nth-child(-n + 8),
.pl-overview-grid .pl-table-row > :nth-child(n + 4):nth-child(-n + 8) {
  display: none;
}

.pl-full-table-panel .pl-table-row {
  min-height: 62px;
}

.pl-matchweek-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pl-matchweek-toolbar > div {
  display: grid;
  gap: 3px;
}

.pl-matchweek-toolbar span {
  color: var(--pl-muted);
  font: 700 10px "DM Mono", monospace;
}

.pl-matchweek-toolbar h2 {
  margin: 0;
  font-size: 26px;
}

.pl-matchweek-toolbar > .pl-matchweek-nav {
  display: flex;
  grid-auto-flow: column;
  gap: 8px;
}

.pl-matchweek-toolbar-nav-only {
  justify-content: flex-end;
}

.pl-matchweek-nav button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  background: var(--pl-soft);
}

.pl-matchweek-nav button:disabled {
  cursor: default;
  opacity: 0.35;
}

.pl-matches-panel .pl-fixture-row {
  min-height: 92px;
}

.pl-squad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.pl-squad-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--pl-line);
  border-radius: 18px;
  color: #fff;
  background: var(--pl-surface);
  text-align: left;
  cursor: pointer;
}

.pl-squad-card[aria-expanded="true"] {
  grid-column: 1 / -1;
}

.pl-squad-card img {
  width: 50px;
  height: 50px;
}

.pl-squad-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.pl-squad-card-copy strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-squad-card-copy small {
  color: var(--pl-muted);
  font-size: 11px;
}

.pl-squad-rating {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.pl-squad-rating strong {
  font-size: 22px;
}

.pl-squad-detail {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--pl-line);
}

.pl-squad-detail[hidden] {
  display: none;
}

.pl-squad-arrivals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pl-squad-arrivals span {
  padding: 6px 8px;
  border-radius: 7px;
  color: #e8d8ed;
  background: var(--pl-surface-light);
  font-size: 9px;
  font-weight: 800;
}

.pl-player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
}

.pl-player-list span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  color: var(--pl-muted);
  font-size: 10px;
}

.pl-player-list b {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-player-list i em {
  margin-left: 5px;
  color: #d9b6ed;
  font: 800 8px "DM Mono", monospace;
  font-style: normal;
  letter-spacing: 0.4px;
}

.pl-season-champion {
  margin-bottom: 20px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, #381d53, #4d1760);
}

.pl-season-champion span {
  color: #d9bddf;
  font: 800 10px "DM Mono", monospace;
  letter-spacing: 1px;
}

.pl-season-champion div {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.pl-season-champion img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.pl-season-champion strong {
  font-size: 27px;
}

.mode-card-premier-league .premier-league-coming-soon {
  cursor: pointer;
  transition:
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 160ms ease;
}

.mode-card-premier-league .premier-league-coming-soon:active {
  transform: scale(0.98);
}

.mode-card-premier-league .premier-league-coming-soon:disabled {
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .pl-back-button:hover {
    color: #fff;
  }

  .pl-quiet-button:hover,
  .pl-matchweek-nav button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
  }

  .pl-primary-button:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .pl-season-tabs button:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .pl-squad-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .mode-card-premier-league .premier-league-coming-soon:hover {
    box-shadow: 0 10px 28px rgba(12, 2, 18, 0.22);
  }
}

@media (max-width: 900px) {
  .pl-season-header {
    grid-template-columns: 1fr auto;
  }

  .pl-season-brand {
    display: none;
  }

  .pl-season-hero,
  .pl-overview-grid {
    grid-template-columns: 1fr;
  }

  .pl-season-progress-card {
    width: min(100%, 390px);
  }

  .pl-table-head,
  .pl-table-row {
    grid-template-columns: 34px minmax(150px, 1fr) 38px 38px 38px 42px;
  }

  .pl-overview-grid .pl-table-head,
  .pl-overview-grid .pl-table-row {
    min-width: 0;
    grid-template-columns: 30px minmax(112px, 1fr) 34px 38px 40px;
  }

  .pl-table-head > :nth-child(5),
  .pl-table-head > :nth-child(6),
  .pl-table-head > :nth-child(7),
  .pl-table-head > :nth-child(8),
  .pl-table-row > :nth-child(5),
  .pl-table-row > :nth-child(6),
  .pl-table-row > :nth-child(7),
  .pl-table-row > :nth-child(8) {
    display: none;
  }
}

@media (max-width: 640px) {
  .pl-season-action-row {
    gap: 8px;
  }

  .pl-season-date strong {
    font-size: 13px;
  }

  .pl-transfer-list {
    grid-template-columns: 1fr;
  }

  .pl-transfer-row:nth-child(odd) {
    border-right: 0;
  }

  .pl-transfer-row:nth-last-child(2) {
    border-bottom: 1px solid var(--pl-line);
  }

  .pl-season-header {
    min-height: auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .pl-back-button span:last-child,
  .pl-quiet-button {
    display: none;
  }

  .pl-back-button {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--pl-line);
    border-radius: 10px;
  }

  .pl-primary-button {
    padding: 0 14px;
    font-size: 11px;
  }

  .pl-season-main {
    width: min(100% - 24px, 1180px);
    padding-top: 34px;
  }

  .pl-season-hero h1 {
    font-size: 42px;
  }

  .pl-season-tabs {
    overflow-x: auto;
  }

  .pl-season-tabs button {
    min-width: 92px;
  }

  .pl-panel-heading,
  .pl-fixture-list {
    padding-right: 14px;
    padding-left: 14px;
  }

  .pl-fixture-row {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 6px;
    padding: 12px 0;
  }

  .pl-fixture-play {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .pl-fixture-team {
    gap: 6px;
    font-size: 11px;
  }

  .pl-fixture-team img {
    width: 28px;
    height: 28px;
  }

  .pl-table {
    overflow-x: auto;
    padding-right: 8px;
    padding-left: 8px;
  }

  .pl-table-head,
  .pl-table-row {
    min-width: 455px;
    grid-template-columns: 30px minmax(148px, 1fr) 34px 38px 42px 40px;
  }

  .pl-squad-grid {
    grid-template-columns: 1fr;
  }

  .pl-player-list {
    grid-template-columns: 1fr;
  }
}

/* The compact scoreboard geometry is shared too; only its colour tokens vary. */
body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .matchup {
  min-height: 132px !important;
  padding: 38px 28px 10px !important;
  align-items: center !important;
}

body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .team {
  min-height: 64px !important;
  height: auto !important;
  align-items: center !important;
  align-self: center !important;
  padding: 0 !important;
}

body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) :is(.team h2, .match-score) { color: #f8fafc !important; }
body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .team h2 { font-size: clamp(20px, 2.1vw, 29px) !important; }
body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .score-separator { color: rgba(226, 232, 240, 0.58) !important; }

body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .score-zone {
  position: relative !important;
  min-width: 126px !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
}

body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .event-live-clock {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(50% + 25px) !important;
  width: max-content !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  border: 0 !important;
  color: #f8fafc !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}

body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .event-live-clock strong {
  color: #f8fafc !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .event-live-clock :is(span, small) { line-height: 1 !important; }
body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .event-live-clock span { color: var(--shared-live-accent) !important; }
body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) :is(.event-live-clock small, .stage-round) { color: rgba(226, 232, 240, 0.7) !important; }
body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .scoreline { align-self: center !important; margin: 0 !important; transform: none !important; }
body.shared-live-match-layout-active .match-pitch-shell { margin-top: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .pl-season-progress-card i,
  .pl-back-button,
  .pl-quiet-button,
  .pl-primary-button,
  .pl-season-tabs button,
  .pl-matchweek-nav button,
  .mode-card-premier-league .premier-league-coming-soon {
    transition-duration: 0.01ms;
  }
}

/* Compact season workspace */
.pl-season-header {
  min-height: 70px;
  padding-block: 10px;
}

.pl-season-main {
  width: min(1120px, calc(100% - 40px));
  padding: 30px 0 64px;
}

.pl-season-hero {
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 28px;
}

.pl-season-hero h1 {
  margin: 5px 0 3px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.pl-season-hero p {
  font-size: 13px;
}

.pl-season-progress-card {
  padding: 15px 17px;
  border-radius: 13px;
}

.pl-season-progress-card strong {
  margin: 5px 0 10px;
  font-size: 14px;
}

.pl-season-tabs {
  margin: 24px 0 18px;
}

.pl-matchweek-toolbar {
  min-height: 64px;
}

.pl-matchweek-toolbar h2 {
  font-size: 25px;
}

.pl-matches-panel,
.pl-full-table-panel,
.pl-overview-grid .pl-panel {
  border-radius: 15px;
}

.pl-fixture-row {
  min-height: 72px;
}

/* Premier League match screen: one clean broadcast-style matchup */
body.pl-match-mode-active #appShell {
  display: block !important;
}

body.pl-match-mode-active .sidebar,
body.pl-match-mode-active .topbar,
body.pl-match-mode-active .site-footer,
body.pl-match-mode-active .insight-left,
body.pl-match-mode-active #roundBoard,
body.pl-match-mode-active #plEngineTablePanel,
body.pl-match-mode-active .plot-panel,
body.pl-match-mode-active #storyStrip {
  display: none !important;
}

body.pl-match-mode-active .main {
  min-width: 0;
  min-height: 100vh;
}

body.pl-match-mode-active .content {
  display: block !important;
  width: min(1060px, calc(100% - 40px));
  max-width: none;
  gap: 18px;
  margin: 0 auto;
  padding: 42px 0 72px;
}

body.pl-match-mode-active .stage-column {
  grid-area: stage;
  width: 100%;
}

body.pl-match-mode-active .pl-live-back-button {
  margin-bottom: 24px;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

body.pl-match-mode-active .stage-topline {
  display: none;
}

body.pl-match-mode-active .match-stage {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.pl-match-mode-active .match-stage::after {
  display: none;
}

body.pl-match-mode-active .matchup,
body.pl-match-mode-active .match-stage.is-live .matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  min-height: 116px;
  padding: 24px 0;
}

body.pl-match-mode-active .team {
  display: flex;
  min-width: 0;
  flex-direction: row;
  gap: 16px;
  text-align: left;
}

body.pl-match-mode-active .team-home {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

body.pl-match-mode-active .team-away {
  justify-content: flex-start;
}

body.pl-match-mode-active .team .seed {
  display: none;
}

body.pl-match-mode-active .flag-orb {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.pl-match-mode-active .flag-orb .country-flag {
  width: 100%;
  height: 100%;
}

body.pl-match-mode-active .team h2 {
  max-width: min(270px, 22vw);
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -1px;
}

body.pl-match-mode-active .score-zone {
  min-width: 126px;
  min-height: 0;
  gap: 8px;
}

body.pl-match-mode-active .scoreline {
  min-width: 126px;
  transform: none;
}

body.pl-match-mode-active .match-score {
  font-family: "DM Mono", monospace;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -3px;
}

body.pl-match-mode-active .match-stage.pl-prematch .scoreline {
  display: flex;
  min-width: auto;
  justify-content: center;
}

body.pl-match-mode-active .match-stage.pl-prematch .match-score:first-child {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -1px;
  text-align: center;
}

body.pl-match-mode-active .match-stage.pl-prematch .match-score:last-child,
body.pl-match-mode-active .match-stage.pl-prematch .score-separator {
  display: none;
}

body.pl-match-mode-active .stage-action {
  padding: 8px 0 0;
}

body.pl-match-mode-active .play-button {
  min-width: 156px;
  color: #fff;
  background: #381d53;
}

body.pl-match-mode-active .match-commentary-view {
  max-width: 680px;
}

body.pl-match-mode-active .match-commentary-feed {
  border-color: rgba(255, 255, 255, 0.1);
  background: #28002d;
}

body.pl-match-mode-active .insight-right {
  display: none;
}

body.pl-match-mode-active.pl-match-detail-active .insight-right {
  display: block;
  width: min(760px, 100%);
  margin: 4px auto 0;
}

body.pl-match-mode-active #matchAnalysis,
body.pl-match-mode-active .insight-right.tactics-hidden {
  display: none !important;
}

body.pl-match-mode-active .standard-match-tactics {
  width: 100%;
  margin-inline: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: #28002d;
}

@media (max-width: 760px) {
  .pl-season-main {
    width: min(100% - 24px, 1120px);
    padding-top: 22px;
  }

  .pl-season-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pl-season-progress-card {
    display: none;
  }

  body.pl-match-mode-active .content {
    width: min(100% - 24px, 1060px);
    padding-top: 24px;
  }

  body.pl-match-mode-active .matchup,
  body.pl-match-mode-active .match-stage.is-live .matchup {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    gap: 8px;
  }

  body.pl-match-mode-active .team {
    gap: 8px;
  }

  body.pl-match-mode-active .flag-orb {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  body.pl-match-mode-active .team h2 {
    max-width: 105px;
    font-size: 14px;
  }

  body.pl-match-mode-active .match-score {
    font-size: 26px;
  }
}

/* Final Premier League workspace: WC structure, Premier League theme */
.pl-season-header {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 76px;
  place-items: center;
  padding: 10px 24px;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: #381d53;
}

.pl-season-brand {
  justify-self: center;
}

.pl-season-main {
  padding-top: 22px;
}

.pl-season-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: 18px;
}

.pl-season-date {
  display: grid;
  justify-items: center;
  gap: 3px;
  line-height: 1;
  text-align: center;
}

.pl-season-date span {
  color: #d9b6ed;
  font: 800 10px "DM Mono", monospace;
  letter-spacing: 1.2px;
}

.pl-season-date strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.35px;
}

.pl-season-action-row .pl-season-header-actions {
  justify-self: end;
}

.pl-season-action-row .pl-back-button,
.pl-season-action-row .pl-quiet-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.pl-season-action-row .pl-primary-button {
  color: #fff;
  background: #381d53;
}

.pl-season-tabs {
  margin-top: 18px;
}

.pl-fixture-row {
  position: relative;
}

.pl-fixture-row.is-managed-match {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(91, 48, 126, 0.38), rgba(56, 29, 83, 0.08));
  box-shadow: inset 0 0 0 1px rgba(165, 111, 207, 0.48);
}

.pl-fixture-row.is-managed-match .pl-fixture-play {
  color: #1e0021;
  background: #fff;
}

.pl-fixture-play:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
}

.pl-fixture-team img,
.pl-table-team img,
.pl-squad-card img,
.pl-engine-table-row img {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.pl-match-mode-active {
  --bg: #1e0021;
  --surface: #28002d;
  --surface-2: #381d53;
  --text: #fff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.58);
  --soft: rgba(255, 255, 255, 0.75);
}

body.pl-match-mode-active #appShell {
  display: grid !important;
  grid-template-columns: 210px minmax(0, 1fr);
}

body.pl-match-mode-active .sidebar {
  display: flex !important;
  border-right-color: rgba(255, 255, 255, 0.1);
  background: #170019;
}

body.pl-match-mode-active .topbar {
  display: flex !important;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #381d53;
}

body.pl-match-mode-active .site-footer {
  display: block !important;
}

body.pl-match-mode-active .content {
  display: grid !important;
  grid-template-columns: minmax(170px, 185px) minmax(600px, 1fr) minmax(185px, 205px);
  grid-template-areas:
    "next stage boot"
    "board board board";
  align-items: start;
  justify-content: center;
  width: auto;
  max-width: 1600px;
  gap: 16px;
  margin: 0 auto;
  padding: 26px 16px 64px;
}

body.pl-match-mode-active .stage-column {
  grid-area: stage;
}

body.pl-match-mode-active .insight-right {
  display: grid !important;
  grid-area: next;
  gap: 16px;
  width: auto;
  margin: 0;
}

body.pl-match-mode-active .insight-left {
  display: grid !important;
  grid-area: boot;
  gap: 16px;
}

body.pl-match-mode-active #roundBoard {
  display: block !important;
  grid-area: board;
}

body.pl-match-mode-active .plot-panel,
body.pl-match-mode-active #storyStrip {
  display: none !important;
}

body.pl-match-mode-active #matchAnalysis {
  display: block !important;
  width: 100%;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: #28002d;
}

body.pl-match-mode-active .standard-match-tactics {
  width: 100%;
  margin: 0;
}

body.pl-match-mode-active .golden-boot-panel,
body.pl-match-mode-active .pl-engine-table-panel,
body.pl-match-mode-active .round-board {
  border-color: rgba(255, 255, 255, 0.1);
  background: #28002d;
}

body.pl-match-mode-active .pl-engine-table-panel {
  display: block;
}

body.pl-match-mode-active #plEngineTablePanel {
  display: block !important;
}

body.pl-match-mode-active .pl-live-back-button {
  margin: 0 0 16px;
}

body.pl-match-mode-active .stage-topline {
  display: flex;
  color: #d2afd9;
}

body.pl-match-mode-active .match-stage {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 32%, rgba(103, 54, 135, 0.28), transparent 20rem),
    #240027;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

body.pl-match-mode-active .matchup,
body.pl-match-mode-active .match-stage.is-live .matchup {
  min-height: 232px;
  padding-inline: clamp(22px, 4vw, 58px);
}

body.pl-match-mode-active .team h2.team-name,
body.pl-match-mode-active .team h2.team-name.is-long {
  width: max-content;
  max-width: none;
  overflow: visible;
  font-size: clamp(16px, 1.25vw, 21px);
  text-overflow: clip;
  white-space: nowrap;
}

body.pl-match-mode-active .team {
  position: relative;
  overflow: visible !important;
}

body.pl-match-mode-active .team h2.team-name > span,
body.pl-match-mode-active .team h2.team-name.is-overflowing > span {
  width: max-content;
  min-width: 0;
  overflow: visible;
  animation: none;
  text-overflow: clip;
  transform: none;
  white-space: nowrap;
}

body.pl-match-mode-active .team-match-events {
  position: absolute;
  top: calc(50% + 44px);
  display: grid !important;
  width: min(100%, 260px);
  min-height: 0;
  gap: 6px;
  margin: 0;
  overflow: visible;
  color: rgba(255, 255, 255, 0.68);
}

body.pl-match-mode-active .team-match-events[hidden] {
  display: none !important;
}

body.pl-match-mode-active .team-home .team-match-events {
  right: 0;
  justify-items: end;
  text-align: right;
}

body.pl-match-mode-active .team-away .team-match-events {
  left: 0;
  justify-items: start;
  text-align: left;
}

body.pl-match-mode-active .team-away .team-match-events .timeline-event {
  justify-self: start;
}

body.pl-match-mode-active .team-match-events .timeline-event {
  width: max-content;
  max-width: 100%;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 800;
  line-height: 1.3;
}

/* Keep both Premier League headers on the same purple utility palette. */
body.pl-match-mode-active .brand-mark,
.pl-season-site-brand .brand-mark {
  color: #ffffff;
  background: #75418f;
  box-shadow: 0 8px 22px rgba(30, 0, 33, 0.32);
}

body.pl-route-setup-active #premierLeagueSeasonScreen[data-league-edition^="premier-league-"] .pl-season-site-brand .brand-mark {
  border: 1px solid rgba(255, 255, 255, .66);
  color: #381d53;
  background: linear-gradient(145deg, #ffffff, #c899df) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .72), 0 3px 0 #75418f !important;
}

body.pl-match-mode-active .top-actions .utility-button {
  color: #d9b6ed;
}

body.pl-match-mode-active .top-actions .utility-button:hover {
  color: #ffffff;
  background: rgba(117, 65, 143, 0.48);
}

body.pl-match-mode-active .top-actions .header-donate-link {
  border-color: rgba(217, 182, 237, 0.32);
  color: #ffffff;
  background: #75418f;
}

body.pl-match-mode-active .top-actions .account-avatar-icon svg {
  stroke: #c899df;
}

.pl-season-header {
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  padding: 10px 28px;
  background: #381d53;
}

.pl-season-site-brand {
  grid-column: 2;
  justify-self: center;
}

.pl-season-utility-actions {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 4px;
}

.pl-season-utility-actions .utility-button {
  min-height: 38px;
  padding: 0 10px;
  color: #d9b6ed;
}

.pl-season-utility-actions .utility-button:hover {
  color: #ffffff;
  background: rgba(117, 65, 143, 0.48);
}

.pl-season-utility-actions .header-donate-link {
  border-color: rgba(217, 182, 237, 0.32);
  color: #ffffff;
  background: #75418f;
}

.pl-season-utility-actions .account-avatar-icon svg {
  stroke: #c899df;
}

@media (max-width: 1000px) {
  .pl-season-header {
    grid-template-columns: auto 1fr;
  }

  .pl-season-site-brand {
    grid-column: 1;
    justify-self: start;
  }

  .pl-season-utility-actions {
    grid-column: 2;
  }

  .pl-season-utility-actions .utility-button > span:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .pl-season-header {
    padding-inline: 14px;
  }

  .pl-season-utility-actions {
    gap: 0;
  }

  .pl-season-utility-actions .utility-button {
    min-width: 34px;
    padding-inline: 7px;
  }
}

body.pl-match-mode-active .team-home .team-match-events .timeline-event {
  justify-content: flex-end;
}

body.pl-match-mode-active .team-match-events .timeline-event b {
  color: #d9b6ed;
}

body.pl-match-mode-active .matchup,
body.pl-match-mode-active .match-stage.is-live .matchup {
  gap: 10px;
  padding-inline: 8px;
}

body.pl-match-mode-active .team {
  gap: 8px;
}

body.pl-match-mode-active .flag-orb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

body.pl-match-mode-active .score-zone {
  min-width: 104px;
}

@media (max-width: 1320px) {
  body.pl-match-mode-active .team h2.team-name,
  body.pl-match-mode-active .team h2.team-name.is-long {
    font-size: 15px;
  }
}

body.pl-match-mode-active .flag-orb,
body.pl-match-mode-active .flag-orb .country-flag,
body.pl-match-mode-active .flag-orb .pl-club-flag,
body.pl-match-mode-active .flag-orb img {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.pl-match-mode-active .flag-orb .flag-fallback {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

body.pl-match-mode-active .round-board {
  border-radius: 16px;
}

body.pl-match-mode-active .fixture-grid:not(.bracket-mode) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.pl-match-mode-active .fixture {
  border-color: rgba(255, 255, 255, 0.08);
  background: #210c2c;
}

body.pl-match-mode-active .fixture.selected {
  border-color: #8f5db3;
  background: #381d53;
}

body.pl-match-mode-active .round-link.active,
body.pl-match-mode-active .primary-button,
body.pl-match-mode-active .secondary-button:hover {
  color: #fff;
  background: #381d53;
}

body.pl-match-mode-active .pl-engine-table-row.is-selected {
  color: #fff;
  background: #381d53;
  box-shadow: inset 3px 0 #d9b6ed;
}

@media (max-width: 1180px) {
  body.pl-match-mode-active .content {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(190px, 230px);
    gap: 16px;
  }

  body.pl-match-mode-active .fixture-grid:not(.bracket-mode) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  body.pl-match-mode-active #appShell {
    grid-template-columns: 1fr;
  }

  body.pl-match-mode-active .sidebar {
    display: none !important;
  }

  body.pl-match-mode-active .content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "stage"
      "next"
      "boot"
      "board";
    width: min(100% - 24px, 760px);
    padding-inline: 0;
  }
}

/* Premier League match workspace: inherit the WC placement, then apply PL colour. */
body.pl-match-mode-active #appShell {
  display: block !important;
  min-height: 100vh;
}

body.pl-match-mode-active .sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex !important;
  width: 100%;
  height: 72px;
  flex-direction: row;
  align-items: center;
  padding: 0 clamp(20px, 3vw, 44px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #381d53;
}

body.pl-match-mode-active .topbar {
  display: none !important;
}

body.pl-match-mode-active .main {
  min-width: 0;
}

body.pl-match-mode-active .content {
  display: grid !important;
  grid-template-columns: minmax(210px, 240px) minmax(560px, 860px) minmax(220px, 260px);
  grid-template-areas:
    "next stage table"
    "board board boot";
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
  gap: 22px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

body.pl-match-mode-active .stage-column {
  grid-area: stage;
  min-width: 0;
}

body.pl-match-mode-active .insight-right,
body.pl-match-mode-active .insight-right.tactics-hidden {
  display: grid !important;
  grid-area: next;
  align-content: start;
  gap: 16px;
  width: auto;
  margin: 0;
}

body.pl-match-mode-active .insight-left {
  display: grid !important;
  grid-area: boot;
  align-content: start;
  gap: 16px;
}

body.pl-match-mode-active #roundBoard {
  display: block !important;
  grid-area: board;
}

body.pl-match-mode-active #plEngineTablePanel {
  display: block !important;
  grid-area: table;
  align-self: start;
  width: 100%;
}

body.pl-match-mode-active .pl-live-back-button {
  min-height: 40px;
  margin: 0 0 18px;
}

body.pl-match-mode-active .pl-live-back-button[hidden] {
  display: none !important;
}

body.pl-match-mode-active .stage-topline {
  justify-content: center;
  padding: 0 20px 14px;
}

body.pl-match-mode-active .match-stage {
  position: relative;
  min-height: 420px;
}

body.pl-match-mode-active .match-commentary-view {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 4;
  width: min(680px, calc(100% - 56px));
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
}

body.pl-match-mode-active .matchup,
body.pl-match-mode-active .match-stage.is-live .matchup {
  min-height: 260px;
  padding: 46px 28px 24px;
}

body.pl-match-mode-active .score-zone {
  width: 132px;
  min-width: 132px;
}

body.pl-match-mode-active .team h2.team-name,
body.pl-match-mode-active .team h2.team-name.is-long {
  line-height: 1.15;
  word-spacing: 0.08em;
}

body.pl-match-mode-active .stage-action {
  padding: 6px 20px 34px;
}

body.pl-match-mode-active #matchAnalysis {
  display: block !important;
  min-height: 118px;
}

body.pl-match-mode-active .match-stats-empty {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 72px;
  align-content: center;
}

body.pl-match-mode-active .match-stats-empty span {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

body.pl-match-mode-active .pl-watch-tactics {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #28002d;
}

body.pl-match-mode-active .pl-watch-tactics[hidden] {
  display: none !important;
}

body.pl-match-mode-active .pl-watch-tactics-copy {
  display: grid;
  gap: 5px;
  min-height: 88px;
  align-content: center;
  padding: 16px;
  text-align: center;
}

body.pl-match-mode-active .pl-watch-tactics-copy strong {
  color: #fff;
  font-size: 12px;
}

body.pl-match-mode-active .pl-watch-tactics-copy span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  line-height: 1.5;
}

body.pl-match-mode-active .standard-match-tactics > span {
  color: #d2afd9;
}

body.pl-match-mode-active .standard-tactic-buttons {
  border-color: rgba(255, 255, 255, 0.1);
  background: #180b20;
}

body.pl-match-mode-active .standard-tactic-buttons button {
  color: rgba(255, 255, 255, 0.64);
}

body.pl-match-mode-active .standard-tactic-buttons button.active {
  color: #fff;
  background: #381d53;
  box-shadow: 0 5px 16px rgba(56, 29, 83, 0.34);
}

body.pl-match-mode-active .live-control {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.76);
  background: #381d53;
}

body.pl-match-mode-active .score-live-controls {
  margin-top: 8px;
  transform: translateY(-4px);
}

/* Keep the completed match score on the same centre line as the live state. */
body.pl-match-mode-active .match-stage.pl-full-time .score-zone {
  position: relative;
  min-height: 210px;
  gap: 0;
}

body.pl-match-mode-active .match-stage.pl-full-time .event-live-clock[hidden],
body.pl-match-mode-active .match-stage.pl-full-time .live-controls[hidden] {
  display: none !important;
}

body.pl-match-mode-active .match-stage.pl-full-time .result-note:not([hidden]) {
  position: absolute;
  top: calc(50% + 62px);
  left: 50%;
  min-height: 20px;
  color: #d2afd9;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Scorer rows are positioned below the clubs, so reserve their overflow before the result action. */
body.pl-match-mode-active .match-stage.pl-full-time .stage-action {
  margin-top: var(--pl-result-event-clearance, 0px);
}

/* Live scorer rows are absolutely positioned. Grow the stage as the feed grows
   so high-scoring matches stay inside the card on phones and short landscape screens. */
body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) {
  min-height: calc(420px + var(--pl-result-event-clearance, 0px));
}

body.pl-match-mode-active .match-stage.pl-full-time .matchup {
  overflow: visible;
}

body.pl-match-mode-active #snapshotButton {
  border-color: rgba(217, 182, 237, 0.36);
  color: #fff;
  background: #381d53;
  box-shadow: 0 10px 24px rgba(30, 0, 33, 0.34);
}

body.pl-match-mode-active #snapshotButton:focus-visible {
  outline: 2px solid #d9b6ed;
  outline-offset: 3px;
}

body.pl-match-mode-active .snapshot-modal form {
  border: 1px solid rgba(217, 182, 237, 0.22);
  color: #fff;
  background: #28002d;
}

body.pl-match-mode-active .snapshot-preview {
  border-color: rgba(217, 182, 237, 0.22);
  background: #1e0021;
  box-shadow: 0 18px 50px rgba(30, 0, 33, 0.44);
}

body.pl-match-mode-active .snapshot-actions button {
  border-color: rgba(217, 182, 237, 0.28);
  color: #fff;
  background: #381d53;
}

body.pl-match-mode-active .skip-control {
  border-color: #7f4da2;
  color: #fff;
  background: #60357e;
}

@media (hover: hover) and (pointer: fine) {
  body.pl-match-mode-active .standard-tactic-buttons button:hover:not(:disabled):not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  body.pl-match-mode-active .live-control:hover,
  body.pl-match-mode-active .skip-control:hover,
  body.pl-match-mode-active #snapshotButton:hover,
  body.pl-match-mode-active .snapshot-actions button:hover {
    border-color: #9d6bbb;
    color: #fff;
    background: #60357e;
  }

  body.pl-match-mode-active #roundBoard .team-filter-search:hover,
  body.pl-match-mode-active #roundBoard .history-round-button:hover,
  body.pl-match-mode-active #roundBoard #simulateRoundButton:hover,
  body.pl-match-mode-active #roundBoard .team-filter-chip:hover {
    border-color: rgba(217, 182, 237, 0.52);
    color: #fff;
    background: #4b2863;
  }
}

body.pl-match-mode-active #roundBoard .team-filter-search,
body.pl-match-mode-active #roundBoard .history-round-button,
body.pl-match-mode-active #roundBoard #simulateRoundButton,
body.pl-match-mode-active #roundBoard .team-filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: #381d53;
  box-shadow: none;
}

body.pl-match-mode-active #roundBoard .team-filter-search {
  color: #d9b6ed;
}

body.pl-match-mode-active #roundBoard .team-filter-search:focus-within {
  border-color: #9d6bbb;
  background: #4b2863;
  box-shadow: 0 0 0 3px rgba(157, 107, 187, 0.14);
}

body.pl-match-mode-active #roundBoard .team-filter-search input {
  color: #fff;
}

body.pl-match-mode-active #roundBoard .team-filter-search input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result-popover {
  z-index: 120;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 237, 0.26);
  border-radius: 12px;
  color: #fff;
  background: #28002d;
  box-shadow: 0 18px 44px rgba(30, 0, 33, 0.48);
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 54px;
  padding: 9px 12px;
  border-bottom-color: rgba(217, 182, 237, 0.14);
  color: #fff;
  background: transparent;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result:last-child {
  border-bottom: 0;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result > span:first-child,
body.pl-match-mode-active #roundBoard #teamFilterControl .search-result .search-flag,
body.pl-match-mode-active #roundBoard #teamFilterControl .search-result .pl-club-flag {
  width: 34px;
  height: 34px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result .pl-club-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result strong {
  color: #fff;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result small {
  color: rgba(255, 255, 255, 0.56);
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result:hover,
body.pl-match-mode-active #roundBoard #teamFilterControl .search-result:focus-visible {
  color: #fff;
  background: #381d53;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .search-result-popover .empty-story {
  color: rgba(255, 255, 255, 0.68);
  background: #28002d;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .team-filter-check {
  color: #1e0021;
  background: #d9b6ed;
}

body.pl-match-mode-active #roundBoard #teamFilterControl .team-filter-clear {
  color: rgba(255, 255, 255, 0.56);
}

body.pl-match-mode-active .golden-boot-panel,
body.pl-match-mode-active .pl-engine-table-panel {
  overflow: hidden;
  border-radius: 16px;
}

body.pl-match-mode-active .fixture-grid:not(.bracket-mode) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.pl-match-mode-active .fixture .fixture-team {
  grid-template-columns: 36px minmax(0, 1fr) auto 8px;
  gap: 9px;
}

body.pl-match-mode-active .fixture .fixture-team .flag,
body.pl-match-mode-active .fixture .fixture-team .fixture-flag,
body.pl-match-mode-active .fixture .fixture-team .pl-club-flag {
  width: 36px;
  height: 36px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.pl-match-mode-active .pl-club-flag {
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.pl-match-mode-active .pl-club-flag:has(> img) > .flag-fallback {
  display: none !important;
}

body.pl-match-mode-active .fixture .fixture-team .pl-club-flag img {
  object-fit: contain;
}

body.pl-match-mode-active .fixture .fixture-team .name {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
  word-spacing: 0.06em;
}

body.pl-match-mode-active .fixture .fixture-team.winner .name {
  color: #fff;
}

/* The Premier League uses the full World Cup matchday squad manager. */
body.pl-match-mode-active #retroMatchLineupsPanel {
  --q22-ink: #1e0021;
  --q22-ink-soft: #18001b;
  --q22-panel: #28002d;
  --q22-panel-soft: #1e0021;
  --q22-wine: #381d53;
  --q22-wine-bright: #60357e;
  --q22-line: rgba(217, 182, 237, 0.26);
  --q22-line-soft: rgba(217, 182, 237, 0.14);
  --q22-cream: rgba(255, 255, 255, 0.82);
  --q22-white: #fff;
  --q22-gold: #d9b6ed;
  --q22-gold-soft: #e8d2f3;
  --q22-accent-ink: #1e0021;
  --q22-shadow: rgba(12, 0, 14, 0.26);
  margin-top: 18px;
  border: 1px solid var(--q22-line);
  border-radius: 18px;
  color: var(--q22-white);
  background: var(--q22-panel);
  box-shadow: 0 18px 46px var(--q22-shadow);
}

body.pl-match-mode-active #retroMatchLineupsPanel summary {
  padding: 17px 20px;
  color: var(--q22-white);
  background: var(--q22-wine);
  font-size: 13px;
  letter-spacing: 0.01em;
}

body.pl-match-mode-active #retroMatchLineupsPanel[open] summary {
  border-bottom-color: var(--q22-line-soft);
}

body.pl-match-mode-active #retroMatchLineupsPanel > .retro-lineups-grid {
  grid-template-columns: 1fr;
  align-items: start;
  padding: 12px;
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-lineup-tabs {
  overflow: hidden;
  border-color: var(--q22-line-soft);
  border-radius: 11px;
  background: var(--q22-ink);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-lineup-tabs button {
  min-height: 48px;
  border-right-color: var(--q22-line-soft);
  color: var(--q22-cream);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-lineup-tabs button.active {
  color: var(--q22-white);
  background: var(--q22-wine);
  box-shadow: inset 0 -3px var(--q22-gold);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-lineup-tab-flag,
body.pl-match-mode-active #retroMatchLineupsPanel .retro-lineup-tab-flag img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-manager-lineup,
body.pl-match-mode-active #retroMatchLineupsPanel .retro-live-ratings-side {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--q22-line-soft);
  border-radius: 12px;
  color: var(--q22-white);
  background: var(--q22-panel);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-manager-hint {
  border-bottom-color: var(--q22-line-soft);
  color: var(--q22-cream);
  background: var(--q22-panel-soft);
}

body.pl-match-mode-active #retroMatchLineupsPanel [data-retro-manager-formation] {
  min-height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--q22-line);
  border-radius: 8px;
  color: var(--q22-white);
  background: var(--q22-wine);
  font: 800 10px "DM Mono", monospace;
  cursor: pointer;
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-manager-pitch {
  border-color: var(--q22-line);
  border-radius: 11px;
  background:
    linear-gradient(90deg, transparent 49.75%, color-mix(in srgb, var(--q22-white) 16%, transparent) 49.75% 50.25%, transparent 50.25%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--q22-white) 2.4%, transparent) 0 12.5%, color-mix(in srgb, var(--q22-ink) 36%, transparent) 12.5% 25%),
    var(--q22-wine);
  box-shadow: inset 0 0 42px color-mix(in srgb, var(--q22-ink) 42%, transparent);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-pitch-player b {
  border-color: var(--q22-white);
  color: var(--q22-white);
  background: var(--q22-wine-bright);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-pitch-player i {
  color: var(--q22-accent-ink);
  background: var(--q22-gold-soft);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-manager-section.is-bench {
  border-left-color: var(--q22-line-soft);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-manager-player {
  border-color: var(--q22-line-soft);
  color: var(--q22-cream);
  background: var(--q22-ink);
}

body.pl-match-mode-active #retroMatchLineupsPanel .retro-manager-player.is-selected,
body.pl-match-mode-active #retroMatchLineupsPanel .retro-manager-player:hover:not(:disabled) {
  border-color: var(--q22-gold);
  background: var(--q22-wine);
}

@media (min-width: 1181px) {
  body.pl-match-mode-active .insight-right,
  body.pl-match-mode-active .insight-right.tactics-hidden,
  body.pl-match-mode-active.pl-match-detail-active .insight-right {
    margin-top: 86px;
  }

  body.pl-match-mode-active #plEngineTablePanel {
    margin-top: 70px;
  }

  body.pl-match-mode-active .pl-live-back-button {
    margin-left: -262px;
  }
}

@media (max-width: 1180px) {
  body.pl-match-mode-active .content {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(190px, 220px);
    gap: 16px;
    padding-inline: 14px;
  }

  body.pl-match-mode-active .fixture-grid:not(.bracket-mode) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 851px) and (max-width: 1180px) {
  body.pl-match-mode-active .insight-right,
  body.pl-match-mode-active .insight-right.tactics-hidden,
  body.pl-match-mode-active.pl-match-detail-active .insight-right {
    margin-top: 86px;
  }

  body.pl-match-mode-active #plEngineTablePanel {
    margin-top: 70px;
  }

  body.pl-match-mode-active .pl-live-back-button {
    margin-left: calc(-16px - clamp(180px, 18.65vw, 220px));
  }
}

@media (max-width: 850px) {
  body.pl-match-mode-active .sidebar {
    position: sticky;
    display: flex !important;
    height: 64px;
    flex-direction: row;
  }

  body.pl-match-mode-active .content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "stage"
      "next"
      "table"
      "board"
      "boot";
    width: min(100% - 24px, 760px);
    gap: 16px;
    padding: 18px 0 52px;
  }

  body.pl-match-mode-active .insight-right,
  body.pl-match-mode-active .insight-right.tactics-hidden,
  body.pl-match-mode-active.pl-match-detail-active .insight-right,
  body.pl-match-mode-active .insight-left {
    margin-top: 0;
  }

  body.pl-match-mode-active .pl-live-back-button {
    margin-left: 0;
  }

  body.pl-match-mode-active .match-stage {
    min-height: 360px;
  }

  body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) {
    min-height: calc(360px + var(--pl-result-event-clearance, 0px));
  }

  body.pl-match-mode-active .matchup,
  body.pl-match-mode-active .match-stage.is-live .matchup {
    min-height: 220px;
    padding: 34px 12px 20px;
  }

  body.pl-match-mode-active .score-zone {
    width: 92px;
    min-width: 92px;
  }

  body.pl-match-mode-active .match-stage.pl-full-time .score-zone {
    min-height: 170px;
  }

  body.pl-match-mode-active .match-commentary-view {
    top: 18px;
    width: calc(100% - 24px);
  }

  body.pl-match-mode-active .fixture-grid:not(.bracket-mode) {
    grid-template-columns: 1fr;
  }
}

/* Final PL season-shell overrides. Keep these after legacy compatibility rules. */
.pl-season-header {
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 0 28px;
  background: #381d53;
}

.pl-season-header-left {
  display: flex;
  grid-column: 1;
  min-width: 0;
  align-items: center;
  justify-self: start;
  gap: 7px;
}

.pl-season-site-brand {
  grid-column: 2;
  justify-self: center;
}

.pl-season-utility-actions {
  display: flex;
  grid-column: 3;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.pl-season-action-row .pl-back-button,
.pl-season-action-row .pl-back-button:hover {
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.pl-fixture-row.is-managed-match {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 760px) {
  .pl-season-header {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 14px;
  }

  .pl-season-header-left {
    grid-column: 1;
  }

  .pl-season-site-brand {
    display: inline-flex;
    grid-column: 2;
    justify-self: center;
  }

  .pl-season-utility-actions {
    grid-column: 3;
  }
}

/* Preserve the desktop-style row on mobile without letting either team overflow. */
@media (max-width: 850px) {
  body.pl-match-mode-active .matchup,
  body.pl-match-mode-active .match-stage.is-live .matchup {
    grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
    gap: 4px;
    padding-inline: 10px;
  }

  body.pl-match-mode-active .score-zone {
    width: 80px;
    min-width: 80px;
  }

  body.pl-match-mode-active .team {
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  body.pl-match-mode-active .team-home {
    justify-content: flex-start;
  }

  body.pl-match-mode-active .flag-orb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    transform: none;
  }

  body.pl-match-mode-active .team-home .flag-orb {
    transform: none;
  }

  body.pl-match-mode-active .team-away .flag-orb {
    transform: none;
  }

  body.pl-match-mode-active .team h2.team-name,
  body.pl-match-mode-active .team h2.team-name.is-long {
    width: auto;
    min-width: 0;
    max-width: calc(100% - 48px);
    overflow: hidden;
    font-size: clamp(11px, 3vw, 14px);
    letter-spacing: -0.35px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.pl-match-mode-active .team h2.team-name > span,
  body.pl-match-mode-active .team h2.team-name.is-overflowing > span {
    display: block;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Mobile PL result cards grow with their event list, and the header keeps one clear left action. */
#plSeasonSettingsButton {
  border-color: rgba(217, 182, 237, 0.34);
  color: #fff;
  background: #75418f;
}

@media (hover: hover) and (pointer: fine) {
  #plSeasonSettingsButton:hover {
    color: #fff;
    background: #8f55ae;
  }
}

#plSeasonSettingsButton:active {
  transform: scale(0.97);
}

@media (max-width: 850px) {
  .pl-season-header {
    display: flex;
    min-height: 64px;
    padding: 0 12px;
  }

  .pl-season-header-left {
    position: absolute;
    top: 50%;
    left: 12px;
    gap: 4px;
    transform: translateY(-50%);
  }

  .pl-season-site-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .pl-season-utility-actions {
    position: absolute;
    top: 50%;
    right: 12px;
    gap: 4px;
    transform: translateY(-50%);
  }

  .pl-season-utility-actions .utility-button {
    position: relative;
    width: 34px;
    min-width: 34px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 9px;
  }

  .pl-season-header-left #plSeasonSettingsButton,
  .pl-season-header-left #plRestartSeasonButton {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 9px;
  }

  .pl-season-header-left #plSeasonSettingsButton {
    order: 1;
  }

  .pl-season-header-left #plRestartSeasonButton {
    order: 2;
  }

  body.pl-match-mode-active .sidebar #menuButton {
    display: none !important;
  }

  body.pl-match-mode-active .sidebar .header-actions #settingsButton {
    top: 14px;
    left: 12px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-color: rgba(217, 182, 237, 0.34);
    color: #fff;
    background: #75418f;
  }

  body.pl-match-mode-active .sidebar .header-actions #settingsButton:active {
    transform: scale(0.97);
  }

  body.pl-match-mode-active .match-stage.pl-full-time .result-note:not([hidden]) {
    position: static;
    top: auto;
    left: auto;
    margin-top: 7px;
    transform: none;
  }
}

@media (max-width: 430px) {
  .pl-season-header {
    padding-inline: 9px;
  }

  .pl-season-header-left {
    left: 9px;
  }

  .pl-season-utility-actions {
    right: 9px;
    gap: 2px;
  }
}

@media (max-width: 850px) and (hover: hover) and (pointer: fine) {
  body.pl-match-mode-active .sidebar .header-actions #settingsButton:hover {
    color: #fff;
    background: #8f55ae;
  }
}

/* Keep the live scorecard readable on iPad landscape and compact desktops.
   Supporting panels yield first: the match owns the full first row, while
   stats and standings share the row beneath it. */
@media (min-width: 851px) and (max-width: 1180px) {
  body.pl-match-mode-active .content {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-areas:
      "stage stage stage"
      "support table boot"
      "board board board" !important;
    width: min(100% - 32px, 1040px) !important;
    gap: 16px !important;
    padding-inline: 0 !important;
  }

  body.pl-match-mode-active .stage-column {
    grid-area: stage !important;
    width: min(100%, 860px) !important;
    justify-self: center;
  }

  body.pl-match-mode-active .insight-right,
  body.pl-match-mode-active .insight-right.tactics-hidden,
  body.pl-match-mode-active.pl-match-detail-active .insight-right {
    display: grid !important;
    grid-area: support !important;
    align-content: start;
    gap: 12px;
    margin-top: 0 !important;
  }

  body.pl-match-mode-active #matchAnalysis {
    width: 100% !important;
    min-height: 0;
    margin: 0 !important;
  }

  body.pl-match-mode-active :is(.standard-match-tactics, .pl-watch-tactics) {
    width: 100% !important;
    margin: 0 !important;
  }

  body.pl-match-mode-active :is(#plEngineTablePanel, #uclEngineTablePanel) {
    grid-area: table !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  body.pl-match-mode-active .insight-left {
    grid-area: boot !important;
    align-self: start;
    margin-top: 0 !important;
  }

  body.pl-match-mode-active #roundBoard {
    grid-area: board !important;
  }
}

/* On smaller desktop windows, reduce side-panel chrome before allowing the
   central match card to contract. */
@media (min-width: 1181px) and (max-width: 1360px) {
  body.pl-match-mode-active .content {
    grid-template-columns: minmax(150px, 175px) minmax(640px, 1fr) minmax(175px, 205px) !important;
    gap: 14px !important;
    padding-inline: 14px !important;
  }

  body.pl-match-mode-active .pl-live-back-button {
    margin-left: -189px;
  }

  body.pl-match-mode-active #matchAnalysis .match-stats-grid {
    padding-inline: 8px;
  }

  body.pl-match-mode-active #matchAnalysis .match-stat-row {
    grid-template-columns: minmax(32px, 0.8fr) minmax(74px, 1.25fr) minmax(32px, 0.8fr);
  }
}

/* Live controls extend beyond the narrow score column. Keep scorer lanes in
   their own team columns so Resume/speed controls never cover player names. */
@media (min-width: 851px) {
  body.pl-match-mode-active .team-home .team-match-events {
    right: clamp(24px, 3vw, 52px);
    max-width: calc(100% - clamp(24px, 3vw, 52px));
  }

  body.pl-match-mode-active .team-away .team-match-events {
    left: clamp(24px, 3vw, 52px);
    max-width: calc(100% - clamp(24px, 3vw, 52px));
  }

  body.pl-match-mode-active .team-match-events .timeline-event,
  body.pl-match-mode-active .team-match-events .event {
    position: relative;
    z-index: 5;
  }
}

/* Domestic live matches keep their local "Your area" table, but never inherit UEFA context. */
body.pl-match-mode-active:not(.club-competition-match-mode-active) #uclEngineTablePanel {
  display: none !important;
}

@media (min-width: 901px) {
  .pl-squad-card[aria-expanded="true"] .pl-player-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* EFL Championship match workspace. The shared domestic match engine keeps
   its layout, while every visible surface uses the league's blue, gold and
   warm-white broadcast palette. */
body.pl-match-mode-active[data-domestic-league-competition="championship"] {
  --bg: #b49a3f;
  --surface: #9d8531;
  --surface-2: #061b84;
  --text: #fffdf4;
  --line: rgba(255, 253, 244, .28);
  --line-strong: rgba(255, 253, 244, .44);
  --muted: rgba(255, 253, 244, .76);
  --soft: #fffdf4;
  color: #fffdf4;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .2), transparent 28rem),
    linear-gradient(145deg, #c3aa4c, #ad9339 55%, #8a7228) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .sidebar,
body.pl-match-mode-active[data-domestic-league-competition="championship"] .topbar {
  border-color: rgba(255, 255, 255, .2);
  background: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .brand-mark,
  .top-actions .header-donate-link,
  .top-actions #settingsButton
) {
  border-color: rgba(255, 255, 255, .38);
  color: #061b84;
  background: #fffdf4;
  box-shadow: 0 8px 22px rgba(2, 16, 93, .3);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .top-actions .utility-button {
  color: rgba(255, 255, 255, .82);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .top-actions .utility-button:hover {
  color: #061b84;
  background: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .pl-live-back-button {
  border-color: rgba(6, 27, 132, .42);
  color: #061b84;
  background: rgba(255, 253, 244, .82);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .stage-topline,
body.pl-match-mode-active[data-domestic-league-competition="championship"] .standard-match-tactics > span,
body.pl-match-mode-active[data-domestic-league-competition="championship"] .match-stage.pl-full-time .result-note:not([hidden]) {
  color: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .match-stage {
  border-color: rgba(255, 253, 244, .48) !important;
  color: #fffdf4 !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .18), transparent 19rem),
    linear-gradient(145deg, #a88e36, #8f772d) !important;
  box-shadow: 0 20px 56px rgba(52, 40, 3, .28) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(#appShell, .main, .content) {
  background: transparent !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .matchup,
  .team,
  .match-score,
  .score-zone,
  .match-stats-grid,
  .match-stats-empty
) {
  color: #fffdf4 !important;
  background: transparent !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .team-name,
  .match-score,
  .fixture-team.winner .name,
  .fixture-team.winner b
) {
  color: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .match-analysis,
  .standard-match-tactics,
  .pl-watch-tactics,
  .golden-boot-panel,
  .pl-engine-table-panel,
  .round-board,
  .match-commentary-feed
) {
  border-color: rgba(255, 253, 244, .32) !important;
  color: #fffdf4;
  background: rgba(118, 95, 26, .68) !important;
  box-shadow: 0 14px 34px rgba(57, 43, 2, .16);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .match-analysis-heading,
  .panel-heading
) {
  border-color: rgba(255, 253, 244, .22);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .match-analysis-heading strong,
  .panel-heading strong,
  .round-board h3,
  .fixture-card-head span,
  .fixture-team.winner .name,
  .golden-boot-player strong,
  .pl-engine-table-row strong
) {
  color: #fffdf4;
}

/* Compact live match card for the shared domestic-league simulator. */
body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) {
  background:
    radial-gradient(circle at 50% 18%, rgba(147, 51, 234, 0.2), transparent 30rem),
    #160c29;
  border-color: rgba(196, 155, 255, 0.18);
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
  min-height: 176px;
  padding-top: 18px;
  padding-bottom: 12px;
}

body.pl-match-mode-active .match-pitch-shell {
  --match-pitch-border: rgba(196, 155, 255, 0.24);
  --match-pitch-muted: rgba(226, 211, 255, 0.7);
  max-width: 720px;
  margin-top: 4px;
  border-color: var(--match-pitch-border);
  background:
    radial-gradient(circle at 50% -24%, rgba(168, 85, 247, 0.26), transparent 48%),
    linear-gradient(180deg, #24113f 0%, #12091f 100%);
  box-shadow: 0 20px 50px rgba(8, 3, 18, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
}

body.pl-match-mode-active .match-pitch-shell-header,
body.pl-match-mode-active .match-2d-toolbar,
body.pl-match-mode-active .match-2d-footer,
body.pl-match-mode-active .match-pitch-playback {
  display: none !important;
}

body.pl-match-mode-active .match-2d-viewer {
  padding: 10px !important;
}

body.pl-match-mode-active .pl-pitch-commentary-mount:not([hidden]),
body.pl-match-mode-active .pl-pitch-controls-mount:not([hidden]) {
  display: block;
}

body.pl-match-mode-active .pl-pitch-commentary-mount .match-commentary-view {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 8px !important;
  transform: none !important;
}

body.pl-match-mode-active .pl-pitch-commentary-mount .match-commentary-feed {
  min-height: 40px;
  max-height: 40px;
  border-color: rgba(216, 180, 254, 0.2);
  background: rgba(88, 28, 135, 0.34);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

body.pl-match-mode-active .pl-pitch-commentary-mount .commentary-line span {
  color: #f3e8ff;
}

body.pl-match-mode-active .pl-pitch-controls-mount {
  margin-bottom: 8px;
}

body.pl-match-mode-active .pl-pitch-controls-mount .score-live-controls {
  position: static !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body.pl-match-mode-active .pl-pitch-controls-mount .pause-control { order: 1; }
body.pl-match-mode-active .pl-pitch-controls-mount #speedButton { order: 2; }
body.pl-match-mode-active .pl-pitch-controls-mount .skip-live-control { order: 3; }

body.pl-match-mode-active .pl-pitch-controls-mount .live-control,
body.pl-match-mode-active .pl-pitch-make-subs {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: 9px;
  background: rgba(126, 34, 206, 0.28);
  color: #faf5ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease, border-color 160ms ease;
}

body.pl-match-mode-active .pl-pitch-controls-mount .pause-control,
body.pl-match-mode-active .pl-pitch-make-subs {
  background: #7e22ce;
}

body.pl-match-mode-active :is(.pl-pitch-controls-mount .live-control, .pl-pitch-make-subs):active {
  transform: scale(0.97);
}

body.pl-match-mode-active :is(.pl-pitch-controls-mount .live-control, .pl-pitch-make-subs):focus-visible {
  outline: 2px solid #e9d5ff;
  outline-offset: 2px;
}

body.pl-match-mode-active .pl-pitch-management:not([hidden]) {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 0;
}

body.pl-match-mode-active .pl-pitch-allowances {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e9d5ff;
  font-size: 0.7rem;
  font-weight: 760;
}

body.pl-match-mode-active .pl-pitch-make-subs:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (hover: hover) and (pointer: fine) {
  body.pl-match-mode-active :is(.pl-pitch-controls-mount .live-control, .pl-pitch-make-subs):hover:not(:disabled) {
    border-color: rgba(233, 213, 255, 0.42);
    background: #9333ea;
  }
}

@media (max-width: 640px) {
  body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
    min-height: 154px;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  body.pl-match-mode-active .match-pitch-shell {
    width: calc(100% - 8px);
    margin-top: 0;
  }

  body.pl-match-mode-active .match-2d-viewer {
    padding: 8px !important;
  }

  body.pl-match-mode-active .pl-pitch-controls-mount .score-live-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.pl-match-mode-active .pl-pitch-controls-mount .live-control,
  body.pl-match-mode-active .pl-pitch-controls-mount .skip-live-control {
    width: 100%;
    min-width: 0;
  }

  body.pl-match-mode-active .pl-pitch-controls-mount .live-control {
    min-height: 42px;
    padding-inline: 8px;
  }

  body.pl-match-mode-active .pl-pitch-management:not([hidden]) {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  body.pl-match-mode-active .pl-pitch-allowances {
    justify-content: space-between;
  }

  body.pl-match-mode-active .pl-pitch-make-subs {
    min-height: 42px;
  }
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .panel-heading span,
  .fixture-card-head small,
  .golden-boot-row > span,
  .pl-engine-table-head,
  .pl-engine-table-row,
  .match-stats-empty span
) {
  color: rgba(255, 253, 244, .74);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .play-button,
  .primary-button,
  .secondary-button:hover,
  .live-control,
  .skip-control
) {
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
  background: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .standard-tactic-buttons {
  border-color: rgba(255, 253, 244, .3) !important;
  background: rgba(78, 60, 13, .54) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .standard-tactic-buttons button {
  border-color: transparent !important;
  color: rgba(255, 253, 244, .82) !important;
  background: transparent !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .standard-tactic-buttons button.active {
  color: #061b84 !important;
  background: #fffdf4 !important;
  box-shadow: 0 6px 18px rgba(49, 37, 2, .2) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .match-commentary-view {
  color: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .match-commentary-feed :is(.commentary-line, span, strong, b) {
  color: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .fixture {
  border-color: rgba(255, 253, 244, .25) !important;
  color: #fffdf4 !important;
  background: rgba(105, 83, 21, .54) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .fixture.selected {
  border-color: #fffdf4 !important;
  background: #061b84 !important;
  box-shadow: inset 4px 0 #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .fixture .fixture-team .name {
  color: rgba(255, 253, 244, .82);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .flag-fallback.pl-club-code,
  .pl-club-code,
  .pl-team-code
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  border-radius: 7px !important;
  color: #fff !important;
  background: #061b84 !important;
  font: 800 9px "DM Mono", monospace;
  box-shadow: none !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard :is(
  .team-filter-search,
  .history-round-button,
  #simulateRoundButton,
  .team-filter-chip
) {
  border-color: rgba(6, 27, 132, .36);
  color: #061b84;
  background: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard .team-filter-search {
  color: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard .team-filter-search input {
  color: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard .team-filter-search input::placeholder {
  color: rgba(6, 27, 132, .58);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard .team-filter-search:focus-within {
  border-color: #061b84;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6, 27, 132, .16);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result-popover {
  border-color: rgba(6, 27, 132, .42);
  color: #061b84;
  background: #fffdf4;
  box-shadow: 0 18px 44px rgba(49, 37, 2, .24);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result {
  border-bottom-color: rgba(6, 27, 132, .14);
  color: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result :is(strong, small) {
  color: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result:hover,
body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result:focus-visible {
  color: #fff;
  background: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result:hover :is(strong, small),
body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result:focus-visible :is(strong, small) {
  color: #fff;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .pl-engine-table-row.is-selected {
  color: #061b84;
  background: #fffdf4;
  box-shadow: inset 4px 0 #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .pl-engine-table-row.is-selected :is(strong, span, b) {
  color: #061b84;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .golden-boot-panel .panel-heading span {
  color: #fff3a7;
}

body.player-career-match-mode-active :is(#plEngineTablePanel, #uclEngineTablePanel) .pl-engine-full-table {
  display: none !important;
}

body.player-career-match-mode-active.player-career-domestic-matchweek-active #roundBoard {
  display: none !important;
}

body.player-career-match-mode-active .player-career-matchweek-panel {
  grid-area: board;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 14px;
  color: var(--text, #fff);
  background: var(--surface, #28002d);
}

body.player-career-match-mode-active .player-career-matchweek-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

body.player-career-match-mode-active .player-career-matchweek-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -.025em;
}

body.player-career-match-mode-active .player-career-matchweek-heading p {
  margin: 0;
  color: var(--muted, rgba(255, 255, 255, .64));
  font-size: 12px;
}

body.player-career-match-mode-active .player-career-matchweek-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-left: 1px solid var(--line, rgba(255, 255, 255, .1));
}

body.player-career-match-mode-active .player-career-matchweek-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  min-width: 0;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-right: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1));
}

body.player-career-match-mode-active .player-career-matchweek-fixture.is-current {
  background: color-mix(in srgb, var(--domestic-league-primary, #75418f) 16%, transparent);
  box-shadow: inset 3px 0 var(--domestic-league-primary, #75418f);
}

body.player-career-match-mode-active .player-career-matchweek-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

body.player-career-match-mode-active .player-career-matchweek-team.is-home {
  justify-content: flex-end;
  text-align: right;
}

body.player-career-match-mode-active .player-career-matchweek-team > span:not(.player-career-matchweek-code) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.player-career-match-mode-active .player-career-matchweek-team img,
body.player-career-match-mode-active .player-career-matchweek-code {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  object-fit: contain;
}

body.player-career-match-mode-active .player-career-matchweek-code {
  display: grid;
  place-items: center;
  color: var(--muted, rgba(255, 255, 255, .64));
  font-size: 8px;
  font-weight: 800;
}

body.player-career-match-mode-active .player-career-matchweek-fixture > strong {
  color: var(--muted, rgba(255, 255, 255, .64));
  font-family: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

body.player-career-match-mode-active .player-career-matchweek-fixture.is-current > strong {
  color: var(--text, #fff);
}

body.player-career-match-mode-active .player-career-matchweek-fixture.is-win > strong { color: #72d989; }
body.player-career-match-mode-active .player-career-matchweek-fixture.is-draw > strong { color: #f1a340; }
body.player-career-match-mode-active .player-career-matchweek-fixture.is-loss > strong { color: #ef6671; }

@media (max-width: 900px) {
  body.player-career-match-mode-active .player-career-matchweek-panel {
    padding: 16px;
  }

  body.player-career-match-mode-active .player-career-matchweek-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.player-career-match-mode-active .player-career-matchweek-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.player-career-match-mode-active .player-career-matchweek-panel {
    padding: 14px 12px;
  }

  body.player-career-match-mode-active .player-career-matchweek-fixture {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 8px;
  }

  body.player-career-match-mode-active .player-career-matchweek-team {
    font-size: 11px;
  }
}

body.player-career-match-mode-active .player-career-performance {
  display: grid;
  gap: 12px;
  padding: 14px;
}

body.player-career-match-mode-active .player-career-performance-rating {
  --player-career-rating-color: rgba(255, 255, 255, .32);
  --player-career-rating-progress: 0%;
  display: grid;
  place-items: center;
  min-height: 132px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .12));
}

body.player-career-match-mode-active .player-career-performance-rating.is-excellent {
  --player-career-rating-color: #35e59a;
}

body.player-career-match-mode-active .player-career-performance-rating.is-good {
  --player-career-rating-color: #72d989;
}

body.player-career-match-mode-active .player-career-performance-rating.is-average {
  --player-career-rating-color: #f1a340;
}

body.player-career-match-mode-active .player-career-performance-rating.is-poor {
  --player-career-rating-color: #ef6671;
}

body.player-career-match-mode-active .player-career-rating-ring {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  isolation: isolate;
}

body.player-career-match-mode-active .player-career-rating-ring::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--player-career-rating-color) 0 var(--player-career-rating-progress),
    rgba(255, 255, 255, .12) var(--player-career-rating-progress) 100%
  );
  content: "";
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

body.player-career-match-mode-active .player-career-rating-ring strong {
  position: relative;
  z-index: 1;
  color: var(--player-career-rating-color);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: .95;
  font-variant-numeric: tabular-nums;
}

body.player-career-match-mode-active .player-career-performance-rating span {
  margin-top: 7px;
  color: var(--muted, rgba(255, 255, 255, .64));
  font-size: 11px;
  font-weight: 750;
}

body.player-career-match-mode-active .player-career-performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
}

body.player-career-match-mode-active .player-career-performance-grid > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-right: 1px solid var(--line, rgba(255, 255, 255, .12));
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .12));
}

body.player-career-match-mode-active .player-career-performance-grid > div:nth-child(2n) {
  border-right: 0;
}

body.player-career-match-mode-active .player-career-performance-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body.player-career-match-mode-active .player-career-performance-grid span {
  color: var(--muted, rgba(255, 255, 255, .64));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.player-career-match-mode-active .player-career-area-table {
  display: grid;
}

body.player-career-match-mode-active .player-career-area-row {
  display: grid;
  grid-template-columns: 22px 24px minmax(0, 1fr) 26px;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, .1));
  font-size: 11px;
}

body.player-career-match-mode-active .player-career-area-row:first-child {
  border-top: 0;
}

body.player-career-match-mode-active .player-career-area-row.is-selected {
  box-shadow: inset 3px 0 currentColor;
}

body.player-career-match-mode-active .player-career-area-row > img,
body.player-career-match-mode-active .player-career-area-row > .pl-club-code {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

body.player-career-match-mode-active .player-career-area-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.player-career-match-mode-active .player-career-area-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted, rgba(255, 255, 255, .64));
  font-size: 11px;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #retroMatchLineupsPanel {
  --q22-ink: #061b84;
  --q22-ink-soft: #061b84;
  --q22-panel: #90772b;
  --q22-panel-soft: #7d6724;
  --q22-wine: #061b84;
  --q22-wine-bright: #1737af;
  --q22-line: rgba(255, 253, 244, .32);
  --q22-line-soft: rgba(255, 253, 244, .18);
  --q22-cream: #fffdf4;
  --q22-white: #fffdf4;
  --q22-gold: #fff3a7;
  --q22-gold-soft: #fff8d4;
  border-color: rgba(255, 253, 244, .34);
  color: #fffdf4;
  background: #90772b;
}

/* Shared compact live-match layout. Competition colours are supplied by the
   active tournament; the structure stays identical across every simulator. */
body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) {
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--shared-live-accent) 22%, transparent), transparent 30rem),
    var(--shared-live-surface);
  border-color: var(--shared-live-border);
}

body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .matchup {
  min-height: 176px;
  padding-top: 18px;
  padding-bottom: 12px;
}

body.shared-live-match-layout-active .match-pitch-shell {
  --match-pitch-border: var(--shared-live-border);
  --match-pitch-muted: color-mix(in srgb, var(--shared-live-accent) 34%, #ffffff);
  max-width: 720px;
  margin-top: 4px;
  border-color: var(--shared-live-border);
  background:
    radial-gradient(circle at 50% -24%, color-mix(in srgb, var(--shared-live-accent) 25%, transparent), transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--shared-live-panel) 90%, #ffffff 10%), var(--shared-live-surface));
  box-shadow: 0 20px 50px rgba(3, 8, 18, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
}

body.shared-live-match-layout-active :is(.match-pitch-shell-header, .match-2d-toolbar, .match-2d-footer, .match-pitch-playback) {
  display: none !important;
}

body.shared-live-match-layout-active .match-2d-viewer { padding: 10px !important; }
body.shared-live-match-layout-active :is(.pl-pitch-commentary-mount, .pl-pitch-controls-mount):not([hidden]) { display: block; }

body.shared-live-match-layout-active .pl-pitch-commentary-mount .match-commentary-view {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 8px !important;
  transform: none !important;
}

body.shared-live-match-layout-active .pl-pitch-commentary-mount .match-commentary-feed {
  min-height: 40px;
  max-height: 40px;
  border-color: color-mix(in srgb, var(--shared-live-accent) 34%, transparent);
  background: color-mix(in srgb, var(--shared-live-accent) 22%, var(--shared-live-panel));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

body.shared-live-match-layout-active .pl-pitch-commentary-mount .commentary-line span { color: #f7f8fb; }
body.shared-live-match-layout-active .pl-pitch-controls-mount { margin-bottom: 8px; }

body.shared-live-match-layout-active .pl-pitch-management:not([hidden]) {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 2px 0;
}

body.shared-live-match-layout-active .pl-pitch-management .score-live-controls {
  position: static !important;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body.shared-live-match-layout-active .pl-pitch-management .pause-control { order: 1; }
body.shared-live-match-layout-active .pl-pitch-management #speedButton { order: 2; }
body.shared-live-match-layout-active .pl-pitch-management .skip-live-control { order: 3; }

body.shared-live-match-layout-active :is(.pl-pitch-management .live-control, .pl-pitch-make-subs) {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--shared-live-accent) 42%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--shared-live-accent) 28%, var(--shared-live-panel));
  color: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease, border-color 160ms ease;
}

body.shared-live-match-layout-active :is(.pl-pitch-management .pause-control, .pl-pitch-make-subs) {
  background: var(--shared-live-accent);
  color: var(--shared-live-accent-text);
}

body.shared-live-match-layout-active .pl-pitch-allowances {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: color-mix(in srgb, var(--shared-live-accent) 30%, #ffffff);
  font-size: 0.7rem;
  font-weight: 760;
}

body.shared-live-match-layout-active .pl-pitch-make-subs { grid-column: 3; justify-self: end; }
body.shared-live-match-layout-active .pl-pitch-make-subs:disabled { cursor: not-allowed; opacity: 0.45; }
body.shared-live-match-layout-active :is(.pl-pitch-management .live-control, .pl-pitch-make-subs):active { transform: scale(0.97); }
body.shared-live-match-layout-active :is(.pl-pitch-management .live-control, .pl-pitch-make-subs):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--shared-live-accent) 45%, #ffffff);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  body.shared-live-match-layout-active :is(.pl-pitch-management .live-control, .pl-pitch-make-subs):hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--shared-live-accent) 55%, #ffffff);
    background: color-mix(in srgb, var(--shared-live-accent) 86%, #ffffff 14%);
    color: var(--shared-live-accent-text);
  }
}

@media (max-width: 640px) {
  body.shared-live-match-layout-active .match-stage.is-live:not(.is-shootout) .matchup {
    min-height: 154px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  body.shared-live-match-layout-active .match-pitch-shell { width: calc(100% - 8px); margin-top: 0; }
  body.shared-live-match-layout-active .match-2d-viewer { padding: 8px !important; }
  body.shared-live-match-layout-active .pl-pitch-management:not([hidden]) {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  body.shared-live-match-layout-active .pl-pitch-management .score-live-controls {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  body.shared-live-match-layout-active .pl-pitch-management .live-control { width: 100%; min-width: 0; min-height: 42px; }
  body.shared-live-match-layout-active .pl-pitch-allowances { grid-column: 1; grid-row: 2; }
  body.shared-live-match-layout-active .pl-pitch-make-subs { grid-column: 2; grid-row: 2; min-height: 42px; }
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #retroMatchLineupsPanel summary,
body.pl-match-mode-active[data-domestic-league-competition="championship"] #retroMatchLineupsPanel .retro-lineup-tabs button.active {
  color: #fff;
  background: #061b84;
}

/* Championship must stay blue-and-gold even when the global light theme is enabled. */
html.light-mode body.pl-match-mode-active.standard-mode-active[data-domestic-league-competition="championship"] :is(
  .match-stage,
  .round-board,
  .panel,
  .match-analysis,
  .standard-match-tactics,
  .story-card,
  .match-commentary-feed
) {
  border-color: rgba(255, 253, 244, .3) !important;
  color: #fffdf4 !important;
  background: #6b5317 !important;
  box-shadow: 0 14px 34px rgba(57, 43, 2, .16) !important;
}

html.light-mode body.pl-match-mode-active.standard-mode-active[data-domestic-league-competition="championship"] .match-stage {
  background:
    radial-gradient(circle at 50% 24%, rgba(216, 196, 118, .16), transparent 19rem),
    linear-gradient(145deg, #765e1c, #5d4712) !important;
}

html.light-mode body.pl-match-mode-active.standard-mode-active[data-domestic-league-competition="championship"] :is(
  .fixture,
  .live-feed-item,
  .queue-item,
  .plot-item,
  .match-stat-row
) {
  border-color: rgba(255, 253, 244, .24) !important;
  color: #fffdf4 !important;
  background: #5d4712 !important;
}

html.light-mode body.pl-match-mode-active.standard-mode-active[data-domestic-league-competition="championship"] .fixture.selected {
  border-color: #fffdf4 !important;
  background: #061b84 !important;
}

/* EFL Championship contrast and colour-polish pass.
   Bright gold is the field, dark gold is the reading surface, and navy is
   reserved for navigation, selection and primary actions. */
.pl-season-screen[data-league-competition="championship"] {
  --pl-bg: #b79a3f;
  --pl-surface: #6b5317;
  --pl-surface-light: #061b84;
  --pl-line: rgba(255, 253, 244, .3);
  --pl-muted: #f2e7bd;
  --pl-soft: rgba(255, 253, 244, .12);
  color: #fffdf4;
  background:
    radial-gradient(circle at 82% -8%, rgba(255, 253, 244, .28), transparent 34rem),
    linear-gradient(145deg, #d8c476, #b79a3f 58%, #9b7f2c);
}

.pl-season-screen[data-league-competition="championship"] .pl-season-header {
  border-bottom-color: rgba(255, 253, 244, .24);
  background: #061b84;
  box-shadow: 0 10px 30px rgba(3, 15, 76, .2);
}

.pl-season-screen[data-league-competition="championship"] .pl-season-site-brand .brand-mark {
  border-color: rgba(216, 196, 118, .72);
  color: #061b84;
  background: #fffdf4;
  box-shadow: 0 8px 22px rgba(2, 14, 72, .32);
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-season-restart-button,
  .pl-season-utility-actions .utility-button
) {
  color: #fffdf4;
  background: transparent;
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-season-restart-button,
  .pl-season-utility-actions .utility-button
) :is(span, svg) {
  color: inherit !important;
}

.pl-season-screen[data-league-competition="championship"] .pl-season-utility-actions .account-avatar-icon svg {
  stroke: #fffdf4;
}

.pl-season-screen[data-league-competition="championship"] :is(
  #plSeasonSettingsButton,
  #plSeasonDonateButton
) {
  border-color: rgba(216, 196, 118, .74);
  color: #061b84;
  background: #fffdf4;
  box-shadow: 0 6px 18px rgba(2, 14, 72, .2);
}

@media (hover: hover) and (pointer: fine) {
  .pl-season-screen[data-league-competition="championship"] .pl-season-header :is(
    .pl-season-restart-button,
    .utility-button
  ):hover {
    color: #061b84;
    background: #fffdf4;
  }
}

.pl-season-screen[data-league-competition="championship"] .pl-season-action-row .pl-back-button {
  color: #061b84 !important;
}

.pl-season-screen[data-league-competition="championship"] .pl-season-date :is(span, strong),
.pl-season-screen[data-league-competition="championship"] .pl-season-kicker {
  color: #061b84;
}

.pl-season-screen[data-league-competition="championship"] .pl-season-action-row .pl-primary-button,
.pl-season-screen[data-league-competition="championship"] .pl-primary-button {
  border: 1px solid #061b84;
  color: #fff;
  background: #061b84;
  box-shadow: 0 8px 20px rgba(6, 27, 132, .2);
}

.pl-season-screen[data-league-competition="championship"] .pl-primary-button:disabled {
  border-color: rgba(6, 27, 132, .42);
  color: rgba(6, 27, 132, .72);
  background: rgba(255, 253, 244, .72);
}

.pl-season-screen[data-league-competition="championship"] .pl-season-tabs {
  border-color: rgba(255, 253, 244, .34);
  background: #6b5317;
  box-shadow: 0 10px 28px rgba(60, 43, 3, .12);
}

.pl-season-screen[data-league-competition="championship"] .pl-season-tabs button {
  color: #f2e7bd;
}

.pl-season-screen[data-league-competition="championship"] .pl-season-tabs button.active {
  color: #fff;
  background: #061b84;
  box-shadow: 0 5px 16px rgba(2, 14, 72, .26);
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-panel,
  .pl-season-card,
  .pl-fixture-card,
  .pl-squad-card,
  .pl-season-progress-card
) {
  border-color: rgba(255, 253, 244, .3);
  color: #fffdf4;
  background: #6b5317;
  box-shadow: 0 14px 36px rgba(66, 47, 2, .14);
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-panel-heading,
  .pl-panel-footer,
  .pl-fixture-row,
  .pl-table-row,
  .pl-squad-detail
) {
  border-color: rgba(255, 253, 244, .25);
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-panel-heading h2,
  .pl-fixture-team,
  .pl-fixture-score strong,
  .pl-table-team,
  .pl-table-row > strong,
  .pl-squad-card-copy strong,
  .pl-squad-rating strong,
  .pl-matchweek-toolbar h2
) {
  color: #fffdf4;
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-panel-heading span,
  .pl-squad-rating span,
  .pl-table-head,
  .pl-panel-heading button,
  .pl-panel-heading a,
  .pl-panel-footer button
) {
  color: #f2e7bd;
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-fixture-score small,
  .pl-squad-card-copy small,
  .pl-matchweek-toolbar span
) {
  color: #f2e7bd;
}

.pl-season-screen[data-league-competition="championship"] .pl-fixture-play {
  border-color: rgba(216, 196, 118, .7);
  color: #fff;
  background: #061b84;
  box-shadow: 0 5px 14px rgba(2, 14, 72, .2);
}

.pl-season-screen[data-league-competition="championship"] .pl-fixture-row.is-managed-match .pl-fixture-play {
  border-color: #fffdf4;
  color: #061b84;
  background: #fffdf4;
}

.pl-season-screen[data-league-competition="championship"] .pl-fixture-play:disabled {
  border-color: rgba(255, 253, 244, .2);
  color: rgba(255, 253, 244, .68);
  background: rgba(255, 253, 244, .08);
}

@media (hover: hover) and (pointer: fine) {
  .pl-season-screen[data-league-competition="championship"] .pl-fixture-play:hover:not(:disabled) {
    background: #1737af;
  }

  .pl-season-screen[data-league-competition="championship"] .pl-fixture-row.is-managed-match .pl-fixture-play:hover:not(:disabled) {
    color: #fff;
    background: #061b84;
  }
}

.pl-season-screen[data-league-competition="championship"] .pl-matchweek-nav button {
  border-color: rgba(6, 27, 132, .38);
  color: #061b84;
  background: #fffdf4;
}

.pl-season-screen[data-league-competition="championship"] .pl-matchweek-nav button:disabled {
  border-color: rgba(6, 27, 132, .26);
  color: rgba(6, 27, 132, .6);
  background: rgba(255, 253, 244, .62);
  opacity: 1;
}

.pl-season-screen[data-league-competition="championship"] .pl-table-row.is-selected {
  border-color: rgba(216, 196, 118, .72);
  color: #fff;
  background: #061b84;
  box-shadow: inset 4px 0 #d8c476;
}

.pl-season-screen[data-league-competition="championship"] .pl-table-row.is-selected :is(span, strong, b, small) {
  color: #fff;
}

.pl-season-screen[data-league-competition="championship"] .pl-table-row.is-champions-league::before {
  background: #5f83ff;
}

.pl-season-screen[data-league-competition="championship"] .pl-squad-arrivals span {
  color: #fff;
  background: #061b84;
}

.pl-season-screen[data-league-competition="championship"] :is(.pl-club-code, .pl-team-code) {
  border-color: rgba(216, 196, 118, .82);
  color: #fff;
  background: #061b84;
}

.pl-season-screen[data-league-competition="championship"] :is(
  button,
  a,
  .pl-squad-card
):focus-visible {
  outline: 3px solid #d8c476;
  outline-offset: 3px;
}

/* Championship finale and transfer cards share the same accessible surfaces. */
.pl-season-screen[data-league-competition="championship"] .pl-season-finale,
.pl-season-screen[data-league-competition="championship"] .pl-finale-place,
.pl-season-screen[data-league-competition="championship"] .pl-finale-award,
.pl-season-screen[data-league-competition="championship"] .pl-finale-promoted-club {
  border-color: rgba(255, 253, 244, .28);
  color: #fffdf4;
  background: #6b5317;
}

.pl-season-screen[data-league-competition="championship"] .pl-season-finale {
  background: linear-gradient(155deg, #705719, #5d4712 76%);
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-finale-place,
  .pl-finale-award,
  .pl-finale-promoted-club
) {
  box-shadow: inset 3px 0 0 #d8c476, 0 10px 24px rgba(37, 27, 4, .22);
}

.pl-season-screen[data-league-competition="championship"] .pl-finale-hero {
  border-color: rgba(216, 196, 118, .42);
  background:
    radial-gradient(circle at 50% 0, rgba(216, 196, 118, .22), transparent 48%),
    #061b84;
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-finale-section-title,
  .pl-finale-place > b,
  .pl-finale-award-copy > span,
  .pl-finale-hero p,
  .pl-transfer-row time span,
  .pl-transfer-route > b,
  .pl-transfer-monogram
) {
  color: #d8c476;
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-finale-hero p strong,
  .pl-finale-place strong,
  .pl-finale-award-copy strong,
  .pl-finale-promoted h2,
  .pl-finale-promoted-copy strong
) {
  color: #fffdf4;
}

.pl-season-screen[data-league-competition="championship"] :is(
  .pl-finale-place small,
  .pl-finale-award-copy small,
  .pl-finale-promoted-copy small
) {
  color: #f2e7bd;
}

.pl-season-screen[data-league-competition="championship"] .pl-finale-award-mark {
  border: 1px solid rgba(216, 196, 118, .72);
  color: #fffdf4;
  background: #061b84;
}

.pl-season-screen[data-league-competition="championship"] .pl-finale-promoted-club {
  background: linear-gradient(135deg, rgba(216, 196, 118, .14), rgba(93, 71, 18, .3));
}

@media (max-width: 760px) {
  .pl-season-screen[data-league-competition="championship"] .pl-finale-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(27px, 8vw, 38px);
  }

  .pl-season-screen[data-league-competition="championship"] .pl-finale-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pl-season-screen[data-league-competition="championship"] .pl-finale-actions button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .pl-season-screen[data-league-competition="championship"] .pl-finale-body {
    padding: 16px;
  }

  .pl-season-screen[data-league-competition="championship"] .pl-finale-actions {
    grid-template-columns: 1fr;
  }
}

.pl-season-screen[data-league-competition="championship"] .pl-transfer-row time {
  border-color: rgba(216, 196, 118, .3);
}

.pl-season-screen[data-league-competition="championship"] .pl-transfer-monogram {
  background: #061b84;
}

@media (hover: hover) and (pointer: fine) {
  .pl-season-screen[data-league-competition="championship"] .pl-transfer-row:hover {
    background: rgba(6, 27, 132, .22);
  }
}

/* Match workspace: darken reading surfaces and force all inherited light-mode
   text into high-contrast Championship colours. */
body.pl-match-mode-active[data-domestic-league-competition="championship"] {
  --bg: #b79a3f;
  --surface: #6b5317;
  --surface-2: #061b84;
  --domestic-fixture-accent: #061b84;
  --line: rgba(255, 253, 244, .3);
  --line-strong: rgba(255, 253, 244, .46);
  --muted: #f2e7bd;
  --soft: #fffdf4;
  color: #fffdf4;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 253, 244, .22), transparent 28rem),
    linear-gradient(145deg, #d8c476, #b79a3f 58%, #9b7f2c) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #appShell {
  background: transparent !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .sidebar {
  background: #061b84;
  box-shadow: 0 10px 30px rgba(3, 15, 76, .2);
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .brand-mark {
  border-color: rgba(216, 196, 118, .72);
  color: #061b84;
  background: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .top-actions .utility-button {
  color: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .top-actions .utility-button :is(span, svg) {
  color: inherit !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .top-actions .account-avatar-icon svg {
  stroke: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .top-actions :is(#settingsButton, .header-donate-link) {
  border-color: rgba(216, 196, 118, .72);
  color: #061b84;
  background: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .pl-live-back-button {
  border-color: rgba(6, 27, 132, .42);
  color: #061b84;
  background: #fffdf4;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .stage-topline,
  .stage-round,
  .standard-match-tactics > span
) {
  color: #061b84 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .match-stage {
  border-color: rgba(255, 253, 244, .5) !important;
  color: #fffdf4 !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(216, 196, 118, .16), transparent 19rem),
    linear-gradient(145deg, #765e1c, #5d4712) !important;
  box-shadow: 0 20px 56px rgba(52, 40, 3, .26) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .team-name,
  .match-score,
  .score-separator,
  .event-live-clock strong,
  .live-clock
) {
  color: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #livePhase {
  color: #fff !important;
  font-size: 8px;
  font-weight: 900;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .match-analysis,
  .standard-match-tactics,
  .pl-watch-tactics,
  .golden-boot-panel,
  .pl-engine-table-panel,
  .round-board
) {
  border-color: rgba(255, 253, 244, .3) !important;
  color: #fffdf4 !important;
  background: #6b5317 !important;
  box-shadow: 0 14px 34px rgba(57, 43, 2, .16) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .match-analysis-heading,
  .panel-heading
) {
  border-color: rgba(255, 253, 244, .25) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .match-analysis-heading strong,
  .panel-heading strong,
  .panel-heading span,
  .round-board h3,
  .match-stat-row,
  .match-stat-row span,
  .match-stat-row b,
  .match-stats-empty span,
  #standardTacticFeedback,
  .pl-engine-full-table,
  .golden-boot-empty span,
  .golden-boot-empty p,
  .golden-boot-player strong,
  .golden-boot-player small
) {
  color: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .fixture-card-head small,
  .pl-engine-table-head,
  .pl-engine-table-row,
  .golden-boot-row > span,
  .golden-boot-rank,
  #goldenBootTitle
) {
  color: #f2e7bd !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #standardTacticOpponent {
  color: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .standard-tactic-buttons {
  border-color: rgba(255, 253, 244, .3) !important;
  background: #4d3b10 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .standard-tactic-buttons button:not(.active) {
  color: #f2e7bd !important;
  background: transparent !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .standard-tactic-buttons button.active {
  color: #061b84 !important;
  background: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .fixture {
  border-color: rgba(255, 253, 244, .24) !important;
  color: #fffdf4 !important;
  background: #5d4712 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .fixture :is(
  .fixture-card-head span,
  .fixture-team,
  .fixture-team .name,
  .fixture-team b
) {
  color: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .fixture.selected {
  border-color: #d8c476 !important;
  background: #061b84 !important;
  box-shadow: inset 4px 0 #d8c476 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .pl-engine-table-row.is-selected,
html.light-mode body.pl-match-mode-active.standard-mode-active[data-domestic-league-competition="championship"] .pl-engine-table-row.is-selected {
  color: #061b84 !important;
  background: #fffdf4 !important;
  box-shadow: inset 4px 0 #061b84 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .pl-engine-table-row.is-selected :is(
  span,
  strong,
  b,
  i
) {
  color: #061b84 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .match-commentary-feed {
  border-color: rgba(216, 196, 118, .72) !important;
  color: #fffdf4 !important;
  background: #061b84 !important;
  box-shadow: 0 10px 28px rgba(2, 14, 72, .24) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .match-commentary-feed :is(
  .commentary-line,
  span,
  strong,
  b
) {
  color: #fffdf4 !important;
}

html.light-mode body.pl-match-mode-active.standard-mode-active[data-domestic-league-competition="championship"] .match-commentary-feed {
  border-color: rgba(216, 196, 118, .72) !important;
  color: #fffdf4 !important;
  background: #061b84 !important;
}

html.light-mode body.pl-match-mode-active.standard-mode-active[data-domestic-league-competition="championship"] .top-actions .utility-button :is(span, svg) {
  color: inherit !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .spoiler-panel {
  border-color: rgba(6, 27, 132, .32) !important;
  color: #061b84 !important;
  background: #fffdf4 !important;
  box-shadow: 0 10px 28px rgba(2, 14, 72, .18) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .spoiler-panel :is(strong, p) {
  color: #061b84 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .spoiler-panel p {
  opacity: .78;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  .play-button,
  .primary-button,
  .secondary-button:hover,
  .live-control,
  .skip-control,
  .spoiler-panel button
) {
  border-color: rgba(216, 196, 118, .72) !important;
  color: #fff !important;
  background: #061b84 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard :is(
  .team-filter-search,
  .history-round-button,
  #simulateRoundButton,
  .team-filter-chip
) {
  border-color: rgba(6, 27, 132, .4) !important;
  color: #061b84 !important;
  background: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard :is(
  .team-filter-search input,
  .team-filter-search input::placeholder
) {
  color: #061b84 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #retroMatchLineupsPanel {
  --q22-panel: #6b5317;
  --q22-panel-soft: #4d3b10;
  border-color: rgba(255, 253, 244, .3);
  color: #fffdf4;
  background: #6b5317;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] :is(
  button,
  a,
  input,
  summary
):focus-visible {
  outline: 3px solid #d8c476;
  outline-offset: 3px;
}

/* Championship interaction states that sit outside the main card surfaces. */
body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result-popover .empty-story {
  border: 1px solid rgba(6, 27, 132, .28);
  color: #061b84 !important;
  background: #fffdf4 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #roundBoard #teamFilterControl .search-result-popover .empty-story p {
  color: #061b84 !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] .team-match-events .timeline-event b {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #061b84 !important;
  background: transparent;
  font-weight: 900;
  -webkit-text-stroke: .3px currentColor;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #snapshotButton {
  border-color: #d8c476 !important;
  color: #fffdf4 !important;
  background: #061b84 !important;
  box-shadow: 0 10px 24px rgba(2, 14, 72, .28) !important;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #snapshotButton:focus-visible {
  outline: 3px solid #d8c476 !important;
  outline-offset: 3px;
}

body.pl-match-mode-active[data-domestic-league-competition="championship"] #snapshotButton:active:not(:disabled) {
  background: #041561 !important;
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  body.pl-match-mode-active[data-domestic-league-competition="championship"] #snapshotButton:hover:not(:disabled) {
    border-color: #fffdf4 !important;
    background: #1737af !important;
  }
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) .snapshot-modal {
  border: 2px solid #fffdf4 !important;
  color: #07175f !important;
  background: linear-gradient(145deg, #d8c476, #b79a3f 64%, #9b7f2c) !important;
  box-shadow: 0 28px 90px rgba(3, 15, 76, .38) !important;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) .snapshot-modal::backdrop {
  background: rgba(3, 15, 76, .72) !important;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) .snapshot-modal form {
  border: 0 !important;
  color: #07175f !important;
  background: transparent !important;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) #snapshotModalKicker {
  display: none;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) .snapshot-modal-head h2 {
  margin: 0;
  color: #061b84 !important;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) .snapshot-preview {
  border-color: rgba(255, 253, 244, .52) !important;
  background: #6b5317 !important;
  box-shadow: 0 18px 50px rgba(52, 40, 3, .3) !important;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) .snapshot-actions .primary-button {
  border-color: #061b84 !important;
  color: #fffdf4 !important;
  background: #061b84 !important;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) :is(.snapshot-actions .secondary-button, .snapshot-modal .close-modal) {
  border-color: #061b84 !important;
  color: #061b84 !important;
  background: #fffdf4 !important;
}

body[data-domestic-league-competition="championship"]:is(
  .pl-season-open,
  .pl-match-mode-active
) :is(.snapshot-actions button, .snapshot-modal .close-modal):focus-visible {
  outline: 3px solid #061b84 !important;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body[data-domestic-league-competition="championship"]:is(
    .pl-season-open,
    .pl-match-mode-active
  ) .snapshot-actions .primary-button:hover:not(:disabled) {
    border-color: #fffdf4 !important;
    background: #1737af !important;
  }

  body[data-domestic-league-competition="championship"]:is(
    .pl-season-open,
    .pl-match-mode-active
  ) :is(.snapshot-actions .secondary-button, .snapshot-modal .close-modal):hover:not(:disabled) {
    color: #fffdf4 !important;
    background: #061b84 !important;
  }
}

.pl-season-screen[data-league-competition="championship"] .pl-finale-actions button {
  border-color: #061b84;
  color: #061b84;
  background: #fffdf4;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.pl-season-screen[data-league-competition="championship"] .pl-finale-actions :is(
  .is-primary,
  [data-pl-finale-action="snapshot"]
) {
  color: #fffdf4;
  background: #061b84;
}

.pl-season-screen[data-league-competition="championship"] .pl-finale-actions button:focus-visible {
  border-color: #061b84;
  outline: 3px solid #d8c476;
  outline-offset: 3px;
}

.pl-season-screen[data-league-competition="championship"] .pl-finale-actions button:active:not(:disabled) {
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  .pl-season-screen[data-league-competition="championship"] .pl-finale-actions button:hover:not(:disabled) {
    border-color: #d8c476;
    color: #fffdf4;
    background: #1737af;
  }
}

/* Keep the compact pitch toolbar purple after light-mode and league overrides. */
body.pl-match-mode-active .pl-pitch-commentary-mount .match-commentary-feed {
  border-color: rgba(216, 180, 254, 0.24) !important;
  color: #f3e8ff !important;
  background: rgba(88, 28, 135, 0.72) !important;
}

body.pl-match-mode-active .pl-pitch-commentary-mount .match-commentary-feed :is(.commentary-line, span, strong, b) {
  color: #f3e8ff !important;
}

body.pl-match-mode-active .pl-pitch-controls-mount .skip-live-control {
  position: static !important;
}

body.pl-match-mode-active .pl-pitch-controls-mount :is(.live-control, .skip-control) {
  border-color: rgba(216, 180, 254, 0.24) !important;
  color: #faf5ff !important;
  background: rgba(126, 34, 206, 0.38) !important;
}

body.pl-match-mode-active .pl-pitch-controls-mount .pause-control {
  background: #7e22ce !important;
}

@media (hover: hover) and (pointer: fine) {
  body.pl-match-mode-active .pl-pitch-controls-mount :is(.live-control, .skip-control):hover:not(:disabled) {
    border-color: rgba(233, 213, 255, 0.46) !important;
    background: #9333ea !important;
  }
}

/* Final PL live-header geometry: score and clubs share one visual baseline. */
body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
  min-height: 132px !important;
  padding: 38px 28px 10px !important;
  align-items: center !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team {
  min-height: 64px !important;
  height: auto !important;
  align-items: center !important;
  align-self: center !important;
  padding: 0 !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) :is(.team h2, .match-score) {
  color: #faf5ff !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team h2 {
  font-size: clamp(20px, 2.1vw, 29px) !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-separator {
  color: rgba(233, 213, 255, 0.58) !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-zone {
  position: relative !important;
  min-width: 126px !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(50% + 25px) !important;
  width: max-content !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  border: 0 !important;
  color: #faf5ff !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock strong {
  font-size: 22px !important;
  line-height: 1 !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock :is(span, small) {
  line-height: 1 !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock span {
  color: #d8b4fe !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock strong {
  color: #faf5ff !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock small,
body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .stage-round {
  color: rgba(233, 213, 255, 0.68) !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .scoreline {
  align-self: center !important;
  margin: 0 !important;
  transform: none !important;
}

body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) + .match-pitch-shell,
body.pl-match-mode-active .match-pitch-shell {
  margin-top: 0 !important;
}

/* One clean commentary row; playback belongs to the management bar below. */
body.pl-match-mode-active .pl-pitch-controls-mount {
  display: none !important;
}

body.pl-match-mode-active .pl-pitch-management:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

body.pl-match-mode-active .pl-pitch-management .pl-pitch-allowances {
  justify-self: start;
}

body.pl-match-mode-active .pl-pitch-management .score-live-controls {
  position: static !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  justify-self: center;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body.pl-match-mode-active .pl-pitch-management .pause-control { order: 1; }
body.pl-match-mode-active .pl-pitch-management #speedButton { order: 2; }
body.pl-match-mode-active .pl-pitch-management .skip-live-control { order: 3; }

body.pl-match-mode-active .pl-pitch-management .skip-live-control {
  position: static !important;
  inset: auto !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;
}

body.pl-match-mode-active .pl-pitch-management :is(.live-control, .skip-control) {
  position: static !important;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(216, 180, 254, 0.24) !important;
  border-radius: 9px;
  color: #faf5ff !important;
  background: rgba(126, 34, 206, 0.38) !important;
}

body.pl-match-mode-active .pl-pitch-management .pause-control {
  background: #7e22ce !important;
}

body.pl-match-mode-active .pl-pitch-management .pl-pitch-make-subs {
  justify-self: end;
}

/* The live team sheet is a pitch-owned overlay, not a second page section. */
body.pl-match-mode-active .match-2d-pitch.has-substitution-overlay #matchPitchCanvas {
  filter: brightness(0.42) saturate(0.72);
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay:not([open]) {
  display: none !important;
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay[open] {
  position: absolute !important;
  z-index: 20;
  inset: 8px;
  min-height: 0;
  max-height: calc(100% - 16px);
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--q22-panel) 98%, transparent);
  box-shadow: 0 20px 48px var(--q22-shadow);
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay > summary {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--q22-line);
  border-radius: 8px;
  color: var(--q22-white);
  background: var(--q22-wine);
  font-size: 0;
  list-style: none;
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay > summary::-webkit-details-marker {
  display: none;
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay > summary::after {
  content: "×";
  color: var(--q22-white);
  font: 500 20px/1 "Manrope", sans-serif;
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay > .retro-lineups-grid {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay .retro-lineup-tabs {
  margin-right: 40px;
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay .retro-pitch-corner-control {
  top: auto;
  bottom: 9px;
  left: 9px;
}

body.pl-match-mode-active #retroMatchLineupsPanel.is-pitch-overlay .retro-pitch-sub-counter:not(.is-pending) {
  display: none !important;
}

body.shared-live-match-layout-active .match-2d-pitch.has-substitution-overlay #matchPitchCanvas {
  filter: brightness(0.42) saturate(0.72);
}

body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay:not([open]) { display: none !important; }

body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay[open] {
  position: absolute !important;
  z-index: 20;
  inset: 8px;
  min-height: 0;
  max-height: calc(100% - 16px);
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--shared-live-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--shared-live-surface) 96%, transparent);
  box-shadow: 0 20px 48px rgba(3, 8, 18, 0.52);
}

body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay > summary {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--shared-live-border);
  border-radius: 8px;
  color: #f8fafc;
  background: var(--shared-live-panel);
  font-size: 0;
  list-style: none;
}

body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay > summary::-webkit-details-marker { display: none; }
body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay > summary::after { content: "×"; color: #f8fafc; font: 500 20px/1 "Manrope", sans-serif; }
body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay > .retro-lineups-grid { min-height: 0; flex: 1 1 auto; overflow: auto; }
body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay .retro-lineup-tabs { margin-right: 40px; }
body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay .retro-lineup-tabs button.active {
  border-color: var(--shared-live-accent);
  color: var(--shared-live-accent-text);
  background: var(--shared-live-accent);
}
body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay .retro-pitch-corner-control { top: auto; bottom: 9px; left: 9px; }
body.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay .retro-pitch-sub-counter:not(.is-pending) { display: none !important; }

/* Player Career keeps the active fixture identity inside the live squad
   overlay as well as the pre-match accordion. The ordinary simulator retains
   its own shared-live tokens. */
body.player-career-match-mode-active.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay[open] {
  border-color: var(--q22-line);
  color: var(--q22-white);
  background: color-mix(in srgb, var(--q22-panel) 98%, transparent);
  box-shadow: 0 20px 48px var(--q22-shadow);
}

body.player-career-match-mode-active.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay > summary {
  border-color: var(--q22-line);
  color: var(--q22-white);
  background: var(--q22-wine);
}

body.player-career-match-mode-active.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay > summary::after {
  color: var(--q22-white);
}

body.player-career-match-mode-active.shared-live-match-layout-active #retroMatchLineupsPanel.is-pitch-overlay .retro-lineup-tabs button.active {
  border-color: var(--q22-gold);
  color: var(--q22-white);
  background: var(--q22-wine);
  box-shadow: inset 0 -3px var(--q22-gold);
}

@media (max-width: 640px) {
  body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
    min-height: 116px !important;
    gap: 10px !important;
    padding: 34px 12px 6px !important;
  }

  body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team {
    gap: 8px !important;
  }

  body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-zone {
    min-width: 92px !important;
    min-height: 54px !important;
  }

  body.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock {
    bottom: calc(50% + 22px) !important;
  }

  body.pl-match-mode-active .pl-pitch-management:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "allowances substitutions"
      "controls controls";
  }

  body.pl-match-mode-active .pl-pitch-management .pl-pitch-allowances {
    grid-area: allowances;
  }

  body.pl-match-mode-active .pl-pitch-management .score-live-controls {
    width: 100% !important;
    grid-area: controls;
  }

  body.pl-match-mode-active .pl-pitch-management .pl-pitch-make-subs {
    grid-area: substitutions;
  }
}

/* Temporary no-pitch release: restore the original commentary-first match
   card instead of retaining the compact header geometry built for the pitch. */
body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) {
  min-height: 420px !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-commentary-view {
  position: static !important;
  inset: auto !important;
  width: min(680px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin: 22px auto 18px !important;
  transform: none !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
  min-height: 190px !important;
  padding: 18px 28px 28px !important;
  align-items: center !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team {
  min-height: 76px !important;
  height: auto !important;
  padding: 0 !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-zone {
  position: static !important;
  width: 132px !important;
  min-width: 132px !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .event-live-clock strong {
  font-size: 24px !important;
  line-height: 1 !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .scoreline {
  align-self: center !important;
  margin: 0 !important;
  transform: none !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-live-controls {
  position: static !important;
  inset: auto !important;
  width: max-content !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .skip-live-control {
  position: static !important;
  inset: auto !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;
}

body.match-pitch-release-disabled[data-domestic-league-edition].pl-match-mode-active:not(.player-career-match-mode-active) #retroMatchLineupsPanel {
  display: none !important;
}

@media (max-width: 1180px) {
  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) {
    min-height: 360px !important;
  }
}

@media (max-width: 850px) {
  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) {
    min-height: 0 !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-commentary-view {
    margin-block: 16px 10px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr) !important;
    min-height: 176px !important;
    gap: 18px !important;
    padding: 12px 18px 22px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team {
    min-height: 112px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-zone {
    width: 112px !important;
    min-width: 112px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .scoreline {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  body.match-pitch-release-disabled.pl-match-mode-active .match-commentary-view {
    width: calc(100% - 24px) !important;
    margin: 14px auto 10px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr) !important;
    min-height: 170px !important;
    gap: 4px !important;
    padding: 12px 12px 20px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-zone {
    width: 92px !important;
    min-width: 92px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-live-controls {
    flex-wrap: nowrap !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .skip-live-control {
    flex: 0 0 auto !important;
    order: 0 !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team-home {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    text-align: right !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team-away {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .flag-orb {
    transform: none !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .team h2 {
    max-width: 100% !important;
    font-size: clamp(12px, 3.7vw, 15px) !important;
    line-height: 1.15 !important;
  }

  /* The release-disabled card still uses absolutely positioned scorer rows.
     Reserve a separate bottom lane for live controls so scorer names cannot be
     hidden behind Skip/Pause/Speed in any club competition. */
  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .matchup {
    position: relative !important;
    min-height: 226px !important;
    padding-bottom: 82px !important;
  }

  body.match-pitch-release-disabled.pl-match-mode-active .match-stage.is-live:not(.is-shootout) .score-live-controls:not([hidden]) {
    position: absolute !important;
    right: 12px !important;
    bottom: 16px !important;
    left: 12px !important;
    width: auto !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    transform: none !important;
  }
}

/* Player Career international fixtures keep the shared match layout, but use
   the selected international-tournament identity. Club and league fixtures do
   not receive this class, so the setting cannot leak into domestic matches. */
body.player-career-match-mode-active.player-career-international-match-active {
  --bg: var(--career-international-bg);
  --surface: var(--career-international-surface);
  --surface-2: var(--career-international-raised);
  --text: var(--career-international-text);
  --muted: var(--career-international-muted);
  --soft: var(--career-international-muted);
  --line: var(--career-international-border);
  --line-strong: var(--career-international-border);
  --domestic-fixture-accent: var(--career-international-accent);
  color: var(--career-international-text);
  background: var(--career-international-bg);
}

body.player-career-match-mode-active.player-career-international-match-active #appShell,
body.player-career-match-mode-active.player-career-international-match-active :is(.main, .content) {
  background: var(--career-international-bg) !important;
}

body.player-career-match-mode-active.player-career-international-match-active .sidebar {
  border-color: var(--career-international-border) !important;
  background: var(--career-international-surface) !important;
}

body.player-career-match-mode-active.player-career-international-match-active :is(
  .match-stage,
  .match-stage.is-live:not(.is-shootout),
  #matchAnalysis,
  .golden-boot-panel,
  .pl-engine-table-panel,
  .round-board,
  .pl-watch-tactics,
  #retroMatchLineupsPanel
) {
  border-color: var(--career-international-border) !important;
  color: var(--career-international-text) !important;
  background: var(--career-international-surface) !important;
  box-shadow: none !important;
}

body.player-career-match-mode-active.player-career-international-match-active .match-stage {
  background-image:
    linear-gradient(var(--career-international-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--career-international-border) 1px, transparent 1px) !important;
  background-size: 52px 52px !important;
}

body.player-career-match-mode-active.player-career-international-match-active :is(
  .panel-heading,
  .fixture-card-head,
  .stage-topline,
  .pl-engine-table-row,
  .player-career-area-row,
  .player-career-performance-rating,
  .player-career-performance-grid,
  .player-career-performance-grid > div
) {
  border-color: var(--career-international-border) !important;
}

body.player-career-match-mode-active.player-career-international-match-active :is(
  .panel-heading span,
  .fixture-card-head small,
  .stage-topline,
  .match-stats-empty span,
  .pl-engine-table-head,
  .player-career-performance-rating span,
  .player-career-performance-grid span,
  .player-career-area-empty
) {
  color: var(--career-international-muted) !important;
}

body.player-career-match-mode-active.player-career-international-match-active :is(
  .play-button,
  .primary-button,
  .live-control,
  .skip-control,
  .round-link.active,
  .secondary-button:hover
) {
  border-color: var(--career-international-accent) !important;
  color: var(--career-international-action-text) !important;
  background: var(--career-international-accent) !important;
  box-shadow: none !important;
}

body.player-career-match-mode-active.player-career-international-match-active :is(.fixture, .pl-engine-table-row.is-selected) {
  border-color: var(--career-international-border) !important;
  color: var(--career-international-text) !important;
  background: color-mix(in srgb, var(--career-international-raised) 72%, var(--career-international-surface)) !important;
}

body.player-career-match-mode-active.player-career-international-match-active .fixture.selected,
body.player-career-match-mode-active.player-career-international-match-active .pl-engine-table-row.is-selected {
  border-color: var(--career-international-accent) !important;
  box-shadow: inset 4px 0 var(--career-international-accent) !important;
}

body.player-career-match-mode-active.player-career-international-match-active :is(
  .match-commentary-feed,
  .standard-tactic-buttons,
  .player-career-performance-grid
) {
  border-color: var(--career-international-border) !important;
  background: color-mix(in srgb, var(--career-international-bg) 54%, var(--career-international-surface)) !important;
}

body.player-career-match-mode-active.player-career-international-match-active .player-career-international-mark {
  width: auto;
  height: 30px;
  max-width: 72px;
  flex: 0 0 auto;
  object-fit: contain;
}

body.player-career-match-mode-active.player-career-international-match-active .stage-topline {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  line-height: 1.25;
}

@media (min-width: 1181px) {
  body.player-career-match-mode-active .insight-right {
    padding-top: 52px;
  }

  body.player-career-match-mode-active :is(#plEngineTablePanel, #uclEngineTablePanel) {
    margin-top: 80px !important;
  }
}

@media (max-width: 700px) {
  body.player-career-match-mode-active.player-career-international-match-active .player-career-international-mark {
    height: 26px;
    max-width: 60px;
  }
}
