/*
 * FindBestBet Last 5 averages.
 */

#fbbLast5Averages {
  position:relative;

  margin:
    18px 0;

  padding:
    20px;

  overflow:hidden;

  border:
    1px solid
    rgba(148,163,184,.14) !important;

  border-radius:
    18px;

  background:
    linear-gradient(
      145deg,
      rgba(56,189,248,.045),
      rgba(18,24,35,.99) 31%,
      rgba(18,24,35,.99) 70%,
      rgba(139,92,246,.045)
    ) !important;

  box-shadow:
    0 20px 58px
    rgba(0,0,0,.19);
}


#fbbLast5Averages::before {
  content:"";

  position:absolute;
  top:0;
  left:24px;
  right:24px;

  height:1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(56,189,248,.72),
      rgba(139,92,246,.64),
      transparent
    );
}


.fbb-last5-heading {
  margin-bottom:16px;

  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}


.fbb-last5-heading h2 {
  margin:0;

  color:#f8fafc;

  font-family:
    "Oswald",
    "Arial Narrow",
    sans-serif;

  font-size:
    clamp(20px,3vw,27px);

  line-height:1.15;
}


.fbb-last5-subtitle {
  margin:
    5px 0 0;

  color:#8a98aa;

  font-size:12px;
}


.fbb-last5-badge {
  padding:
    6px 9px;

  border:
    1px solid
    rgba(56,189,248,.22);

  border-radius:999px;

  color:#bae6fd;

  background:
    rgba(56,189,248,.07);

  font-size:9px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}


.fbb-last5-team-head,
.fbb-last5-row {
  display:grid;

  grid-template-columns:
    minmax(150px,1.2fr)
    minmax(95px,.8fr)
    minmax(95px,.8fr);

  align-items:center;
}


.fbb-last5-team-head {
  border-bottom:
    1px solid
    rgba(148,163,184,.11);
}


.fbb-last5-team-head > div,
.fbb-last5-row > div {
  padding:
    10px 11px;
}


.fbb-last5-row {
  border-bottom:
    1px solid
    rgba(148,163,184,.075);
}


.fbb-last5-row:last-of-type {
  border-bottom:0;
}


.fbb-last5-team {
  min-width:0;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;

  color:#f8fafc;

  font-size:12px;
  font-weight:800;
}


.fbb-last5-team img {
  width:25px;
  height:25px;
  min-width:25px;

  object-fit:contain;
}


.fbb-last5-team span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


.fbb-last5-metric {
  min-height:48px;

  display:flex;
  align-items:center;
  gap:8px;

  color:#cbd5e1;

  font-size:12px;
  font-weight:650;
}


.fbb-last5-icon {
  width:24px;
  height:24px;
  min-width:24px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:8px;

  background:
    rgba(255,255,255,.025);
}


.fbb-last5-value {
  min-height:48px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-left:
    1px solid
    rgba(148,163,184,.075);

  color:#f8fafc;

  font-size:17px;
  font-weight:850;
  font-variant-numeric:
    tabular-nums;
}


.fbb-last5-value.is-leading {
  color:#34d399;

  background:
    linear-gradient(
      135deg,
      rgba(52,211,153,.08),
      transparent
    );
}


.fbb-last5-footnote {
  margin:
    14px 0 0;

  color:#758295;

  font-size:10px;
}


@media(max-width:620px) {
  #fbbLast5Averages {
    padding:
      16px 10px;
  }

  .fbb-last5-team-head,
  .fbb-last5-row {
    grid-template-columns:
      minmax(112px,1.2fr)
      minmax(72px,.8fr)
      minmax(72px,.8fr);
  }

  .fbb-last5-team-head > div,
  .fbb-last5-row > div {
    padding:
      8px 5px;
  }

  .fbb-last5-team {
    gap:4px;

    font-size:10px;
  }

  .fbb-last5-team img {
    width:20px;
    height:20px;
    min-width:20px;
  }

  .fbb-last5-metric {
    gap:5px;

    font-size:9px;
  }

  .fbb-last5-icon {
    width:20px;
    height:20px;
    min-width:20px;

    font-size:10px;
  }

  .fbb-last5-value {
    font-size:14px;
  }
}


/* =========================================================
   LAST-5 INSIDE CLASSIFICATION CARD
   ========================================================= */

#fbbLeagueIntelligence >
#fbbLast5Averages {
  width:100%;

  margin:
    14px 0 12px !important;

  padding:
    17px;

  border:
    1px solid
    rgba(56,189,248,.13) !important;

  border-radius:
    15px;

  background:
    linear-gradient(
      145deg,
      rgba(56,189,248,.045),
      rgba(14,20,30,.72) 35%,
      rgba(14,20,30,.72) 70%,
      rgba(139,92,246,.04)
    ) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025),
    0 10px 28px
    rgba(0,0,0,.12) !important;
}


