/* header */

.header__container {
  padding: 30px 50px;
}

header {
  margin-bottom: 50px;
  background-color: var(--primary-color);
}


/* Match */


.matches__items {
  display: flex;
  justify-content: space-between;
}

.matches__item {
  width: 32%;
  text-align: center;
  border-radius: 10px;
  background: #FFF;
}

.matches__title {
  background: #727296;
  color: #FFF;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 600;
  line-height: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: 10px 10px 0px 0px;
}

.matches__content {
  padding: 20px;
}

.matches__content__top__tournament{
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 140%;
  margin-bottom: 5px;
}

.matches__content__top__date {
  color: #9A9AB5;
  font-size: 20px;
  font-weight: 500;
  line-height: 140%;
}

.matches__content__top {
  margin-bottom: 40px;
  text-align: center;
}

.matches__content__middle {
  display: flex;
  justify-content: center;
  align-items: center;

}

.matches__content__middle__center {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.matches__score__pen {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  display: none;
}

.matches__score__pen__mobile__container {
  display: none;
}

.display {
  display: block;
}

.hide {
  display: none;
}

.matches__content__middle__team {
  width: 40%;
}



.matches__content__middle__bottom {
  display: flex;
  justify-content: space-between;
}

.matches__team {
  height: 100px;
  display: flex;
}

.matches__team__img__container {
  width: 100px;
  height: 100px;
}

.matches__team__home {
  justify-content: flex-end;
}

.matches__team__logo__home {
  margin-left: 20px;
}

.matches__team__logo__guest {
  margin-right: 20px;
}

.matches__team__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.matches__team__name {
  color: var(--primary-color);
  font-size: 36px;
  font-weight: 600;
  line-height: 140%; /* 14px */
  word-wrap: break-word;
  flex-wrap: wrap;
  align-items: center;
  display: flex;
}

.matches__team__name__home {
  text-align: right;
}

.matches__team__name__guest {
  text-align: left;
}

.matches__score {
  color: #FFF;
  font-size: 40px;
  font-weight: 700;
  line-height: 100%;
  border-radius: 5px;
  background: var(--primary-color);
  display: flex;
  width: 52px;
  justify-content: center;
}

.matches__score__mobile {
  display: none;
}

.matches__dots {
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
  line-height: 100%; /* 56px */
  display: flex;
  justify-content: center;
  margin: 0px 5px;
}

.matches__time {
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
  line-height: 100%;
}




/* Timeline */

.container {
  max-width: 1436px;
  padding: 0px 50px;
  margin: 50px auto;
  position: relative;
}

.input-container {
    height: 70px;
    width: calc(100% - 10px); /* Учтем ширину полоски входного диапазона */
    display: flex;
    justify-content: space-between;
    position: relative;
}

.time-block, .overtime-block {
  border-radius: 10px;
  background-color: #F1EEF5;
  display:flex;
}

.time-block2 {
  background-color: #eae8ed;
}

.period-descr {
  color:var(--primary-color);
  font-size: 12px;
  font-weight: 400;
  line-height: 140%;
  margin-top:5px;
  margin-left:5px;
}

input[type=range] {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  appearance: none; /* Сброс стилей браузера для элемента input */
  background: transparent; /* Прозрачный фон инпута */
  z-index: 1; /* Поместим инпут выше чем текстовый блок */
  margin: 0; /* Сброс маргиналов */
  padding: 0; /* Сброс отступов */
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 4px; /* Ширина полоски */
  height: var(--thumb-height); /* Используем пользовательское свойство */
  background: var(--secondary-color); /* Цвет полоски */
  cursor:pointer;
}

.custom-range-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

.range-value {
  position: absolute;
  top: -10px; /* Располагаем над полоской */
  left: 50%; /* Выравниваем по центру */
  transform: translateX(-50%); /* Центрируем по горизонтали */
  z-index: 2; /* Поместим текстовый блок над инпутом */
  background-color: var(--secondary-color);
  color:#fff;
  font-size: 14px;
  border-radius:5px;
  width: 24px;
  text-align: center;
}

.time-line {
  position: absolute;
  height: 4px;
  width: 100%;
  background-color: var(--primary-color);
  top:48%;
}

.event-circle {
  border-radius: 50%;
  height: 16px;
  width: 16px;
  position: absolute;
  display: flex;
  justify-content: center; /* Центрирование по горизонтали */
  align-items: center; /* Центрирование по вертикали */
}

.event-min {
  z-index: 1;
}

.event__img {
  width: auto;
  height: 100%;
  z-index: 1;
  position: absolute;
}

.blue {
  background-color: #212148;
  color: #ffffff;
  font-size: 8px;
  text-align: center;
  line-height: 10px; /* Выравнивание по центру */
}

.event__descr {
  top: -5px;
  position: absolute;
  background-color: #fff;
  margin: 0;
  text-align: start;
  padding: 5px;
  text-indent: 0;
  list-style-type: 0;
  list-style-type: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 140%;
  border-radius: 5px;
  display: none;
  z-index: 200;
  box-shadow: 4px 4px 15px 0px rgba(0, 0, 0, 0.05);
}

.event__text {
  color: var(--primary-color);
}

.event-circle:hover .event__descr {
  display: block;
}

.triangle-left {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 7px solid transparent; /* Высота треугольника */
  border-bottom: 7px solid transparent; /* Высота треугольника */
  border-right: 7px solid #fff; /* Ширина и цвет треугольника */
  left: -4px;
  top: 5px;
}

.triangle-right {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 7px solid transparent; /* Высота треугольника */
  border-bottom: 7px solid transparent; /* Высота треугольника */
  border-left: 7px solid #fff; /* Ширина и цвет треугольника */
  right: -4px;
  top: 5px;
}

.match-result-bottom {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

.match-result {
  margin-bottom: 30px;
  background-color: #FFF;
  border-radius: 10px;
  padding: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.custom-range-team {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.event__item {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: pre;
}

.event__item img {
  margin-right: 2px;
}



/* Squad and field */

.squad-container {
  display: flex;
  justify-content: space-between;
}

.squad-items {
  display: flex;
  align-content: flex-start;
  justify-content: space-between;
  margin: 0;
  text-align: start;
  padding: 0;
  text-indent: 0;
  list-style-type: 0;
  list-style-type: none;
  width: 59%;
  flex-wrap: wrap;
}

.squad-item {
  width: 49%;
  height: 80px;
  background-color: #FFF;
  margin-bottom: 10px;
  border-radius: 10px;
  display: flex;
  align-self: flex-start
}

.squad-item-content {
  padding: 5px 10px;
  width: 100%;
  overflow-y: auto;
}

.squad-item-content::-webkit-scrollbar {
  display: none; /* убираем полосы прокрутки для WebKit (Chrome, Safari) */
}

.squad-item-descr {
  display: flex;
  margin-bottom: 5px;
}

.squad-item-name:not(:last-child) {
  margin-right: 5px;
}

.squad-item-result {
  display: flex;
  flex-wrap: wrap;
}

.squad-item-event {
  margin-right: 15px;
  height: 20px;
  display: flex;
  align-items: center;
}

.squad-item-name {
  font-size: 16px;
  font-weight: 500;
}

.squad-item-event-img {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}

.squad-item-event span {
  font-size: 10px;
  font-weight: 500;
}

.field-container {
  width: 39%;
  border-radius: 10px;
  position: relative;
  height: fit-content;
}

.field-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.squad-item-link {
  display: flex;
  width: 100%;
}

.squad-item-photo {
  position: relative;
  width: 90px;
}

.squad-item-img {
  height: 100%;
  border-radius: 10px 0px 0px 10px;
  object-fit: cover;
}

.player {
  position: absolute;
  width: 17%;
  height: 14.5%;
  align-items:center;
  justify-content:center;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  transition: transform 0.3s ease;
  transform-origin: center;
  z-index: 1;
}

  .player-link:hover .player {
    transform: translateX(-50%) scale(1.2);
    z-index: 10;
}

.sub {display:none;}
.GK {display:flex; left: 50%; top: 84%; }
.LB {display:flex; left: 14%; top: 66%; }
.LCB {display:flex; left: 38%; top: 69%; }
.CB {display:flex; left: 50%; top: 69%; }
.RCB {display:flex; left: 62%; top: 69%; }
.RB {display:flex; left: 86%; top: 66%; }
.LWB {display:flex; left: 14%; top: 50%; }
.LDM {display:flex; left: 38%; top: 53%; }
.CDM {display:flex; left: 50%; top: 53%; }
.RDM {display:flex; left: 62%; top: 53%; }
.RWB {display:flex; left: 86%; top: 50%; }
.LM {display:flex; left: 14%; top: 33%; }
.LCM {display:flex; left: 38%; top: 36%; }
.CM {display:flex; left: 50%; top: 36%; }
.RCM {display:flex; left: 62%; top: 36%; }
.RM {display:flex; left: 86%; top: 33%; }
.LW {display:flex; left: 14%; top: 18%; }
.LAM {display:flex; left: 38%; top: 22%; }
.CAM {display:flex; left: 50%; top: 22%; }
.RAM {display:flex; left: 62%; top: 22%; }
.RW {display:flex; left: 86%; top: 18%; }
.LF {display:flex; left: 38%; top: 9%; }
.CF {display:flex; left: 50%; top: 9%; }
.RF {display:flex; left: 62%; top: 9%; }

.player * {
  font-size: 8px;
  text-align: center;
}

.player-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  height: 40%;
  margin-top: -5px;
}

.player-photo {
  height: 60%;
  width: 70%;
  position: relative;
  border-radius: 5px 5px 0px 0px;
  overflow: hidden;
}

.player-img {
  width: auto;
  object-fit: cover;
}

.player-num, .squad-item-num, .player-pos {
  background: rgba(33, 33, 72, 0.70);
  color: #FFF;
  position: absolute;
  top: 0;
  line-height: 140%;
}

.squad-item-num {
  font-size: 10px;
  border-radius: 10px 0px 5px 0px;
  width: 20px;
  left: 0;
  text-align: center;
  padding: 1px 0px;
}

.player-num {
  border-radius: 5px 0px 5px 0px;
  width: 15px;
  left: 0;
}

.player-pos {
  right: 0;
  border-radius: 0px 5px 0px 5px;
  width: 25px;
}

.player-descr {
  display: flex;
  justify-content: center;
  background-color: #212148;
  color: #fff;
  border-radius: 5px;
  padding: 3px;
  height: 45%;
  width: 100%;
  align-items: center;
  z-index: 2;

}

.player-stats, .player-name {
  overflow: hidden;
  white-space: nowrap;
}

.player-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55%;
  width: 100%;
  flex-wrap: wrap;
  overflow: hidden;
}

.player-stat {
  display: flex;
  align-items: center;
}

.player-stat:not(:last-child) {
  margin-right: 5px;
}

.player-stat img {
  width: 15px;
  height: 15px;
}

.player-stat-span {
  margin-left: 2px;
}

/* Footer */

.footer__container {
  background-image: none;
}

.footer__top {
  display: none;
}

@media (max-width: 1399px) {

  header {
    margin-bottom: 30px;
  }

  .matches__team {
    width: auto;
  }

  .matches__team__name {
    font-size: 32px;
  }

  .matches__content__top__tournament {
    font-size: 22px;
  }

  .matches__content__top__date {
    font-size: 18px;
  }

  .matches__score {
    font-size: 36px;
  }

  .squad-item-name {
    font-size: 14px;
  }

  .custom-range-team {
    font-size: 14px;
  }

}


@media (max-width: 1199px) {

  .field-container {
    width: 49%;
  }

  .squad-items {
    width: 49%;
  }

  .squad-item {
    width: 100%;
    height: 60px;
  }

  .matches__team__name {
    font-size: 22px;
  }

  .matches__content__top__tournament {
    font-size: 18px;
  }

  .matches__content__top__date {
    font-size: 14px;
  }

  .matches__score {
    font-size: 32px;
    width: 46px;
  }

  .matches__team__img__container {
    width: 80px;
    height: 80px;
  }

  .matches__team {
    height: 80px;
  }

  .matches__team__logo__home {
    margin-left: 10px;
  }

  .matches__team__logo__guest {
    margin-right: 10px;
  }

  .player-stat img {
    width: 12px;
    height: 12px;
  }

  .matches__score__pen {
    font-size: 14px;
    margin-top: 5px;
  }

  .squad-item-photo {
    width: 60px;
  }

}

@media (max-width:899px) {

  .squad-items, .field-container {
    width: 100%;
  }

  .field-container {
    margin-bottom: 20px;
    max-width: 500px;
  }

  .squad-container {
    flex-wrap: wrap;
    flex-direction: column-reverse;
    align-items: center;
  }

  .squad-item {
    margin-bottom: 5px;
  }

  .matches__content__top {
    min-height: 0;
  }

  .matches__content__middle {
    flex-direction: row;
  }

  .mathces__content__middle-result {
    margin-bottom: 0;
  }

  .matches__team__name {
    font-size: 18px;
  }

  .matches__content__top__tournament {
    font-size: 16px;
  }

  .matches__content__top__date {
    font-size: 14px;
  }

  .matches__score {
    font-size: 28px;
    width: 40px;
  }

  .matches__team__img__container {
    width: 70px;
    height: 70px;
  }

  .matches__team {
    height: 70px;
  }

  .range-value {
    font-size: 12px;
    width: 20px;
  }

  .matches__score__pen {
    font-size: 12px;
  }

}

@media (max-width: 767px) {

  .header__container {
    padding: 15px;
  }

  .container {
    padding: 0px 15px;
  }

  .event-circle {
    width: 10px;
    height: 10px;
  }

  .match-result {
    padding: 10px;
  }

  .matches__content {
    padding: 10px 0px;
  }

  .matches__content__top {
    margin-bottom: 20px;
  }

  .custom-range-container {
    margin-bottom: 5px;
    margin-top: 5px;
  }

  .custom-range-team {
    font-size: 12px;
  }

  .range-value {
    font-size: 10px;
  }

  .matches__content__top__tournament {
    font-size: 14px;
  }

  .matches__content__top__date, .matches__team__name {
    font-size: 14px;
  }

  .matches__dots {
    font-size: 16px;
  }

  .matches__team__img__container {
    width: 40px;
    height: 40px;
    margin: 0;
    min-width: 0px;
    margin-right: 10px;
  }

  .matches__team {
    flex-wrap: wrap;
    height: auto;
    align-items: center;
    justify-content: space-between;
  }

  .matches__content__middle__team {
    width: 100%;
    margin-bottom: 10px;
  }

  .matches__team__home {
    flex-direction: row-reverse;
  }

  .matches__content__middle__center {
    display: none;
  }

  .matches__content__middle {
    flex-direction: column;
  }

  .matches__score__mobile {
    display: flex;
    color: #FFF;
    font-size: 22px;
    font-weight: 700;
    line-height: 100%;
    border-radius: 5px;
    background: #212148;
    width: 40px;
    justify-content: center;
    align-items: center;
    height: 30px;
    margin-left: auto;
  }

  .blue {
    font-size: 6px;
  }

  .player * {
    font-size: 5px;
  }


  .player-num {
    width: 10px;
  }

  .player-pos {
    width: 15px;
  }

  .player-stat:not(:last-child) {
    margin-right: 3px;
  }

  .squad-item-name {
    font-size: 12px;
  }

  .squad-item-event span {
    font-size: 8px;
  }

  .squad-item-event-img {
    width: 12px;
    height: 12px;
  }

  .player-stat img {
    width: 9px;
    height: 9px;
  }

  .squad-item {
    height: 45px;
  }

  .squad-item-num {
    font-size: 8px;
    width: 16px;
  }

  .squad-item-event-img {
    margin-right: 3px;
  }

  .squad-item-event {
    margin-right: 10px;
  }

  .squad-item-event {
    height: 13px;
  }

  .period-descr {
    font-size: 10px;
    margin-top: 2px;
    margin-left: 5px;
  }

  .event__item {
    font-size: 10px;
  }

  .event__descr {
    line-height: 120%;
  }

  .event__item img {
    width: 10px;
    height: 10px;
  }

  .event__text {
    margin: auto;
  }

  .player-stat-span {
    margin-left: 1px;
  }

  .time-line {
    height: 2px;
  }

  .matches__score__pen__mobile__container {
    display: block;
    margin-left: 5px;
  }

  /* input[type=range]::-webkit-slider-thumb {
    width: 2px;
  } */

  .squad-item-photo {
    width: 50px;
  }

}
