/*brackets style
------------------------------*/
.player-title {
  font-size: 12px;
}

div.single-score-wrapper.winner {
  font-weight: 1000;
}

.match-top {
  font-size: 19px !important;
  color: black !important;
}

.brackets_container * {
  box-sizing: border-box;
}

.brackets_container {
  border-radius: 12px;
  font-family: tahoma;
  overflow-x: auto;
  max-width: 100%;
  background-color: #f0f0f0;
  clear: both;
}

.brackets_container a {
  text-decoration: none;
  color: #000;
}

.brackets_container table {
  width: 100%;
}

/*rounds style
------------------------------*/
.round_column {
  padding: 10px 5px;
}

.r_16 .mtch_container {
  padding: 20px 0;
}

.r_16 .m_segment {
  height: 45px;
}

.r_8 .mtch_container {
  padding: 50px 0;
}

.r_8 .m_segment {
  height: 80px;
}

.r_4 .mtch_container {
  padding: 80px 0;
}

.r_4 .m_segment {
  height: 145px;
}

/*Match unite style
------------------------------*/
.match_unit {
  position: relative;
}

.match_unit:after {
  position: absolute;
  content: '';
  width: 11px;
  height: 1px;
  background-color: var(--componet-primary-color);
  top: 50%;
  right: -11px;
}

.match_unit.highlight:after {
  background-color: #cc0000;
}

.match_unit .highlight.loser:after {
  position: absolute;
  content: '';
  width: 15px;
  height: 2px;
  background-color: var(--componet-primary-color);
  right: -15px;
  z-index: 99;
}

.match_unit .m_top.highlight.loser:after {
  bottom: -2px;
}

.match_unit .m_bottom.highlight.loser:after {
  top: 0;
}

.match_unit .m_top,
.match_unit .m_botm {
  position: relative;
  width: 100%;
}

.match_unit .m_segment {
  border-right: solid 2px #fff;
}

.match_unit .m_segment.winner.highlight {
  border-right-color:var(--componet-primary-color);
}

.match_unit .m_segment.loser.highlight {
  border-right-color: #fff;
}

.match_unit .m_segment>span {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  background: #fff;
  font-size: 13px;
  z-index: 1;
  height: 30px;
  line-height: 29px;
  padding: 0 2px;
  cursor: default;
}

.match_unit .m_segment.highlight>span {
  background-color:var(--componet-primary-color);
  color: #fff;
  box-shadow: 2px 0 0 var(--componet-primary-color);;
}

.m_segment>span a {
  float: left;
  display: inline;
  padding: 0 3px;
  border-radius: 2px;
  height: 26px;
  line-height: 25px;
  margin-top: 2px;
}

.match_unit .m_segment.highlight>span a {
  color: #fff;
}

.match_unit .m_segment.highlight>span strong {
  color: #fff;
}

.match_unit .m_segment>span img,
.match_unit .m_segment>span span {
  vertical-align: middle;
}

.match_unit .m_top span {
  top: 0;
}

.match_unit .m_botm span {
  bottom: 0;
}

/*final-round style
------------------------------*/
.final {
  position: relative;
}

.final .m_segment span {
  height: 100%;
  display: block;
  line-height: normal;
  padding-bottom: 3px;
}

.final .match_unit .m_segment>span strong {
  display: block;
  padding: 5px;
  float: none;
}

.final .m_segment span a {
  float: none;
  display: block;
  height: auto;
}

.final .match_unit .highlight.loser:after {
  display: none;
}

.final .match_unit .m_segment.loser.highlight {
  border: none;
}

.final .match_unit .m_segment.highlight>span {
  box-shadow: none;
}

/*winner team style
------------------------------*/



.m_segment.first:after,
.m_segment.second:after,
.m_segment.third:after,
.m_segment.fourth:after {
  content: '';
  position: absolute;
  top: -10px;
  border: solid 7px transparent;
  border-top-color: #bbb;
  left: 0;
  right: 0;
  margin: auto;
  width: 0;
  height: 0;
}

.m_segment.first:before,
.m_segment.second:before,
.m_segment.third:before,
.m_segment.fourth:before {
  position: absolute;
  top: -30px;
  padding: 5px;
  font-size: 11px;
  color: #fff;
  background-color: #bbb;
  left: 0;
  right: 0;
  margin: 0 7%;
  display: inline;
}

