@import url("source-layout.css");

:root {
  --static-focus-color: #00a6ff;
}

.static-home__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.static-carousel {
  --carousel-card-width: 85.7333vw;
  --carousel-step: 87.86663vw;
  --carousel-index: 0;

  touch-action: pan-y;
}

.static-carousel__track {
  transform: translate3d(
    calc((100% - var(--carousel-card-width)) / 2 - var(--carousel-step) * var(--carousel-index)),
    0,
    0
  );
  transition: transform 0.3s ease;
}

.static-carousel__slide {
  z-index: 10;
  transform: scale(0.933125972, 0.933333333);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.static-carousel__slide.is-carousel-active {
  z-index: 11;
  transform: scale(1.066874028, 1.066666667);
  transform-origin: top;
}

.static-carousel--compact {
  --carousel-card-width: 91.4667vw;
  --carousel-step: 93.60003vw;
}

.static-carousel--slide-0 {
  --carousel-index: 0;
}

.static-carousel--slide-1 {
  --carousel-index: 1;
}

.static-carousel--slide-2 {
  --carousel-index: 2;
}

.static-carousel--slide-3 {
  --carousel-index: 3;
}

.static-carousel--slide-4 {
  --carousel-index: 4;
}

.static-carousel--compact .static-carousel__slide {
  transform: none;
}

.static-carousel__timer {
  width: 0;
}

.static-carousel__timer--active {
  width: 100%;
  animation: progressing 4s linear;
}

.static-menu {
  overflow-y: auto;
}

.static-menu--open {
  transform: translate3d(0, 0, 0);
}

.static-menu__close {
  position: absolute;
  top: 2.66667vw;
  left: 29vw;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8vw;
  height: 8vw;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--shared_theme_primary);
  cursor: pointer;
  background: var(--shared_theme_color);
}

.static-menu__trigger {
  cursor: pointer;
}

.static-menu__accordion-body {
  pointer-events: none;
}

.static-menu__accordion-body--open {
  pointer-events: auto;
}

.is-menu-open {
  overflow: hidden;
}

.static-about--expanded {
  max-height: none;
}

:focus-visible {
  outline: 2px solid var(--static-focus-color);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .static-carousel__track,
  .static-carousel__slide {
    transition: none;
  }

  .static-carousel__timer--active {
    animation: none;
  }
}

.home-page[data-brand="F1"] {
  --shared_theme_primary: #49a3fd;
  --home-primary: #49a3fd;
  --home-surface: #f5f5f5;
  --home-white: #fff;
  --home-muted: #818881;
  --home-border: #e6f1ff;
  --home-league-badge: #c9242b;
  --home-crest: #2859a0;
  --home-saba-brand: #c94b33;
  --home-saba-text: #404540;
  --home-gutter: 4.26667vw;
  --home-gap: 2.13333vw;
}

.home-page .home-header {
  background-color: var(--home-primary);
}

.home-tabs {
  border-bottom: 1px solid var(--home-border);
}

.home-tab--active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 2.66667vw;
  height: 0.53333vw;
  border-radius: 1.06667vw;
  margin: auto;
  content: "";
  background-color: var(--home-primary);
}

.home-tab--marked::after {
  position: absolute;
  top: 3.2vw;
  right: -1.06667vw;
  width: 1.06667vw;
  height: 1.06667vw;
  border-radius: 50%;
  content: "";
  background-color: var(--home-league-badge);
}

.home-sports {
  margin-bottom: 0;
}

.match-preview {
  margin-top: 8.53333vw;
  margin-bottom: 6.4vw;
  color: var(--home-muted);
}

.match-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.33333vw;
  margin-bottom: 2.13333vw;
}

.match-preview__heading {
  margin: 0;
  line-height: 0;
}

.match-preview__wordmark {
  position: relative;
  display: inline-block;
  padding-top: 1.6vw;
  font-size: 3.46667vw;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.13333vw;
  color: var(--home-saba-text);
}

.match-preview__brand {
  color: var(--home-saba-brand);
}

.match-preview__since {
  position: absolute;
  top: 0;
  left: 48%;
  font-size: 1.33333vw;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
}

.match-preview__more {
  display: flex;
  align-items: center;
  gap: 1.06667vw;
  color: var(--home-muted);
  font-size: 3.46667vw;
  font-weight: 600;
  text-decoration: none;
}

.match-preview__arrow {
  width: 4.26667vw;
  height: 4.26667vw;
  flex-shrink: 0;
}

.match-preview__track {
  display: flex;
  gap: 2.66667vw;
  padding: 0.53333vw 0 1.06667vw;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.match-preview__card {
  flex: 0 0 82.66667%;
  min-width: 0;
  padding: 1.06667vw 2.13333vw 2.13333vw;
  border-radius: 2.66667vw;
  background-color: var(--home-surface);
  box-shadow: 0 0 0.8vw rgb(0 0 0 / 12%);
  scroll-snap-align: start;
}

.match-preview__league {
  display: flex;
  align-items: center;
  gap: 1.6vw;
  min-height: 5.33333vw;
  color: var(--home-muted);
  text-decoration: none;
}

.match-preview__league-name {
  flex: 1;
  overflow: hidden;
  font-size: 2.66667vw;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.match-preview__league-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8vw;
  height: 4.26667vw;
  flex-shrink: 0;
  font-size: 3.2vw;
  color: var(--home-white);
  background-color: var(--home-league-badge);
}

.match-preview__league-badge--italy {
  color: var(--home-crest);
  background-color: var(--home-white);
}

.match-preview__teams {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  min-height: 18.66667vw;
  padding: 2.13333vw 1.06667vw;
  border-radius: 1.06667vw;
  margin-top: 0.8vw;
  background-color: var(--home-white);
}

.match-preview__team,
.match-preview__schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 2.13333vw;
  text-align: center;
}

.match-preview__crest {
  display: block;
  width: 5.86667vw;
  height: 5.86667vw;
}

.match-preview__crest--text {
  border: 1px solid var(--home-crest);
  border-radius: 50%;
  font-size: 4.26667vw;
  line-height: 5.86667vw;
  color: var(--home-crest);
}

.match-preview__team-name {
  font-size: 2.93333vw;
  line-height: 1.1;
}

.match-preview__date {
  font-size: 2.93333vw;
  font-weight: 600;
  line-height: 1.2;
}

.match-preview__ball {
  width: 4.8vw;
  height: 4.8vw;
}

.match-preview__market {
  margin: 1.06667vw 0;
  font-size: 3.2vw;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.match-preview__odds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-gap);
}

.match-preview__odd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.06667vw;
  min-height: 8.53333vw;
  padding: 1.6vw 2.66667vw;
  border-radius: 1.33333vw;
  color: var(--home-white);
  font-size: 2.93333vw;
  text-decoration: none;
  background-color: var(--home-primary);
}

.match-preview__price {
  font-size: 3.46667vw;
  font-weight: 600;
}
