:root {
  --mls-red: #e2232a;
  --mls-red-deep: #a60f18;
  --mls-red-dark: #670911;
  --mls-burgundy: #76111a;
  --mls-burgundy-deep: #31060b;
  --mls-canvas: #220609;
  --mls-canvas-deep: #120204;
  --mls-panel: #31080d;
  --mls-panel-raised: #571019;
  --mls-panel-soft: #26060a;
  --mls-ink: #fff8f8;
  --mls-muted: #e0b9bd;
  --mls-line: rgba(255, 191, 196, .22);
  --mls-line-strong: rgba(255, 220, 222, .5);
  --mls-accent: #ff4a51;
  --mls-accent-ink: #230205;
  --mls-shadow: rgba(35, 1, 5, .68);
  --mls-gradient: linear-gradient(135deg, #ff7479 0%, #e2232a 58%, #b3141d 100%);
  --mls-canvas-background:
    radial-gradient(circle at 50% -18%, rgba(226, 35, 42, .25), transparent 46%),
    linear-gradient(180deg, #3b080e 0%, var(--mls-canvas) 42%, var(--mls-canvas-deep) 100%);
}

html.route-mls-loading,
html.route-mls-loading body {
  min-height: 100%;
  color-scheme: dark;
  background: var(--mls-canvas-background);
}

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

html.route-mls-loading #premierLeagueSeasonScreen {
  display: block !important;
  visibility: hidden;
}

html.route-mls-loading #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] {
  visibility: visible;
}

.mode-card-mls,
.mode-card-domestic-league.is-mls-preview,
.mode-card-domestic-league[data-domestic-league-preview="mls"] {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 116, 121, .23), transparent 35%),
    linear-gradient(145deg, var(--mls-red) 0%, var(--mls-red-deep) 54%, var(--mls-canvas-deep) 100%);
  box-shadow: 0 22px 52px rgba(60, 2, 8, .52);
}

.mode-card-domestic-league.is-mls-preview .domestic-league-switch,
.mode-card-domestic-league[data-domestic-league-preview="mls"] .domestic-league-switch {
  border-color: var(--mls-line-strong);
  background: rgba(25, 3, 7, .9);
}

.mode-card-domestic-league.is-mls-preview .domestic-league-switch button,
.mode-card-domestic-league[data-domestic-league-preview="mls"] .domestic-league-switch button {
  color: var(--mls-muted);
}

.mode-card-domestic-league.is-mls-preview .domestic-league-switch button.active,
.mode-card-domestic-league[data-domestic-league-preview="mls"] .domestic-league-switch button.active {
  color: var(--mls-accent-ink);
  background: linear-gradient(135deg, #fff, #ffb7ba);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}

.domestic-league-flag.flag-united-states {
  position: relative;
  background: repeating-linear-gradient(180deg, #b22234 0 2px, #fff 2px 4px);
}

.domestic-league-flag.flag-united-states::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 12px;
  height: 9px;
  border-radius: 2px 0 2px 0;
  background: #3c3b6e;
  content: "";
}

.domestic-league-flag.flag-united-states::after {
  position: absolute;
  top: 1px;
  left: 2px;
  color: #fff;
  content: "\00b7\00b7\00b7";
  font-size: 7px;
  letter-spacing: -1px;
  line-height: 1;
}

.mode-card-mls .landing-settings,
.mode-card-mls .mode-card-actions {
  position: relative;
  z-index: 2;
}

.mls-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mls-heading h3 {
  margin: 0;
  color: var(--mls-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 900;
  letter-spacing: -.045em;
}

.mls-heading p {
  max-width: 54ch;
  margin: 6px 0 0;
  color: var(--mls-muted);
  font-size: 12px;
  line-height: 1.5;
}

.mls-brand-mark {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.mls-brand-mark img,
.mls-asset-pack-intro img {
  display: block;
  width: 56px;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 7px 13px rgba(0, 23, 53, .24));
}

body.mls-route-setup-active .pl-season-header {
  border-bottom-color: var(--mls-line-strong) !important;
  color: var(--mls-ink);
  background: linear-gradient(105deg, var(--mls-burgundy-deep), var(--mls-red-deep) 64%, var(--mls-red)) !important;
}

body.mls-route-setup-active .domestic-route-setup-intro img {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  object-fit: contain;
  background: transparent;
}

body.mls-route-setup-active .domestic-route-setup-intro h1 {
  color: var(--mls-ink);
}

body.mls-route-setup-active {
  --domestic-setup-border: var(--mls-line-strong);
  --domestic-setup-panel: linear-gradient(145deg, var(--mls-panel-raised), var(--mls-panel) 58%, var(--mls-canvas-deep));
  --domestic-setup-card: linear-gradient(180deg, var(--mls-panel-raised), var(--mls-panel));
  --domestic-setup-surface: var(--mls-panel-soft);
  --domestic-setup-text: var(--mls-ink);
  --domestic-setup-muted: var(--mls-muted);
  --domestic-setup-accent: var(--mls-accent);
  --domestic-setup-accent-text: #fff;
  --domestic-setup-selected: var(--mls-gradient);
  --domestic-setup-shadow: var(--mls-canvas-deep);
  color: var(--mls-ink);
  background: var(--mls-canvas-background);
}

body.mls-route-setup-active .pl-season-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex !important;
  min-height: 68px;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(20px, 3vw, 52px);
}

body.mls-route-setup-active :is(.pl-season-site-brand, .pl-season-header-left, .pl-season-utility-actions) {
  position: static;
  display: flex;
  align-items: center;
  transform: none;
}

body.mls-route-setup-active .pl-season-site-brand {
  order: 1;
  margin: 0;
}

body.mls-route-setup-active .pl-season-site-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

body.mls-route-setup-active .pl-season-header-left {
  order: 2;
  gap: 6px;
  margin-left: 2px;
}

body.mls-route-setup-active .pl-season-utility-actions {
  order: 4;
  gap: 6px;
  margin-left: auto;
}

body.mls-route-setup-active .pl-season-news-button {
  display: inline-flex;
}

body.mls-route-setup-active :is(#plRestartSeasonButton, #mlsTeamPickerButton) {
  display: none !important;
}

body.mls-route-setup-active .domestic-route-setup-intro {
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 2;
  display: flex;
  max-width: calc(100% - 330px);
  align-items: center;
  gap: 9px;
  color: var(--domestic-setup-text);
  transform: translateX(-50%);
}

body.mls-route-setup-active .domestic-route-setup-intro[hidden] {
  display: none !important;
}

body.mls-route-setup-active .domestic-route-setup-intro h1 {
  min-width: 0;
  margin: 0;
  color: var(--domestic-setup-text);
  font: 850 clamp(1rem, 1.8vw, 1.3rem)/1.12 "Manrope", sans-serif;
  letter-spacing: -.025em;
  text-align: center;
  overflow-wrap: anywhere;
}

body.mls-route-setup-active #premierLeagueRouteSetup {
  position: relative;
  box-sizing: border-box;
  display: grid !important;
  width: min(1080px, calc(100% - clamp(96px, 18vw, 300px)));
  min-height: calc(100vh - 68px);
  align-items: start;
  margin: 0 auto;
  padding: 72px 0 56px;
  background: transparent !important;
}

body.mls-route-setup-active #premierLeagueRouteSetup > .mode-route-setup-back {
  position: absolute !important;
  top: 18px;
  left: 0;
  display: inline-flex !important;
  width: max-content !important;
  min-width: 0 !important;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--domestic-setup-border) !important;
  border-radius: 11px !important;
  color: var(--domestic-setup-text) !important;
  background: rgba(38, 6, 10, .9) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 8px 22px rgba(18, 2, 4, .24) !important;
}