.m_segment.first:before {
  content: 'Primero';
}

.m_segment.second:before {
  content: 'Segundo';
}

.m_segment.third:before {
  content: 'Tercero';
}

.m_segment.fourth:before {
  content: 'Cuarto';
}

.third_position {
  position: absolute;
  bottom: 20px;
  width: 94%;
  padding: 0;
}

.third_position .match_unit:after {
  display: none;
}

/*reversed tree style
------------------------------*/
.reversed .match_unit:after {
  right: auto;
  left: -13px;
}

.reversed .match_unit .m_segment {
  border-left: solid 2px #fff;
  border-right: none;
}

.reversed .match_unit .highlight.loser:after {
  right: auto;
  left: -15px;
}

.reversed .match_unit .m_segment.winner.highlight {
  border-left-color: var(--componet-primary-color);
}

.reversed .match_unit .m_segment.loser.highlight {
  border-left-color: #fff;
}

.reversed .match_unit .m_segment>span strong {
  float: left;
}

.reversed .m_segment>span a,
.reversed .m_segment>span img {
  float: right;
}

.reversed .m_segment>span img {
  margin-right: 0;
  margin-left: 3px;
}

.reversed .match_unit .m_segment.highlight>span {
  box-shadow: -2px 0 0 var(--componet-primary-color);
}

/*smaller screens style
------------------------------*/
@media (max-width: 768px) {
  .match_unit .m_segment>span span {
    display: none;
  }

  .brackets_container th {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .match_unit .m_segment>span {
    font-size: 11px;
  }

  .match_unit .m_dtls span {
    display: none;
  }
}

/*ie specific style
------------------------------*/
.ie9 .final .match_unit .m_segment,
.ie8 .final .match_unit .m_segment {
  width: 48%;
  display: inline-block;
}

@media print {
  a[href]:after {
    content: none !important;
  }
}

/*fondo para clasificacion lite*/
.background-lite {
  background-image: url("../images/sorteo_9.png") !important;
}

.background-lite-2 {
  background-image: url("../images/sorteo_10.png") !important;
}

.span-sorteo {
  font-size: xx-large;
  color: white;
}

.span-sorteo-fecha {
  visibility: visible !important;
  font-weight: bold;
  color: white !important;
  font-size: x-large !important;
}

.columna_cuartos {
  width: 25%;
}

.columna_semis {
  width: 20%;
}

.columna_final {
  width: 10%;
}

.cabecera_sorteo_1 {
  font-size: xx-large;
  color: white;
}

.cabecera_sorteo {
  height: 25%;
}

.escudo_sorteo {
  height: 100px;
  padding-left: 25%;
}

#posicion1,
#posicion2,
#posicion3,
#posicion4,
#posicion5,
#posicion6,
#posicion7,
#posicion8 {
  font-size: large !important;
  float: none !important;
  line-height: 50px !important;
  padding: 5%;
}

/*Match unite SORTEO style
------------------------------*/
.match_unit_sorteo {
  position: relative;
}

.r_8 {
  &>.mtch_container {
    width: 95%;
    padding: 0;
    background-color: white;

    z-index: 500;
    position: relative;
  }

  &>.mtch_container:nth-child(1) {
    margin-top: 50px;

    &>.match_unit {
      margin-bottom: -80px;

    }

    &>.match_unit::after {
      background-color: transparent;
    }

  }

  &>.mtch_container:nth-child(3) {
    margin-bottom: 50px;

    &>.match_unit {
      margin-top: -80px;

    }

    &>.match_unit::after {
      background-color: transparent;
    }
  }
}

.lineas-partidos {
  border-color: var(--componet-primary-color) !important;
}

.r_4.right {
  &>.mtch_container {
    &>.match_unit::before {
      background-color: var(--componet-primary-color) !important;
    }

    &>.match_unit::after {
      right: -11px;
      left: auto;
      background-color: var(--componet-primary-color) !important;
    }
  }
}

.r_4 {
  &>.mtch_container {
    &>.match_unit::before {
      background-color: var(--componet-primary-color) !important;
    }

    &>.match_unit::after {
      background-color: var(--componet-primary-color) !important;
    }
  }
}

.r_8.right {
  height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: end;
  flex-wrap: wrap;
  align-items: end;
}

