/*
 * Final normal-prediction section navigation.
 * This navigation does not reuse legacy IDs or classes.
 */

body.normal-fbb-layout .wc-hub-nav,
body.normal-fbb-layout .fbb-league-stats-nav {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#fbbNormalSectionNav {
  display: grid !important;
  grid-template-columns:
    repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 16px 0 22px !important;
  padding: 0 !important;

  box-sizing: border-box !important;
  overflow: visible !important;
}

#fbbNormalSectionNav > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;

  height: 43px !important;
  min-height: 43px !important;
  max-height: 43px !important;

  margin: 0 !important;
  padding: 7px 8px !important;

  border:
    1px solid
    rgba(0, 177, 255, 0.68) !important;
  border-radius: 13px !important;

  background:
    linear-gradient(
      145deg,
      rgba(10, 31, 43, 0.99),
      rgba(8, 20, 29, 0.99)
    ) !important;

  color: #ffffff !important;

  font-family: inherit !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;

  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;

  box-sizing: border-box !important;
  cursor: pointer !important;
  overflow: hidden !important;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease !important;
}

#fbbNormalSectionNav > button:hover,
#fbbNormalSectionNav > button:focus-visible,
#fbbNormalSectionNav > button.fbb-section-nav-active {
  border-color:
    rgba(0, 255, 135, 0.96) !important;

  background:
    linear-gradient(
      135deg,
      rgba(0, 177, 255, 0.21),
      rgba(0, 255, 135, 0.17)
    ) !important;

  box-shadow:
    0 0 18px
    rgba(0, 255, 135, 0.24) !important;

  transform:
    translateY(-1px) !important;

  outline: none !important;
}

.fbb-section-nav-target {
  scroll-margin-top: 104px !important;
}

.fbb-section-nav-flash {
  animation:
    fbbSectionNavFlash
    1.7s ease-out !important;
}

@keyframes fbbSectionNavFlash {
  0% {
    box-shadow:
      0 0 0 0
      rgba(0, 255, 135, 0);
  }

  24% {
    box-shadow:
      0 0 0 3px
        rgba(0, 255, 135, 0.52),
      0 0 30px
        rgba(0, 255, 135, 0.35);
  }

  100% {
    box-shadow:
      0 0 0 0
      rgba(0, 255, 135, 0);
  }
}

@media (max-width: 700px) {
  #fbbNormalSectionNav {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    gap: 8px !important;

    margin:
      14px 0 19px !important;
  }

  #fbbNormalSectionNav > button {
    height: 41px !important;
    min-height: 41px !important;
    max-height: 41px !important;

    padding: 6px 7px !important;

    border-radius: 12px !important;

    font-size: 0.71rem !important;
  }

  #fbbNormalSectionNav
  > button[data-fbb-section-key="highlights"] {
    grid-column: 1 / -1 !important;
  }

  .fbb-section-nav-target {
    scroll-margin-top: 91px !important;
  }
}

@media (max-width: 380px) {
  #fbbNormalSectionNav > button {
    padding: 6px !important;
    font-size: 0.68rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbb-section-nav-flash {
    animation: none !important;
  }
}

/* FBB-SECTION-FLASH-OVERLAY-BEGIN */

#fbbSectionFlashOverlay {
  position: absolute !important;
  z-index: 2147483000 !important;

  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  border:
    3px solid
    rgba(0, 255, 135, 1) !important;

  background:
    rgba(0, 255, 135, 0.035) !important;

  box-shadow:
    0 0 0 4px
      rgba(0, 177, 255, 0.16),
    0 0 34px
      rgba(0, 255, 135, 0.72),
    inset 0 0 22px
      rgba(0, 255, 135, 0.08) !important;

  box-sizing: border-box !important;

  opacity: 0;

  pointer-events: none !important;

  animation:
    fbbSectionOverlayFlash
    1.75s ease-out forwards !important;
}

@keyframes fbbSectionOverlayFlash {
  0% {
    opacity: 0;
    transform:
      scale(0.985);
  }

  16% {
    opacity: 1;
    transform:
      scale(1);
  }

  68% {
    opacity: 0.88;
  }

  100% {
    opacity: 0;
    transform:
      scale(1.012);
  }
}

@media (
  prefers-reduced-motion: reduce
) {
  #fbbSectionFlashOverlay {
    animation:
      fbbSectionOverlayFlashReduced
      0.85s ease-out forwards !important;
  }

  @keyframes
  fbbSectionOverlayFlashReduced {
    0% {
      opacity: 1;
    }

    100% {
      opacity: 0;
    }
  }
}

/* FBB-SECTION-FLASH-OVERLAY-END */

/* FBB_RELATED_CTA_LANGUAGE_FINAL_BEGIN */

