/* Shared theme layer for pages under /sport/live-line */

html.live-sport-page .rb-home-sports-groups,
html.live-sport-page .rb-home-sub-sports,
html.live-sport-page .rb-home-sports-slider,
html.live-sport-page .rb-sport-submenu-sports {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

html.live-sport-page .rb-home-sports-groups::-webkit-scrollbar,
html.live-sport-page .rb-home-sub-sports::-webkit-scrollbar,
html.live-sport-page .rb-home-sports-slider::-webkit-scrollbar,
html.live-sport-page .rb-sport-submenu-sports::-webkit-scrollbar {
  display: none;
}

html.live-sport-page .rb-home-sports-groups { padding: 10px; }
html.live-sport-page .rb-home-sub-sports { padding: 0 10px 10px; }

html.live-sport-page .rb-home-sport-group,
html.live-sport-page .rb-home-sub-sport,
html.live-sport-page .rb-sport-submenu-sport {
  position: relative;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(245, 255, 251, 0.18),
    inset 0 -1px 0 rgba(22, 24, 23, 0.35),
    0 4px 10px rgba(0, 1, 0, 0.274);
  background:
    linear-gradient(180deg, rgba(206, 255, 190, 0.16), rgba(244, 252, 247, 0) 40%),
    linear-gradient(180deg, rgba(80, 125, 22, 0.78), rgba(14, 78, 47, 0.82));
}

html.live-sport-page .rb-home-sport-group,
html.live-sport-page .rb-home-sub-sport {
  flex: 0 0 69px;
  width: 69px;
  min-width: 69px;
  max-width: 69px;
  min-height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
}

html.live-sport-page .rb-home-sub-sport { min-height: 32px; }

html.live-sport-page .rb-home-sport-group::before,
html.live-sport-page .rb-home-sub-sport::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 48%;
  border-radius: 7px 7px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(249, 255, 251, 0));
  pointer-events: none;
}

html.live-sport-page .rb-home-sport-group span,
html.live-sport-page .rb-home-sub-sport span,
html.live-sport-page .rb-sport-submenu-sport span {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html.live-sport-page .rb-home-sport-group span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

html.live-sport-page .rb-home-sub-sport span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

html.live-sport-page .rb-sport-submenu-sport {
  flex: 0 0 74px;
  width: 74px;
  min-width: 74px;
  max-width: 74px;
  min-height: 60px;
  padding: 8px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

html.live-sport-page .rb-sport-submenu-sport span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

html.live-sport-page .rb-home-sport-group img,
html.live-sport-page .rb-home-sub-sport img,
html.live-sport-page .rb-sport-submenu-sport img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

html.live-sport-page .rb-home-sport-group strong,
html.live-sport-page .rb-home-sub-sport strong,
html.live-sport-page .rb-sport-submenu-sport strong {
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Noto Sans Hebrew", "Noto Sans", Arial, sans-serif;
}

html.live-sport-page .rb-home-sport-group.active,
html.live-sport-page .rb-home-sub-sport.active,
html.live-sport-page .rb-sport-submenu-sport.active {
  border-color: rgba(255, 170, 170, .72) !important;
  background:
    linear-gradient(180deg, rgba(205, 254, 224, 0.12), rgba(244, 249, 247, 0) 30%),
    linear-gradient(180deg, rgba(10, 74, 39, 0.95), rgba(8, 45, 28, 0.97)) !important;
}

@media (max-width: 991px) {
  html.live-sport-page .rb-home-sport-group {
    min-width: 59px;
    min-height: 34px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 4px 6px;
  }

  html.live-sport-page .rb-home-sub-sport {
    min-width: 56px;
    min-height: 28px;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 4px 6px;
  }

  html.live-sport-page .rb-home-sport-group span {
    width: 24px;
    height: 24px;
  }

  html.live-sport-page .rb-home-sub-sport span {
    width: 20px;
    height: 20px;
  }
}