.r_4 {
  &>.mtch_container {
    &>.match_unit::before {
      position: absolute;
      content: '';
      width: 11px;
      height: 1px;
      background-color: var(--componet-primary-color);
      top: 50%;
      left: -11px;
    }
  }
}

.equipo_content>span {
  display: flex !important;
  height: 100% !important;

  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-items: center;

  &>.imagen {
    margin-left: 6px;
    min-width: 43px;
    min-height: 43px;
    display: flex;
    border-radius: 36px;
    background-color: white;
    justify-content: center;
    align-content: center;
    align-items: center;
    border: 1px solid #F9F9F9;

    &>img {
      width: 34px;
      min-width: 34px;
      min-height: 34px;
      display: block;
      border-radius: 36px;
    }
  }

  &>.nombre {
    flex-grow: 1;
    padding-left: 6px;

    &>span {
      color: #050505;

      /* Font-Caption */
      font-family: "DM Sans";
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 20px;
      /* 142.857% */
      letter-spacing: -0.028px;
    }
  }

  &>.puntos {
    display: flex;
    min-width: 54px;
    max-width: 120px;
    height: 54px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 14px;
    margin-right: 8px;

    &>strong {
      color: #050505;

      font-variant-numeric: lining-nums proportional-nums;
      font-family: Syne;
      font-size: 28px;
      font-style: normal;
      font-weight: 600;
      line-height: 32px;
      /* 114.286% */
      letter-spacing: -1.176px;
      text-transform: uppercase;
    }
  }

  &>.puntos.winner {
    border: 1px solid var(--componet-primary-color);
  }
}

.mtch_container {
  border-radius: 16px;

  &>.match_unit {

    &>div:nth-child(1) {
      border-radius: 16px 16px 0 0;
      overflow: hidden;
    }

    &>div:nth-child(2) {
      border-radius: 0 0 16px 16px;
      overflow: hidden;
    }
  }
}

.m_segment {
  height: 80px !important;
}

.brackets_container {
  &>table {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    overflow: hidden !important;

    &>thead {

      &>tr {
        background-color: var(--componet-primary-color);

        &>th {
          text-align: center;
          padding: 10px 16px;
          justify-content: center;
          align-items: center;
          gap: 10px;
          min-width: 290px;

          &>span {
            border-right: 1px solid;
            width: 100%;
            display: block;
            margin: 6px 0;
            color: var(--componet-primary-color-text);
            font-variant-numeric: lining-nums proportional-nums;
            font-family: Syne;
            font-size: 17px;
            font-style: normal;
            font-weight: 600;
            line-height: 21px;
            /* 123.529% */
            letter-spacing: -0.102px;
            text-transform: uppercase;
          }

        }

        &>th:last-child>span {
          border-right: none;
        }
      }
    }
    &>tbody{
      &>tr{
        height: 650px;
      }
    }
  }
}

.m_dtls {
  position: absolute;
  top: -15px;
  right: 0;
  left: 0;
  height: 30px;
  overflow: hidden;
  padding: 0 5px;
  z-index: 600;
  display: inline-flex;
  justify-content: center;

  &>span {
    padding: 6px 8px;

    align-items: center;
    gap: 10px;
    border-radius: 39px;
    border: 1px solid #F9F9F9;

    background: #FFF;
    color: #666;
    text-align: center;
    font-family: "DM Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 166.667% */
    letter-spacing: -0.024px;
  }
}

.winner_team {
  position: absolute;
  top: 25px;
  text-align: center;
  right: 0;
  left: 0;
  border-radius: 16px;
  background: #FFF;
  display: flex;
  justify-content: center;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  padding: 12px;

  &>.etiqueta-win {
    display: flex;
    width: 124px;
    padding: 8px 20px 8px 9px;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    border: 1px solid #ECECEC;
    background: #FFF;

    &>div {
      display: flex;
      justify-content: center;
      align-content: center;

      &>svg path {
        stroke: var(--componet-primary-color) !important;
      }
    }
  }

  &>.equipo-win {
    background-color: var(--main-bg-color);

    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    border-radius: 16px;

    &>a {
      height: 38px;
      width: 38px;
      border-radius: 100px;
      background-color: white;
      display: flex;
      align-items: center;
      justify-items: center;
      justify-content: center;
      overflow: hidden;

      &>img {
        max-width: 31px;
        min-height: 31px;
      }
    }
  }
}