body.mls-route-setup-active #premierLeagueRouteSetupControls {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 18px !important;
  border: 1px solid var(--domestic-setup-border) !important;
  border-radius: 12px !important;
  background: var(--domestic-setup-panel) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 22px 50px rgba(35, 1, 5, .34) !important;
  backdrop-filter: none !important;
}

body.mls-route-setup-active #premierLeagueRouteSetupControls .landing-settings {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
}

body.mls-route-setup-active #premierLeagueRouteSetupControls .landing-setting {
  box-sizing: border-box;
  min-width: 0;
  min-height: 92px;
  padding: 12px !important;
  border: 1px solid color-mix(in srgb, var(--domestic-setup-border) 76%, transparent) !important;
  border-radius: 9px !important;
  background: var(--domestic-setup-card) !important;
}

body.mls-route-setup-active #premierLeagueRouteSetupControls .landing-team-setting {
  grid-column: 1 / -1;
}

body.mls-route-setup-active #premierLeagueRouteSetupControls .segmented {
  min-height: 40px !important;
  margin-top: 7px !important;
  border-color: var(--domestic-setup-border) !important;
  background: var(--domestic-setup-surface) !important;
}

body.mls-route-setup-active #premierLeagueRouteSetupControls .segmented button.active,
body.mls-route-setup-active .domestic-inline-achievement-filter[aria-pressed="true"],
body.mls-route-setup-active .setup-neutral-choice[aria-pressed="true"] {
  color: var(--domestic-setup-accent-text) !important;
  background: var(--domestic-setup-selected) !important;
}

body.mls-route-setup-active .domestic-inline-team-toolbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

body.mls-route-setup-active .domestic-inline-achievement-filter {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--domestic-setup-border) !important;
  border-radius: 999px !important;
  color: var(--domestic-setup-text) !important;
  background: var(--domestic-setup-surface) !important;
  font: 800 10px/1 "Manrope", sans-serif;
}

body.mls-route-setup-active .domestic-inline-achievement-filter .retro-inline-filter-check {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
}

body.mls-route-setup-active .domestic-inline-achievement-filter[aria-pressed="true"] {
  color: var(--domestic-setup-accent-text) !important;
  background: var(--domestic-setup-selected) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .3), 0 2px 0 var(--domestic-setup-shadow) !important;
}

body.mls-route-setup-active .domestic-inline-achievement-filter[aria-pressed="true"] .retro-inline-filter-check {
  color: inherit;
  background: rgba(255, 255, 255, .18);
}

body.mls-route-setup-active .domestic-inline-team-count {
  margin-left: auto;
  color: var(--domestic-setup-muted);
}

body.mls-route-setup-active .domestic-inline-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

body.mls-route-setup-active .domestic-inline-team-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}

