body.gg-layout-shell.livesport-theme .topbar-mobile-page-title {
  display: none;
}

/* UX audit polish: clear guest identity, reliable touch targets and stable bottom nav. */
.account-avatar-circle--guest svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@media (max-width: 720px) {
  body.gg-layout-shell .bottom-nav a {
    min-width: 0;
    min-height: 56px;
    padding: 0.3rem 0.15rem !important;
    gap: 0.18rem;
  }

  body.gg-layout-shell .bottom-nav a > span:last-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.05;
  }

  body.gg-layout-shell .bottom-nav a.active {
    border-radius: 14px;
  }

  .mygg-star-button,
  .match-team-fav-btn,
  .match-league-fav-btn,
  a[data-action="view-table"],
  button[data-action="view-table"] {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* GoalGrid — unified layout + dashboard topbar v4.2.8.27.989 */

body.gg-layout-shell {
  --gg-layout-max: 1180px;
  --gg-layout-gutter: max(1rem, calc((100vw - var(--gg-layout-max)) / 2));
  /* Safe-area inset for notch / status bar. Floor applied in PWA (see below)
     because Android often reports 0 while the clock still overlays the bar. */
  --gg-sat: env(safe-area-inset-top, 0px);
  --topbar-h: calc(60px + var(--gg-sat));
  background: var(--gg-brand-secondary, #061019) !important;
  color: var(--gg-text, #f3f4f6);
}

/*
 * Kill football-only.html pink/teal radials on the canvas. With body
 * height:100%, scrolled transparent gaps otherwise show those accents as a
 * random horizontal stripe (Results) / side glow (Matches). Do NOT force
 * height:auto here — that breaks shell layouts site-wide.
 */
html:has(body.gg-layout-shell) {
  background-color: var(--gg-brand-secondary, #061019) !important;
  background-image: none !important;
}

body.gg-layout-shell .app-sidebar {
  display: none !important;
}

/* ── Dashboard topbar — fixed on every page for the full scroll ── */
body.gg-layout-shell.livesport-theme .site-topbar {
  position: fixed !important;
  top: var(--gg-sat) !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  align-items: center;
  gap: 0.75rem !important;
  padding-left: var(--gg-layout-gutter) !important;
  padding-right: var(--gg-layout-gutter) !important;
  padding-top: 0 !important;
  background: rgba(6, 16, 25, 0.98) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--gg-brand-primary-border, rgba(53, 224, 194, 0.28)) !important;
  box-shadow: none !important;
  z-index: 200 !important;
  transform: none !important;
}

body.gg-layout-shell.livesport-theme .topbar-mobile-brand b {
  color: var(--gg-brand-primary) !important;
}

/* PWA / mobile — back navigation (no browser chrome in standalone) */
body.gg-layout-shell .topbar-back-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #f3f7fb;
  border-radius: 12px;
  min-height: 40px;
  min-width: 40px;
  padding: 0 0.55rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

body.gg-layout-shell .topbar-back-btn:hover {
  border-color: var(--gg-brand-primary-border, rgba(53, 224, 194, 0.28));
  background: rgba(53, 224, 194, 0.08);
  color: #fff;
}

body.gg-layout-shell.gg-has-topbar-back .topbar-back-btn:not([hidden]) {
  display: inline-flex;
}

body.gg-layout-shell .topbar-back-label {
  display: none;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

@media (min-width: 721px) {
  body.gg-layout-shell.gg-has-topbar-back .topbar-back-label {
    display: inline;
  }

  body.gg-layout-shell.gg-has-topbar-back .topbar-back-btn:not([hidden]) {
    margin-right: 0.15rem;
  }
}

body.gg-layout-shell.livesport-theme .topbar-search-shell {
  display: flex !important;
  flex: 0 1 280px !important;
  min-width: 220px !important;
  max-width: 300px !important;
  position: relative;
  flex-direction: column;
}

body.gg-layout-shell.livesport-theme .topbar-search-form {
  width: 100%;
}

body.gg-layout-shell.livesport-theme .topbar-search-form input {
  min-width: 0 !important;
  width: 100%;
  font-size: 0.82rem;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f7fb;
}

body.gg-layout-shell.livesport-theme .mobile-search-trigger {
  display: none !important;
}

body.gg-layout-shell.livesport-theme .topbar-menu-trigger {
  display: none !important;
}

body.gg-layout-shell.livesport-theme .mobile-search-close {
  display: none;
}

body.gg-layout-shell.livesport-theme .mobile-search-head {
  display: none;
}

body.gg-layout-shell.livesport-theme .mobile-search-input-wrap {
  position: relative;
  width: 100%;
}

@media (min-width: 721px) {
  body.gg-layout-shell.livesport-theme .site-topbar {
    display: flex !important;
  }

  body.gg-layout-shell.livesport-theme .topbar-nav.unified-topbar-nav {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
  }
}

body.gg-layout-shell.livesport-theme .unified-topbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.42rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

body.gg-layout-shell.livesport-theme .unified-topbar-nav a.nav-favorites .gg-nav-fav-star,
.sidebar-nav .sidebar-link.nav-favorites .gg-nav-fav-star {
  color: #f6c343 !important;
}

.bottom-nav a.nav-favorites .gg-nav-fav-star,
.mobile-menu-link.nav-favorites .gg-nav-fav-star {
  color: #f6c343 !important;
  font-size: 1.45rem !important;
  line-height: 1;
  display: inline-block;
}

.bottom-nav a.nav-favorites .icon {
  font-size: 1.45rem !important;
  line-height: 1;
}

.bottom-nav a.nav-favorites.active .gg-nav-fav-star,
.bottom-nav a.nav-favorites:hover .gg-nav-fav-star,
.mobile-menu-link.nav-favorites.active .gg-nav-fav-star {
  color: #ffd966 !important;
}

body.gg-layout-shell.livesport-theme .unified-topbar-nav a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body.gg-layout-shell.livesport-theme .unified-topbar-nav a.active {
  color: #fff !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--gg-brand-primary);
}

body.gg-layout-shell.livesport-theme .unified-topbar-nav a .nav-badge {
  font-size: 0.62rem;
  padding: 0.12rem 0.38rem;
  background: var(--gg-brand-primary-soft) !important;
  color: var(--gg-brand-primary) !important;
  border: 1px solid var(--gg-brand-primary-border);
  font-weight: 800;
}

.gg-nav-wc-logo {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

body.gg-layout-shell.livesport-theme .unified-topbar-nav a .gg-nav-wc-logo {
  width: 17px;
  height: 17px;
  max-width: 17px;
  max-height: 17px;
  mix-blend-mode: lighten;
}

.gg-nav-wc-logo--menu {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  mix-blend-mode: lighten;
}

.bottom-nav .gg-nav-wc-logo {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  mix-blend-mode: lighten;
}

body.gg-layout-shell.livesport-theme .topbar-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

body.gg-layout-shell.livesport-theme .language-switcher-button,
body.gg-layout-shell.livesport-theme .account-trigger,
body.gg-layout-shell.livesport-theme .account-logout-btn {
  min-height: 40px;
  padding: 0.42rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

body.gg-layout-shell.livesport-theme .theme-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
}

body.gg-layout-shell .site-shell.football-shell {
  width: min(var(--gg-layout-max), calc(100% - 2rem)) !important;
  max-width: var(--gg-layout-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: var(--topbar-h) !important;
  padding: 1.25rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0)) !important;
}

body.gg-layout-shell .site-trust-footer,
body.gg-layout-shell .site-trust-footer.site-footer-v101 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Compact footer — tool/dashboard pages (leagues, matches, predictions…) */
body.gg-layout-shell .site-trust-footer.site-footer-compact {
  display: block !important;
  margin-top: 0.75rem;
  margin-left: 0 !important;
  padding: 0.75rem max(1rem, var(--gg-layout-gutter)) calc(0.85rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 16, 25, 0.96);
}

.site-footer-compact-inner {
  width: min(var(--gg-layout-max), calc(100% - 2rem));
  max-width: var(--gg-layout-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.site-footer-compact-copy {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.82);
}

.site-footer-compact-copy strong {
  color: #f1f5f9;
  font-weight: 800;
}

.site-footer-compact-age {
  color: #35e0c2;
  font-weight: 800;
}

.site-footer-compact-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}

.site-footer-compact-nav a {
  font-size: 0.71rem;
  font-weight: 600;
  color: #8aa0b2;
  text-decoration: none;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.site-footer-compact-nav a:hover {
  color: #35e0c2;
}

.site-footer-compact-note {
  margin: 0;
  max-width: 36rem;
  font-size: 0.62rem;
  line-height: 1.45;
  color: rgba(100, 116, 139, 0.92);
}

body.gg-layout-shell.gg-footer-compact-page .nt-hub-shell,
body.gg-layout-shell.gg-footer-compact-page main.site-shell.football-shell {
  min-height: 0 !important;
  padding-bottom: 0.5rem !important;
}

.site-trust-footer.site-footer-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  body.gg-layout-shell .site-trust-footer.site-footer-compact {
    padding-bottom: var(--gg-bottom-nav-h, 68px);
  }
}

body.gg-layout-shell .site-footer-v101 .site-footer-inner {
  width: min(var(--gg-layout-max), calc(100% - 2rem)) !important;
  max-width: var(--gg-layout-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.gg-layout-shell.gg-layout-full-bleed .site-shell.football-shell {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.gg-layout-shell.gg-layout-narrow {
  --gg-layout-max: 720px;
}

@media (min-width: 721px) and (max-width: 1040px) {
  body.gg-layout-shell.livesport-theme .topbar-search-shell {
    flex-basis: 240px !important;
    min-width: 200px !important;
    max-width: 260px !important;
  }

  body.gg-layout-shell.livesport-theme .unified-topbar-nav a {
    padding-inline: 0.5rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 720px) {
  body.gg-layout-shell {
    --gg-sat: env(safe-area-inset-top, 0px);
    --topbar-h: calc(64px + var(--gg-sat));
    --gg-layout-gutter: 0.75rem;
  }

  body.gg-layout-shell.livesport-theme .site-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px 40px auto;
    align-items: center;
    top: var(--gg-sat) !important;
    height: 64px !important;
    min-height: 64px !important;
    padding-top: 0 !important;
    padding-left: var(--gg-layout-gutter) !important;
    padding-right: var(--gg-layout-gutter) !important;
  }

  body.gg-layout-shell.gg-has-topbar-back.livesport-theme .site-topbar {
    grid-template-columns: auto minmax(0, 1fr) 42px 40px auto;
  }

  body.gg-layout-shell.gg-has-topbar-back .topbar-mobile-brand span {
    max-width: 108px;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-mobile-page-title {
    /* Keep the current page name immediately beside the compact logo. It may
       truncate on very narrow phones, but it must never create a second row. */
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0 0.2rem;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    align-self: center;
    pointer-events: none;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-mobile-brand span {
    /* Info pages keep the compact ball-only brand so the page title fits the centre. */
    display: none;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell.gg-has-topbar-back .topbar-mobile-page-title {
    grid-column: 2;
  }

  body.gg-layout-shell.livesport-theme .topbar-nav.unified-topbar-nav {
    display: none !important;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell .site-topbar {
    /* Flex row instead of the old grid: back · brand · title(grows) · search · menu ·
       account, all on one line, vertically centred within the notch-padded bar. */
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-mobile-brand {
    flex: 0 0 auto !important;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-actions,
  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-account-mobile {
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-nav.unified-topbar-nav {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell {
    display: none !important;
  }

  body.gg-layout-shell.mobile-search-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.mobile-search-open .site-shell.football-shell,
  body.mobile-search-open .bottom-nav {
    visibility: hidden;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    flex: none !important;
    transform: none !important;
    z-index: 10050 !important;
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
    background:
      radial-gradient(circle at 18% -8%, rgba(255, 77, 103, 0.14), transparent 42%),
      radial-gradient(circle at 82% 0%, rgba(53, 224, 194, 0.08), transparent 36%),
      #061019 !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden !important;
    gap: 0.65rem;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open::before {
    content: 'Search';
    display: block;
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.15rem 3.2rem 0 0;
    flex: 0 0 auto;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .topbar-search-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    width: 100%;
    max-width: none;
    gap: 0.65rem;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .topbar-search-form input {
    width: 100% !important;
    min-width: 0 !important;
    height: 50px;
    border-radius: 16px;
    font-size: 16px;
    padding-left: 2.65rem;
    padding-right: 0.85rem;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(53, 224, 194, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    flex: 0 0 auto;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .topbar-search-icon {
    position: absolute;
    left: 0.95rem;
    top: 25px;
    transform: translateY(-50%);
    color: rgba(126, 240, 220, 0.82);
    pointer-events: none;
    z-index: 1;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .mobile-search-close {
    display: grid !important;
    position: absolute !important;
    top: calc(0.85rem + env(safe-area-inset-top, 0px)) !important;
    right: 0.85rem !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    font-size: 1.35rem;
    line-height: 1;
    z-index: 2;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .topbar-search-dropdown,
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .topbar-search-dropdown.show {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    border-radius: 18px;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(8, 14, 22, 0.99) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-popover-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.55rem 0.55rem 0.7rem;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-popover-footer {
    display: none;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-row.is-compact {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    min-height: 3.35rem;
    border-radius: 12px;
    width: 100%;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--match {
    width: 58px;
    height: 40px;
    flex: 0 0 58px;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-match-avatar .team-avatar.md {
    width: 34px;
    height: 34px;
    border-width: 2px;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--team .team-avatar.md {
    width: 46px;
    height: 46px;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .team-avatar img.is-loaded + .team-avatar-fallback,
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .team-avatar:has(img.is-loaded) .team-avatar-fallback {
    opacity: 0;
  }

  body.gg-layout-shell.livesport-theme .mobile-search-trigger {
    display: inline-grid !important;
    place-items: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    color: #fff !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  body.gg-layout-shell.livesport-theme .topbar-menu-trigger {
    display: inline-grid !important;
    place-items: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    color: #fff !important;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body.gg-layout-shell.livesport-theme .topbar-menu-trigger span {
    font-size: 1.05rem;
    line-height: 1;
  }

  body.mobile-menu-open body.gg-layout-shell.livesport-theme .topbar-menu-trigger {
    color: var(--gg-brand-primary, #35e0c2) !important;
    border-color: rgba(53, 224, 194, 0.35) !important;
    background: rgba(53, 224, 194, 0.1) !important;
  }

  body.gg-layout-shell .site-shell.football-shell {
    width: min(100%, calc(100vw - 1.5rem)) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: calc(var(--topbar-h) + 0.1rem) !important;
    padding: 0.65rem 0 calc(4.75rem + env(safe-area-inset-bottom, 0)) !important;
    box-sizing: border-box;
    overflow-x: clip;
  }
}

/*
 * Fixed topbar — GoalGrid / search / account stay at the top of the screen
 * on every page for the entire scroll. Fixed (not sticky) so overflow-x:clip
 * on shells cannot kill the pin the way sticky did.
 */
body.gg-layout-shell.livesport-theme .site-topbar {
  position: fixed !important;
  top: var(--gg-sat) !important;
  margin-top: 0 !important;
  z-index: 200 !important;
  background: rgba(6, 16, 25, 0.98) !important;
}

/* Content starts below the fixed topbar (sticky used to keep it in-flow). */
body.gg-layout-shell .site-shell.football-shell {
  margin-top: var(--topbar-h) !important;
}

html.gg-pwa-standalone body.gg-layout-shell.livesport-theme .site-topbar,
body.gg-pwa-standalone.gg-layout-shell.livesport-theme .site-topbar {
  margin-top: 0 !important;
}

@media (display-mode: standalone) {
  body.gg-layout-shell.livesport-theme .site-topbar {
    margin-top: 0 !important;
  }
}

@media (display-mode: standalone) {
  body.gg-layout-shell.livesport-theme .site-topbar {
    z-index: 200 !important;
  }
}

/* Installed browsers already lay the document viewport below the status bar.
   Do not add the safe-area inset again: doing so creates a blank band above
   the shared header on iOS and some Android WebViews. */
@media (display-mode: standalone),
       (display-mode: fullscreen),
       (display-mode: minimal-ui) {
  body.gg-layout-shell {
    --gg-sat: max(env(safe-area-inset-top, 0px), 44px);
    --topbar-h: 60px;
  }

  body.gg-layout-shell.livesport-theme .site-topbar {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
  }
}

@media (display-mode: standalone) and (max-width: 720px),
       (display-mode: fullscreen) and (max-width: 720px),
       (display-mode: minimal-ui) and (max-width: 720px) {
  body.gg-layout-shell {
    --topbar-h: 64px;
  }

  body.gg-layout-shell.livesport-theme .site-topbar {
    height: 64px !important;
    min-height: 64px !important;
  }
}

/* Class set by JS (navigator.standalone) — older iOS often misses display-mode media. */
html.gg-pwa-standalone body.gg-layout-shell,
body.gg-pwa-standalone.gg-layout-shell {
  --gg-sat: max(env(safe-area-inset-top, 0px), 44px);
  --topbar-h: 64px;
}

html.gg-pwa-standalone body.gg-layout-shell.livesport-theme .site-topbar,
body.gg-pwa-standalone.gg-layout-shell.livesport-theme .site-topbar {
  box-sizing: border-box !important;
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  height: 64px !important;
  min-height: 64px !important;
}

/* ── PWA bottom chrome (back / share / reload / open in browser) ──
   Shown only when installed to home screen — replaces Safari/Chrome toolbar. */
html.gg-pwa-standalone,
body.gg-pwa-standalone {
  --gg-pwa-chrome-h: 48px;
  /* Some iOS standalone builds report a zero bottom safe-area even though the
     home-indicator area is still visible. Keep that area inside our chrome. */
  --gg-sab: max(env(safe-area-inset-bottom, 0px), 28px);
}

@media (display-mode: standalone) {
  html.gg-pwa-standalone,
  html:has(body.gg-pwa-standalone) {
    --gg-pwa-chrome-h: 48px;
    --gg-sab: max(env(safe-area-inset-bottom, 0px), 28px);
  }

  body.gg-pwa-standalone.gg-layout-shell {
    --gg-pwa-chrome-h: 48px;
    --gg-sab: max(env(safe-area-inset-bottom, 0px), 28px);
  }
}

.gg-pwa-chrome {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 340;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: calc(var(--gg-pwa-chrome-h, 48px) + var(--gg-sab, env(safe-area-inset-bottom, 0px)));
  padding: 0.35rem 0.85rem calc(0.35rem + var(--gg-sab, env(safe-area-inset-bottom, 0px)));
  margin: 0;
  background: rgba(8, 14, 22, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.gg-pwa-chrome[hidden] {
  display: none !important;
}

body.gg-pwa-standalone .gg-pwa-chrome:not([hidden]),
html.gg-pwa-standalone body .gg-pwa-chrome:not([hidden]) {
  display: flex !important;
}

@media (display-mode: standalone) {
  body.gg-pwa-standalone .gg-pwa-chrome:not([hidden]),
  html.gg-pwa-standalone body .gg-pwa-chrome:not([hidden]) {
    display: flex !important;
  }
}

.gg-pwa-chrome-btn {
  appearance: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(243, 247, 251, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gg-pwa-chrome-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.gg-pwa-chrome-back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.gg-pwa-chrome-back:active {
  background: rgba(53, 224, 194, 0.16);
  border-color: rgba(53, 224, 194, 0.35);
}

.gg-pwa-chrome-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.15rem;
  min-width: 148px;
  height: 40px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.gg-pwa-chrome-pill .gg-pwa-chrome-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.gg-pwa-chrome-pill .gg-pwa-chrome-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.gg-pwa-chrome-btn.is-loading svg,
html.gg-pwa-reloading .gg-pwa-chrome [data-pwa-action="reload"] svg {
  animation: gg-pwa-spin 0.7s linear infinite;
}

@keyframes gg-pwa-spin {
  to { transform: rotate(360deg); }
}

body.mobile-search-open .gg-pwa-chrome,
body.mobile-menu-open .gg-pwa-chrome {
  opacity: 0.35;
  pointer-events: none;
}

/* AI confidence explainer modal */
.gg-ai-confidence-trigger {
  cursor: pointer;
}

.gg-ai-confidence-trigger:focus-visible {
  outline: 2px solid rgba(53, 224, 194, 0.75);
  outline-offset: 2px;
}

.gg-ai-confidence-inline-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #35e0c2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline dotted rgba(53, 224, 194, 0.45);
  text-underline-offset: 0.15em;
}

.gg-ai-confidence-inline-btn:hover {
  color: #49e5c7;
}

.gg-ai-confidence-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gg-ai-confidence-modal[hidden] {
  display: none !important;
}

.gg-ai-confidence-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.28);
  backdrop-filter: blur(10px) brightness(0.72);
  -webkit-backdrop-filter: blur(10px) brightness(0.72);
}

.gg-ai-confidence-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(88vh, 640px);
  overflow: auto;
  margin: 0;
  padding: 1.2rem 1.15rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(53, 224, 194, 0.28);
  background: linear-gradient(165deg, rgba(14, 26, 40, 0.98), rgba(6, 12, 20, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
}

.gg-ai-confidence-modal[data-tone="high"] .gg-ai-confidence-value {
  color: #4ade80;
}

.gg-ai-confidence-modal[data-tone="signal"] .gg-ai-confidence-value {
  color: #35e0c2;
}

.gg-ai-confidence-modal[data-tone="low"] .gg-ai-confidence-value {
  color: #94a3b8;
}

.gg-ai-confidence-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gg-ai-confidence-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.gg-ai-confidence-value {
  margin: 0 0 0.2rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.gg-ai-confidence-tier {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gg-ai-confidence-modal[data-tone="signal"] .gg-ai-confidence-tier {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.32);
}

.gg-ai-confidence-modal[data-tone="high"] .gg-ai-confidence-tier {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
}

.gg-ai-confidence-context {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(53, 224, 194, 0.22);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(53, 224, 194, 0.09), rgba(53, 224, 194, 0.025));
}

.gg-ai-confidence-context[hidden] {
  display: none !important;
}

.gg-ai-confidence-match {
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gg-ai-confidence-pick-line {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.gg-ai-confidence-pick-label {
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gg-ai-confidence-pick-line strong {
  overflow: hidden;
  color: #35e0c2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gg-ai-confidence-pick-line em {
  flex: 0 0 auto;
  color: #f8fafc;
  font-style: normal;
  font-weight: 800;
}

.gg-ai-confidence-intro {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.gg-ai-confidence-intro p {
  margin: 0 0 0.55rem;
}

.gg-ai-confidence-intro p:last-child {
  margin-bottom: 0;
}

.gg-ai-confidence-calc-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(53, 224, 194, 0.85);
}

.gg-ai-confidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: #cbd5e1;
  list-style: none;
}

.gg-ai-confidence-list li {
  position: relative;
  min-width: 0;
  padding: 0.42rem 0.48rem 0.42rem 1.08rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.gg-ai-confidence-list li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.5rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #35e0c2;
  transform: translateY(-50%);
}

.gg-ai-confidence-range-note {
  margin: 0.75rem 0 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.22);
  background: rgba(234, 179, 8, 0.08);
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.gg-ai-confidence-modal[data-tone="high"] .gg-ai-confidence-range-note {
  border-color: rgba(53, 224, 194, 0.22);
  background: rgba(53, 224, 194, 0.08);
}

.gg-ai-confidence-note {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.gg-ai-confidence-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 2px solid #35e0c2;
  border-radius: 999px;
  background: #35e0c2;
  color: #061019;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

/* Global confidence explainer hint */
.gg-confidence-explainer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.gg-confidence-explainer.is-compact {
  gap: 0.28rem;
}

.gg-confidence-hint {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.92);
  text-transform: none;
  cursor: help;
  border-bottom: 1px dotted rgba(148, 163, 184, 0.35);
}

.gg-confidence-hint.is-compact {
  font-size: 0.58rem;
}

.gg-confidence-hint:hover {
  color: #cbd5e1;
}

/* CLV help explainer modal */
.gg-clv-help-trigger {
  cursor: pointer;
}

.gg-clv-help-trigger:focus-visible {
  outline: 2px solid rgba(53, 224, 194, 0.75);
  outline-offset: 2px;
}

.gg-clv-help-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gg-clv-help-modal[hidden] {
  display: none !important;
}

.gg-clv-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.28);
  backdrop-filter: blur(10px) brightness(0.72);
  -webkit-backdrop-filter: blur(10px) brightness(0.72);
}

.gg-clv-help-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(88vh, 640px);
  overflow: auto;
  margin: 0;
  padding: 1.2rem 1.15rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(53, 224, 194, 0.28);
  background: linear-gradient(165deg, rgba(14, 26, 40, 0.98), rgba(6, 12, 20, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
}

.gg-clv-help-modal[data-tone="positive"] .gg-clv-help-value {
  color: #4ade80;
}

.gg-clv-help-modal[data-tone="negative"] .gg-clv-help-value {
  color: #f87171;
}

.gg-clv-help-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gg-clv-help-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.gg-clv-help-value {
  margin: 0 0 0.2rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.gg-clv-help-tier {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gg-clv-help-intro {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.gg-clv-help-intro p {
  margin: 0 0 0.55rem;
}

.gg-clv-help-intro p:last-child {
  margin-bottom: 0;
}

.gg-clv-help-calc-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(53, 224, 194, 0.85);
}

.gg-clv-help-list {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.gg-clv-help-list li + li {
  margin-top: 0.35rem;
}

.gg-clv-help-range-note {
  margin: 0.75rem 0 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(53, 224, 194, 0.22);
  background: rgba(53, 224, 194, 0.08);
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.gg-clv-help-filter-note {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
}

.gg-clv-help-note {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.gg-clv-help-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 2px solid #35e0c2;
  border-radius: 999px;
  background: #35e0c2;
  color: #061019;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

/* ── Search popover v4.2.8.27.828 (match avatars + league intent) ── */
body.gg-layout-shell.livesport-theme .topbar-search-form.is-open input,
body.gg-layout-shell.livesport-theme .topbar-search-form input:focus {
  border-color: rgba(53, 224, 194, 0.38) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 0 1px rgba(53, 224, 194, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.gg-layout-shell.livesport-theme .site-topbar,
body.gg-layout-shell.livesport-theme .topbar-search-shell {
  overflow: visible !important;
}

body.gg-layout-shell.livesport-theme .topbar-search-form {
  position: relative;
  z-index: 1;
}

body.gg-layout-shell.livesport-theme .topbar-search-form.is-open {
  z-index: 320;
}

body.gg-layout-shell.livesport-theme .topbar-search-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, calc(100vw - 1.5rem));
  min-width: min(440px, calc(100vw - 1.5rem));
  padding: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(180deg, rgba(13, 20, 29, 0.99) 0%, rgba(9, 15, 23, 0.995) 100%) !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  overflow: hidden !important;
  z-index: 320 !important;
  min-height: 10rem;
  max-height: min(70vh, 520px);
}

body.gg-layout-shell.livesport-theme .topbar-search-dropdown.show {
  display: flex !important;
}

.search-popover-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.45rem 0.5rem 0.65rem;
}

.search-section {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  padding: 0.28rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.search-section--countries {
  background: rgba(251, 191, 36, 0.04);
  border: 1px solid rgba(251, 191, 36, 0.08);
}

.search-section--clubs {
  background: rgba(53, 224, 194, 0.035);
  border: 1px solid rgba(53, 224, 194, 0.08);
}

.search-section--leagues,
.search-section--matches {
  background: rgba(99, 102, 241, 0.035);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem 0.25rem;
}

.search-section-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.82);
}

.search-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: rgba(53, 224, 194, 0.12);
  border: 1px solid rgba(53, 224, 194, 0.22);
  color: #7ef0dc;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.search-section + .search-section-head {
  margin-top: 0.15rem;
}

.search-result-row.is-compact {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.5rem 0.55rem;
  border-radius: 11px;
  border: 1px solid transparent;
}

.search-result-row.is-compact.is-country {
  background: rgba(255, 255, 255, 0.02);
}

.search-result-row.is-compact.is-club {
  background: rgba(255, 255, 255, 0.015);
}

.search-result-row.is-compact .search-result-copy {
  gap: 0.18rem;
  min-width: 0;
}

.search-result-row.is-compact .search-result-copy strong {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f3f7fb;
  -webkit-line-clamp: 1;
}

.search-result-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
  font-size: 0.73rem;
  line-height: 1.25;
  color: rgba(148, 163, 184, 0.92);
}

.search-result-meta-line--country {
  color: rgba(251, 191, 36, 0.82);
}

.search-compact-meta-logo--flag {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.search-compact-meta-logo--flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.search-result-meta-line--competition {
  color: rgba(186, 198, 214, 0.95);
}

.search-result-meta-line--competition .league-logo-badge.xs {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
}

.search-result-meta-line--competition .league-logo-badge.xs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
}

.search-result-meta-line--competition .league-logo-badge.xs .league-logo-badge-fallback,
.search-result-meta-line--competition .league-logo-badge.xs span {
  font-size: 0.48rem;
  font-weight: 800;
  color: #64748b;
}

.search-result-meta-line > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-kind-badge {
  flex: 0 0 auto;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.04);
}

.search-kind-badge--country {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.08);
}

.search-kind-badge--club {
  color: #7ef0dc;
  border-color: rgba(53, 224, 194, 0.22);
  background: rgba(53, 224, 194, 0.08);
}

.search-kind-badge--league {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(139, 92, 246, 0.08);
}

.search-kind-badge--match {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.08);
}

.search-result-favorite {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: rgba(148, 163, 184, 0.88);
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.search-result-favorite > span {
  display: none !important;
}

.search-result-favorite::before {
  content: "☆";
  font-size: 1.72rem;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 1;
}

.search-result-favorite:hover,
.search-result-favorite:focus-visible {
  color: #facc15;
  background: rgba(250, 204, 21, 0.08) !important;
  outline: none;
}

.search-result-favorite:focus-visible {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.35) !important;
}

.search-result-favorite.is-saved {
  color: #facc15;
}

.search-result-favorite.is-saved::before {
  content: "★";
  font-size: 1.42rem;
}

.search-result-favorite:active {
  transform: scale(0.9);
}

.search-compact-meta-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-compact-meta-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 1px;
}

.search-result-row.is-compact .search-result-icon {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.search-result-row.is-compact.is-match {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.search-result-row.is-compact .search-result-icon--match {
  width: 58px;
  height: 40px;
  min-width: 58px;
  min-height: 40px;
  overflow: visible;
}

.search-result-icon--team .team-avatar.md,
.search-result-icon--league img,
.search-result-icon--league .league-logo-badge.sm {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  background: #fff;
}

.search-result-icon--team.is-country .team-avatar.md {
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.12);
}

.search-result-icon--team.is-club .team-avatar.md {
  border-color: rgba(53, 224, 194, 0.2);
}

.search-result-icon--team .team-avatar.md img,
.search-result-icon--league img,
.search-result-icon--league .league-logo-badge.sm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  background: #fff;
}

.search-result-icon--team .team-avatar.is-flag,
.search-result-icon--match .team-avatar.is-flag {
  border-radius: 999px;
}

.search-result-icon--team .team-avatar.is-flag img,
.search-result-icon--match .team-avatar.is-flag img {
  object-fit: cover;
  padding: 0;
}

.search-result-icon--league .league-logo-badge.sm {
  position: relative;
}

.search-result-icon--league .league-logo-badge.sm .league-logo-badge-fallback,
.search-result-icon--league .league-logo-badge.sm span {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
}

.search-result-icon--match {
  position: relative;
  width: 58px;
  height: 40px;
  flex: 0 0 58px;
}

.search-result-icon--universal {
  display: grid;
  place-items: center;
}

.search-match-universal {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 1.05rem;
  line-height: 1;
}

.search-unknown-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: rgba(148, 163, 184, 0.92);
  font-size: 1rem;
  font-weight: 800;
}

.search-match-avatar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.search-match-avatar.is-home {
  left: 0;
  z-index: 2;
}

.search-match-avatar.is-away {
  right: 0;
  z-index: 1;
}

.search-match-avatar .team-avatar.md {
  width: 34px;
  height: 34px;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.team-avatar img.is-loaded ~ .team-avatar-fallback,
.team-avatar:has(> img.is-loaded) .team-avatar-fallback {
  opacity: 0;
}

.search-result-icon--fallback {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1rem;
}

.search-result-row.is-compact:hover,
.search-result-row.is-compact.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.search-result-row.is-compact.is-country:hover,
.search-result-row.is-compact.is-country.active {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.16);
}

.search-result-row.is-compact.is-match {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  background: rgba(59, 130, 246, 0.02);
}

.search-result-row.is-compact.is-match:hover,
.search-result-row.is-compact.is-match.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.16);
}

.search-result-row.is-compact.is-league:hover,
.search-result-row.is-compact.is-league.active {
  background: rgba(139, 92, 246, 0.07);
  border-color: rgba(139, 92, 246, 0.14);
}

.search-result-row.is-compact.is-club:hover,
.search-result-row.is-compact.is-club.active {
  background: rgba(53, 224, 194, 0.07);
  border-color: rgba(53, 224, 194, 0.14);
}

.search-result-row.is-compact .search-result-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.search-popover-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.85rem 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(148, 163, 184, 0.82);
  font-size: 0.68rem;
}

.search-popover-footer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  text-align: center;
  white-space: nowrap;
  color: rgba(148, 163, 184, 0.72);
}

.search-popover-footer-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.2rem;
  padding: 0 0.32rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1;
}

.search-empty {
  padding: 1.1rem 0.85rem 0.85rem;
}

/* v923 — mobile search defers to football-only.css overlay */

/* ── v899 mobile scroll: single document scroll, horizontal strips don't steal vertical swipe ── */
@media (max-width: 959px) {
  html:has(body.gg-layout-shell),
  html.gg-pwa-standalone {
    height: auto !important;
    min-height: 100%;
    /* WebKit can stop painting dynamically replaced cards when both html and body
       use overflow:clip. Keep one native document scroller and clip only at root. */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: none;
    scroll-behavior: auto;
  }

  body.gg-layout-shell {
    height: auto !important;
    min-height: 100%;
    overflow: visible;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: auto;
  }

  body.gg-layout-shell .gg-mat-date-pills,
  body.gg-layout-shell .date-strip,
  body.gg-layout-shell .home-filter-strip,
  body.gg-layout-shell .gg-pred-period,
  body.gg-layout-shell .gg-pred-tabbar,
  body.gg-layout-shell .gg-st-date-strip-track {
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }
}

/* v922 — mobile search: simple scroll lock, shell stays in topbar */
@media (max-width: 959px) {
  html.mobile-search-open,
  html:has(body.mobile-search-open) {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.gg-layout-shell.mobile-search-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  /* The date strip is fixed above ordinary page chrome on Matches. Once the
     full-screen search opens, lift its owning topbar above that stacking
     context and make the hidden strip unable to intercept search controls. */
  body.gg-layout-shell.mobile-search-open .site-topbar {
    z-index: 10040 !important;
  }

  body.mobile-search-open #matches-date-bar {
    pointer-events: none !important;
  }
}

/* ── v902 mobile full-height: bottom-nav inset + compact footer above nav ── */
@media (max-width: 959px) {
  body.gg-layout-shell {
    --gg-bottom-nav-h: calc(68px + env(safe-area-inset-bottom, 0px));
    min-height: 100dvh;
  }

  body.gg-layout-shell.gg-footer-compact-page .site-trust-footer.site-footer-compact {
    display: block !important;
    margin-top: 0.65rem;
    padding-top: 0.85rem;
    padding-bottom: var(--gg-bottom-nav-h);
  }

  body.gg-layout-shell.gg-footer-compact-page main.site-shell.football-shell,
  body.gg-layout-shell.gg-footer-compact-page .nt-hub-shell {
    padding-bottom: 0.35rem !important;
    min-height: 0 !important;
  }

  body.gg-layout-shell.gg-footer-compact-page .matches-page-wrap,
  body.gg-layout-shell.gg-footer-compact-page .predictions-page-wrap,
  body.gg-layout-shell.gg-footer-compact-page .performance-page-shell,
  body.gg-layout-shell.gg-footer-compact-page .gg-smart-ticket-page-wrap {
    padding-bottom: 0 !important;
  }

  body.gg-layout-shell.gg-landing-page {
    padding-bottom: 0 !important;
    min-height: auto !important;
  }
}

/* ── v909 mobile bottom nav: one row only (hide Menu item; 5 nav slots) ── */
@media (max-width: 720px) {
  body.gg-layout-shell {
    padding-bottom: 0 !important;
  }

  /* Reserve bottom-nav + compact footer space before JS injects #site-trust-footer. */
  body.gg-layout-shell.gg-public-page::after {
    content: "";
    display: block;
    height: calc(var(--gg-bottom-nav-h, 68px) + 5.5rem);
    pointer-events: none;
  }

  body.gg-layout-shell.gg-footer-compact-page::after,
  body.gg-layout-shell.gg-footer-full-page::after,
  body.gg-layout-shell.gg-landing-page::after {
    display: none;
  }

  body.gg-layout-shell .bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    grid-auto-rows: 0 !important;
    overflow: hidden;
    align-content: center;
    height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0.38rem 0.45rem calc(0.38rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.gg-layout-shell .bottom-nav .bottom-menu-trigger {
    display: none !important;
  }

  /* SVG bottom-nav icons (Results / core injectShell). Scoped so emoji tabs stay visible. */
  body.gg-layout-shell .bottom-nav[data-gg-nav-svg="1"] a .icon {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    line-height: 0;
    color: rgba(201, 215, 232, 0.72);
  }

  body.gg-layout-shell .bottom-nav[data-gg-nav-svg="1"] a .icon svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
  }

  body.gg-layout-shell .bottom-nav[data-gg-nav-svg="1"] a.active .icon,
  body.gg-layout-shell .bottom-nav[data-gg-nav-svg="1"] a:hover .icon {
    color: currentColor;
  }

  body.livesport-theme.gg-layout-shell .bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ── v910 PWA: stack main nav on chrome with zero gap (must follow v909) ──
   Browser (Safari/Chrome): keep bottom-nav docked at bottom:0.
   Installed PWA only: lift nav by chrome height. Never use minimal-ui/fullscreen. */
@media (max-width: 959px) {
  body.gg-layout-shell:not(.gg-pwa-standalone) .bottom-nav,
  html:not(.gg-pwa-standalone) body.gg-layout-shell .bottom-nav,
  body.livesport-theme.gg-layout-shell:not(.gg-pwa-standalone) .bottom-nav {
    bottom: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.gg-pwa-standalone.gg-layout-shell,
  html.gg-pwa-standalone body.gg-layout-shell {
    --gg-bottom-nav-h: calc(68px + var(--gg-pwa-chrome-h, 48px) + var(--gg-sab, env(safe-area-inset-bottom, 0px)));
  }

  body.gg-pwa-standalone.gg-layout-shell .bottom-nav,
  html.gg-pwa-standalone body.gg-layout-shell .bottom-nav,
  body.gg-pwa-standalone.livesport-theme.gg-layout-shell .bottom-nav,
  html.gg-pwa-standalone body.livesport-theme.gg-layout-shell .bottom-nav {
    bottom: calc(var(--gg-pwa-chrome-h, 48px) + var(--gg-sab, env(safe-area-inset-bottom, 0px))) !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 0.38rem 0.45rem !important;
    margin: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

@media (max-width: 959px) and (display-mode: standalone) {
  body.gg-pwa-standalone.gg-layout-shell {
    --gg-bottom-nav-h: calc(68px + var(--gg-pwa-chrome-h, 48px) + var(--gg-sab, env(safe-area-inset-bottom, 0px)));
  }

  body.gg-pwa-standalone.gg-layout-shell .bottom-nav,
  body.gg-pwa-standalone.livesport-theme.gg-layout-shell .bottom-nav {
    bottom: calc(var(--gg-pwa-chrome-h, 48px) + var(--gg-sab, env(safe-area-inset-bottom, 0px))) !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 0.38rem 0.45rem !important;
    margin: 0 !important;
    border-bottom: 0 !important;
    transform: none !important;
  }
}

/* ── Accessibility: skip link + JS fallback H1 ── */
.gg-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200001;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: #35e0c2;
  color: #061019;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}

.gg-skip-link:focus,
.gg-skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gg-fallback-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.js-ready .gg-fallback-page-title {
  display: none;
}

/* Info pages — hide desktop topbar nav on mobile (beats page-specific CSS load order) */
@media (max-width: 720px) {
  body.gg-layout-shell.livesport-theme.gg-info-shell .site-topbar .topbar-nav.unified-topbar-nav,
  body.gg-layout-shell.livesport-theme.gg-info-shell .site-topbar .topbar-nav,
  body.gg-layout-shell.livesport-theme[data-page="how"] .site-topbar .topbar-nav.unified-topbar-nav,
  body.gg-layout-shell.livesport-theme[data-page="strategy"] .site-topbar .topbar-nav.unified-topbar-nav,
  body.gg-layout-shell.livesport-theme[data-page="glossary"] .site-topbar .topbar-nav.unified-topbar-nav,
  body.gg-layout-shell.livesport-theme[data-page="changelog"] .site-topbar .topbar-nav.unified-topbar-nav,
  body.gg-layout-shell.livesport-theme[data-page="privacy"] .site-topbar .topbar-nav.unified-topbar-nav,
  body.gg-layout-shell.livesport-theme[data-page="responsible"] .site-topbar .topbar-nav.unified-topbar-nav,
  body.gg-layout-shell.livesport-theme[data-page="contact"] .site-topbar .topbar-nav.unified-topbar-nav {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
  }
}

/* Info pages — mobile search must stay full-screen (beats page-specific topbar width rules) */
@media (max-width: 720px) {
  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="how"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="strategy"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="glossary"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="changelog"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="privacy"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="responsible"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="contact"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="team"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="match"] .topbar-search-shell.is-mobile-open,
  body.gg-layout-shell.livesport-theme[data-page="league"] .topbar-search-shell.is-mobile-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    flex: none !important;
    transform: none !important;
    z-index: 10050 !important;
    overflow: hidden !important;
  }

  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-search-shell.is-mobile-open .topbar-search-form,
  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-search-shell.is-mobile-open .topbar-search-dropdown,
  body.gg-layout-shell.livesport-theme.gg-info-shell .topbar-search-shell.is-mobile-open .topbar-search-dropdown.show,
  body.gg-layout-shell.livesport-theme[data-page="team"] .topbar-search-shell.is-mobile-open .topbar-search-form,
  body.gg-layout-shell.livesport-theme[data-page="team"] .topbar-search-shell.is-mobile-open .topbar-search-dropdown,
  body.gg-layout-shell.livesport-theme[data-page="team"] .topbar-search-shell.is-mobile-open .topbar-search-dropdown.show,
  body.gg-layout-shell.livesport-theme[data-page="match"] .topbar-search-shell.is-mobile-open .topbar-search-form,
  body.gg-layout-shell.livesport-theme[data-page="match"] .topbar-search-shell.is-mobile-open .topbar-search-dropdown,
  body.gg-layout-shell.livesport-theme[data-page="match"] .topbar-search-shell.is-mobile-open .topbar-search-dropdown.show,
  body.gg-layout-shell.livesport-theme[data-page="league"] .topbar-search-shell.is-mobile-open .topbar-search-form,
  body.gg-layout-shell.livesport-theme[data-page="league"] .topbar-search-shell.is-mobile-open .topbar-search-dropdown,
  body.gg-layout-shell.livesport-theme[data-page="league"] .topbar-search-shell.is-mobile-open .topbar-search-dropdown.show {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* One-time AI Confidence legend (cards show number only) */
.gg-confidence-legend,
.gg-confidence-legend-host {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(203, 213, 225, 0.88);
  font-size: 0.78rem;
  line-height: 1.35;
}
.gg-confidence-legend[hidden],
.gg-confidence-legend-host[hidden] {
  display: none !important;
}
.gg-confidence-legend-btn {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(53, 224, 194, 0.45);
  background: rgba(53, 224, 194, 0.12);
  color: #7ef0dc;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.gg-confidence-legend-btn:hover {
  background: rgba(53, 224, 194, 0.22);
}
.gg-pred-layer-legend:not([hidden]) {
  display: block;
  margin: 0.35rem 0 0.85rem;
}
.gg-pred-layer-legend .gg-confidence-legend {
  margin: 0;
}
/* hide per-card confidence prose — use legend + modal instead */
.gg-confidence-explainer .gg-confidence-hint,
.gg-mat-strip-conf .gg-confidence-hint,
.gg-res-row-conf .gg-confidence-hint,
.gg-md-confidence-explainer .gg-confidence-hint {
  display: none !important;
}

/* Search v4.2.8.30 — complete Livesport-style grouped results */
@media (min-width: 721px) {
  body.gg-layout-shell.livesport-theme .topbar-search-dropdown {
    width: min(640px, calc(100vw - 2rem)) !important;
    min-width: min(560px, calc(100vw - 2rem)) !important;
    max-height: min(76vh, 680px) !important;
    border-radius: 20px !important;
    border-color: rgba(94, 234, 212, 0.16) !important;
    background:
      radial-gradient(circle at 8% 0%, rgba(53, 224, 194, 0.055), transparent 34%),
      linear-gradient(180deg, rgba(12, 20, 29, 0.995), rgba(7, 13, 20, 0.998)) !important;
    box-shadow: 0 30px 68px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.035) inset !important;
  }
}

body.gg-layout-shell.livesport-theme .search-popover-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.52) rgba(255, 255, 255, 0.035);
  overscroll-behavior: contain;
}

body.gg-layout-shell.livesport-theme .search-popover-body::-webkit-scrollbar {
  width: 9px;
}

body.gg-layout-shell.livesport-theme .search-popover-body::-webkit-scrollbar-track {
  margin: 8px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

body.gg-layout-shell.livesport-theme .search-popover-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.52);
  background-clip: padding-box;
}

body.gg-layout-shell.livesport-theme .search-section-head {
  position: sticky;
  top: -0.45rem;
  z-index: 3;
  margin-top: 0.3rem;
  padding: 0.75rem 0.65rem 0.42rem;
  background: linear-gradient(180deg, #0b141d 72%, rgba(11, 20, 29, 0));
}

body.gg-layout-shell.livesport-theme .search-section-title {
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  color: rgba(226, 232, 240, 0.78);
}

body.gg-layout-shell.livesport-theme .search-section {
  gap: 0.26rem;
  margin-bottom: 0.55rem;
  padding: 0.34rem;
  border-radius: 15px;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact {
  min-height: 3.7rem;
  padding: 0.58rem 0.68rem;
  border-radius: 13px;
}

body.gg-layout-shell.livesport-theme .search-result-icon--team .team-avatar.md,
body.gg-layout-shell.livesport-theme .search-result-icon--league .league-logo-badge.sm {
  width: 46px;
  height: 46px;
}

.search-loading {
  display: flex;
  min-height: 12rem;
  padding: 2.25rem 1.25rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.search-loading strong {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
}

.search-loading > span:last-child {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.76rem;
}

.search-loading-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 0.2rem;
  border: 3px solid rgba(53, 224, 194, 0.16);
  border-top-color: #35e0c2;
  border-radius: 999px;
  animation: gg-search-spin 0.72s linear infinite;
}

@keyframes gg-search-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .search-loading-spinner { animation-duration: 1.8s; }
}

/* Search v4.2.8.31 — centred, account-aware universal search */
.search-modal-head,
.gg-search-backdrop {
  display: none;
}

@media (min-width: 721px) {
  body.search-modal-open {
    overflow: hidden;
  }

  body.search-modal-open .site-topbar {
    z-index: 9000 !important;
  }

  body.search-modal-open .site-topbar > :not(.topbar-search-shell) {
    opacity: 0.16;
    pointer-events: none;
  }

  body.search-modal-open .topbar-search-shell {
    z-index: 9001 !important;
  }

  .gg-search-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 8, 14, 0.76);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 190;
    cursor: default;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open {
    display: flex;
    flex-direction: column;
    position: fixed !important;
    top: clamp(52px, 8vh, 92px);
    left: 50%;
    width: min(650px, calc(100vw - 2rem)) !important;
    max-height: min(820px, calc(100dvh - 104px));
    padding: 0.95rem;
    border: 1px solid rgba(94, 234, 212, 0.18);
    border-radius: 22px;
    background:
      radial-gradient(circle at 90% -12%, rgba(53, 224, 194, 0.09), transparent 34%),
      linear-gradient(180deg, #0c1620 0%, #08111a 100%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.045);
    transform: translateX(-50%);
    z-index: 9000;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open .search-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 0.15rem 0.75rem 0.25rem;
  }

  .search-modal-head strong {
    color: #f8fafc;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
  }

  .search-modal-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #cbd5e1;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
  }

  .search-modal-close:hover,
  .search-modal-close:focus-visible {
    border-color: rgba(53, 224, 194, 0.38);
    color: #fff;
    outline: none;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open > .topbar-search-icon {
    top: 77px;
    left: 1.95rem;
    z-index: 2;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open > input {
    flex: 0 0 auto;
    width: 100% !important;
    min-height: 52px;
    padding-left: 2.8rem;
    padding-right: 1rem;
    border-radius: 14px;
    border-color: rgba(53, 224, 194, 0.24) !important;
    background: rgba(2, 8, 14, 0.54) !important;
    font-size: 0.94rem;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open .topbar-search-dropdown,
  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open .topbar-search-dropdown.show {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: min(680px, calc(100dvh - 224px)) !important;
    margin-top: 0.75rem;
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(3, 10, 16, 0.62) !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

.search-section--players {
  border: 1px solid rgba(56, 189, 248, 0.1);
  background: rgba(56, 189, 248, 0.035);
}

.search-section--recent {
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.022);
}

.search-result-icon--player {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px !important;
  height: 46px !important;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.24) !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #183042, #0c1721) !important;
}

.search-result-icon--player img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-player-photo-fallback {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
}

.search-kind-badge--player,
.search-result-row.is-player .search-result-type {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.08);
}

.search-history-clear {
  padding: 0.25rem 0.4rem;
  border: 0;
  background: transparent;
  color: #5eead4;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.search-result-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-match {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-icon--match,
body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--match {
  width: 48px !important;
  height: 36px !important;
}

body.gg-layout-shell.livesport-theme .search-result-icon--match .search-match-avatar .team-avatar.md {
  width: 30px !important;
  height: 30px !important;
}

.search-history-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7f8ea3;
  font-size: 1.2rem;
  cursor: pointer;
}

.search-history-remove:hover,
.search-history-remove:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

@media (max-width: 720px) {
  .search-modal-head,
  .gg-search-backdrop {
    display: none !important;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--player {
    width: 46px !important;
    height: 46px !important;
  }
}

/* Search v4.2.8.32 — denser result rows with clear labels and usable targets */
body.gg-layout-shell.livesport-theme .search-popover-body {
  padding: 0.3rem 0.42rem 0.5rem;
}

body.gg-layout-shell.livesport-theme .search-section-head {
  margin-top: 0.16rem;
  padding: 0.5rem 0.52rem 0.3rem;
}

body.gg-layout-shell.livesport-theme .search-section {
  gap: 0.16rem;
  margin-bottom: 0.34rem;
  padding: 0.24rem;
  border-radius: 12px;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.3rem 0.52rem;
  border-radius: 10px;
}

body.gg-layout-shell.livesport-theme .search-result-icon--team .team-avatar.md,
body.gg-layout-shell.livesport-theme .search-result-icon--league .league-logo-badge.sm,
body.gg-layout-shell.livesport-theme .search-result-icon--player {
  width: 38px !important;
  height: 38px !important;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-copy strong {
  font-size: 0.86rem;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-meta-line {
  gap: 0.3rem;
  font-size: 0.66rem;
}

body.gg-layout-shell.livesport-theme .search-result-favorite {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

body.gg-layout-shell.livesport-theme .search-result-favorite::before {
  font-size: 1.45rem;
}

body.gg-layout-shell.livesport-theme .search-result-favorite.is-saved::before {
  font-size: 1.22rem;
}

@media (max-width: 720px) {
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-popover-body {
    padding: 0.38rem 0.4rem 0.55rem;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-row.is-compact {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.5rem;
    min-height: 3.15rem;
    padding: 0.32rem 0.45rem;
    border-radius: 10px;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--team .team-avatar.md,
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--league .league-logo-badge.sm,
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--player {
    width: 40px !important;
    height: 40px !important;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-favorite {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Search v4.2.8.33 — relevance-first list inspired by Livesport */
body.gg-layout-shell.livesport-theme .search-idle-hint {
  margin: 0;
  padding: 0.45rem 0.78rem 0.35rem;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.4;
}

body.gg-layout-shell.livesport-theme .search-section--recent,
body.gg-layout-shell.livesport-theme .search-section--recommended,
body.gg-layout-shell.livesport-theme .search-section--results {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.gg-layout-shell.livesport-theme .search-section--recent .search-result-row.is-compact,
body.gg-layout-shell.livesport-theme .search-section--recommended .search-result-row.is-compact,
body.gg-layout-shell.livesport-theme .search-section--results .search-result-row.is-compact {
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  background: transparent;
}

body.gg-layout-shell.livesport-theme .search-section--recent .search-result-row.is-compact:last-child,
body.gg-layout-shell.livesport-theme .search-section--recommended .search-result-row.is-compact:last-child,
body.gg-layout-shell.livesport-theme .search-section--results .search-result-row.is-compact:last-child {
  border-bottom-color: transparent;
}

body.gg-layout-shell.livesport-theme .search-section--recent .search-result-row.is-compact:hover,
body.gg-layout-shell.livesport-theme .search-section--recent .search-result-row.is-compact.active,
body.gg-layout-shell.livesport-theme .search-section--recommended .search-result-row.is-compact:hover,
body.gg-layout-shell.livesport-theme .search-section--recommended .search-result-row.is-compact.active,
body.gg-layout-shell.livesport-theme .search-section--results .search-result-row.is-compact:hover,
body.gg-layout-shell.livesport-theme .search-section--results .search-result-row.is-compact.active {
  background: rgba(255, 255, 255, 0.065);
}

body.gg-layout-shell.livesport-theme .search-section--recent + .search-section-head,
body.gg-layout-shell.livesport-theme .search-section--recommended + .search-section-head {
  margin-top: 0.65rem;
}

/* Search v4.2.8.34 — one visual language for every result type */
body.gg-layout-shell.livesport-theme .search-section--countries,
body.gg-layout-shell.livesport-theme .search-section--clubs,
body.gg-layout-shell.livesport-theme .search-section--leagues,
body.gg-layout-shell.livesport-theme .search-section--matches,
body.gg-layout-shell.livesport-theme .search-section--players,
body.gg-layout-shell.livesport-theme .search-section--recent,
body.gg-layout-shell.livesport-theme .search-section--recommended,
body.gg-layout-shell.livesport-theme .search-section--results {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact,
body.gg-layout-shell.livesport-theme .search-section--recent .search-result-row.is-compact,
body.gg-layout-shell.livesport-theme .search-section--recommended .search-result-row.is-compact,
body.gg-layout-shell.livesport-theme .search-section--results .search-result-row.is-compact {
  border-color: transparent;
  border-bottom-color: rgba(148, 163, 184, 0.08);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: none;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact:hover,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.active,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-country:hover,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-country.active,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-club:hover,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-club.active,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-league:hover,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-league.active,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-player:hover,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-player.active,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-match:hover,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact.is-match.active {
  border-color: transparent;
  border-bottom-color: rgba(94, 234, 212, 0.16);
  background: rgba(53, 224, 194, 0.065);
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-copy {
  gap: 0.28rem;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-meta-line,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-meta-line--country,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-meta-line--competition,
body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-meta-line--player {
  gap: 0.46rem;
  color: rgba(160, 174, 194, 0.9);
}

body.gg-layout-shell.livesport-theme .search-result-meta-line--competition .league-logo-badge.xs,
body.gg-layout-shell.livesport-theme .search-compact-meta-logo--flag {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  margin-right: 0.08rem;
  border-color: rgba(148, 163, 184, 0.2);
}

body.gg-layout-shell.livesport-theme .search-result-icon--team .team-avatar.md,
body.gg-layout-shell.livesport-theme .search-result-icon--league .league-logo-badge.sm,
body.gg-layout-shell.livesport-theme .search-result-icon--player,
body.gg-layout-shell.livesport-theme .search-result-icon--match {
  border-color: rgba(148, 163, 184, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.035) !important;
}

/* Search v4.2.8.35 — slightly denser rows and smaller crests/flags */
body.gg-layout-shell.livesport-theme .search-result-row.is-compact {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 0.48rem;
  min-height: 2.75rem;
  padding: 0.24rem 0.46rem;
}

body.gg-layout-shell.livesport-theme .search-result-icon--team .team-avatar.md,
body.gg-layout-shell.livesport-theme .search-result-icon--league .league-logo-badge.sm,
body.gg-layout-shell.livesport-theme .search-result-icon--player,
body.gg-layout-shell.livesport-theme .search-result-icon--match {
  width: 34px !important;
  height: 34px !important;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-copy strong {
  font-size: 0.82rem;
}

body.gg-layout-shell.livesport-theme .search-result-row.is-compact .search-result-meta-line {
  font-size: 0.62rem;
}

body.gg-layout-shell.livesport-theme .search-result-favorite {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}

@media (max-width: 720px) {
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-row.is-compact {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.26rem 0.4rem;
  }

  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--team .team-avatar.md,
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--league .league-logo-badge.sm,
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--player,
  body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-icon--match {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Search v4.2.8.36 — consistent white logo tiles */
body.gg-layout-shell.livesport-theme .search-result-icon--team .team-avatar.md,
body.gg-layout-shell.livesport-theme .search-result-icon--league .league-logo-badge.sm {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2) !important;
}

body.gg-layout-shell.livesport-theme .search-result-icon--team .team-avatar.md img,
body.gg-layout-shell.livesport-theme .search-result-icon--league .league-logo-badge.sm img {
  background: #f8fafc !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  padding: 3px !important;
}

body.gg-layout-shell.livesport-theme .search-result-icon--team .team-avatar.md.is-flag img {
  inset: 4px !important;
  width: calc(100% - 8px) !important;
  height: calc(100% - 8px) !important;
  padding: 0 !important;
  border-radius: 2px !important;
  object-fit: contain !important;
}

body.gg-layout-shell.livesport-theme .search-result-meta-line--competition .league-logo-badge.xs,
body.gg-layout-shell.livesport-theme .search-compact-meta-logo--flag {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 4px;
  background: #f8fafc;
}

body.gg-layout-shell.livesport-theme .search-result-meta-line--competition .league-logo-badge.xs img,
body.gg-layout-shell.livesport-theme .search-compact-meta-logo--flag img {
  object-fit: contain;
  padding: 1px;
  background: #f8fafc;
}

/* Search v4.2.8.37 — player portraits use the same white tile */
body.gg-layout-shell.livesport-theme .search-result-icon--player {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2) !important;
}

body.gg-layout-shell.livesport-theme .search-result-icon--player img {
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 6px;
  object-fit: cover;
  background: #f8fafc;
}

body.gg-layout-shell.livesport-theme .search-result-icon--player .search-player-photo-fallback {
  color: #64748b;
}

/* Search v4.2.8.38 — narrower desktop dialog */
@media (min-width: 721px) {
  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open {
    width: min(580px, calc(100vw - 2rem)) !important;
  }
}


/* Search v4.2.8.39 — stable desktop result viewport */
@media (min-width: 721px) {
  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open .topbar-search-dropdown,
  body.gg-layout-shell.livesport-theme .topbar-search-form.is-open .topbar-search-dropdown.show {
    height: min(560px, calc(100dvh - 260px)) !important;
    min-height: min(420px, calc(100dvh - 260px)) !important;
  }
}

/* Keep the two crests inside compact match history rows. */
body.gg-layout-shell.livesport-theme .topbar-search-shell .search-result-row.is-compact.is-match,
body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-row.is-compact.is-match {
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
}

body.gg-layout-shell.livesport-theme .topbar-search-shell .search-result-row.is-compact.is-match .search-result-icon--match,
body.gg-layout-shell.livesport-theme .topbar-search-shell.is-mobile-open .search-result-row.is-compact.is-match .search-result-icon--match {
  width: 48px !important;
  height: 36px !important;
  min-width: 48px !important;
  min-height: 36px !important;
}

body.gg-layout-shell.livesport-theme .topbar-search-shell .search-result-row.is-compact.is-match .search-match-avatar .team-avatar.md {
  width: 30px !important;
  height: 30px !important;
}
/* Release accessibility baseline: text links remain identifiable without color. */
.gg-secondary-footer-notice a {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #77ead6;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body.livesport-theme .bottom-nav a {
    font-size: .75rem !important;
  }

  body.gg-layout-shell .gg-secondary-footer-bottom p,
  body.gg-layout-shell .gg-secondary-footer-notice,
  body.gg-layout-shell .gg-secondary-footer-age {
    font-size: .75rem;
  }
}
