/*---------------------rating-category------------------------*/
.rating-category-body {
  position: relative;
  padding: 60px 0 40px 0;
  background: #3a3851;
}

.rating-place-row {
  min-height:310px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -20px;
  z-index: 1;
}

.rating-place-row:before, .rating-place-row:after {
  content: '';
  display: block;
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

.rating-place-row:before {
  bottom: 10px;
  left: -50px;
  width: 308px;
  height: 269px;
  background-image: url(/static/legacy-source/images/rating-category-shape1.png);
}

.rating-place-row:after {
  top: -60px;
  right: -90px;
  width: 326px;
  height: 258px;
  background-image: url(/static/legacy-source/images/rating-category-shape2.png);
}

.rating-place-column {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 33.333%;
  flex: 1 1 33.333%;
  max-width: 33.333%;
  padding: 0 20px;
  margin-bottom: 40px;
  position:relative;
}

.rating-place-item {
  text-align: center;
}

.rating-place-column .team-results {
    display:inline-block; bottom:0;
    color:#ffffff;
    white-space:nowrap;
    position:absolute;
    right:10px;
}

.rating-place-column .team-results .team-wrapper {
    display:inline-block;
    margin:0 2px;
    background:#27283a;
    padding:10px;
    text-transform:uppercase;
    font-style:italic;
    text-align:right;
    transform:skewX(-8deg);
}

.rating-place-column .team-results .team-wrapper>div {
    transform:skewX(8deg);
}

.rating-place-column .team-results .team-wrapper.red {
    background:#f40615;
}

.rating-place-column .team-results .team-wrapper span {
    display:block;
    font-weight:bold;
    font-size:30px;
}

.rating-place-item table {
    display:inline-block;
}

.rating-place-column.last .rating-place-item {
  text-align: center;
}

.rating-place-item__image {
  margin-bottom: 15px;
  height: 185px;
  border: 6px solid #94c11f;
  -webkit-box-shadow: 9.9px 9.9px 10px rgba(0, 0, 0, 0.14);
  box-shadow: 9.9px 9.9px 10px rgba(0, 0, 0, 0.14);
}

.rating-place-item__number {
  font-family: 'Code-Pro-Black-LC';
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 36px;
  color: #ffffff;
}

.rating-place-item__title {
  display: inline-block;
  padding: 3px 10px;
  font-family: 'MyriadPro';
  text-transform: uppercase;
  font-size: 18px;
  background-color: #e5007c;
  color: #fff;
}


.rating-descr {
    max-width:600px;
    color:#ffffff;
    display:none;
    margin:40px auto 0;
}

.rating-category-bottom {
  text-align: center;
}

.rating-category__btn {
  display: inline-block;
  position: relative;
  padding: 12px 50px 12px 40px;
  background-color: white;
  font-size: 13px;
  color: #2f2e42;
  font-weight: 500;
  border-radius: 18px;
}

.rating-category__btn:after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  right: 25px;
  margin-top: -2.5px;
  width: 9px;
  height: 5px;
  background-image: url(/static/legacy-source/images/icon-arrow-down.png);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.rating-category__btn.active:after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  right: 25px;
  margin-top: -2.5px;
  width: 9px;
  height: 5px;
  transform:rotate(180deg);
  background-image: url(/static/legacy-source/images/icon-arrow-down.png);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.rating-descr {
    max-width:600px;
    color:#ffffff;
    display:none;
    margin:40px auto 0;
}


/*---------------------rating-stats------------------------*/
.rating-stats {
  padding: 55px 0 45px 0;
  background: #fff;
}

.status_name {
    font-family: 'Code-Pro-Black-LC';
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 36px;
    color: #ffffff;
}
td.progress { vertical-align:middle; }

.team-game-row { display:block; position:relative; margin:15px 0 70px; color:#b4b1c4;text-transform: uppercase; }
.team-game-row a.team-game-details { position:absolute; top:-26px; right:0; color:#b4b1c4; background: url(/static/legacy-source/images/b2b/b2b-arrow.png) no-repeat; background-position:right center; background-size:auto 100%; padding:2px 22px 0 0; }
.team-game-row .team-game-date { position:absolute; top:-42px; left:0; font-size:14px; }
.team-game-row .team-game-date span { font-weight:bold; font-size:16px; display:block; }
.team-game-row .team-game-name { display:block;
    font-family: 'Code-Pro-Black-LC';
    font-size: 24px;
    font-weight: 900;
    line-height: 36px;
    color: #29253c;
 }
.team-game_wrapper { border:2px solid #eddc1b; display:flex; flex-wrap: wrap; }
.team-game_wrapper .cell { flex: 1 1 20%; max-width: 20%; padding:20px; text-transform:uppercase; }
.team-game_wrapper .cell.points span,
.team-game_wrapper .cell.status span {
    display:block;
    font-family: 'Code-Pro-Black-LC';
    font-size: 20px;
    font-weight: 900;
    line-height: 36px;
    color: #29253c;
 }
.team-game_wrapper .cell.points.light span {
    color: #6f6794;
 }
.team-game_wrapper .team-place-name { text-transform:initial; }
.team-game_wrapper .cell.status { text-align:right; }
.team-game_wrapper .cell.status img { height:50px; margin-left:10px; }
.team-game_wrapper .cell.place { padding:10px 20px 0; font-weight:bold; }
.team-game_wrapper .cell.place div { display:inline-block; background:url('/static/legacy-source/images/rating/place.png'); background-size:contain; background-repeat:no-repeat;
padding:15px 15px 0 0; width:70px; text-align:right;
 }
.team-game_wrapper .cell.place div span {
    display:block;
    font-family: 'Code-Pro-Black-LC';
    font-size: 55px;
    line-height:41px;
 }
.team-game_wrapper.place1 { border-color:#e43a10; }
.team-game_wrapper.place1 .cell.place div { color:#e43a10; background-image:url('/static/legacy-source/images/rating/place-1.png'); }
.team-game_wrapper.place2 { border-color:#8bcc18; }
.team-game_wrapper.place2 .cell.place div { color:#8bcc18; background-image:url('/static/legacy-source/images/rating/place-2.png'); }
.team-game_wrapper.place3 { border-color:#563c90; }
.team-game_wrapper.place3 .cell.place div { color:#563c90; background-image:url('/static/legacy-source/images/rating/place-3.png'); }


/*==============================ADAPTIVE==============================*/

@media only screen and (max-width: 1260px) {
  .rating-place-row {
    margin: 0 -10px;
  }
  .rating-place-column {
    padding: 0 10px;
  }
}

@media screen and (max-width: 1240px) {
  .winner-team {
    width: 28vw;
  }
}

@media screen and (max-width: 1010px) {
  .rating-place-row {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }


  .rating-place-column.middle { display:none; }

  .rating-place-column {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
    max-width: 50%;
  }
  .rating-stats .center-wrapper {
    max-width: 768px;
    padding: 0 15px;
  }
  .rating-table {
    overflow-y: auto;
  }
  .rating-table::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
  }
  .rating-table::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 3px solid #fff;
    background-color: rgba(0, 0, 0, 0.7);
  }
  .rating-table table td {
    font-size: 18px;
  }
  .rating-table table td:first-child {
    font-size: 18px;
  }
  .rating-search__field {
    width: 230px;
  }
  .rating-top {
    padding-right: 15px;
  }
}
@media only screen and (max-width: 767px) {

.rating-place-column .team-results .team-wrapper { font-size:10px; }
.rating-place-column .team-results .team-wrapper span { font-size:20px; }

/* .team-game_wrapper { flex-direction:column; } */

  .team-game_wrapper .cell { max-width:30%; flex: 1 1 30%; }
  .team-game_wrapper .cell:first-child { max-width:100%; flex: 1 1 100%; }

  .rating-table table th:first-child,
  .rating-table table td:first-child {
/*    padding-left: 20px; */
  }

  .rating-table table th,
  .rating-table table td {
  padding:5px 5px;
  white-space:initial;
  font-size:12px;
  }

    .rating-table__team { font-size:12px; }

  .rating-table table .rating-filter-arrows { display:none; }

  .rating-table__status { width:150px; }

  .rating-top {
    display: block;
  }
  .rating-top-left {
    margin-bottom: 15px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  .rating-period {
    margin-right: 0;
  }
  .rating-all-cities {
    width: 237px;
  }
}
@media only screen and (max-width: 639px) {
  .rating-place-row {
    display: block;
  }
  .rating-place-column {
    max-width: 100%;
    min-height:200px;
  }
  .rating-place-item__image {
    height: 250px;
  }
  .rating-top-left {
    display: block;
    padding-right: 0;
  }
  .rating-period {
    margin-bottom: 15px;
  }
}
@media screen and (max-width: 480px) {
  .raiting-title-content__title {
    font-size: 6vw;
  }
  .winner-team {
    display: block;
    width: 70%;
    text-align: center;
    margin: 4vw auto;
  }
  .winner-team .raiting-position {
    font-size: 7.5vw;
  }
  .winner-team .team-name {
    font-size: 3.6vw;
  }
  .winner-team img {
    border: 1.4vw solid;
  }
  .what-is-raiting {
    font-size: 3vw;
    width: 40vw;
    margin: 20vw auto;
  }
  .raiting-form {
    width: 90%;
  }
  #raiting-table {
    font-size: 2.5vw;
  }
  #raiting-table th {
    font-size: 2.2vw;
  }
  #all-time, #season-time, #all-city, #raiting-search {
    font-size: 1.7vw;
  }
  #load-more {
    font-size: 2vw;
  }
}

@media only screen and (max-width: 479px) {
  .rating-place-item__image {
    height: 195px;
  }
  .rating-all-cities {
    width: 100%;
  }
  .rating-search__field {
    width: 100%;
  }
  .rating-period__btn {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
  }
}
@media screen and (max-device-width: 400px) {
  .raiting-form {
    width: 98%;
    text-align: center;
  }
  #raiting-table {
    font-size: 3.5vw;
  }
  #raiting-table tr td:first-child {
    text-align: left;
  }
  #raiting-table th {
    font-size: 3vw;
  }
  #all-time, #season-time, #all-city, #raiting-search {
    font-size: 4vw;
  }
  #raiting-search {
    margin-left: 0;
  }
  #all-city {
    float: none;
  }
  #load-more {
    font-size: 4vw;
  }
}