body.mls-route-setup-active .domestic-inline-team-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.mls-route-setup-active .domestic-inline-team-copy strong {
  min-width: 0;
  overflow: visible;
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

body.mls-route-setup-active .domestic-inline-team-copy small {
  color: var(--domestic-setup-muted) !important;
  font-size: 8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.mls-route-setup-active .domestic-inline-team-mark,
body.mls-route-setup-active .domestic-inline-team-mark :is(img, .premier-league-club-code) {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

body.mls-route-setup-active :is(.domestic-inline-team-option, .domestic-inline-achievement-filter, .setup-neutral-choice):disabled {
  cursor: not-allowed;
  opacity: .48;
}

body.mls-route-setup-active :is(.domestic-inline-team-option, .domestic-inline-achievement-filter, .setup-neutral-choice):focus-visible {
  outline: 3px solid var(--domestic-setup-accent);
  outline-offset: 2px;
}

.mode-card-mls .landing-setting,
.mls-route-setup-active .mls-settings .landing-setting {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: rgba(43, 11, 16, .86);
}

.mode-card-mls :is(.landing-setting-heading, .landing-setting > span, .landing-team-setting > span),
.mls-route-setup-active .mls-settings :is(.landing-setting-heading, .landing-setting > span, .landing-team-setting > span) {
  color: var(--mls-muted) !important;
}

.mode-card-mls .landing-segmented,
.mls-route-setup-active .mls-settings .landing-segmented {
  border-color: var(--mls-line);
  background: var(--mls-canvas-deep);
}

.mode-card-mls .landing-segmented button,
.mls-route-setup-active .mls-settings .landing-segmented button {
  color: var(--mls-muted);
}

.mode-card-mls .landing-segmented button.active,
.mls-route-setup-active .mls-settings .landing-segmented button.active,
.mls-launch-button,
.mode-card-mls .mls-install-button.is-installed {
  border-color: transparent !important;
  color: #fff !important;
  background: var(--mls-gradient) !important;
  box-shadow: 0 10px 24px rgba(226, 35, 42, .3);
}

.mode-card-mls :is(.landing-setting-info summary, .mls-team-picker) {
  border-color: var(--mls-line) !important;
  color: var(--mls-ink) !important;
  background: var(--mls-panel-raised) !important;
}

.mode-card-mls .landing-setting-info-panel {
  border-color: var(--mls-line-strong);
  color: var(--mls-muted);
  background: var(--mls-panel-soft);
  box-shadow: 0 18px 44px var(--mls-shadow);
}

.mode-card-mls .landing-setting-info-panel strong,
.mls-team-picker .spectate-picker-copy strong {
  color: var(--mls-ink);
}

.mls-team-picker :is(.spectate-picker-copy small, .spectate-picker-arrow) {
  color: var(--mls-muted);
}

.mls-team-mark {
  border-color: var(--mls-line-strong);
  color: #fff;
  background: var(--mls-gradient);
}

.mls-team-picker.has-team .mls-team-mark {
  overflow: visible;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.mls-team-mark img,
.mls-club-badge {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mode-card-mls #mlsModeActions,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions {
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--mls-line);
  border-radius: 16px;
  background: rgba(18, 2, 4, .86);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 14px 34px rgba(18, 2, 4, .28);
}

.mode-card-mls #mlsModeActions > button,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 17px;
  border-radius: 11px;
  font: 850 11px/1 "Manrope", sans-serif;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition:
    transform 140ms cubic-bezier(.23, 1, .32, 1),
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.mode-card-mls #mlsModeActions > .mls-launch-button,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-launch-button {
  flex: 1 1 auto;
  border: 1px solid transparent !important;
  color: #fff !important;
  background: var(--mls-gradient) !important;
  box-shadow: 0 8px 22px rgba(226, 35, 42, .24) !important;
}

.mode-card-mls #mlsModeActions > .mls-menu-restart,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-menu-restart {
  border: 1px solid rgba(255, 142, 146, .3) !important;
  color: #ffb7ba !important;
  background: rgba(226, 35, 42, .08) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04) !important;
}

.mode-card-mls #mlsModeActions > .mls-menu-restart::before,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-menu-restart::before {
  content: "\21bb";
  font-size: 15px;
  font-weight: 700;
}

.mode-card-mls #mlsModeActions > .mls-install-button,
body.before-start:not([data-desktop-mode-setup]) .mode-card-mls #mlsModeActions > .mls-install-button,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-install-button {
  border: 1px solid var(--mls-line-strong) !important;
  color: var(--mls-ink) !important;
  background: var(--mls-panel-soft) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06) !important;
}

.mode-card-mls #mlsModeActions > .mls-install-button::before,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-install-button::before {
  content: "\2193";
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: rgba(226, 35, 42, .2);
  font-size: 12px;
}

.mode-card-mls #mlsModeActions > .mls-install-button.is-installed::before,
body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-install-button.is-installed::before {
  content: "\2713";
  background: var(--mls-red);
}

.mode-card-mls :is(button, summary):disabled,
.mls-route-setup-active :is(button, summary):disabled,
body[data-domestic-league-edition^="major-league-soccer-"] :is(button, input):disabled {
  cursor: not-allowed;
  opacity: .5;
}

body.mls-route-setup-active .domestic-inline-team-option {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: var(--mls-panel-soft);
}

body.mls-route-setup-active .domestic-inline-team-option[aria-selected="true"] {
  border-color: var(--mls-accent);
  color: #fff;
  background: linear-gradient(135deg, var(--mls-red), var(--mls-red-deep));
  box-shadow: inset 4px 0 0 #fff, 0 8px 22px rgba(75, 2, 9, .32);
}

body.mls-route-setup-active .domestic-inline-team-option[aria-selected="true"] :is(strong, small) {
  color: #fff;
}

body.mls-route-setup-active .domestic-inline-team-mark .premier-league-club-code {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: linear-gradient(145deg, var(--mls-panel-raised), var(--mls-burgundy-deep));
}

.mls-asset-pack-modal,
.mls-asset-pack-modal .pl-asset-pack-shell {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: var(--mls-panel-soft);
  box-shadow: 0 30px 90px var(--mls-shadow);
}

.mls-asset-pack-modal::backdrop {
  background: rgba(15, 1, 4, .88);
  backdrop-filter: blur(6px);
}

.mls-asset-pack-modal :is(.modal-head, .pl-asset-pack-intro, .pl-asset-pack-badge) {
  border-color: var(--mls-line);
}

.mls-asset-pack-modal .modal-head h2 {
  color: var(--mls-ink);
}

.mls-asset-pack-modal .pl-asset-pack-intro {
  color: var(--mls-muted);
  background: var(--mls-panel);
}

.mls-asset-pack-modal .pl-asset-pack-badge {
  background: var(--mls-panel-raised);
}

.mls-asset-pack-modal .pl-asset-pack-actions .primary-button {
  color: #fff;
  background: var(--mls-gradient);
}

#spectateModal[data-domestic-league="major-league-soccer"] {
  border: 1px solid var(--mls-line-strong);
  color: var(--mls-ink);
  background: var(--mls-panel);
  box-shadow: 0 30px 90px var(--mls-shadow);
  scrollbar-color: var(--mls-accent) var(--mls-panel-soft);
}

#spectateModal[data-domestic-league="major-league-soccer"]::backdrop {
  background: rgba(15, 1, 4, .88);
  backdrop-filter: blur(6px);
}

#spectateModal[data-domestic-league="major-league-soccer"] :is(.close-modal, .prediction-search, .prediction-option) {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: var(--mls-panel-raised);
}