#fbbLeagueIntelligence >
#fbbLast5Averages::before {
  left:18px;
  right:18px;
}


#fbbLeagueIntelligence >
#fbbLast5Averages
.fbb-last5-heading {
  margin-bottom:13px;
}


#fbbLeagueIntelligence >
#fbbLast5Averages
.fbb-last5-heading h2 {
  font-size:
    clamp(18px,2.5vw,23px);
}


@media(max-width:620px) {
  #fbbLeagueIntelligence >
  #fbbLast5Averages {
    margin:
      11px 0 10px !important;

    padding:
      14px 8px;
  }
}


/* =========================================================
   RECENT FORM BELOW CLASSIFICATION
   ========================================================= */

#fbbLeagueIntelligence >
.fbb-recent-form-under-classification {
  width:100%;

  margin:
    13px 0 0 !important;

  padding:
    17px;

  border:
    1px solid
    rgba(148,163,184,.13) !important;

  border-radius:
    15px;

  background:
    linear-gradient(
      145deg,
      rgba(56,189,248,.035),
      rgba(14,20,30,.74) 35%,
      rgba(14,20,30,.74) 70%,
      rgba(139,92,246,.035)
    ) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.025),
    0 10px 28px
    rgba(0,0,0,.11) !important;
}


#fbbLeagueIntelligence >
.fbb-recent-form-under-classification
#formTitle {
  margin:
    0 0 13px;

  color:#f8fafc;

  font-family:
    "Oswald",
    "Arial Narrow",
    sans-serif;

  font-size:
    clamp(18px,2.5vw,23px);

  line-height:1.15;
}


#fbbLeagueIntelligence >
.fbb-recent-form-under-classification
.fbb-normal-form-grid {
  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:12px;
}


#fbbLeagueIntelligence >
.fbb-recent-form-under-classification
.fbb-form-column {
  padding:12px;

  border-color:
    rgba(56,189,248,.13);

  background:
    rgba(18,24,35,.72);
}


#fbbLeagueIntelligence >
.fbb-recent-form-under-classification
.fbb-form-column > strong {
  color:#38bdf8;
}


@media(max-width:620px) {
  #fbbLeagueIntelligence >
  .fbb-recent-form-under-classification {
    margin-top:
      10px !important;

    padding:
      14px 8px;
  }


  #fbbLeagueIntelligence >
  .fbb-recent-form-under-classification
  .fbb-normal-form-grid {
    grid-template-columns:
      1fr;

    gap:10px;
  }


  #fbbLeagueIntelligence >
  .fbb-recent-form-under-classification
  #formTitle {
    font-size:19px;
  }
}


/* =========================================================
   LAST-5 BADGE FINAL OPTIMIZATION
   ========================================================= */

#fbbLast5Averages
.fbb-last5-heading {
  width:100%;

  display:grid !important;

  grid-template-columns:
    minmax(0,1fr)
    auto !important;

  align-items:start !important;

  gap:
    12px !important;
}


#fbbLast5Averages
.fbb-last5-heading > div {
  min-width:0;
}


#fbbLast5Averages
.fbb-last5-badge {
  width:auto !important;
  min-width:max-content !important;
  max-width:none !important;

  height:30px !important;
  min-height:30px !important;

  margin:
    1px 0 0 !important;

  padding:
    0 11px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  align-self:start !important;
  justify-self:end !important;

  flex:none !important;

  border-radius:
    999px !important;

  font-size:
    9px !important;

  font-weight:
    900 !important;

  line-height:
    1 !important;

  letter-spacing:
    .055em !important;

  text-align:center !important;
  text-transform:uppercase !important;

  white-space:
    nowrap !important;

  overflow:
    visible !important;

  overflow-wrap:
    normal !important;

  word-break:
    keep-all !important;

  writing-mode:
    horizontal-tb !important;
}


@media(max-width:680px) {
  #fbbLast5Averages
  .fbb-last5-heading {
    gap:
      8px !important;
  }


  #fbbLast5Averages
  .fbb-last5-badge {
    height:
      27px !important;

    min-height:
      27px !important;

    padding:
      0 9px !important;

    font-size:
      8px !important;

    letter-spacing:
      .04em !important;
  }
}


@media(max-width:380px) {
  #fbbLast5Averages
  .fbb-last5-heading {
    grid-template-columns:
      minmax(0,1fr)
      auto !important;
  }


  #fbbLast5Averages
  .fbb-last5-badge {
    height:
      25px !important;

    min-height:
      25px !important;

    padding:
      0 8px !important;

    font-size:
      7px !important;
  }
}
