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

/* 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);
}

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: 40px;
    height: 40px;
  }

  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-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 {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.gg-ai-confidence-list li + li {
  margin-top: 0.35rem;
}

.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: 42px 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-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: 36px;
  height: 36px;
  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: 5px;
  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;
  }
}

/* ── 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;
  }

  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;
  }

  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;
  }
}
