/* MoFutbol homepage polish layer.
   Keep new homepage hierarchy fixes here instead of adding more rescue rules to legacy CSS. */

:root {
  --mf-polish-max: min(1280px, calc(100vw - 2rem));
  --mf-polish-ink: #fff8df;
  --mf-polish-muted: rgba(236, 243, 236, 0.74);
  --mf-polish-line: rgba(245, 200, 66, 0.18);
  --mf-polish-panel: rgba(4, 12, 8, 0.88);
}

/* Homepage UX polish v6.23.26 */
:root {
  --mf-polish-max: min(1400px, calc(100vw - 1.5rem));
}

body.mf-system-home #today-in-stl-soccer-home {
  order: 1;
}

body.mf-system-home #home-latest-video {
  order: 2;
}

body.mf-system-home #home-match-center {
  order: 3;
}

body.mf-system-home #home-player-tracker {
  order: 4;
}

body.mf-system-home #home-content-discovery {
  order: 5;
}

body.mf-system-home #home-partners {
  order: 6;
}

body.mf-system-home .mf-home-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.62fr) !important;
}

body.mf-system-home .mf-hero-title-streamlined {
  max-width: 19ch !important;
  font-size: clamp(2.65rem, 4.15rem, 4.15rem) !important;
  line-height: 0.96 !important;
}

body.mf-system-home .mf-home-hero-copy .stl-muted {
  max-width: 62ch !important;
}

body.mf-system-home .mf-home-hero-actions {
  gap: 0.55rem !important;
}

body.mf-system-home .mf-home-hero-actions .stl-btn,
body.mf-system-home .stl-btn--sm,
body.mf-system-home .mf-today-stl__card em {
  min-height: 2.28rem !important;
  border-radius: 999px !important;
  padding: 0.6rem 0.92rem !important;
  font-size: 0.76rem !important;
}

body.mf-system-home .stl-btn:hover,
body.mf-system-home .mf-home-hero-cardwall a:hover,
body.mf-system-home .mf-today-stl__card:hover,
body.mf-system-home .mf-home-command-card:hover,
body.mf-system-home .mf-pathway-card:hover {
  transform: translateY(-3px) !important;
}

body.mf-system-home .mf-home-hero-cardwall {
  display: grid;
  gap: 0.8rem;
  padding: clamp(0.9rem, 1.15rem, 1.15rem);
  border: 1px solid rgba(245, 200, 66, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(2, 8, 5, 0.54), rgba(2, 8, 5, 0.92)),
    url("/assets/brand-v2/backgrounds/mf-background-16x9.webp") center/cover no-repeat;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.mf-system-home .mf-home-hero-cardwall a {
  display: grid;
  gap: 0.28rem;
  min-height: 7.1rem;
  align-content: end;
  padding: 0.85rem;
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: 10px;
  color: var(--mf-polish-ink);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(4, 15, 9, 0.82), rgba(10, 42, 30, 0.72)),
    radial-gradient(circle at 85% 0, rgba(31, 205, 108, 0.18), transparent 11rem);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.mf-system-home .mf-home-hero-cardwall a:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(4, 15, 9, 0.84), rgba(34, 25, 6, 0.74)),
    radial-gradient(circle at 85% 0, rgba(245, 200, 66, 0.2), transparent 11rem);
}

body.mf-system-home .mf-home-hero-cardwall a:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(4, 15, 9, 0.84), rgba(10, 36, 48, 0.74)),
    radial-gradient(circle at 85% 0, rgba(25, 149, 255, 0.18), transparent 11rem);
}

body.mf-system-home .mf-home-hero-cardwall span,
body.mf-system-home .mf-today-stl__label {
  color: #f5c842;
  font: 800 0.66rem/1 var(--f-mono, monospace);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.mf-system-home .mf-home-hero-cardwall strong {
  font: 800 1.2rem/1.02 var(--f-display, var(--f-sans));
  letter-spacing: 0;
}

body.mf-system-home .mf-home-hero-cardwall small {
  color: rgba(236, 243, 236, 0.74);
  line-height: 1.42;
}

body.mf-system-home #today-in-stl-soccer-home {
  padding: clamp(1rem, 1.4rem, 1.4rem) 0 !important;
  background:
    linear-gradient(180deg, rgba(245, 200, 66, 0.06), transparent),
    #020403 !important;
}

