/* Swiss charcoal, SFL red and warm white; shared league geometry. */
body[data-domestic-league-competition="swiss-super-league"] .snapshot-modal {
  color: #fff7f8 !important;
  border-color: #74505e !important;
  background: linear-gradient(145deg, #67253c, #33202a 64%, #19171d) !important;
}

body[data-domestic-league-competition="swiss-super-league"] .snapshot-modal form {
  color: #fff7f8 !important;
  background: transparent !important;
}

html.route-swiss-super-league-loading,
html.route-swiss-super-league-loading body,
body.swiss-super-league-2026-27-edition,
body[data-desktop-mode-setup="swissSuperLeague"],
#premierLeagueSeasonScreen[data-league-edition="swiss-super-league-2026-27"],
html :is(#achievementsScreen, #retroAchievementsModal, #achievementUnlockModal, #achievementUnlockBanner)[data-achievement-theme="swiss-super-league-2026-27"],
[data-hub-domestic-league="swissSuperLeague"] {
  --pl-era-deep: #211b20;
  --pl-era-deep-rgb: 33 27 32;
  --pl-era-canvas: #211b20;
  --pl-era-canvas-rgb: 33 27 32;
  --pl-era-surface: #392c33;
  --pl-era-surface-rgb: 57 44 51;
  --pl-era-raised: #4c3540;
  --pl-era-raised-rgb: 76 53 64;
  --pl-era-accent: #ed174b;
  --pl-era-accent-text: #ffffff;
  --pl-era-accent-rgb: 237 23 75;
  --pl-era-muted: #d9c0c7;
  --pl-era-muted-rgb: 217 192 199;
  --pl-era-ice: #f9dce4;
  --pl-era-ice-rgb: 249 220 228;
  --pl-era-white: #fff7f8;
  --pl-era-white-rgb: 255 247 248;
  --pl-bg: var(--pl-era-canvas);
  --pl-surface: var(--pl-era-surface);
  --pl-surface-light: var(--pl-era-raised);
  --pl-muted: var(--pl-era-muted);
  --pl-line: #74505e;
  --pl-soft: #4c3540;
  --domestic-setup-border: #74505e;
  --domestic-setup-panel: #392c33;
  --domestic-setup-card: #4c3540;
  --domestic-setup-surface: #392c33;
  --domestic-setup-text: #fff7f8;
  --domestic-setup-muted: #d9c0c7;
  --domestic-setup-accent: #ed174b;
  --domestic-setup-accent-text: #ffffff;
  --domestic-setup-selected: #ed174b;
  --domestic-setup-shadow: #ffffff;
  --domestic-banner-border: #74505e;
  --domestic-banner-surface: #34232c;
  --domestic-banner-text: #fff7f8;
  --domestic-banner-muted: #d9c0c7;
  --domestic-banner-active-text: #ffffff;
  --domestic-banner-active: #ed174b;
  --domestic-banner-shadow: #ffffff;
  --domestic-banner-brand-border: #f6bacb;
  --domestic-banner-brand-text: #ffffff;
  --domestic-banner-brand: #ed174b;
  --domestic-banner-brand-shadow: #392c33;
  --bg: #211b20;
  --panel: #392c33;
  --panel-2: #4c3540;
  --line: #74505e;
  --text: #fff7f8;
  --muted: #d9c0c7;
  --soft: #f9dce4;
  --lime: #f6bacb;
  --achievement-accent: #f6bacb;
  --achievement-accent-text: #211b20;
  --achievement-surface: #392c33;
  --achievement-surface-deep: #211b20;
  --achievement-tab-surface: #4c3540;
  --achievement-card: #392c33;
  --achievement-card-complete: #4c3540;
  --achievement-copy: #fff7f8;
  --achievement-muted: #d9c0c7;
  --achievement-points: #f6bacb;
  --achievement-shadow: rgb(20 12 17 / .5);
  color: #fff7f8;
  color-scheme: dark;
}

html.route-swiss-super-league-loading,
html.route-swiss-super-league-loading body,
body.swiss-super-league-2026-27-edition,
body[data-desktop-mode-setup="swissSuperLeague"],
body.swiss-super-league-2026-27-edition #premierLeagueSeasonScreen,
body.swiss-super-league-2026-27-edition #mainContent #matchStage.match-stage {
  background: #211b20 !important;
}

html.route-swiss-super-league-loading #appShell {
  display: none !important;
}

html.route-swiss-super-league-loading #premierLeagueSeasonScreen {
  display: block !important;
  background: #211b20;
}

body.swiss-super-league-2026-27-edition :is(#appShell, .main, #mainContent, #premierLeagueRouteSetup) {
  background: transparent !important;
}

body.swiss-super-league-2026-27-edition .pl-season-header {
  background: #34232c !important;
  border-bottom-color: #74505e !important;
}

body.swiss-super-league-2026-27-edition .pl-season-header :is(.utility-button, .pl-season-restart-button) > span:first-child,
body.swiss-super-league-2026-27-edition #appShell > .sidebar .utility-button > span:first-child {
  color: #f6bacb !important;
}