#spectateModal[data-domestic-league="major-league-soccer"] :is(.prediction-option small, .spectate-modal-copy) {
  color: var(--mls-muted);
}

#spectateModal[data-domestic-league="major-league-soccer"] .prediction-search input {
  color: var(--mls-ink);
}

#spectateModal[data-domestic-league="major-league-soccer"] .prediction-search input::placeholder {
  color: var(--mls-muted);
  opacity: .8;
}

#spectateModal[data-domestic-league="major-league-soccer"] .prediction-search:focus-within {
  border-color: var(--mls-accent);
}

#spectateModal[data-domestic-league="major-league-soccer"] :is(.spectate-neutral-mark, .prediction-option.selected) {
  color: #fff;
  background: linear-gradient(135deg, var(--mls-red), var(--mls-red-deep));
}

#spectateModal[data-domestic-league="major-league-soccer"] .prediction-option.selected {
  box-shadow: inset 4px 0 0 #fff;
}

#spectateModal[data-domestic-league="major-league-soccer"] .prediction-option.selected :is(strong, small) {
  color: #fff;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] {
  --pl-canvas: var(--mls-canvas-deep);
  --pl-panel: var(--mls-panel);
  --pl-panel-raised: var(--mls-panel-raised);
  --pl-text: var(--mls-ink);
  --pl-muted: var(--mls-muted);
  --pl-border: var(--mls-line);
  --pl-accent: var(--mls-accent);
  color: var(--mls-ink);
  color-scheme: dark;
  background: var(--mls-canvas-background);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header {
  border-bottom-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: linear-gradient(105deg, var(--mls-burgundy-deep), var(--mls-red-deep) 64%, var(--mls-red));
  box-shadow: 0 12px 34px rgba(35, 1, 5, .44);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(.utility-button, .pl-season-restart-button, #plSeasonAccountLabel) {
  color: var(--mls-ink);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(.utility-button, .pl-season-restart-button) {
  border-color: var(--mls-line);
  background: rgba(12, 2, 5, .3);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(
  .utility-button,
  .pl-season-restart-button,
  .header-donate-link,
  .account-avatar-icon
) :is(span, svg),
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(
  .utility-button,
  .header-donate-link,
  .account-avatar-icon
) :is(span, svg) {
  color: inherit !important;
  stroke: currentColor !important;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-utility-actions .header-donate-link,
#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-site-brand .brand-mark,
body[data-domestic-league-edition^="major-league-soccer-"] .sidebar .brand-mark {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  background: var(--mls-red);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-season-main, .mode-route-setup) {
  color: var(--mls-ink);
  background: transparent;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(
  .pl-panel,
  .pl-matchweek-toolbar,
  .pl-table-shell,
  .pl-squad-card,
  .pl-season-finale,
  .pl-finale-award,
  .pl-finale-place,
  .pl-finale-promoted-club
) {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: rgba(43, 11, 16, .94);
  box-shadow: 0 16px 40px rgba(35, 1, 5, .42);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-panel-title {
  margin: 0;
  padding: 15px 18px 13px;
  border-bottom: 1px solid var(--mls-line);
  color: var(--mls-ink);
  background: linear-gradient(90deg, rgba(226, 35, 42, .25), rgba(87, 16, 25, .08));
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 900;
  letter-spacing: -.025em;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .mls-standings-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .mls-standings-stack > :first-child {
  grid-column: 1 / -1;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .mls-standings-stack .pl-table-shell {
  border: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: none;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-fixture-row, .pl-table-head, .pl-table-row, .pl-transfer-row, .pl-player-list span) {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: var(--mls-panel-soft);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-table-row:nth-child(even) {
  background: rgba(70, 16, 24, .74);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-table-row.is-selected,
#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-fixture-row.is-managed-match {
  border-color: var(--mls-accent);
  background: linear-gradient(90deg, rgba(226, 35, 42, .25), rgba(87, 16, 25, .08));
  box-shadow: inset 4px 0 0 var(--mls-accent);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-table-head, .pl-season-tabs, .pl-matchweek-nav) {
  border-color: var(--mls-line-strong);
  color: var(--mls-muted);
  background: var(--mls-canvas-deep);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-season-tabs button, .pl-matchweek-nav button, .pl-fixture-play) {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: var(--mls-panel-raised);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-season-tabs button.active, .pl-fixture-play:not(:disabled)) {
  border-color: var(--mls-accent);
  color: #fff;
  background: linear-gradient(135deg, var(--mls-red), var(--mls-red-deep));
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-panel-footer button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ff969a !important;
  background: none !important;
  box-shadow: none !important;
  clip-path: none !important;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-fixture-score small, .pl-table-head, .pl-table-row small, .pl-squad-card small, .pl-player-list i) {
  color: var(--mls-muted);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-table-row.is-champion, .pl-table-row[data-outcome="supporters-shield"]) {
  background: linear-gradient(90deg, rgba(255, 202, 74, .2), rgba(226, 35, 42, .08));
  box-shadow: inset 4px 0 0 #ffca4a;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-squad-arrivals span, .pl-finale-award-mark, .pl-transfer-monogram) {
  border-color: var(--mls-line-strong);
  color: #fff;
  background: var(--mls-red);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-finale {
  overflow: hidden;
  background: linear-gradient(160deg, rgba(43, 11, 16, .98), rgba(11, 3, 5, .98));
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-finale-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .16), transparent 36%),
    linear-gradient(125deg, var(--mls-burgundy-deep), var(--mls-red-deep) 55%, var(--mls-red));
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-finale-body {
  background: transparent;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-finale-section-title, .pl-finale-place > b, .pl-finale-award-copy > span, .pl-finale-promoted h2) {
  color: #ff7479;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-finale-hero p, .pl-finale-place small, .pl-finale-award-copy small, .pl-finale-promoted-copy small) {
  color: var(--mls-muted);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-finale-actions button {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: var(--mls-panel-raised);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-finale-actions .is-primary {
  border-color: var(--mls-accent);
  color: #fff;
  background: var(--mls-gradient);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active {
  --bg: var(--mls-canvas-deep);
  --surface: var(--mls-panel);
  --surface-2: var(--mls-panel-raised);
  --domestic-fixture-accent: var(--mls-accent);
  --line: var(--mls-line);
  --line-strong: var(--mls-line-strong);
  --muted: var(--mls-muted);
  color: var(--mls-ink);
  color-scheme: dark;
  background: var(--mls-canvas-background);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #appShell {
  color: var(--mls-ink);
  background: var(--mls-canvas-background);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.main, .content) {
  background: transparent;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.sidebar, .site-header, .top-bar) {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: linear-gradient(105deg, var(--mls-burgundy-deep), var(--mls-red-deep) 64%, var(--mls-red));
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(
  .panel,
  .match-stage,
  .match-detail-panel,
  .fixture,
  .round-link,
  .match-queue-item,
  #retroMatchLineupsPanel,
  #matchAnalysis,
  .pl-engine-table-panel,
  .round-board,
  .pl-watch-tactics,
  .standard-match-tactics
) {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: var(--mls-panel);
  box-shadow: 0 14px 38px rgba(35, 1, 5, .42);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .match-analysis-heading {
  border-bottom-color: var(--mls-line-strong);
  background: linear-gradient(105deg, var(--mls-burgundy), var(--mls-panel));
  box-shadow: inset 4px 0 var(--mls-accent);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .match-stage {
  background:
    linear-gradient(rgba(255, 191, 196, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 191, 196, .038) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(226, 35, 42, .18), transparent 21rem),
    var(--mls-panel);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .match-commentary-feed {
  --goal-flash-color: var(--mls-accent);
  --goal-flash-text-color: #fff;
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: linear-gradient(105deg, var(--mls-panel-soft), var(--mls-panel-raised));
  box-shadow: inset 3px 0 var(--mls-accent);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.standard-tactic-buttons button.active, .live-control, .primary-button, .play-button, .round-link.active) {
  color: #fff;
  background: var(--mls-gradient);
  box-shadow: 0 6px 18px rgba(226, 35, 42, .25);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.secondary-button, .utility-button, .pl-live-back-button, .skip-control) {
  border-color: var(--mls-line);
  color: var(--mls-ink);
  background: var(--mls-panel-raised);
}

body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) .snapshot-modal,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.confirm-modal, .settings-modal) {
  border: 1px solid var(--mls-line-strong) !important;
  color: var(--mls-ink) !important;
  background: var(--mls-canvas-deep) !important;
  box-shadow: 0 30px 90px rgba(35, 1, 5, .78) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) .snapshot-modal::backdrop,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.confirm-modal, .settings-modal)::backdrop {
  background: rgba(15, 1, 4, .9) !important;
  backdrop-filter: blur(7px);
}

body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) .snapshot-modal form {
  border: 0 !important;
  color: var(--mls-ink) !important;
  background: transparent !important;
}

body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) :is(.snapshot-modal-head h2, .snapshot-modal .close-modal, #snapshotButton) {
  color: var(--mls-ink) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) .snapshot-preview {
  border-color: var(--mls-line-strong) !important;
  background: var(--mls-panel) !important;
  box-shadow: 0 18px 50px rgba(35, 1, 5, .62) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) .snapshot-actions .primary-button {
  border-color: transparent !important;
  color: #fff !important;
  background: var(--mls-gradient) !important;
}

/* MLS uses one compact red navigation banner across the season and match workspaces. */
#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(22px, 3vw, 52px);
  background: linear-gradient(105deg, var(--mls-burgundy-deep), var(--mls-red-deep) 64%, var(--mls-red));
  backdrop-filter: none;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(
  .pl-season-site-brand,
  .pl-season-header-left,
  .pl-season-utility-actions
) {
  position: static;
  display: flex;
  align-items: center;
  justify-self: auto;
  transform: none;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-site-brand {
  order: 1;
  margin: 0 8px 0 0;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-site-brand .brand-mark,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar .brand-mark {
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header-left {
  order: 2;
  gap: 8px;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] #plSeasonSettingsButton {
  order: 1;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] #plRestartSeasonButton {
  order: 2;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] #plSeasonNewsButton {
  order: 3;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-utility-actions {
  order: 3;
  gap: 8px;
  margin-left: auto;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(
  .pl-season-header-left .utility-button,
  .pl-season-restart-button,
  .pl-season-utility-actions .utility-button:not(.main-account-button)
),
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar :is(
  .header-new-tournament,
  .header-actions .utility-button:not(.main-account-button)
) {
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 2, 3, .88);
  box-shadow: 0 8px 20px rgba(19, 1, 3, .22), inset 0 1px rgba(255, 255, 255, .05);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header .utility-button:not(.main-account-button) > span:last-child,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar .header-actions .utility-button:not(.main-account-button) > span:last-child {
  display: none;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-utility-actions .main-account-button,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar .header-actions .main-account-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 2, 3, .88);
  box-shadow: 0 8px 20px rgba(19, 1, 3, .22), inset 0 1px rgba(255, 255, 255, .05);
}

@media (hover: hover) and (pointer: fine) {
  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(
    .utility-button,
    .pl-season-restart-button
  ):hover,
  body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar :is(
    .header-new-tournament,
    .header-actions .utility-button
  ):hover {
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
    background: #180507;
    box-shadow: 0 9px 24px rgba(19, 1, 3, .32), inset 0 0 0 1px rgba(226, 35, 42, .34);
  }
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(
  .utility-button,
  .pl-season-restart-button
):focus-visible,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar :is(
  .header-new-tournament,
  .header-actions .utility-button
):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-season-action-row, .pl-season-tabs) {
  border: 1px solid var(--mls-line);
  background: rgba(49, 8, 13, .94);
  box-shadow: 0 14px 36px rgba(18, 2, 4, .3);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-action-row {
  box-sizing: border-box;
  min-height: 70px;
  padding: 10px 14px;
  border-radius: 16px;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-tabs {
  padding: 6px;
  border-radius: 15px;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(
  .pl-primary-button,
  .pl-season-tabs button.active,
  .pl-matchweek-nav button.active,
  .pl-fixture-play:not(:disabled)
) {
  border-color: transparent;
  color: #fff;
  background: var(--mls-gradient);
  box-shadow: 0 8px 22px rgba(226, 35, 42, .24);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(
  .pl-season-date span,
  .pl-season-tabs button:not(.active),
  .pl-back-button,
  .pl-quiet-button,
  .pl-panel-kicker,
  .pl-stat-label,
  .pl-squad-meta,
  .pl-transfer-row time
) {
  color: var(--mls-muted);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-table-row.is-champions-league::before {
  background: var(--mls-accent);
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-table-row[data-outcome="mls-wild-card"]::before {
  background: #ff8e92;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-squad-card .pl-squad-rating {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  padding: 0;
  border: 0;
  color: var(--mls-ink);
  background: transparent;
  box-shadow: none;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-squad-card .pl-squad-rating span {
  color: var(--mls-muted);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-squad-card .pl-squad-rating strong {
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .fixture.selected {
  border-color: var(--mls-accent) !important;
  background: linear-gradient(105deg, rgba(226, 35, 42, .2), rgba(87, 16, 25, .52)) !important;
  box-shadow: inset 4px 0 var(--mls-accent) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.pl-engine-table-head, .pl-engine-table-row) {
  border-color: var(--mls-line);
  color: var(--mls-ink);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-engine-table-panel .panel-heading span,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .fixture-card-head {
  color: #ff8e92;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-engine-table-row.is-selected {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(226, 35, 42, .26), rgba(87, 16, 25, .35)) !important;
  box-shadow: inset 4px 0 var(--mls-accent) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard :is(
  .team-filter-search,
  .history-round-button,
  #newerRoundButton,
  #simulateRoundButton,
  #unresolvedFilter,
  .team-filter-chip
) {
  border-color: var(--mls-line) !important;
  color: var(--mls-ink) !important;
  background: var(--mls-panel-raised) !important;
  box-shadow: none !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard .team-filter-search {
  color: var(--mls-muted) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard .team-filter-search:focus-within {
  border-color: var(--mls-accent) !important;
  background: var(--mls-panel-raised) !important;
  box-shadow: 0 0 0 3px rgba(226, 35, 42, .18) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard .team-filter-search input {
  color: var(--mls-ink);
  background: transparent;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard .team-filter-search input::placeholder,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard #teamFilterControl :is(.search-result small, .team-filter-clear, .search-result-popover .empty-story) {
  color: var(--mls-muted);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard #teamFilterControl .search-result-popover {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: var(--mls-panel-soft);
  box-shadow: 0 18px 44px rgba(18, 2, 4, .56);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard #teamFilterControl .search-result {
  border-bottom-color: var(--mls-line);
  color: var(--mls-ink);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard #teamFilterControl :is(.team-filter-check, .search-result:hover, .search-result:focus-visible),
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #roundBoard :is(#unresolvedFilter.active, .team-filter-chip:not([hidden])) {
  border-color: transparent !important;
  color: #fff !important;
  background: var(--mls-gradient) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) #snapshotButton,
body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) .snapshot-actions button:not(.primary-button) {
  border-color: var(--mls-line-strong) !important;
  color: #fff !important;
  background: var(--mls-panel-raised) !important;
  box-shadow: 0 10px 24px rgba(18, 2, 4, .38) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .match-stage :is(
  .result-note,
  .event-live-clock small,
  .stage-round,
  .score-separator
) {
  color: var(--mls-muted) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .match-stage :is(
  .event-live-clock span,
  .team-match-events .timeline-event b
) {
  color: #ff8e92 !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-pitch-commentary-mount .match-commentary-feed {
  border-color: var(--mls-line-strong) !important;
  color: var(--mls-ink) !important;
  background: linear-gradient(105deg, var(--mls-panel-soft), var(--mls-panel-raised)) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-pitch-controls-mount :is(.live-control, .skip-control),
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-pitch-management :is(.live-control, .skip-control),
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-pitch-make-subs {
  border-color: var(--mls-line-strong) !important;
  color: #fff !important;
  background: var(--mls-panel-raised) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-pitch-controls-mount .pause-control,
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-pitch-management .pause-control {
  background: var(--mls-red) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #retroMatchLineupsPanel :is(
  summary,
  .retro-lineup-tabs button.active,
  .retro-manager-mode-select,
  .retro-manager-player.is-selected,
  .retro-manager-player:hover:not(:disabled)
) {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: var(--mls-panel-raised);
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active #retroMatchLineupsPanel .retro-lineup-tabs button.active {
  box-shadow: inset 0 -3px var(--mls-accent);
}

.feature-announcement-mls {
  width: min(540px, calc(100vw - 28px));
  border: 1px solid var(--mls-line-strong);
  background: var(--mls-canvas-deep);
}

.feature-announcement-mls .feature-announcement-accent {
  min-height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .17), transparent 34%),
    linear-gradient(145deg, var(--mls-red), var(--mls-red-deep) 55%, var(--mls-burgundy-deep));
}

.feature-announcement-mls .feature-announcement-accent::before,
.feature-announcement-mls .feature-announcement-accent::after {
  border-color: rgba(255, 255, 255, .12);
  background: transparent;
}

.feature-announcement-mls-visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 190px;
  place-items: center;
}

.feature-announcement-mls-visual img {
  box-sizing: border-box;
  width: 154px;
  height: 154px;
  padding: 5px;
  border-radius: 21px;
  object-fit: contain;
  background: rgba(255, 255, 255, .96);
  filter: drop-shadow(0 16px 26px rgba(0, 23, 53, .42));
}

.feature-announcement-mls .feature-announcement-content {
  background:
    radial-gradient(circle at 92% 0, rgba(226, 35, 42, .16), transparent 32%),
    linear-gradient(155deg, var(--mls-panel), var(--mls-canvas-deep) 76%);
}

.feature-announcement-mls .feature-announcement-button {
  color: #fff;
  background: var(--mls-gradient);
}

[data-achievement-theme="major-league-soccer-2026"] {
  --achievement-accent: var(--mls-accent);
  --achievement-accent-text: #fff;
  --achievement-surface: var(--mls-panel);
  --achievement-surface-deep: var(--mls-canvas-deep);
  --achievement-tab-surface: rgba(11, 3, 5, .9);
  --achievement-card: rgba(70, 16, 24, .92);
  --achievement-card-complete: #7c141e;
  --achievement-copy: var(--mls-ink);
  --achievement-muted: var(--mls-muted);
  --achievement-points: #ff969a;
  --achievement-shadow: var(--mls-shadow);
  color: var(--mls-ink);
  background: var(--mls-canvas-background);
}

.achievement-unlock-banner[data-achievement-theme="major-league-soccer-2026"],
.achievement-unlock-modal[data-achievement-theme="major-league-soccer-2026"] {
  border-color: var(--mls-line-strong);
  color: var(--mls-ink);
  background: linear-gradient(145deg, var(--mls-red-deep), var(--mls-canvas-deep));
}

.achievement-unlock-modal[data-achievement-theme="major-league-soccer-2026"]::backdrop {
  background: rgba(15, 1, 4, .9);
  backdrop-filter: blur(5px);
}

.achievement-unlock-modal[data-achievement-theme="major-league-soccer-2026"] :is(.achievement-unlock-action, .achievement-unlock-mark),
.achievement-unlock-banner[data-achievement-theme="major-league-soccer-2026"] .achievement-unlock-banner-mark {
  color: #fff;
  background: var(--mls-gradient);
}

body[data-domestic-league-edition^="major-league-soccer-"] :focus-visible,
#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :focus-visible,
.mode-card-mls :focus-visible,
.mls-asset-pack-modal :focus-visible,
.feature-announcement-mls :focus-visible {
  outline: 3px solid #ff969a !important;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .mode-card-mls :is(button, summary):hover:not(:disabled),
  body.mls-route-setup-active #premierLeagueRouteSetupControls :is(button, summary):hover:not(:disabled) {
    border-color: var(--mls-accent) !important;
  }

  body.mls-route-setup-active .domestic-inline-team-option:hover:not([aria-selected="true"]),
  #spectateModal[data-domestic-league="major-league-soccer"] .prediction-option:hover:not(.selected),
  body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(.secondary-button, .pl-live-back-button, #snapshotButton):hover:not(:disabled) {
    border-color: var(--mls-accent);
    color: var(--mls-ink);
    background: color-mix(in srgb, var(--mls-panel-raised) 78%, var(--mls-accent));
  }

  .feature-announcement-mls .feature-announcement-button:hover:not(:disabled),
  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-finale-actions .is-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8e92, #e2232a);
  }

  .mode-card-mls #mlsModeActions > .mls-launch-button:hover:not(:disabled),
  body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-launch-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff7d82, #ec2931 58%, #ba151e) !important;
    box-shadow: 0 10px 28px rgba(226, 35, 42, .34) !important;
  }

  .mode-card-mls #mlsModeActions > .mls-menu-restart:hover:not(:disabled),
  body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-menu-restart:hover:not(:disabled) {
    border-color: rgba(255, 142, 146, .52) !important;
    color: #fff !important;
    background: rgba(226, 35, 42, .16) !important;
  }

  .mode-card-mls #mlsModeActions > .mls-install-button:hover:not(:disabled),
  body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > .mls-install-button:hover:not(:disabled) {
    border-color: var(--mls-accent) !important;
    color: #fff !important;
    background: var(--mls-panel-raised) !important;
  }

  body.mls-route-setup-active :is(
    .domestic-inline-achievement-filter,
    .setup-neutral-choice,
    #premierLeagueRouteSetup > .mode-route-setup-back,
    #mlsModeActions > button
  ):active:not(:disabled),
  .mode-card-mls #mlsModeActions > button:active:not(:disabled) {
    transform: scale(.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mls-route-setup-active :is(.domestic-inline-achievement-filter, .setup-neutral-choice),
  .mode-card-mls #mlsModeActions > button,
  body.mls-route-setup-active #premierLeagueRouteSetupControls #mlsModeActions > button {
    transition-duration: 0ms;
  }
}

/* Final MLS cascade guards for shared match controls and tactics surfaces. */
body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar {
  box-sizing: border-box !important;
  min-height: 76px !important;
  height: 76px !important;
  padding: 0 clamp(22px, 3vw, 52px) !important;
}

#premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-utility-actions .main-account-button {
  border-color: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
  background: #100204 !important;
  background-image: none !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar :is(
  #newTournamentButton,
  #settingsButton,
  #newsButton,
  #bugReportButton,
  #openAchievementsButton,
  #discordButton,
  #donateButton
) {
  box-sizing: border-box !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: #100204 !important;
  background-image: none !important;
  box-shadow: 0 8px 20px rgba(19, 1, 3, .28), inset 0 1px rgba(255, 255, 255, .06) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar #mainAccountButton {
  min-height: 44px !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #100204 !important;
  background-image: none !important;
  box-shadow: 0 8px 20px rgba(19, 1, 3, .28), inset 0 1px rgba(255, 255, 255, .06) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active :is(
  .standard-match-tactics,
  .pl-watch-tactics
) {
  border-color: rgba(255, 116, 121, .26) !important;
  color: var(--mls-ink) !important;
  background: linear-gradient(145deg, #4d0a12, #270409 72%) !important;
  box-shadow: 0 14px 34px rgba(35, 1, 5, .42) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .standard-match-tactics > span {
  border-bottom-color: rgba(255, 116, 121, .24) !important;
  color: #fff !important;
  background: linear-gradient(90deg, #76111b, #4d0a12) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .standard-match-tactics > small {
  border-top-color: rgba(255, 116, 121, .2) !important;
  color: var(--mls-muted) !important;
  background: #31070c !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .standard-tactic-buttons {
  border-color: rgba(255, 116, 121, .22) !important;
  background: #260408 !important;
  box-shadow: none !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .standard-tactic-buttons button:not(.active) {
  border-color: rgba(255, 116, 121, .16) !important;
  color: #ffc4c7 !important;
  background: #39080e !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .standard-tactic-buttons button.active {
  border-color: rgba(255, 255, 255, .32) !important;
  color: #fff !important;
  background: var(--mls-gradient) !important;
  box-shadow: 0 6px 18px rgba(226, 35, 42, .28) !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-watch-tactics-copy strong {
  color: #fff !important;
}

body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .pl-watch-tactics-copy span {
  color: var(--mls-muted) !important;
}

@media (max-width: 850px) {
  body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .sidebar :is(
    #newTournamentButton,
    #settingsButton,
    #newsButton,
    #bugReportButton,
    #openAchievementsButton,
    #discordButton,
    #donateButton
  ) {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.mls-route-setup-active #premierLeagueRouteSetup {
    width: min(calc(100% - 32px), 960px);
  }
}

@media (max-width: 1280px) {
  body.mls-route-setup-active #premierLeagueRouteSetup {
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls .mode-card-actions {
    position: fixed !important;
    right: auto !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    z-index: 80;
    box-sizing: border-box;
    display: flex !important;
    width: min(720px, calc(100% - 24px)) !important;
    align-items: stretch;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 1px solid var(--domestic-setup-border);
    border-radius: 11px;
    background: var(--domestic-setup-panel);
    box-shadow: 0 12px 34px rgba(35, 1, 5, .48), inset 0 1px rgba(255, 255, 255, .1);
    transform: translateX(-50%) !important;
    backdrop-filter: blur(14px);
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls .mode-card-actions > .start-tournament {
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    flex: 1 1 auto !important;
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls .mode-card-actions > :not(.start-tournament) {
    width: auto !important;
    min-height: 42px !important;
    flex: 0 0 auto;
  }
}

@media (max-width: 980px) {
  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .mls-standings-stack {
    grid-template-columns: 1fr;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .mls-standings-stack > :first-child {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header {
    min-height: 60px;
    gap: 6px;
    padding: 7px 10px;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header-left,
  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-utility-actions {
    gap: 5px;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(
    .pl-season-header-left .utility-button,
    .pl-season-restart-button,
    .pl-season-utility-actions .utility-button:not(.main-account-button)
  ) {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  body[data-domestic-league-edition^="major-league-soccer-"].pl-match-mode-active .match-stage {
    border-radius: 18px;
  }
}

@media (max-width: 720px) {
  body.mls-route-setup-active .pl-season-header {
    min-height: 60px !important;
    flex-wrap: nowrap !important;
    align-content: center !important;
    padding: 7px 10px !important;
  }

  body.mls-route-setup-active #premierLeagueRouteSetup {
    width: calc(100% - 24px);
    min-height: calc(100dvh - 60px);
    padding: 104px 0 calc(84px + env(safe-area-inset-bottom)) !important;
  }

  body.mls-route-setup-active #premierLeagueRouteSetup > .mode-route-setup-back {
    top: 10px !important;
    left: 0 !important;
    min-height: 38px !important;
  }

  body.mls-route-setup-active .domestic-route-setup-intro {
    top: 58px;
    width: calc(100% - 24px);
    max-width: none;
    justify-content: center;
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls {
    padding: 10px !important;
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls .landing-settings {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls .landing-setting {
    min-height: 82px;
    padding: 10px !important;
  }

  body.mls-route-setup-active .domestic-inline-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.mls-route-setup-active .domestic-inline-team-option {
    min-height: 64px !important;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-site-brand {
    margin-right: 2px;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-utility-actions .main-account-button {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] #plSeasonAccountLabel {
    display: none;
  }

  .mls-heading {
    gap: 12px;
  }

  .mls-brand-mark {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .mls-brand-mark img {
    width: 46px;
    max-height: 46px;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] :is(.pl-season-tabs, .pl-matchweek-nav) {
    overflow-x: auto;
    scrollbar-color: var(--mls-accent) transparent;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-table-row {
    min-width: 620px;
  }

  .feature-announcement-mls .feature-announcement-accent,
  .feature-announcement-mls-visual {
    min-height: 142px;
  }

  .feature-announcement-mls-visual img {
    width: 112px;
    height: 112px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  body.mls-route-setup-active .pl-season-header {
    gap: 3px !important;
    padding-inline: 8px !important;
  }

  body.mls-route-setup-active .domestic-route-setup-intro img {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  body.mls-route-setup-active .domestic-route-setup-intro h1 {
    font-size: .95rem;
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls .mode-card-actions {
    gap: 5px !important;
    padding: 6px !important;
  }

  body.mls-route-setup-active #premierLeagueRouteSetupControls .mode-card-actions > * {
    padding-inline: 9px !important;
    font-size: 9px !important;
  }

  body.mls-route-setup-active .domestic-inline-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mls-route-setup-active .domestic-inline-team-option {
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    gap: 7px;
    padding: 8px;
  }

  body.mls-route-setup-active .domestic-inline-team-mark,
  body.mls-route-setup-active .domestic-inline-team-mark :is(img, .premier-league-club-code) {
    width: 32px;
    height: 32px;
  }

  .mls-heading {
    align-items: flex-start;
  }

  .mls-heading h3 {
    font-size: 22px;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-panel-title {
    padding-inline: 13px;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-header :is(.utility-button, .pl-season-restart-button) {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  #premierLeagueSeasonScreen[data-league-edition^="major-league-soccer-"] .pl-season-utility-actions .main-account-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    height: 34px;
  }

  body[data-domestic-league-edition^="major-league-soccer-"]:is(.pl-season-open, .pl-match-mode-active) .snapshot-modal {
    width: calc(100vw - 16px);
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-card-mls *,
  [data-league-edition^="major-league-soccer-"] *,
  body[data-domestic-league-edition^="major-league-soccer-"] *,
  .feature-announcement-mls * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