body.mf-system-home .mf-today-stl {
  display: grid;
  gap: 1rem;
}

body.mf-system-home .mf-today-stl__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

body.mf-system-home .mf-today-stl__head h2 {
  margin: 0.2rem 0 0.22rem;
  color: var(--mf-polish-ink);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

body.mf-system-home .mf-today-stl__head p {
  max-width: 56rem;
  margin: 0;
  color: var(--mf-polish-muted);
}

body.mf-system-home .mf-today-stl__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

body.mf-system-home .mf-today-stl__card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 12rem;
  gap: 0.42rem;
  align-content: end;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(245, 200, 66, 0.18);
  border-radius: 12px;
  color: var(--mf-polish-ink);
  text-decoration: none;
  background: rgba(3, 12, 8, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.mf-system-home .mf-today-stl__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--mf-today-bg, url("/assets/img/heroes/shared-hero-banner.png")) center/cover no-repeat;
  opacity: 0.48;
  transform: scale(1.01);
  transition: transform 220ms ease, opacity 220ms ease;
}

body.mf-system-home .mf-today-stl__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 6, 4, 0.08), rgba(1, 6, 4, 0.85) 64%, rgba(1, 6, 4, 0.96)),
    linear-gradient(90deg, rgba(245, 200, 66, 0.12), transparent 38%);
}

body.mf-system-home .mf-today-stl__card:hover::before {
  opacity: 0.62;
  transform: scale(1.055);
}

body.mf-system-home .mf-today-stl__card strong {
  font: 800 1.28rem/1.02 var(--f-display, var(--f-sans));
  letter-spacing: 0;
}

body.mf-system-home .mf-today-stl__card small {
  color: rgba(236, 243, 236, 0.78);
  line-height: 1.42;
}

body.mf-system-home .mf-today-stl__card em {
  justify-self: start;
  margin-top: 0.35rem;
  border: 1px solid rgba(245, 200, 66, 0.24);
  color: #071009;
  background: #f5c842;
  font-style: normal;
  font-weight: 800;
}

body.mf-system-home .mf-today-stl__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.mf-system-home #home-latest-video,
body.mf-system-home #home-content-discovery,
body.mf-system-home #home-player-tracker,
body.mf-system-home #home-match-center {
  padding-block: clamp(1.65rem, 2.1rem, 2.1rem) !important;
}

body.mf-system-home .mf-home-latest-video-card {
  overflow: hidden;
  border: 1px solid rgba(245, 200, 66, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 0, rgba(245, 200, 66, 0.08), transparent 18rem),
    rgba(3, 10, 7, 0.88);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
}

body.mf-system-home .mf-home-youtube-player {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 0;
  align-items: stretch;
}

body.mf-system-home .mf-home-youtube-player__stage {
  min-height: 18rem;
}

body.mf-system-home .mf-home-youtube-player__bar {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1rem;
}

@media (max-width: 1024px) {
  body.mf-system-home .mf-home-hero-grid,
  body.mf-system-home .mf-home-youtube-player {
    grid-template-columns: 1fr !important;
  }

  body.mf-system-home .mf-today-stl__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mf-system-home .mf-hero-title-streamlined {
    max-width: 18ch !important;
    font-size: 3rem !important;
  }
}