#startSwissSuperLeagueSeasonButton,
body.swiss-super-league-2026-27-edition .pl-route-resume-button {
  color: #ffffff !important;
  border-color: #f6bacb !important;
  background: #ed174b !important;
  box-shadow: 0 8px 18px rgb(20 12 17 / .3) !important;
}

[data-competition-folder="swissSuperLeague"],
[data-hub-domestic-league="swissSuperLeague"],
body[data-desktop-mode-setup="swissSuperLeague"] #swissSuperLeagueModeCard {
  color: #fff7f8;
  border-color: #74505e !important;
  background: #392c33 !important;
}

[data-competition-folder="swissSuperLeague"] :is(small, .competition-folder-hint) {
  color: #d9c0c7;
}

html :is(#achievementsScreen, #retroAchievementsModal, #achievementUnlockModal, #achievementUnlockBanner)[data-achievement-theme="swiss-super-league-2026-27"] {
  border-color: #74505e !important;
  background: #211b20 !important;
}

body.swiss-super-league-2026-27-edition .match-stat-track-home .match-stat-fill {
  background: #f6bacb;
}

body.swiss-super-league-2026-27-edition .brand-mark {
  background: #ed174b !important;
  border-color: #f6bacb !important;
  box-shadow: none !important;
}

body.swiss-super-league-2026-27-edition .go-to-top {
  color: #fff7f8;
  background: #4c3540;
}

:is([data-competition-folder="swissSuperLeague"], [data-competition-archive="swissSuperLeague"]) img,
body.swiss-super-league-2026-27-edition #domesticRouteSetupIntro > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 7px;
}

body.swiss-super-league-2026-27-edition #domesticRouteSetupIntro > img {
  width: 90px;
  height: 38px;
  flex: 0 0 90px;
}

body[data-desktop-mode-setup="swissSuperLeague"] .premier-league-team-picker {
  display: none !important;
}

/* blue Sport's 2026/27 graphic: score above code, central clock above SFL. */
body #mainContent .cb-broadcast[data-mode="swiss-super-league"] {
  width: min(100%, 224px);
  height: var(--cb-compact-height, 80px);
  min-height: 0;
  margin-inline: auto;
}

.cb-broadcast[data-mode="swiss-super-league"] :is(.cb-context, .cb-badge) {
  display: none !important;
}

.cb-broadcast[data-mode="swiss-super-league"] .cb-scorebug {
  display: grid;
  grid-template-columns: 64px 96px 64px;
  grid-template-rows: 49px 31px;
  width: 224px;
  height: 80px;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: scale(var(--cb-compact-scale, 1));
  transform-origin: top left;
}

.cb-broadcast[data-mode="swiss-super-league"] .cb-team {
  position: relative;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 7px;
  width: 64px;
  height: 80px;
  padding: 0 0 6px;
  border: 0;
  box-sizing: border-box;
  background: var(--club-colour);
}

.cb-broadcast[data-mode="swiss-super-league"] .cb-home { grid-column: 1; }
.cb-broadcast[data-mode="swiss-super-league"] .cb-away { grid-column: 3; }

body #mainContent .cb-broadcast[data-mode="swiss-super-league"] .cb-code {
  position: static;
  width: 64px;
  height: 18px;
  padding: 0;
  color: var(--club-ink);
  font: 700 15px/18px Arial, sans-serif;
  text-align: center;
}

.cb-broadcast[data-mode="swiss-super-league"] .cb-code::before { content: none; }

body #mainContent .cb-broadcast[data-mode="swiss-super-league"] .cb-score {
  width: 64px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: var(--club-ink);
  font: 700 30px/36px Arial, sans-serif;
  text-align: center;
}

.cb-broadcast[data-mode="swiss-super-league"] .cb-team::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  width: 48px;
  height: 5px;
  background: var(--kit);
}

body #mainContent .cb-broadcast[data-mode="swiss-super-league"] time {
  position: static;
  display: grid;
  place-items: center;
  grid-column: 2;
  grid-row: 1;
  width: 96px;
  height: 49px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f5;
  color: #111820;
  font: 700 21px/1 Arial, sans-serif;
}

.cb-broadcast[data-mode="swiss-super-league"] .cb-logo {
  display: block;
  position: static;
  grid-column: 2;
  grid-row: 2;
  width: 96px;
  height: 31px;
  margin: 0;
  background: #ed174b url('./assets/swiss-super-league-2026-27/sfl-logo.png') center / 64px auto no-repeat;
}

.cb-broadcast[data-mode="swiss-super-league"] .cb-aggregate {
  top: 84px;
  left: 64px;
  background: #392c33;
  color: #fff7f8;
}

html body[data-domestic-league-edition="swiss-super-league-2026-27"] dialog[open],
html body[data-domestic-league-edition="swiss-super-league-2026-27"] dialog[open] form {
  color: #fff7f8;
  border-color: #74505e;
  background: #211b20;
}
html body[data-domestic-league-edition="swiss-super-league-2026-27"] dialog[open] .section-kicker {
  display: none;
}
html body[data-domestic-league-edition="swiss-super-league-2026-27"] dialog[open] button {
  color: #fff7f8;
  border-color: #74505e;
  background: #4c3540;
}
html body[data-domestic-league-edition="swiss-super-league-2026-27"] dialog[open] .primary-button {
  color: #ffffff;
  background: #ed174b;
}