.fbb-more-cta-row[
  data-fbb-related-links="true"
] .en[hidden],
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .pt[hidden] {
  display: none !important;
}

html[data-fbb-related-cta-lang="en"]
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .pt {
  display: none !important;
}

html[data-fbb-related-cta-lang="en"]
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .en {
  display: block !important;
}

html[data-fbb-related-cta-lang="pt"]
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .en {
  display: none !important;
}

html[data-fbb-related-cta-lang="pt"]
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .pt {
  display: block !important;
}

/* FBB_RELATED_CTA_LANGUAGE_FINAL_END */

/* FBB-RELATED-CTA-LAYOUT-FINAL-BEGIN */

/*
 * Equal competition and all-predictions cards.
 */

#fbbMorePredictions
.fbb-more-cta-row[
  data-fbb-related-links="true"
],
.fbb-more-cta-row[
  data-fbb-related-links="true"
] {
  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;

  gap: 12px !important;
  align-items: stretch !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 16px 0 0 !important;
  padding: 0 !important;

  box-sizing: border-box !important;
}

#fbbMorePredictions
.fbb-more-cta-row[
  data-fbb-related-links="true"
] > .fbb-more-card,
.fbb-more-cta-row[
  data-fbb-related-links="true"
] > .fbb-more-card {
  grid-column: auto !important;
  grid-row: auto !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  min-height: 112px !important;

  margin: 0 !important;
  padding: 18px 19px !important;

  border-radius: 15px !important;

  box-sizing: border-box !important;

  text-align: left !important;
  text-decoration: none !important;

  overflow: hidden !important;
}

#fbbMorePredictions
.fbb-more-cta-row[
  data-fbb-related-links="true"
] > .fbb-more-league,
.fbb-more-cta-row[
  data-fbb-related-links="true"
] > .fbb-more-league {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 14px !important;
}

#fbbMorePredictions
.fbb-more-league-copy,
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .fbb-more-league-copy {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;

  gap: 5px !important;

  min-width: 0 !important;
}

#fbbMorePredictions
.fbb-country-flag,
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .fbb-country-flag {
  flex: 0 0 42px !important;

  display: inline-flex !important;

  width: 42px !important;
  height: 30px !important;

  margin: 0 !important;
}

#fbbMorePredictions
.fbb-country-flag svg,
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .fbb-country-flag svg {
  display: block !important;

  width: 100% !important;
  height: 100% !important;
}

#fbbMorePredictions
.fbb-more-card strong,
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .fbb-more-card strong {
  margin: 0 !important;

  font-size: 0.96rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

#fbbMorePredictions
.fbb-more-card small,
.fbb-more-cta-row[
  data-fbb-related-links="true"
] .fbb-more-card small {
  margin: 0 !important;

  font-size: 0.82rem !important;
  line-height: 1.45 !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 700px) {
  #fbbMorePredictions
  .fbb-more-cta-row[
    data-fbb-related-links="true"
  ],
  .fbb-more-cta-row[
    data-fbb-related-links="true"
  ] {
    grid-template-columns:
      minmax(0, 1fr) !important;

    gap: 10px !important;
  }

  #fbbMorePredictions
  .fbb-more-cta-row[
    data-fbb-related-links="true"
  ] > .fbb-more-card,
  .fbb-more-cta-row[
    data-fbb-related-links="true"
  ] > .fbb-more-card {
    min-height: 94px !important;

    padding: 15px 16px !important;
  }

  #fbbMorePredictions
  .fbb-country-flag,
  .fbb-more-cta-row[
    data-fbb-related-links="true"
  ] .fbb-country-flag {
    flex-basis: 38px !important;

    width: 38px !important;
    height: 27px !important;
  }
}

/* FBB-RELATED-CTA-LAYOUT-FINAL-END */

/* FBB-NORMAL-EMPTY-FIELDS-BEGIN */

/*
 * Empty runtime mounts remain available to JavaScript.
 * They are hidden only while genuinely empty.
 */

#predictionText:empty,
#matchHighlights:empty,
#fbbStandingsTable:empty {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;

  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  overflow: hidden !important;
  pointer-events: none !important;
}

/*
 * Hide the complete standings dropdown while its table
 * contains no verified rows. It automatically reappears
 * when JavaScript inserts table content.
 */

#fbbLeagueStandingsTarget:
has(#fbbStandingsTable:empty) {
  display: none !important;
  visibility: hidden !important;

  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  overflow: hidden !important;
}

/*
 * The stadium element remains available for later data,
 * but creates no blank image area without a valid source.
 */

img#stadiumImage:not([src]),
img#stadiumImage[src=""],
img#stadiumImage[src="about:blank"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;

  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* FBB-NORMAL-EMPTY-FIELDS-END */