@media (max-width: 760px) {
  body.mf-system-home .mf-home-hero-cardwall {
    display: none;
  }

  body.mf-system-home .mf-today-stl__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.mf-system-home .mf-today-stl__grid {
    grid-template-columns: 1fr;
  }

  body.mf-system-home .mf-today-stl__card {
    min-height: 10.5rem;
  }

  body.mf-system-home .mf-hero-title-streamlined {
    max-width: 14ch !important;
    font-size: 2.45rem !important;
  }

  body.mf-system-home .mf-home-youtube-player__stage {
    min-height: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mf-system-home .stl-btn,
  body.mf-system-home .mf-home-hero-cardwall a,
  body.mf-system-home .mf-today-stl__card,
  body.mf-system-home .mf-home-command-card,
  body.mf-system-home .mf-pathway-card,
  body.mf-system-home .mf-today-stl__card::before {
    transition: none !important;
  }

  body.mf-system-home .stl-btn:hover,
  body.mf-system-home .mf-home-hero-cardwall a:hover,
  body.mf-system-home .mf-today-stl__card:hover,
  body.mf-system-home .mf-home-command-card:hover,
  body.mf-system-home .mf-pathway-card:hover {
    transform: none !important;
  }
}

body.mf-system-home #home-partners {
  padding-block: .5rem;
}

body.mf-system-home #home-partners .stl-container {
  display: grid;
  gap: .5rem;
}

body.mf-system-home #home-content-discovery .mf-section-intro {
  max-width: 42rem;
}

body.mf-system-home #home-player-tracker .mf-pathway-grid > .mf-pathway-card:nth-child(n + 5) {
  display: none;
}

body.mf-system-home #home-player-tracker .mf-pathway-actions {
  justify-content: flex-start;
}

body.mf-system-home #home-player-tracker .mf-pathway-note {
  margin-top: .75rem;
}

body.mf-system-home #home-player-tracker .mf-pathway-preview__head p,
body.mf-system-home #home-match-center .mf-section-intro,
body.mf-system-home #home-stl-soccer .mf-section-intro {
  max-width: 46rem;
}

body.mf-system-home .mf-daily-tabs {
  margin-top: .9rem;
}

body.mf-system-home .mf-daily-tabs .mf-chip[data-mf-tab="events"],
body.mf-system-home .mf-daily-tabs .mf-chip[data-mf-tab="media"] {
  opacity: .88;
}

@media (max-width: 860px) {
  body.mf-system-home #home-player-tracker .mf-pathway-grid > .mf-pathway-card:nth-child(n + 4) {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

.stl-container,
.site-container,
.mf-page-shell .stl-container {
  max-width: var(--mf-polish-max) !important;
}

body.mf-system-home {
  background:
    radial-gradient(circle at 8% 0, rgba(245, 200, 66, 0.07), transparent 22rem),
    radial-gradient(circle at 90% 6%, rgba(45, 184, 75, 0.065), transparent 24rem),
    #020403 !important;
}

body.mf-system-home .site-header {
  background: rgba(2, 6, 4, 0.94) !important;
  border-bottom-color: rgba(245, 200, 66, 0.14) !important;
  backdrop-filter: blur(18px);
}

body.mf-system-home .site-nav__list {
  gap: 0.28rem !important;
}

body.mf-system-home .site-nav__link,
body.mf-system-home .site-nav__toggle,
body.mf-system-home .site-header__cta,
body.mf-system-home .site-theme-toggle {
  min-height: 2.18rem !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

body.mf-system-home .site-nav__link,
body.mf-system-home .site-nav__toggle {
  padding: 0.52rem 0.68rem !important;
}

body.mf-system-home .site-header__cta {
  padding-inline: 0.76rem !important;
}

body.mf-system-home .site-header__cta--media {
  background: #f5c842 !important;
  border-color: #f5c842 !important;
  color: #071009 !important;
}

body.mf-system-home .site-header__cta--contributor,
body.mf-system-home .site-theme-toggle {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(245, 200, 66, 0.16) !important;
  color: rgba(255, 248, 223, 0.86) !important;
}

body.mf-system-home .site-theme-toggle {
  width: auto !important;
  padding-inline: 0.7rem !important;
}

body.mf-system-home .site-nav__icon,
body.mf-system-home .site-nav__panel-icon {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 2.05rem !important;
  height: 1.65rem !important;
  border: 1px solid rgba(245, 200, 66, 0.2) !important;
  border-radius: 7px !important;
  background: rgba(245, 200, 66, 0.075) !important;
  color: #f5c842 !important;
  font: 800 0.58rem/1 var(--f-mono, monospace) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.mf-system-home .site-drawer {
  z-index: 1220 !important;
  width: min(100%, 23rem) !important;
  padding: 1rem !important;
  background:
    radial-gradient(circle at 18% 0, rgba(245, 200, 66, 0.08), transparent 18rem),
    rgba(2, 6, 4, 0.98) !important;
}

body.mf-system-home .site-backdrop {
  z-index: 1210 !important;
  background: rgba(1, 4, 3, 0.78) !important;
  backdrop-filter: blur(8px);
}

body.mf-system-home .site-drawer__section {
  border-bottom: 1px solid rgba(245, 200, 66, 0.08);
  padding-block: 0.75rem !important;
}

body.mf-system-home .site-drawer__section a {
  min-height: 3.25rem !important;
  border-radius: 8px !important;
}

body.mf-system-home .mf-score-ribbon {
  min-height: 2.45rem !important;
  max-height: 2.85rem !important;
  border-bottom: 1px solid rgba(245, 200, 66, 0.1);
  opacity: 0.88;
}

body.mf-system-home .mf-score-ribbon__league,
body.mf-system-home .mf-score-ribbon__date {
  font-size: 0.54rem !important;
}

body.mf-system-home .mf-score-ribbon__card {
  min-width: 11.4rem !important;
}

body.mf-system-home .mf-daily-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: auto !important;
  padding: clamp(1.25rem, 3vw, 2.4rem) 0 clamp(1rem, 2.2vw, 1.65rem) !important;
  border-bottom: 1px solid rgba(245, 200, 66, 0.08);
}

body.mf-system-home .mf-daily-home {
  display: flex;
  flex-direction: column;
}

body.mf-system-home .mf-daily-hero {
  order: 0;
}

body.mf-system-home #home-content-discovery {
  order: 1;
}

body.mf-system-home #home-stl-soccer {
  order: 2;
}

