/* Sports overview layout and responsive theme banner. */
@import url("./top-games.css");

/* Keep the collapsed mobile betslip above the bottom navigation in every theme. */
.mobile .bet-slip { bottom: 54px; }
.mobile .bet-slip__container { bottom: 0 !important; top: 0 !important; }
.mobile .wrapper-main-and-footer--bet-slip-opened { padding-bottom: 98px !important; }

/* The mobile accordion sits outside the horizontal category links. */
.fb-overview-category.desktop > div:last-child { display: contents; }
.mobile sports-category > .fb-overview-category.mobile {
  display: block;
  height: auto;
  overflow: visible;
}
.fb-overview-category.mobile > div:last-child {
  display: flex;
  gap: 1px;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fb-overview-category.mobile > div:last-child > .sports-category-item { flex-shrink: 0; }
html.mobile sports-category .fb-overview-category.mobile > .sports-category-item {
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  padding: 6px 12px;
}
.fb-overview-category.mobile > .sports-category-item .sports-category-title {
  color: var(--pmb-txt-E, #333);
  opacity: 1;
}
/* Operator, 2026-11-15: no Top Leagues accordion under the top navigation in the mobile layout. Hidden here; the template in
 * sports-overview.mjs still renders it. The category links below it and the Top Leagues cards (.famous-top-leagues) stay, and
 * the desktop left menu keeps its list. */
html sports-category > .fb-overview-category.mobile > :is(.sports-category-item, .top-leagues-list-container) {
  display: none;
}
.mobile .left-menu-block time-filter { display: block; padding-inline: 6px; }

.desktop prematchdesktopcomponent .prematch_page > :is(.event-list-section, .single-event-section)[hidden] { display: none; }
.desktop prematchdesktopcomponent .prematch_page > :is(.event-list-section, .single-event-section):not([hidden]) {
  width: 100%;
  min-width: 0;
}
.desktop .outlet-block:has(prematchdesktopcomponent .prematch_page) { overflow-y: auto; }

.famous-top-leagues {
  min-width: 0;
  margin: 0 10px 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef0ed;
}
/* Keep the match cards reachable when the overview fills the center column. */
.desktop .outlet-block:has(> .famous-top-leagues:not([hidden])) { overflow-y: auto; }
.famous-top-leagues .famous-top-games__controls { margin-inline-start: auto; }
.famous-top-leagues__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 6px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.famous-top-leagues__track::-webkit-scrollbar { display: none; }
.famous-top-leagues__card {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  max-width: 220px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d6dbd5;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}
.famous-top-leagues__card:hover { border-color: var(--rango-accent, #007f3e); }
.famous-top-leagues__card:focus-visible { outline: 2px solid var(--rango-accent, #007f3e); outline-offset: -2px; }
.famous-top-leagues__card img { flex-shrink: 0; object-fit: contain; }
.famous-top-leagues__card span { overflow: hidden; text-overflow: ellipsis; }
.desktop app-root:not([data-fb-desktop-rail]):has(desktopbetslipcomponent .bet-slip__button) .famous-top-leagues {
  margin-inline-end: 40px;
}
@media (max-width: 767px) {
  .famous-top-leagues { margin-inline: 6px; }
  .famous-top-leagues__track { gap: 6px; }
}

.rango-promo-slider {
  --banner-accent: var(--rango-yellow, #fff200);
  --banner-background: #022e18;
  position: relative;
  display: block;
  margin: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--banner-background);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
html[data-sportsbook-theme="vamos"] .rango-promo-slider { --banner-accent: #6ba3de; --banner-background: #01214a; }
html[data-sportsbook-theme="dashbet"] .rango-promo-slider { --banner-accent: var(--dash-accent, #00ff9d); --banner-background: #011519; }
html[data-sportsbook-theme="dash-yellow"] .rango-promo-slider { --banner-accent: #ffe34d; --banner-background: #211704; }
html[data-sportsbook-theme="dash-red"] .rango-promo-slider { --banner-accent: var(--dash-accent); --banner-background: #23080f; }
html[data-sportsbook-theme="famous-gold"] .rango-promo-slider { --banner-accent: #ffc857; --banner-background: #0f0f0f; }
html[data-sportsbook-theme="famous-violet"] .rango-promo-slider { --banner-accent: #d4b0ff; --banner-background: #1a0726; }
html[data-sportsbook-theme="bet365"] .rango-promo-slider { --banner-accent: #ffe336; --banner-background: #070e0a; }
html[data-sportsbook-theme="draftkings"] .rango-promo-slider { --banner-accent: #a4e356; --banner-background: #020406; }
html[data-sportsbook-theme="fanduel"] .rango-promo-slider { --banner-accent: #70bfff; --banner-background: #011f49; }
html[data-sportsbook-theme="betfair"] .rango-promo-slider { --banner-accent: #ffb80c; --banner-background: #0a0b08; }
html[data-sportsbook-theme="pinnacle"] .rango-promo-slider { --banner-accent: #ff8245; --banner-background: #061529; }
html[data-sportsbook-theme="betway"] .rango-promo-slider { --banner-accent: #5bdf7b; --banner-background: #090909; }
/* Hold the banner at 240px on wide desktops. The artwork scales uniformly
   and blends into a matching background across the rest of the column. */
.rango-promo-slider picture {
  display: block;
  max-width: 720px;
  margin-left: auto;
  mask-image: linear-gradient(to right, transparent, #000 24%);
}
.rango-promo-slider img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto 3 / 1;
}
.rango-promo-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 46%, transparent 65%);
  pointer-events: none;
}
.rango-promo-slider__copy {
  position: absolute;
  inset-block: 0;
  inset-inline-start: clamp(14px, 2.4vw, 34px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  max-width: 49%;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .65);
}
.rango-promo-slider__copy span {
  color: var(--banner-accent);
  font: 700 clamp(10px, 1vw, 14px)/1.2 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rango-promo-slider__copy h2 {
  margin: 0;
  color: inherit;
  font: 700 clamp(22px, 2.9vw, 40px)/1.02 robotocondensed-bold-webfont, "Roboto Condensed", Arial, sans-serif;
  text-wrap: balance;
}
.mobile .rango-promo-slider { margin: 6px; border-radius: 6px; box-shadow: none; }
@media (max-width: 767px) {
  .rango-promo-slider picture { max-width: none; mask-image: none; }
  .rango-promo-slider img { aspect-ratio: auto 47 / 20; }
  .rango-promo-slider__copy h2 { font-size: clamp(18px, 6vw, 30px); }
}