body.mf-system-home #home-player-tracker {
  order: 3;
}

body.mf-system-home #home-match-center {
  order: 4;
}

body.mf-system-home #home-partners {
  order: 5;
}

body.mf-system-home .mf-daily-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #020403);
}

body.mf-system-home .mf-home-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr) !important;
  align-items: stretch !important;
  gap: clamp(1rem, 2.4vw, 1.55rem) !important;
}

body.mf-system-home .mf-home-hero-copy,
body.mf-system-home .mf-home-hero-feed {
  border-radius: 12px !important;
}

body.mf-system-home .mf-home-hero-copy {
  padding: clamp(1rem, 2.1vw, 1.55rem) !important;
  border-color: rgba(245, 200, 66, 0.16) !important;
  background:
    linear-gradient(145deg, rgba(8, 18, 12, 0.92), rgba(2, 6, 4, 0.96)),
    radial-gradient(circle at 4% 8%, rgba(245, 200, 66, 0.12), transparent 15rem) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.mf-system-home .mf-hero-title-streamlined {
  max-width: 15ch !important;
  margin-block: 0.55rem 0.55rem !important;
  color: var(--mf-polish-ink) !important;
  font-size: clamp(2rem, 5.1vw, 4.85rem) !important;
  line-height: 0.92 !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

body.mf-system-home .mf-hero-title-streamlined span {
  display: inline !important;
}

body.mf-system-home .mf-home-hero-copy .stl-muted {
  max-width: 54ch !important;
  color: var(--mf-polish-muted) !important;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem) !important;
  line-height: 1.5 !important;
}

body.mf-system-home .mf-home-hero-actions {
  margin-top: 1rem !important;
  gap: 0.55rem !important;
}

body.mf-system-home .mf-home-hero-actions .stl-btn {
  min-height: 2.55rem !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
}

body.mf-system-home .mf-home-hero-actions .stl-btn--primary {
  min-width: 8.25rem;
}

body.mf-system-home .mf-home-quicklinks {
  margin-top: 1rem !important;
  gap: 0.38rem !important;
}

body.mf-system-home .mf-home-quicklinks a {
  border-radius: 7px !important;
  font-size: 0.62rem !important;
}

body.mf-system-home .mf-home-hero-copy [data-sponsor-zone] {
  display: none !important;
}

body.mf-system-home .mf-home-hero-feed {
  align-content: stretch !important;
  padding: 0.72rem !important;
  border-color: rgba(245, 200, 66, 0.26) !important;
  background:
    linear-gradient(180deg, rgba(11, 23, 16, 0.9), rgba(2, 6, 4, 0.98)),
    radial-gradient(circle at 50% 0, rgba(245, 200, 66, 0.08), transparent 16rem) !important;
}

body.mf-system-home .mf-home-youtube-player__stage,
body.mf-system-home .mf-home-youtube-hero__frame {
  border-radius: 10px !important;
}

body.mf-system-home .mf-home-youtube-player__play {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: inherit !important;
  background: #020403 !important;
  color: #071009 !important;
  cursor: pointer;
}

body.mf-system-home .mf-home-youtube-player__play img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease;
}

body.mf-system-home .mf-home-youtube-player__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 4, 3, 0.02), rgba(2, 4, 3, 0.34));
}

body.mf-system-home .mf-home-youtube-player__play span {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 1;
  display: inline-grid !important;
  place-items: center;
  width: 4.4rem !important;
  height: 4.4rem !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px !important;
  background: #f5c842 !important;
  color: #071009 !important;
  font: 900 0.72rem/1 var(--f-mono, monospace) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

body.mf-system-home .mf-home-youtube-player__play:hover img,
body.mf-system-home .mf-home-youtube-player__play:focus-visible img {
  filter: saturate(1.16) contrast(1.08);
  transform: scale(1.025);
}

body.mf-system-home .mf-daily-ticker {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 74rem) !important;
  margin: 0.85rem auto 0 !important;
  border-radius: 999px !important;
}

body.mf-system-home .mf-home-worldcup-wrap,
body.mf-system-home #mf-daily-worldcup,
body.mf-system-home [data-world-cup-matchday="home"] {
  display: none !important;
}

body.mf-system-home #home-partners {
  padding: clamp(0.5rem, 1.2vw, 0.8rem) 0 !important;
  opacity: 0.88;
}

body.mf-system-home #home-content-discovery,
body.mf-system-home #home-stl-soccer,
body.mf-system-home #home-player-tracker,
body.mf-system-home #home-match-center {
  padding-block: clamp(2.4rem, 5vw, 4.25rem) !important;
}

body.mf-system-home .stl-section-header-row {
  align-items: end !important;
  margin-bottom: clamp(1rem, 2vw, 1.35rem) !important;
}

body.mf-system-home .stl-section-header-row > div:first-child {
  min-width: 0 !important;
}

body.mf-system-home .stl-section-header-row .stl-subheading {
  max-width: 22ch !important;
  overflow: visible !important;
  color: var(--mf-polish-ink) !important;
  font-size: clamp(1.7rem, 3.35vw, 3.15rem) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
  text-overflow: clip !important;
  text-wrap: balance !important;
  white-space: normal !important;
}

body.mf-system-home .stl-section-header-row .mf-section-intro {
  max-width: 58ch !important;
  color: var(--mf-polish-muted) !important;
  font-size: 0.94rem !important;
  line-height: 1.52 !important;
}

body.mf-system-home #home-stl-soccer .mf-home-product-grid,
body.mf-system-home #home-player-tracker .mf-home-product-grid,
body.mf-system-home #home-match-center .mf-home-product-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.72fr) !important;
  gap: clamp(1rem, 2vw, 1.35rem) !important;
}

body.mf-system-home #home-content-discovery {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.026) 55%, transparent),
    #020403 !important;
}

body.mf-system-home .mf-home-command-card,
body.mf-system-home .mf-pathway-preview,
body.mf-system-home .mf-pathway-note,
body.mf-system-home .mf-daily-tab-panel,
body.mf-system-home .mf-front-item {
  border-radius: 10px !important;
  border-color: rgba(245, 200, 66, 0.15) !important;
  background:
    linear-gradient(180deg, rgba(10, 20, 14, 0.9), rgba(3, 8, 5, 0.98)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

body.mf-system-home .mf-pathway-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.mf-system-home .mf-pathway-card {
  border-radius: 8px !important;
}

body.mf-system-home .stl-btn,
body.mf-system-home button,
body.mf-system-home [role="button"] {
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, background 180ms ease !important;
}

body.mf-system-home .stl-btn:active,
body.mf-system-home button:active,
body.mf-system-home [role="button"]:active {
  transform: translateY(1px) scale(0.99) !important;
}

#mo-toasts {
  z-index: 1120 !important;
}

body:has(.site-drawer.is-open) #mo-toasts {
  display: none !important;
}

@media (max-width: 1024px) {
  body.mf-system-home .site-theme-toggle {
    display: none !important;
  }

  body.mf-system-home .mf-home-hero-grid,
  body.mf-system-home #home-stl-soccer .mf-home-product-grid,
  body.mf-system-home #home-player-tracker .mf-home-product-grid,
  body.mf-system-home #home-match-center .mf-home-product-grid {
    grid-template-columns: 1fr !important;
  }

  body.mf-system-home .mf-hero-title-streamlined {
    max-width: 12ch !important;
  }
}

@media (max-width: 760px) {
  :root {
    --mf-polish-max: min(100% - 1rem, 100vw - 1rem);
  }

  body.mf-system-home .site-header__cta--media {
    display: none !important;
  }

  body.mf-system-home .site-brand__logo {
    width: 2rem !important;
    height: 2rem !important;
  }

  body.mf-system-home .mf-score-ribbon {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 0.28rem !important;
    max-height: 2.7rem !important;
    overflow: hidden !important;
  }

  body.mf-system-home .mf-score-ribbon__rail {
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  body.mf-system-home .mf-score-ribbon__rail::-webkit-scrollbar {
    display: none !important;
  }

  body.mf-system-home .mf-score-ribbon__rail.is-marquee .mf-score-ribbon__track,
  body.mf-system-home .mf-score-ribbon__track {
    display: flex !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
    animation: none !important;
  }

  body.mf-system-home .mf-score-ribbon__brand span,
  body.mf-system-home .mf-score-ribbon__utility,
  body.mf-system-home .mf-score-ribbon__date,
  body.mf-system-home .mf-score-ribbon__card small {
    display: none !important;
  }

  body.mf-system-home .mf-score-ribbon__card {
    min-width: 8.5rem !important;
    max-width: 8.5rem !important;
    padding: 0.28rem 0.42rem !important;
  }

  body.mf-system-home .mf-score-ribbon__match {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.mf-system-home .mf-score-ribbon__team img,
  body.mf-system-home .mf-score-ribbon__mark {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }

  body.mf-system-home .mf-score-ribbon__team b {
    font-size: 0.56rem !important;
  }

  body.mf-system-home .mf-daily-hero {
    padding-top: 1rem !important;
  }

  body.mf-system-home .mf-home-hero-copy {
    padding: 1rem !important;
  }

  body.mf-system-home .mf-hero-title-streamlined {
    max-width: 11ch !important;
    font-size: clamp(2rem, 12vw, 3.25rem) !important;
  }

  body.mf-system-home .mf-home-hero-actions .stl-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  body.mf-system-home .mf-home-quicklinks {
    display: none !important;
  }

  body.mf-system-home #home-partners {
    padding-block: 0.55rem !important;
  }

  body.mf-system-home #home-content-discovery,
  body.mf-system-home #home-stl-soccer,
  body.mf-system-home #home-player-tracker,
  body.mf-system-home #home-match-center {
    padding-block: 2rem !important;
  }

  body.mf-system-home .stl-section-header-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body.mf-system-home .stl-section-header-row .stl-subheading {
    max-width: 13ch !important;
    font-size: clamp(1.55rem, 8vw, 2.25rem) !important;
  }

  body.mf-system-home .stl-section-header-row > .stl-btn,
  body.mf-system-home .stl-section-header-row .stl-btn {
    justify-self: start !important;
  }

  body.mf-system-home .mf-pathway-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Final cascade for Homepage UX polish v6.23.26. */
body.mf-system-home .mf-daily-hero { order: 0 !important; }
body.mf-system-home #today-in-stl-soccer-home { order: 1 !important; }
body.mf-system-home #home-latest-video { order: 2 !important; }
body.mf-system-home #home-match-center { order: 3 !important; }
body.mf-system-home #home-player-tracker { order: 4 !important; }
body.mf-system-home #home-content-discovery { order: 5 !important; }
body.mf-system-home #home-partners { order: 6 !important; }

body.mf-system-home .mf-home-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.62fr) !important;
}

body.mf-system-home .mf-hero-title-streamlined {
  max-width: 19ch !important;
  font-size: 4.15rem !important;
  line-height: 0.96 !important;
}

body.mf-system-home #home-latest-video,
body.mf-system-home #home-content-discovery,
body.mf-system-home #home-player-tracker,
body.mf-system-home #home-match-center {
  padding-block: 2.1rem !important;
}

body.mf-system-home .mf-home-latest-video-card.mf-home-hero-feed {
  min-height: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1024px) {
  body.mf-system-home .mf-home-hero-grid,
  body.mf-system-home .mf-home-youtube-player {
    grid-template-columns: 1fr !important;
  }

  body.mf-system-home .mf-hero-title-streamlined {
    max-width: 18ch !important;
    font-size: 3rem !important;
  }
}

@media (max-width: 760px) {
  body.mf-system-home .mf-hero-title-streamlined {
    max-width: 14ch !important;
    font-size: 2.45rem !important;
  }

  body.mf-system-home #home-latest-video,
  body.mf-system-home #home-content-discovery,
  body.mf-system-home #home-player-tracker,
  body.mf-system-home #home-match-center {
    padding-block: 1.6rem !important;
  }
}

/* Compact latest video pass. */
body.mf-system-home #home-latest-video {
  padding-block: 1.1rem !important;
}

body.mf-system-home #home-latest-video .stl-container {
  max-width: min(100% - 1.5rem, 62rem) !important;
}

body.mf-system-home #home-latest-video .stl-section-header-row {
  margin-bottom: 0.65rem !important;
}

body.mf-system-home #home-latest-video .stl-subheading {
  max-width: 34ch !important;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem) !important;
  line-height: 1.04 !important;
}

body.mf-system-home #home-latest-video .mf-section-intro {
  max-width: 44ch !important;
  font-size: 0.82rem !important;
}

body.mf-system-home #home-latest-video .mf-home-youtube-player {
  aspect-ratio: auto !important;
  height: auto !important;
  grid-template-columns: minmax(0, 0.86fr) minmax(15rem, 0.72fr) !important;
  min-height: 0 !important;
  align-items: start !important;
}

body.mf-system-home #home-latest-video .mf-home-latest-video-card,
body.mf-system-home #home-latest-video .mf-home-feed-list {
  height: auto !important;
  min-height: 0 !important;
}

body.mf-system-home #home-latest-video .mf-home-youtube-player__stage {
  min-height: 11.25rem !important;
  max-height: 13.5rem !important;
}

body.mf-system-home #home-latest-video .mf-home-youtube-player__bar {
  align-self: start !important;
  align-content: start !important;
  padding: 0.75rem !important;
  gap: 0.6rem !important;
  height: auto !important;
  min-height: 0 !important;
}

body.mf-system-home #home-latest-video .mf-home-youtube-player__bar strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(0.95rem, 1.5vw, 1.18rem) !important;
  line-height: 1.12 !important;
}

body.mf-system-home #home-latest-video .mf-home-youtube-player__bar small {
  display: none !important;
}

body.mf-system-home #home-latest-video .mf-home-youtube-player__actions {
  justify-content: flex-start !important;
}

body.mf-system-home #home-latest-video .mf-home-youtube-player__play span {
  width: 3.4rem !important;
  height: 3.4rem !important;
  font-size: 0.68rem !important;
}

@media (max-width: 760px) {
  body.mf-system-home #home-latest-video .mf-section-intro {
    display: none !important;
  }

  body.mf-system-home #home-latest-video .mf-home-youtube-player__stage {
    min-height: 10rem !important;
  }
}
