/* Основные стили */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  color: #000000;
}


/* Стили для шапки сайта */
header {
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  padding: 20px 0;
}

header h1 {
  margin: 0;
  font-size: 2em;
}
.dropdown-menu
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul li a {
    display: block;
    width: 100%;
    max-width: 300px;
    text-align: center;
    background-color: #222;
    border-radius: 6px;
    padding: 10px;
  }
}



#schedule {
  margin-top: 80px;
  overflow-x: auto;
}

/* Основное содержимое */
section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;      /* растягиваем под контейнер */
  object-fit: cover; /* сохраняем пропорции и заполняем всё */
  object-position: center;
  z-index: -1;
}

section .content {
  position: relative;
  z-index: 1; /* контент поверх картинки */
  padding: 20px;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

/* Таблица расписания */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ccc;
}

th {
  background-color: #eee;
}

/* Стили для списка команд */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.team {
  /*background-color: rgba(255, 255, 255, 0.4);*/
  padding: 20px;
  width: calc(50% - 20px);
  /*box-shadow: 0 2px 5px rgb(0, 0, 0);*/
}

.team img {
  max-width: 200%;
  height: auto;
}

/* Стили для новостных блоков */
.news-item {
  background-color: rgb(255, 255, 255);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
  border-radius: 10px;
  background-color: #ffffff;
}

.news-item h3 {
  margin-top: 0;
}

/* Стили для формы */
form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* form {
  max-width: 500px; 
  width: 100%;
} */

form input,
form textarea {
  width: 100%;
  box-sizing: border-box;
}


form button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Футер */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* Общие стили для контейнера */
.container, .content-wrapper {
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
}

.containercon{
  margin: 0;
  padding: 20px;
}

/* Стили для списка команд */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#teams {
  display: flex;
  flex-direction: column;
}

#teams .content {
  flex-grow: 1; /* Контейнер растягивается максимально */
  display: flex;
  flex-direction: column;
}

#teams .container {
  flex-basis: 40%; /* если в флекс-контейнере, чтобы занимать 40% */
  flex-shrink: 0;
  flex-grow: 0;
  background: linear-gradient(135deg, #f25c5c 0%, #ff8080 25%, #3498db 60%, #1e3c72 100%);
  display: flex;             /* делаем flex-контейнером */
  justify-content: center;   /* центр по горизонтали */
  align-items: center;       /* центр по вертикали */
  flex-direction: column;    /* если хочешь расположить элементы вертикально */
  padding: 50px 0;
}


#teams .teams-title {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 800;
  font-size: 54px;
  color: #ffffff;
  text-align: center;
  margin: 30px 0;
  text-transform: uppercase;
  pointer-events: none;
}

/* Стили для ссылок на команды */
.team-link {
  text-decoration: none;
  color: inherit;
}

/* Стили для карточек команд */
.team {
  display: flex;
  align-items: center;
  width: 150px; /* Фиксированная ширина для всех карточек */
  height: 150px;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  justify-content: center;
}

.team img.special-size {
  height: auto;
  width: 90%;
}


/* Стили для изображений команд */
.team img {
  width: 100%;
  height: auto;
}

/* Стили для названий команд */
.team h3, .team-title {
  font-size: 1.5em;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  pointer-events: none; /* чтобы текст не мешал кликам */
}

/* Стили для описания команд */
.team p {
  margin-top: 10px;
  font-size: 1em;
  color: #000000;
}

.live-btn {
  display: inline-block; /* Отображение в виде встроенного блока */
  width: 50px; /* Ширина кнопки */
  height: 20px; /* Высота кнопки */
  background-image: url('image/live.png'); /* Путь к вашему изображению */
  background-size: cover; /* Масштабирование изображения по размеру кнопки */
  background-position: center; /* Центрирование изображения внутри кнопки */
  border: none; /* Убираем рамку */
  text-indent: -9999px; /* Скрываем текст внутри кнопки */
  cursor: pointer; /* Курсор в виде руки при наведении */
  position: relative; /* Для использования псевдоэлемента */
}

.times-btn {
  display: inline-block; /* Отображение в виде встроенного блока */
  width: 15px; /* Ширина кнопки */
  height: 15px; /* Высота кнопки */
  background-image: url('image/time.png'); /* Путь к вашему изображению */
  background-size: cover; /* Масштабирование изображения по размеру кнопки */
  background-position: center; /* Центрирование изображения внутри кнопки */
  border: none; /* Убираем рамку */
  text-indent: -9999px; /* Скрываем текст внутри кнопки */
  cursor: pointer; /* Курсор в виде руки при наведении */
  position: relative; /* Для использования псевдоэлемента */
}

.live-btn:hover {
  opacity: 0.8; /* Прозрачность при наведении */
}



/* Отключаем возможность взаимодействия с кнопкой, если она серая */
.live-btn.greyed {
  cursor: not-allowed; /* Курсор в виде запрета */
  display: inline-block; /* Отображение в виде встроенного блока */
  width: 50px; /* Ширина кнопки */
  height: 20px; /* Высота кнопки */
  background-image: url('image/liveoff.png'); /* Путь к вашему изображению */
  background-size: cover; /* Масштабирование изображения по размеру кнопки */
  background-position: center; /* Центрирование изображения внутри кнопки */
  border: none; /* Убираем рамку */
  text-indent: -9999px; /* Скрываем текст внутри кнопки */
  position: relative; /* Для использования псевдоэлемента */
}



.match-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.team-info {
  width: 30%;
}

.team-info img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.match-score {
  width: 30%;
  text-align: center;
}

.stat-bar {
  width: 100%;
  height: 10px;
  background: #ddd;
  position: relative;
  margin-top: 10px;
}

.stat-line {
  height: 100%;
  background: #007bff;
}
.match-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  margin-top: 20px;
  border: solid 2px rgba(17, 17, 17, .2);
  flex-wrap: wrap;
  background-color: #3498db47;
}

.team {
  flex: 1;
}

.team-left {
  text-align: right;
}

.team-right {
  text-align: left;
}

.score {
  font-size: 2rem;
  font-weight: bold;
  min-width: 100px;
}

.score-score {
  display: flex;
  height: 20px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
}

.score-comparison {
  display: flex;
  height: 20px;
  margin: 0;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.score-assist {
  display: flex;
  height: 20px;
  margin: 0;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.score-rebound {
  display: flex;
  height: 20px;
  margin: 0;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.score-steals {
  display: flex;
  height: 20px;
  margin: 0;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}
.score-turnovers {
  display: flex;
  height: 20px;
  margin: 0;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}
.score-blocks {
  display: flex;
  height: 20px;
  margin: 0;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}
.score-fouls {
  display: flex;
  height: 20px;
  margin: 0;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: #3498db;
  border-radius: 8px 0 0 8px;
}

.bar.right {
  background: #e74c3c;
  border-radius: 0 8px 8px 0;
}

.match-details .team {
  background: none; /* Убираем фон */
  border: none; /* Убираем границу */
  box-shadow: none; /* Убираем тень (если была) */
  padding: 0; /* Убираем внутренние отступы */
  text-align: center; /* Логотип и текст центрируем */
}

.match-details .team img {
  width: 150px; /* Уменьшаем логотип */
  height: auto; /* Сохраняем пропорции */
  display: block;
  margin: 0 10px 0 0;
}

.team img.special-size {
  height: auto; /* Сохраняем пропорции */
}

.match-details .score-score {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}

.match-details .score-comparison {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}
.match-details .score-assist {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}
.match-details .score-rebound {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}

.match-details .score-steals {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}

.match-details .score-turnovers {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}

.match-details .score-blocks {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}

.match-details .score-fouls {
  height: 20px; /* Увеличенная высота */
  margin: 10px;
  margin-bottom: 30px;
}

.match-details .score-averages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  position: relative;
  margin-top: 0;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
}

.match-details .team1-average {
  position: absolute;
  left: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team2-average {
  position: absolute;
  right: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team1-assist {
  position: absolute;
  left: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team2-assist {
  position: absolute;
  right: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team1-rebound {
  position: absolute;
  left: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team2-rebound {
  position: absolute;
  right: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team1-steals {
  position: absolute;
  left: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team2-steals {
  position: absolute;
  right: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}
.match-details .team1-turnovers {
  position: absolute;
  left: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team2-turnovers {
  position: absolute;
  right: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}
.match-details .team1-blocks {
  position: absolute;
  left: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team2-blocks {
  position: absolute;
  right: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}
.match-details .team1-fouls {
  position: absolute;
  left: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-details .team2-fouls {
  position: absolute;
  right: 10px;
  margin-top: 30px;
  margin-bottom: 0;
}

.match-center {
  text-align: center;
  margin: 0 20px;
}

.match-date {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.match-location {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

.score {
  font-size: 32px;
  font-weight: bold;
  margin: 10px 0;
}

.circle {
  display: inline-block; /* Размещает кружки в строку */
  width: 15px;           /* Размер кружка */
  height: 15px;          /* Размер кружка */
  border-radius: 50%;    /* Округлая форма */
  margin: 0;             /* Убираем отступы между кружками */
  background-color: gray; /* Цвет по умолчанию, можно поменять на другие в зависимости от состояния */
}

.circle.win {
  background-color: green; /* Зеленый цвет для победы */
}

.circle.loss {
  background-color: red;   /* Красный цвет для поражения */
}

.team-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
}


html, body {
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
  margin-top: 1%;
}

.score-section {
  background-color: #3498db47;
  padding: 15px;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.score-title {
  margin: 0;
  padding: 0;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #000000;
  transition: color 0.2s ease;
  text-align: center;
  text-transform: uppercase;
}

#calendar {
  margin-top: 20px;
}

.calendar {
  flex-wrap: wrap;
  gap: 0;
  justify-content: space-between;
}

.calendar-day {
  width: 30%;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #f9f9f9;
}

.calendar-day.no-matches {
  background-color: #e0e0e0; /* Серая для дней без матчей */
}

.calendar-day h3 {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.match-list {
  list-style: none;
  padding: 0;
}

.match-list li {
  margin-bottom: 5px;
}

.match-list .team1,
.match-list .team2 {
  font-weight: bold;
}

.match-list .location {
  font-style: italic;
}

.calendar-day p {
  text-align: center;
  font-style: italic;
}

/* Основные стили для таблицы календаря */
.calendar {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.calendar th, .calendar td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  vertical-align: top;
}

.calendar th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.calendar td {
  min-height: 80px;
}

/* Стили для списка матчей */
ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  font-size: 16px;
}

strong {
  display: block;
  margin-bottom: 5px;
}

/* Адаптивные стили */

/* Для экранов от 1200px и больше */
@media (min-width: 1200px) {
  .calendar-day {
    width: 22%; /* Меньше пространства между ячейками на больших экранах */
    padding: 15px;
  }

  .calendar-day h3 {
    font-size: 1.5em;
  }

  .match-list li {
    font-size: 18px;
  }
}

/* Для экранов от 992px до 1199px (планшеты и маленькие десктопы) */
@media (min-width: 992px) and (max-width: 1199px) {
  .calendar-day {
    width: 45%; /* Два элемента в строке */
    padding: 12px;
  }

  .calendar-day h3 {
    font-size: 1.4em;
  }

  .match-list li {
    font-size: 17px;
  }
}

/* Для экранов от 768px до 991px (планшеты в ландшафтной ориентации) */
@media (min-width: 768px) and (max-width: 991px) {
  .calendar-day {
    width: 48%; /* Два элемента в строке, немного больше отступ */
    padding: 12px;
  }

  .calendar-day h3 {
    font-size: 1.3em;
  }

  .match-list li {
    font-size: 16px;
  }
}

/* Для экранов от 576px до 767px (мобильные устройства в ландшафтной ориентации) */
@media (min-width: 576px) and (max-width: 767px) {
  .calendar-day {
    width: 48%; /* Два элемента в строке */
    padding: 10px;
  }

  .calendar-day h3 {
    font-size: 1.2em;
  }

  .match-list li {
    font-size: 15px;
  }
}

/* Для экранов до 575px (мобильные устройства) */
@media (max-width: 575px) {
  .calendar-day {
    width: 100%; /* Каждый элемент на новой строке */
    padding: 8px;
  }

  .calendar-day h3 {
    font-size: 1.1em;
  }

  .match-list li {
    font-size: 14px;
  }

  /* Настройки для таблицы */
  .calendar th, .calendar td {
    padding: 8px;
  }

  .calendar td {
    min-height: 60px;
  }
}


.live-stat-btn {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.live-stat-btn:hover {
  background-color: #c9302c;
}

/* Стили для формы */
.auth-form {
  width: 300px;
  margin: 50px auto; /* Центрируем форму по горизонтали */
  padding: 20px;
  background-color: #f8f9fa; /* Светлый фон формы */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Стили для заголовков формы */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

/* Стили для текста ошибок (если потребуется) */
.error {
  color: red;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 15px;
}

/* Стили для кнопок регистрации и входа */


/* Стили для модальных окон */
.modal {
  display: none; 
  position: fixed;
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 100%;
}

/* Кнопка закрытия модального окна */
.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 0;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Стили для формы в модальном окне */
.auth-form {
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Остальные стили для полей ввода и кнопки */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
}

.form-input:focus {
  border-color: #ffffff;
  outline: none;
}

.form-button {
  width: 100%;
  padding: 12px;
  background-color: #ffffff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.form-button:hover {
  background-color: #ffffff;
}

#sponsors {
  background-color: rgba(0, 0, 0, 0.0);
  text-align: center;
}
#sponsors h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.sponsor-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.sponsor-logos img {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  border-radius: 10px;
}
.sponsor-logos img:hover {
  filter: grayscale(0%);
}

/* Стили для раздела команд */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px; /* фиксированная ширина карточки */
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #fff;
  transition: transform 0.2s ease;
}
.team-card:hover {
  transform: scale(1.03);
}
.team-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.team-card h3 {
  margin-top: 10px;
  font-size: 1.2em;
}

/* Уменьшаем ширину и высоту полей ввода */
form input[type="text"], 
form input[type="password"], 
form input[type="email"] {
    width: 100%; /* или любое другое значение для уменьшения ширины */
    padding: 10px; /* уменьшение внутреннего отступа */
    font-size: 15px; /* уменьшение размера шрифта */
    margin: 10px 0; /* отступ сверху и снизу */
}

/* Для кнопки тоже можно задать размеры */
form button {
    width: 100%; /* или любое другое значение для кнопки */
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'GT Eesti Pro Display', sans-serif;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.6;
}

.player-card {
  display: flex;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px;
  align-items: flex-start; /* Выравнивание элементов по верхнему краю */
}

.left-column {
  margin-right: 20px; /* Отступ между левой колонкой и таблицей */
  /* Убираем text-align: center */
}

.player-photo {
  margin: 0 auto;
  width: 130px; /* Фиксированная ширина для фото */
  height: 130px;
  position: relative;
}

.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-name {
  font-family: 'GT Eesti Pro Display', sans-serif;
  margin-bottom: 6px;
  text-align: left;         /* Имя начинается от левого края блока */
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.player-number {
  font-family: 'GT Eesti Pro Display', sans-serif;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px 0 0 0;
}

.player-info {
  flex-grow: 1; /* Заставляем таблицу растягиваться на оставшееся пространство */
}


.player-header {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
}
.stats-table td {
  border: 1px solid #ccc;
  text-align: center;  
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 10px;
  padding: 8px 10px;
}
.stats-table th {
  background-color: #eee;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 1;
}
/* Стили для вкладок */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3.75rem;
  margin-top: 3.75rem;
  border-bottom: 2px solid rgba(17, 17, 17, .2);
  border-top: 2px solid rgba(17, 17, 17, .2);
  background-color: #3498db47;
}

.tabs.no-margin {
  margin-bottom: 0;      /* без отступа */
}

.tab-button {
  font-family: 'GT Eesti Pro Display', sans-serif;
  padding: 1rem 0 0.625rem;
  margin-bottom: -0.15625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 0.1875rem solid rgba(0, 0, 0, 0);
  text-transform: uppercase;
  z-index: 2;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  margin-right: 1.9rem;
  margin-left: 1.9rem;
}

.tab-button.active, .tab-button:hover {
  color: #ffffffa6;
  border-bottom: 0.1875rem solid #ffffffa6;
  background-color: rgba(0, 0, 0, 0);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.center-text {
  text-align: center;
}
.team-container {
  border-bottom: 2px solid rgba(17, 17, 17, .2);
  border-top: 2px solid rgba(17, 17, 17, .2);
  display: flex;
  align-items: center;
  margin-bottom: 3.75rem;
  padding: 0 10px;
  background-color: #3498db47;
}

@media (min-width: 1204px) {
  .containermatch {
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
  }
}

.team-containerstat {
  align-items: center;
  margin-bottom: 3.75rem;
}

.team-logo-img {
  max-width: 150px;  /* Ограничиваем максимальный размер логотипа */
  height: auto;
  margin-right: 15px;  /* Отступ справа от логотипа */
}
.team-logo-img.special-size {
  width: 100px;
  height: auto;
  padding: 25px 0;
}

.team-title {
  margin: 0;  /* Убираем стандартные отступы у заголовка */
  font-size: 36px;  /* Устанавливаем размер шрифта */
  font-weight: bold;  /* Сделаем название команды жирным */
}
.team-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}


.top-players {
  margin-top: 6rem;
}

.player-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #3498db47;
  border-bottom: 2px solid rgba(17, 17, 17, .12);
  border-top: 2px solid rgba(17, 17, 17, .12);
}

.player-side {
  width: 30%;
  text-align: center;
  padding: 2% 0 2% 0;
}

.player-info {
  position: relative;
  display: inline-block;
}

.player-info img {
  width: 150px;  /* было 100px */
  height: 150px; /* было 100px */
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}


.player-info .stat-name {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #000000;
}

.player-info .stat-value {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #666;
}

/* Значение справа от фото для первой команды */
.player-info.left .stat-value {
  left: 110%;
  text-align: left;
}

/* Значение слева от фото для второй команды */
.player-info.right .stat-value {
  right: 110%;
  text-align: right;
}

.stat-bar {
  width: 40%;
  text-align: center;
  background: none;
  padding: 0;
  margin: 0;
  border: none;
  margin-top: -100px;
}

.stat-title {
  margin-bottom: 10px;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #000000;
  text-transform: uppercase;
}

.bar-wrapper {
  display: flex;
  height: 16px;
  overflow: hidden;
}

.bar {
  height: 100%;
}

.bar.left {
  background-color: #3498db;
  border-radius: 8px 0 0 8px;
}

.bar.right {
  background-color: #e74c3c;
  border-radius: 0 8px 8px 0;
}
.bar-values {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #000000;
  text-transform: uppercase;
}

.bar-value.left {
  text-align: left;
}

.bar-value.right {
  text-align: right;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Основные стили для страницы */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

header {
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 24px;
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

.admin-controls {
  display: flex;
  justify-content: flex-end;
}

.btn {
  padding: 10px 20px;
  background-color: #007bff;
  border: none;
  color: white;
  cursor: pointer;
}

.btn:hover {
  background-color: #0056b3;
}

/* Центрирование календаря */
#calendar {
  display: flex;
  justify-content: center;
  margin-top: 100px;
  width: 100%;
  background-color: transparent;
}

.calendar-day.other-month .day-number {
  color: #bbb;
}

.months-pair {
  flex: 0 0 100%;
  display: flex;
  gap: 200px;
  background: #fff;
  padding: 20px 20px 0 20px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  max-height: 675px;
}

.calendar thead th {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  margin-bottom: 0;
  text-align: center;
  padding: 8px 0;
  background: #f0f0f000;
  border-bottom: 2px solid rgb(0, 0, 0);
  border-top: 1px solid rgba(0, 0, 0, 0);
  border-left: 1px solid rgba(0, 0, 0, 0);
  border-right: 1px solid rgba(0, 0, 0, 0);
}

#upcoming {
  background-color: white;
  border-radius: 0 0 10px 10px;
  max-width: 100%;
  margin-bottom: 60px;
}

.month-calendar {
  flex: 1;
}

.calendar-title {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #000;           /* черный цвет */
  margin-bottom: 10px;
  text-align: left;       /* выравнивание по левой границе */
}

table.calendar {
  table-layout: fixed;   /* обязательно для одинаковой ширины ячеек */
  width: 100%;
  border-collapse: collapse;
}

table.calendar td {
  width: calc(100% / 7); /* равная ширина для 7 дней */
  text-align: center;
  vertical-align: top;
  border: 1px solid #dddddd00;
  box-sizing: border-box;
  overflow: hidden;       /* обрезаем переполнение */
}

.calendar thead th.weekend {
  color: red;
}

.calendar-day.weekend .day-number {
  color: red;
}


.calendar-day {
  position: relative;
  background-color: #fafafa00;
  cursor: pointer;
  transition: background-color 0.3s;
  flex-direction: column;
  justify-content: flex-start; /* чтобы день был сверху */
  align-items: center;
  height: 100%;
}

.day-number {
  font-weight: bold;
  margin-bottom: 5px;
}

.matches-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  overflow: hidden;
}



.calendar-day:hover {
  background-color: #f1f1f1;
}

.day-number {
  font-size: 18px;
  font-weight: bold;
}

.matches-list {
  padding: 0;
  list-style-type: none;
}

.matches-list li {
  font-size: 14px;
  line-height: 1.5;
}

.matches-list li span.team1,
.matches-list li span.team2 {
  font-weight: bold;
  padding: 0 5px;
}

.matches-list li span.location {
  font-size: 12px;
  color: #666;
}

.no-matches {
  font-size: 14px;
  color: #888;
}

h2.text-center {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 400px;
}

.modal h2 {
  margin-top: 0;
  font-size: 24px;
}

.modal label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.modal input, .modal select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.modal button {
  width: 100%;
  padding: 10px;
  background-color: #222;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.modal button:hover {
  background-color: #222;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  cursor: pointer;
}

.close:hover {
  color: #222;
}


/* Стиль для контейнера кнопок */
.pagination {
  display: flex;
  justify-content: flex-end; /* Располагаем кнопки справа */
  margin-bottom: 20px;
}

/* Стиль для кнопок */
.pagination button {
  background-color: #333; /* Зеленый фон */
  color: white; /* Белый текст */
  padding: 10px 20px; /* Отступы */
  border: none; /* Убираем рамки */
  border-radius: 5px; /* Скругленные углы */
  cursor: pointer; /* Курсор в виде руки */
  transition: background-color 0.3s ease; /* Плавный переход цвета */
  font-size: 16px; /* Размер шрифта */
  margin-left: 10px; /* Отступ между кнопками */
}

/* Стиль при наведении на кнопку */
.pagination button:hover {
  background-color: #333; /* Темно-зеленый при наведении */
}

/* Стиль для кнопки "Предыдущие" */
#prevPage {
  background-color: #22222200; /* Красный фон */
}

/* Стиль при наведении на кнопку "Предыдущие" */
#prevPage:hover {
  background-color: #5a5a5a; /* Темно-красный при наведении */
}

/* Стиль для кнопки "Следующие" */
#nextPage {
  background-color: #22222200; /* Синий фон */
}

/* Стиль при наведении на кнопку "Следующие" */
#nextPage:hover {
  background-color: #5a5a5a; /* Темно-синий при наведении */
}

.calendar-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  width: 100%;
  padding: 10px;
  align-items: stretch; /* это важно для выравнивания по высоте */
}



.month-calendar {
  flex-direction: column;
  justify-content: center; /* Центрирует содержимое по вертикали */
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 30px;
  min-width: 300px;
  height: auto;
  box-sizing: border-box;
}

.month-calendar .calendar {
  width: 100%;
}

@media (max-width: 1400px) {
  .calendar-container > .month-calendar {
    width: 100%; /* На экранах меньше 768px каждый календарь занимает всю ширину */
  }

  .calendar-container {
    padding: 0 5px; /* Меньшие отступы для мобильных устройств */
  }
}


/* Адаптив для мобильных устройств — по одному в строку */
@media screen and (max-width: 768px) {
  .calendar-container {
    flex-direction: column;
    align-items: center;
  }

  .month-calendar {
    width: 100%;
  }
}

.day-number {
  font-size: 22px;          /* Крупнее номер дня */
}

.matches-list li {
  font-size: 16px;          /* Крупнее текст матчей */
}

.matches-list li span.location {
  font-size: 14px;          /* Крупнее локация */
}

.calendar-day .match-link:hover {
  color: #0056b3;
  text-decoration: underline;
}
/* Стили для карточек матчей */
.match-item {
  margin-bottom: 10px;
}

.match-link {
  display: block;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.match-link:hover {
  background-color: #f1f1f1;
}

.match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-location {
  font-size: 0.9em;
  color: #777;
}


.day-number {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

/* Стиль для дней без матчей */
.no-matches {
  color: #999;
  font-style: italic;
}

header {
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  padding: 20px 0;
  position: relative; /* ВАЖНО: чтобы auth-container позиционировался относительно header */
}


/* Teams Section Styles */
.teams {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team {
  flex: 1;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}

.team h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #007bff;
}

.team p {
  font-size: 16px;
  margin: 5px 0;
}

/* Form and Control Section Styles */
.quarter-selector, .score-buttons, .timer-controls {
  margin-bottom: 30px;
  padding: 2px;
  width: 5%;
}

.score-buttons {
  margin-bottom: 30px;
  padding: 2px;
  width: 100%;
}

.quarter-selector label {
  font-size: 16px;
  margin-right: 10px;

}
.add-player-btn, .end-match-btn {
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

/* Button Styles */
.timer-btn, .timeout-btn {
  padding: 5px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.timer-btn {
  background-color: #5bc0de; /* Light blue for timer buttons */
  color: white;
}

.timer-btn:hover {
  background-color: #31b0d5;
}

.timeout-btn {
  background-color: #d9534f; /* Red for timeout button */
  color: white;
}

.timeout-btn:hover {
  background-color: #c9302c;
}

.add-player-btn {
  background-color: #28a745; /* Green for add player buttons */
  color: white;
}

.add-player-btn:hover {
  background-color: #218838;
}

.end-match-btn {
  background-color: #f0ad4e; /* Orange for end match button */
  color: white;
}

.end-match-btn:hover {
  background-color: #ec971f;
}

/* Timer Display */
#timerDisplay {
  font-size: 24px;
  font-weight: bold;
  color: #d9534f;
  margin-top: 10px;
}

/* Match Controls */
.match-controls {
  text-align: center;
}

/* Общие стили для контейнера с игроками на площадке */
#team1OnCourt, #team2OnCourt {
  justify-items: center;
  margin-top: 0;
  padding: 1px;
}

#team1OnCourt .player, #team2OnCourt .player {
  text-align: center;
  margin: 10px 0;
  font-size: 16px; /* Увеличен размер шрифта */
  width: 100%;
  color: #444;
  border: solid 2px rgba(17, 17, 17, .0);
}

/* Стили для текста игрока */
#team1OnCourt .player p, #team2OnCourt .player p {
  font-size: 18px;
  margin-bottom: 18px; /* Увеличен отступ */
  color: #007bff;
  font-weight: bold;
  text-transform: capitalize;
}

/* Стили для кнопок */
#team1OnCourt button, #team2OnCourt button {
  padding: 2px 2px; /* Увеличены внутренние отступы */
  font-size: 12px; /* Увеличен размер шрифта */
  text-align: center;
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #00bcd4, #007bff);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35px; /* Увеличен размер кнопки */
  height: 35px; /* Увеличен размер кнопки */
  font-weight: 600;
}

/* Эффект при наведении */
#team1OnCourt button:hover, #team2OnCourt button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 123, 255, 0.3);
}

/* Эффект нажатия */
#team1OnCourt button:active, #team2OnCourt button:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* Разделение кнопок на категории */
#team1OnCourt button.points, #team2OnCourt button.points {
  background: #28a745; /* Зеленый для очков */
}

#team1OnCourt button.assist, #team2OnCourt button.assist {
  background: #ffc107; /* Желтый для передачи */
}

#team1OnCourt button.rebound, #team2OnCourt button.rebound {
  background: #17a2b8; /* Голубой для подборов */
}

#team1OnCourt button.steals, #team2OnCourt button.steals {
  background: #f0ad4e; /* Оранжевый для перехватов */
}

#team1OnCourt button.turnovers, #team2OnCourt button.turnovers {
  background: #d9534f; /* Красный для потерь */
}

#team1OnCourt button.blocks, #team2OnCourt button.blocks {
  background: #6610f2; /* Фиолетовый для блокшотов */
}

#team1OnCourt button.fouls, #team2OnCourt button.fouls {
  background: #e83e8c; /* Розовый для фолов */
}

#team1OnCourt button.remove, #team2OnCourt button.remove {
  background: #dc3545; /* Красный для удаления */
}

/* Цвета при наведении для различных категорий */
#team1OnCourt button.points:hover, #team2OnCourt button.points:hover {
  background: #218838;
}

#team1OnCourt button.assist:hover, #team2OnCourt button.assist:hover {
  background: #e0a800;
}

#team1OnCourt button.rebound:hover, #team2OnCourt button.rebound:hover {
  background: #138496;
}

#team1OnCourt button.steals:hover, #team2OnCourt button.steals:hover {
  background: #ec971f;
}

#team1OnCourt button.turnovers:hover, #team2OnCourt button.turnovers:hover {
  background: #c9302c;
}

#team1OnCourt button.blocks:hover, #team2OnCourt button.blocks:hover {
  background: #5e0b99;
}

#team1OnCourt button.fouls:hover, #team2OnCourt button.fouls:hover {
  background: #d63384;
}

#team1OnCourt button.remove:hover, #team2OnCourt button.remove:hover {
  background: #c82333;
}
.no-wrap {
  white-space: nowrap;
}
.center-align {
  text-align: center; /* Выравнивание по горизонтали */
  vertical-align: middle; /* Выравнивание по вертикали */
}
.b-results-score {
  width: 100%;
  font-family: Arial, sans-serif;
  padding: 1.125rem 1.875rem;
  border-top: solid 1px rgba(17, 17, 17, .2);
}

.b-results-score .row {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-right: -5px;
  margin-left: -5px;
  display: flex;
}

.b-results-score .row>.col, .b-results-score .row>[class*=col-] {
  padding-right: 5px;
  padding-left: 5px;
}


@media (min-width: 1204px) {
  .col-xl-6 {
      -webkit-box-flex: 0;
      max-width: 50%;
  }
}
@media (min-width: 1204px) {
  .col-xl-2 {
      -webkit-box-flex: 0;
      -ms-flex: 0 0 26.6666666667%;
      flex: 0 0 26.6666666667%;
      max-width: 26.6666666667%;
  }
}
@media (min-width: 1204px) {
  .col-xl-4 {
      -webkit-box-flex: 0;
      -ms-flex: 0 0 33.3333333333%;
      /* flex: 0 0 33.3333333333%; */
      max-width: 33.3333333333%;
      padding-left: 5%;
  }
}
@media (max-width: 1200px) {
  .b-results-score .row {
    flex-wrap: wrap;
  }
  .col-xl-4 {
    padding: 5px 0 0 0;
  }
}



.b-results-score__title {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #000000;
  transition: color 0.2s ease;
  text-align: center;
  pointer-events: none;
}

.b-results-score__row {
  display: flex;
  justify-content: space-between;
}

.b-results-score__item {
  font-family: 'GT Eesti Pro Display', sans-serif;
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  margin-right: 0.8125rem;
  min-width: 96px;
  height: 40px;
  border-radius: 4px;
  border: solid 1px rgba(17, 17, 17, .2);
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  pointer-events: none;
}

.b-results-score__item:hover {
  /* никаких изменений размеров */
  border: solid 1px rgba(17, 17, 17, .2); 
  transform: none;
  background: inherit;
}

.b-results-score__score-1 {
  position: relative;
  margin: -1px;
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  background-color: #111;
  padding: 0.3125rem 0.3125rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
}

.b-results-score__score-2 {
  -webkit-box-flex: 1;
  -ms-flex: auto;
  flex: auto;
  font-size: 1.125rem;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.b-results-score__score-1 span {
  display: inline-block;
  width: 100%;
}
#game-progress {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.quarter-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3.75rem;
  border-bottom: 2px solid rgba(17, 17, 17, .2);
  background-color: #3498db47;
}

.quarter-tab-button {
  font-family: 'GT Eesti Pro Display', sans-serif;
  padding: 1rem 0 0.625rem;
  margin-bottom: -0.15625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 0.1875rem solid rgba(0, 0, 0, 0);
  text-transform: uppercase;
  z-index: 2;
  border: none;
  background-color: rgba(0, 0, 0, 0);
  margin-right: 1.9rem;
  margin-left: 1.9rem;
}

.quarter-tab-button.active, .quarter-tab-button:hover {
  color: #ffffffa6;
  border-bottom: 0.1875rem solid #ffffffa6;
  background-color: rgba(0, 0, 0, 0);
}


.quarter-content {
  margin-top: 10px;
}

.quarter-title {
  font-size: 1.2em;
  margin: 10px 0;
}

.game-log-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

.game-log-table thead th {
  background-color: #f1f1f1;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.game-log-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.team-column {
  width: 40%;
}

.time-column {
  width: 20%;
  font-weight: bold;
}

.player-play {
  font-size: 0.95em;
}

.b-statistics__item {
  position: relative;
  margin-bottom: 45px;
  border-radius: 6px;
  border: solid 1px rgba(15, 15, 15, .1);
  background-color: #3498db;
}

.b-statistics__header {
  font-family: 'GT Eesti Pro Display', sans-serif;
  background-color: rgba(15, 15, 15, .1);
  padding: 0.82rem 0.94rem;
  font-size: 24px;
  font-weight: 500;
  color: rgba(15, 15, 15, .6);
  text-align: center;
}

.b-statistics__logo img {
  flex: none;
  margin-right: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(34, 34, 34, .1);
}

.b-statistics__name {
  font-family: 'GT Eesti Pro Display', sans-serif;
  flex: auto;
  padding-right: 15px;
  font-size: 1.3125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.b-statistics__score {
  font-family: 'GT Eesti Pro Display', sans-serif;
  flex: none;
  margin-left: auto;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.b-statistics__row {
  margin-bottom: 1.3125rem;
  display: flex;
  align-items: center;
}

.b-statistics__row div {
  margin-right: 15px;
}

.b-statistics__body {
  padding: 0.94rem 1.4rem 0;
}

.b-statistics__date {
  margin-bottom: 1.2rem;
  padding-bottom: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(15, 15, 15, .6);
  border-bottom: 1px solid rgba(15, 15, 15, .1);
}

.playoff-match {
  width: 360px;
  height: 210px;
  box-sizing: border-box;
}

/* Отступ под финалом */
.playoff-match.third-place {
  margin-top: 30px;
  padding-top: 15px;
  margin-bottom: 25px;
  border-top: 2px dashed #bbb;
}

/* Сетка плейофф */
.playoff-grid {
  display: flex;
  justify-content: center;
  gap: 120px;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin-top: 45px;
  position: relative;
}


.round {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.round.semifinals {
  padding: 0 0 0 5%;
}

.round.final {
  padding: 0 0 0 5%;
}

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 180px;
  margin-top: 135px;
}

.b-statistics__line {
  width: 22.5px; /* 15 * 1.5 */
  height: 180px; /* 120 * 1.5 */
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  border-right: 1px solid rgba(17, 17, 17, 0.12);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  position: absolute;
  right: -24px; /* -16 * 1.5 */
  top: 183px;    /* 122 * 1.5 */
}

.b-statistics__line::before {
  position: absolute;
  content: "";
  top: 50%;
  right: -60px; /* -17 * 1.5 */
  margin-top: -0.75px; /* -0.5 * 1.5 */
  height: 1px;
  width: 60px; /* 16 * 1.5 */
  background-color: rgba(17, 17, 17, 0.12);
}

.round.qualifiers .playoff-match {
  position: relative;
}

.round.qualifiers .playoff-match::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  width: 80px;
  height: 2px;
  background: #ffffff;
}

.round.semifinals .playoff-match {
  position: relative;
}

.round.semifinals .playoff-match::before {
  content: "";
  position: absolute;
  left: -80px;
  top: 50%;
  width: 80px;
  height: 2px;
  background: #ffffff;
}

/* для верхнего матча */
.round.qualifiers .playoff-match:nth-child(1)::after {
  top: 50%;
}

/* для нижнего матча */
.round.qualifiers .playoff-match:nth-child(2)::after {
  top: 50%;
}
.round.semifinals .playoff-match:nth-child(1)::before {
  top: 50%;
}

.round.semifinals .playoff-match:nth-child(2)::before {
  top: 50%;
}

.round.semifinals .playoff-match::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  width: 80px;
  height: 2px;
  background: #ffffff;
}
.round.final .playoff-match {
  position: relative;
}

.round.final .playoff-match::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  width: 30px;
  height: 2px;
  background: #ffffff;
}
.round.semifinals {
  position: relative;
}

.round.semifinals::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 22%;
  width: 2px;
  height: 56%;
  background: #ffffff;
}
.playoff-match.third-place::before,
.playoff-match.third-place::after {
    display: none !important;
}
/* Привязка к конкретным линиям из 1/4 в 1/2 */
.line-qf-to-sf.line-0 { top: 150px; left: 300px; width: 60px; height: 180px;}
.line-qf-to-sf.line-2 { top: 690px; left: 300px; width: 60px; height: 180px;}

/* Из 1/2 в финал */
.line-sf-to-final.line-0 { top: 280px; left: 780px; width: 60px; height: 460px;}

@media (max-width: 1199px) {
  .line-qf-to-sf,
  .line-sf-to-final,
  .b-statistics__line {
    display: none !important;
  }
}


/* Мобильная адаптивность */
@media (max-width: 768px) {
  .b-statistics__header {
    font-size: 1.2rem;
    padding: 0.5rem 0.6rem;
  }

  .b-statistics__logo img {
    width: 28px;
    height: 28px;
  }

  .b-statistics__name {
    font-size: 1.1rem;
    padding-right: 10px;
  }

  .b-statistics__score {
    font-size: 1.2rem;
  }

  .playoff-match {
    width: 300px;
    height: 170px;
  }

  .playoff-grid {
    flex-direction: column;
    gap: 40px;
  }

  .round {
    gap: 40px;
  }

  .round.semifinals {
    gap: 160px;
    margin-top: 100px;
  }

  .round.final {
    gap: 180px;
    margin-top: 250px;
  }

  .final {
    gap: 100px;
    margin-top: 100px;
  }

  .b-statistics__line {
    width: 18px;
    height: 160px;
    right: -20px;
    top: 140px;
  }

  .b-statistics__line::before {
    right: -45px;
    width: 50px;
  }
}

/* Плашки для планшетов */
@media (max-width: 1224px) {
  .b-statistics__header {
    font-size: 1.3rem;
    padding: 0.7rem 0.8rem;
  }

  .b-statistics__name {
    font-size: 1.2rem;
  }

  .b-statistics__score {
    font-size: 1.3rem;
  }

  .playoff-match {
    width: 330px;
    height: 190px;
  }

  .playoff-grid {
    gap: 80px;
    flex-wrap: wrap;
  }

  .round {
    gap: 50px;
  }
}

a {
  text-decoration: none; /* Убирает подчеркивание */
  color: inherit; /* Наследует цвет родительского элемента */
}

a:focus,
a:hover {
  outline: none; /* Убирает подсветку при фокусировке */
  color: inherit; /* Цвет не изменяется при наведении */
}
.news-item img {
  max-width: 50%;  /* Изображение не будет больше ширины контейнера */
  height: auto;     /* Высота будет изменяться пропорционально ширине */
  border-radius: 8px; /* По желанию, добавьте закругление углов */
}
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  /* Скрываем полосу скролла */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и старый Edge */
}

.table-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.table {
  width: 100%; /* Делаем таблицу шириной 100% от родительского контейнера */
  table-layout: auto; /* Таблица будет автоматически растягиваться */
  background-color: #3498db;
}

nav a.active {
  font-weight: bold;
  border-bottom: 2px solid #FC6D0C;
}
.delete-form {
  display: inline-block;
}

.delete-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.player-num {
  font-weight: bold !important;
  color: #494949 !important;
  font-size: 1.1em !important;
  background-color: #ffffff !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  display: inline-block;
}
.button-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 5px;
}

.button-row button {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 14px;
}

#scrollContainer {
  overflow-x: scroll;
  scrollbar-width: none; /* Firefox */
}

#scrollContainer::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* === Подключение шрифтов GT Eesti Pro Display === */
@font-face {
  font-family: 'GT Eesti Pro Display';
  src: url('/static/fonts/gteestiprodisplay_ultrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'GT Eesti Pro Display';
  src: url('/static/fonts/gteestiprodisplay_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'GT Eesti Pro Display';
  src: url('/static/fonts/gteestiprodisplay_medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}


/* === Стили для блока новостей === */
#news h2 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 800;
  font-size: 54px;
  color: #ffffff;
  text-align: center;
  margin: 30px 0;
  text-transform: uppercase;
  pointer-events: none; /* чтобы текст не мешал кликам */
}

.news-item h3 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  margin-bottom: 10px;
}

.news-item .news-title {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  line-height: 1.6;
}

.news-item .news-title a th{
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.news-item .news-title a:hover {
  color: #000000;
  text-decoration: none;
}

#schedule {
  position: relative;
  overflow: hidden; /* скрываем выходящий контент */
}

.fade-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px; /* ширина эффекта затухания */
  height: 100%;
  background: linear-gradient(to right, #128fdd00, #128FDD);
  pointer-events: none; /* чтобы не мешало кликам */
  z-index: 5;
}

.fade-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px; /* ширина эффекта затухания */
  height: 100%;
  background: linear-gradient(to left, #006bb800, #006CB8);
  pointer-events: none; /* чтобы не мешало кликам */
  z-index: 5;
}


.scroll-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 10;
}

.scroll-arrow img {
  width: 40px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.scroll-arrow img:hover {
  transform: scale(1.2);
}

.section-wrapper {
  position: relative; /* чтобы slogan позиционировался относительно section */
}

.slogan {
  position: static;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  pointer-events: none; /* чтобы текст не мешал кликам */
}

.section-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0);
  height: 70px;
  overflow-x: auto;   /* Горизонтальный скролл */
  overflow-y: hidden; /* Убираем вертикальный скролл */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}


.container {
  max-width: 100%;
}

.containercon {
  width: 400px;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 10px;
}

.containerspon {
  max-width: 100%;
  overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #0d4b75;
    width: 100%;
    box-sizing: border-box;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

.nav-wrapper {
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

.nav-wrapper ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}


.top-bar::-webkit-scrollbar {
  display: none; /* Скрыть скроллбар (Chrome/Safari) */
}


.top-bar nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;   /* Запрещаем перенос */
  white-space: nowrap; /* Не переносить строки */
  justify-content: space-between;
  gap: 67px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .top-bar nav{
    font-size: 14px;
    gap: 10px;
    padding: 0 10px 0 0;
  }
  .top-bar .container {
    margin-left: 100px; /* Отступ справа от меню */
  }
}
.nav-image img {
  width: 300px;
  height: auto;
}



.auth-container .auth-icon {
  width: 27px;
  height: 27px;
}

.auth-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-username {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #ffffff;
}

.auth-buttons {
  display: flex;
  flex-direction: column; /* кнопки одна под другой */
}

#schedule {
  bottom: 0; /* фиксируем снизу */
  width: 100%;
}

.top-bar nav ul li a {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}


.top-bar nav ul li a:hover,
.top-bar nav ul li a.active {
  color: #FC6D0C; /* или любой акцентный цвет при наведении */
}

.auth-button {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #ffffff;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-button:hover {
  color: #ffffffa6; /* подсветка при наведении */
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* расстояние между меню и авторизацией */
  width: 100%;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-date {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  margin-bottom: 10px;
}

.day-number {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  margin-bottom: 0;
}

.no-matches {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #999;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.calendar-day .match-link {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #007bff;
  background: none;
  border: none;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.calendar-scroll-wrapper {
  overflow: hidden;
  width: 100%;
}

.calendar-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.calendar-slider {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.calendar-scroll-wrapper, .calendar-slider {
  user-select: none;
  cursor: grab;
}

.month-calendar {
  flex: 1;
}

.stage-section td{
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #000000;
  transition: color 0.2s ease;
  text-align: center;
  text-transform: uppercase;
}
.stage-section th {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000000;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}

.tournament-buttons h2 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}

.topgame, .score {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 800;
  font-size: 2.125rem;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  pointer-events: none; /* чтобы текст не мешал кликам */
}

.time-left, .quarter, .match-location, .match-date{
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #000000;
  transition: color 0.2s ease;
  text-align: center;
  pointer-events: none;
}

.nameteam {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  margin-top: 5px;
  text-transform: uppercase;
  color: #000000
}

.dates {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  text-transform: uppercase;
  color: #000000
}

.mtime {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 24px;
  text-align: center;
  text-transform: uppercase;
  color: #000000
}

.containercon h2 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  margin-bottom: 10px;
  pointer-events: none;
  text-align: center;
}

.containercon p {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  line-height: 1.6;
  pointer-events: none;
  text-align: center;
}

.textstat {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  pointer-events: none;
}

.calendar-scroll-wrapper {
  overflow: hidden;
  width: 100%;
}

.calendar-slider {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.month-calendar {
  flex-shrink: 0;
  width: 100%; /* ширина одного слайда = ширина экрана */
  box-sizing: border-box;
  padding: 10px;
  overflow-x: auto; /* если таблица слишком широкая, она скроллится внутри месяца */
}

.calendar {
  width: 100%;
  min-width: 500px; /* таблица не схлопывается и не сжимает дни */
  table-layout: fixed;
}

.teaminfo{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex: 1;
  align-items: center;
  text-align: center;
}

.player{
  border: solid 2px rgba(17, 17, 17, .2);
}

.slogan-wrapper {
  display: flex;
  flex-direction: row; /* по умолчанию — рядом */
  align-items: flex-start;
  justify-content: space-between;
  gap: 200px; /* расстояние между слоганом и таблицей */
  margin-top: 220px;
  align-items: center;
}

.slogan {
  text-align: right;
  flex: 1;
  z-index: 2; 
}

.standings-table {
  margin-left: auto;
  padding: 12px 16px;
  border-radius: 10px;
  min-width: 250px;
  height: 535px;
  width: 340px;
  z-index: 2;
}

.standings-table h3 {
  margin-bottom: 10px;
  font-size: 16px;
  margin: 8% 0 0 7%;
}

.standings-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  height: 90%;
}

.standings-table th,
.standings-table td {
  padding: 6px 8px;
  text-align: center; /* всё по центру */
  border: none;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;   /* вторая колонка — слева */
  padding-left: 10px; /* небольшой отступ от границы */
}


.standings-table h3 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  pointer-events: none;
  text-transform: uppercase;
}

.standings-table td {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #000000;
  line-height: 1.6;
  pointer-events: none;
}

.standings-table th {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #006FBB;
  line-height: 1.6;
  pointer-events: none;
  background: none;
}

@media (max-width: 768px) {
  .slogan-wrapper {
    flex-direction: column; /* теперь слоган сверху, таблица снизу */
    align-items: center;
  }

  .standings-table {
    max-width: 100%; /* на мобилках тянется на всю ширину */
    margin-top: 15px;
  }
  .section-wrapper{
    max-height: 30vh;
    overflow: hidden;
    width: 100%;
  }
}

@media (max-width: 1224px) {
  .slogan-wrapper {
    flex-direction: column; /* теперь слоган сверху, таблица снизу */
    align-items: center;
  }

  .standings-table {
    max-width: 100%; /* на мобилках тянется на всю ширину */
    margin-top: 15px;
  }
  .section-wrapper{
    max-height: 80vh;
    overflow: hidden;
    width: 100%;
  }
}


/* Меню */
/* Dropdown родитель */
.dropdown {
  position: relative;
}

/* Выпадающее меню */
.top-bar nav ul li.dropdown > ul.dropdown-menu {
  display: none; /* скрыто по умолчанию */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 9999;
  gap: 5px;
  border-radius: 10px;
  margin-top: 3px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  white-space: nowrap;
  text-decoration: none;
  justify-content: center;  /* по горизонтали */
  align-items: center;      /* по вертикали */
  height: 5px;             /* или line-height = высоте, если фиксировано */
  text-align: center;       /* чтобы текст сам был по центру */
}

.dropdown-menu li a:hover {
  color: #000000a6 !important;
}

/* Показ меню при клике */
.top-bar nav ul li.dropdown > ul.dropdown-menu.show {
  display: flex; /* видно и столбиком */
}

/* подсветка родительской кнопки "СТАТИСТИКА" */
nav li.dropdown.active > a {
  font-weight: bold;
  border-bottom: 2px solid #ffffffa6;
  color: #ffffffa6;
}

/* подсветка выбранного подпункта */
.dropdown-menu li a.active {
  font-weight: bold;
  color: #000;
}
.left-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 50%;       /* картинка растягивается на высоту контейнера */
  object-fit: contain; /* сохраняет пропорции */
  z-index: 0;         /* базовый слой */
  margin-top: 7%;
  transform: translate(30%, 0%);
}
@media (max-width: 1200px) {
  .left-image {
    margin-top: 10%;
  }
}
.upcoming-matches-horizontal {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.upcoming-matches-horizontal li {
  text-align: center;
  position: relative;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  align-items: flex-start;
  margin-left: 40px;
}

/* рисуем разделитель псевдоэлементом */
.upcoming-matches-horizontal li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 40%;   /* сдвиг сверху */
  height: 50%; /* высота линии */
  width: 3px;
  background: #000;
}

.upcoming-matches-horizontal li:last-child {
  border-right: none;
}

.match-date {
  font-size: 24px;
  font-weight: normal;
  color: #0070f3; /* синий цвет */
  margin-bottom: 5px;
  
}

.match-teams-time {
  display: flex;
  justify-content: center;
  gap: 15px; /* расстояние между командами и временем */
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 800;
  font-size: 36px;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
  margin-right: 40px;
}

.match-teams {
  font-weight: bold;
}

.match-time {
  font-weight: normal;
}

.past-match .match-teams,
.past-match .match-time {
  color: #b0b0b0; /* серый для прошедших матчей */
}
.gamecalen{
  margin-bottom: 50px;
}

.gamecalen h2 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #000000;
  border-bottom: 4px solid #000000;
  margin-left: 40px;
}

/* по умолчанию показываем десктоп */
.upcoming-mobile {
  display: none;
}

/* на мобильных скрываем десктоп и показываем мобилу */
@media (max-width: 1200px) {
  .upcoming-desktop {
    display: none;
  }
  .upcoming-mobile {
    display: block;
    background-color: white;
    border-radius: 0 0 10px 10px;
    max-width: 100%;
    margin-bottom: 60px;
  }
}
@media (max-width: 1200px) {
  .months-pair {
    flex-direction: column;   /* месяцы в колонку, а не в строку */
    gap: 20px;                /* уменьшаем отступ между месяцами */
    max-height: none;         /* убираем ограничение по высоте */
    padding: 10px;
  }

  .months-pair > .month {     /* каждый месяц занимает всю ширину */
    width: 100% !important;
  }
}

.upcoming-matches-horizontal li {
  cursor: pointer;
}

.infoplay p {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  pointer-events: none;
  margin: 10px 0;
}

.infoplay h3 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #000000;
  pointer-events: none;
  white-space: nowrap;      /* не переносить текст */
  overflow: hidden;         /* обрезать лишнее */
  text-overflow: ellipsis;  /* показывать многоточие, если не помещается */
  border-bottom:2px solid #fc6d0c;;
  margin: 0;
}

.team-gamecalen h2 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: #ffffff;
}
.conterteam h2 {
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: #ffffff;
  border-bottom:3px solid #ffffff;
}

#sortSelect {
  font-family: 'GT Eesti Pro Display', sans-serif;
  text-align: center;
  appearance: none; /* убираем стандартную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 8px 35px 8px 12px; /* внутренние отступы */
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #f8f9fa00;
  border: 1px solid #ff6a00;
  border-radius: 8px;
  outline: none;
  cursor: pointer;

  transition: all 0.2s ease-in-out;

  /* кастомная стрелка */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' width='20' height='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  max-width: 200px;
}

#sortSelect:hover {
  border-color: #ffffff;
  background-color: #ffffff41;
}

#sortSelect:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}
#sortSelect option {
  color: #020202;
}

#monthSelect {
  font-family: 'GT Eesti Pro Display', sans-serif;
  text-align: center;
  appearance: none; /* убираем стандартную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 8px 35px 8px 12px; /* внутренние отступы */
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #f8f9fa00;
  border: 1px solid #ff6a00;
  border-radius: 8px;
  outline: none;
  cursor: pointer;

  transition: all 0.2s ease-in-out;

  /* кастомная стрелка */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' width='20' height='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  max-width: 200px;
}

#monthSelect:hover {
  border-color: #ffffff;
  background-color: #ffffff41;
}

#monthSelect:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}
#monthSelect option {
  color: #020202;
}

#statSelect1{
  font-family: 'GT Eesti Pro Display', sans-serif;
  text-align: center;
  appearance: none; /* убираем стандартную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #f8f9fa00;
  border: 1px solid #ffffff;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease-in-out;
  padding: 3px 10px 3px 10px; /* внутренние отступы */
  /* кастомная стрелка */
  background-position: right 10px center;
  background-size: 20px;
  max-width: 200px;
}

#statSelect2{
  font-family: 'GT Eesti Pro Display', sans-serif;
  text-align: center;
  appearance: none; /* убираем стандартную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: #f8f9fa00;
  border: 1px solid #ffffff;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  padding: 3px 10px 3px 10px; /* внутренние отступы */
  transition: all 0.2s ease-in-out;

  /* кастомная стрелка */
  background-position: right 10px center;
  background-size: 20px;
  max-width: 200px;
}

#statSelect1:hover {
  border-color: #ffffff;
  background-color: #ffffff41;
}

#statSelect1:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}
#statSelect1 option {
  color: #020202;
}
#statSelect2:hover {
  border-color: #ffffff;
  background-color: #ffffff41;
}

#statSelect2:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}
#statSelect2 option {
  color: #020202;
}

.calendar-day.today {
  background-color: #00000017;
  border: 2px solid rgb(0 0 0 / 40%);
}

.team-logo-calen {
  width: 35px;
  height: 35px;
  object-fit: contain;
  background-color: #0070f3; /* цвет фона под логотип */
  border-radius: 50%;        /* скругление, чтобы фон был круглый */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* лёгкая тень для объёма */
}

.team-logo-small {
  width: 25px;
  height: 25px;
  object-fit: contain;
  margin: 0 3px;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vs {
  font-weight: bold;
}

.calendar-slider {
  transition: transform 0.3s ease;
}

.admin-team-button-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.admin-create-team-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.admin-create-team-btn:hover {
    transform: scale(1.03);
    background: #444;
}


/* Затемнение фона */

.team-modal {
    display: none;

    position: fixed;

    z-index: 9999;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);

    align-items: center;
    justify-content: center;
}


/* Само окно */

.team-modal-content {
    position: relative;

    width: 90%;
    max-width: 500px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    background: white;

    border-radius: 15px;

    box-sizing: border-box;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


/* Крестик */

.team-modal-close {
    position: absolute;

    right: 15px;
    top: 10px;

    border: none;

    background: transparent;

    font-size: 32px;

    cursor: pointer;

    color: #333;
}


.team-modal-content h2 {
    text-align: center;

    margin-top: 0;
    margin-bottom: 25px;
}


.team-form-group {
    margin-bottom: 18px;
}


.team-form-group label {
    display: block;

    margin-bottom: 6px;

    font-weight: bold;
}


.team-form-group input,
.team-form-group textarea,
.team-form-group select {

    width: 100%;

    box-sizing: border-box;

    padding: 11px;

    border: 1px solid #ccc;

    border-radius: 7px;

    font-size: 16px;
}


.team-form-group textarea {
    min-height: 90px;

    resize: vertical;
}


.team-submit-btn {

    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 8px;

    background: #222;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    margin-top: 10px;
}


.team-submit-btn:hover {
    background: #444;
}
/* =========================
   ФИЛЬТР КОМАНД
   ========================= */

.team-filters {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 20px 0 35px 0;
    flex-wrap: wrap;
}

.team-filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 220px;
}

.team-filter-group label {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

.team-filter-group select {
    width: 100%;
    min-height: 45px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    color: #222;
    font-size: 15px;
    cursor: pointer;
    outline: none;
}

.team-filter-group select:focus {
    border-color: #555;
}


/* =========================
   ОБЁРТКА КОМАНДЫ
   ========================= */

.team-item {
    position: relative;
}


/* =========================
   КНОПКА УДАЛЕНИЯ
   ========================= */

.delete-team-form {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.delete-team-btn {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;

    background: #b00020;
    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.delete-team-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}
/* ==========================================
   ШАПКА КОМАНДЫ
   ========================================== */

.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 5% 20px 40px 20px;
}

.team-header h2 {
    margin: 0;
}


/* ==========================================
   ДОБАВИТЬ ИГРОКА
   ========================================== */

.admin-add-player-btn {
    border: none;
    border-radius: 10px;

    padding: 13px 22px;

    background: #111;
    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.admin-add-player-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}


/* ==========================================
   МОДАЛЬНОЕ ОКНО ИГРОКА
   ========================================== */

.player-modal {
    display: none;

    position: fixed;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.75);

    z-index: 99999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}

.player-modal.active {
    display: flex;
}


.player-modal-content {
    position: relative;

    width: 100%;
    max-width: 550px;

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 16px;

    padding: 30px;

    box-sizing: border-box;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}


.player-modal-content h2 {
    margin: 0 0 25px 0;

    text-align: center;

    color: #222;
}


.player-modal-close {
    position: absolute;

    top: 10px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;

    background: transparent;

    color: #333;

    font-size: 32px;
    line-height: 40px;

    cursor: pointer;
}


.player-form-group {
    margin-bottom: 16px;
}


.player-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #222;

    font-weight: 600;
}


.player-form-group input,
.player-form-group select {
    width: 100%;

    min-height: 45px;

    padding: 10px 12px;

    box-sizing: border-box;

    border: 1px solid #ccc;

    border-radius: 8px;

    background: white;

    color: #222;

    font-size: 15px;

    outline: none;
}


.player-form-group input:focus,
.player-form-group select:focus {
    border-color: #555;
}


.player-submit-btn {
    width: 100%;

    margin-top: 10px;

    padding: 14px;

    border: none;

    border-radius: 10px;

    background: #111;

    color: white;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;
}


.player-submit-btn:hover {
    opacity: 0.9;
}


@media (max-width: 600px) {

    .team-header {
        flex-direction: column;
        align-items: stretch;

        margin-left: 10px;
        margin-right: 10px;
    }

    .admin-add-player-btn {
        width: 100%;
    }

}
.player-card {
    position: relative;
}

.delete-player-form {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    z-index: 10;
}

.delete-player-btn {
    border: none;
    border-radius: 8px;
    padding: 7px 10px;

    background: #b42323;
    color: #fff;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.2s ease;
}

.delete-player-btn:hover {
    background: #d83232;
}

.delete-player-btn:active {
    transform: scale(0.96);
}

/* =========================================
   ЛИДЕРЫ СЕЗОНА
   ========================================= */

.leaders-section {
    width: 100%;
    padding: 80px 0 100px;
    color: #fff;
}

/* .leaders-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
} */

/* Шапка */

.leaders-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
    margin: 0 35px 35px 35px;
    border-bottom: 3px solid #ff6a00;
}

.leaders-season {
    margin: 0 0 8px;
    color: #ff6b00;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.leaders-header h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.leaders-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.leaders-all-link span {
    color: #ff6a00;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.leaders-all-link:hover {
    color: #ff6a00;
}

.leaders-all-link:hover span {
    transform: translateX(4px);
}

/* Переключатель */

.leaders-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 6px;
    background: #f5f5f5;
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto 20px auto;
}

.leaders-metrics {
    display: flex;
    gap: 5px;
}

.leader-metric {
    border: 0;
    background: transparent;
    color: #a1a1aa;
    padding: 11px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.leader-metric:hover {
    color: #ff6a00;
}

.leader-metric.active {
    background: #ff6a00;
    color: #fff;
}

.leaders-average {
    margin: 0 12px 0 0;
    color: #6b6b72;
    font-size: 13px;
    white-space: nowrap;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

/* Списки */

.leaders-list {
    display: none;
}

.leaders-list.active {
    display: flex;
    justify-content: space-evenly;
}

/* Игрок */

.leader-player {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 92px;
    padding: 12px 18px;
    background: #3498db;
    border: 1px solid #f5f5f5;
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.leader-player:hover {
    transform: translateY(-2px);
    border-color: #f5f5f5;
    background: #3498db;
}

/* Место */

.leader-rank {
    width: 28px;
    flex: 0 0 28px;
    color: #fc6d0c;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

/* Фото */

.leader-photo {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    overflow: hidden;
    border-radius: 50%;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация */

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.leader-player-name {
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.leader-player-team {
    margin-top: 4px;
    color: #fc6d0c;
    font-size: 12px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

/* Значение */

.leader-value {
    color: #ff6a00;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* Полоса */

.leader-bar {
    width: 100%;
    height: 5px;
    margin-top: 13px;
    overflow: hidden;
    background: #26262c;
    border-radius: 99px;
}

.leader-bar-fill {
    height: 100%;
    background: #ff6a00;
    border-radius: 99px;
    transition: width 0.35s ease;
}

/* Подпись */

.leaders-scale {
    margin: 18px 0 0;
    color: #6b6b72;
    font-size: 12px;
    text-align: center;
}

/* =========================================
   АДАПТИВ
   ========================================= */

@media (max-width: 700px) {

    .leaders-section {
        padding: 55px 0 70px;
    }

    .leaders-container {
        width: calc(100% - 24px);
    }

    .leaders-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .leaders-header h2 {
        font-size: 32px;
    }

    .leaders-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .leaders-metrics {
        width: 100%;
        overflow-x: auto;
    }

    .leader-metric {
        flex: 1 0 auto;
        padding: 10px 14px;
    }

    .leaders-average {
        margin: 0 10px 8px;
    }

    .leader-player {
        gap: 10px;
        padding: 10px 12px;
    }

    .leader-rank {
        width: 20px;
        flex-basis: 20px;
        font-size: 13px;
    }

    .leader-photo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .leader-player-name {
        font-size: 14px;
    }

    .leader-player-team {
        font-size: 11px;
    }

    .leader-value {
        font-size: 20px;
    }
}
/* =========================================
   ЛУЧШИЕ ВЫСТУПЛЕНИЯ
   ========================================= */

.performances-section {
    width: 100%;
    padding: 20px 0 100px;
    color: #fff;
}

/* .performances-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
} */

.performances-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.performances-season {
    margin: 0 0 8px;
    color: #ff6a00;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.performances-header h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.performances-description {
    color: #ff6a00;
    font-size: 13px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

/* Сетка */

.performances-grid {
    display: flex;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-content: space-evenly;
}

/* Карточка */

.performance-card {
    position: relative;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #f5f5f5;
    min-width: 350px;
    border-radius: 14px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.performance-card:hover {
    transform: translateY(-3px);
    border-color: #f5f5f5;
    background: #f5f5f5;
}

/* Верх */

.performance-icon {
    position: absolute;
    top: 10px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d3d3d3;
    border-radius: 9px;
    font-size: 17px;
}

.performance-title {
    margin-bottom: 18px;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

/* Игрок */

.performance-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.performance-photo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border: 2px solid #26262c;
    border-radius: 50%;
    background: #1c1c21;
}

.performance-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.performance-player {
    flex: 1;
    min-width: 0;
}

.performance-player-name {
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.performance-team {
    margin-top: 4px;
    color: #71717a;
    font-size: 12px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.performance-value {
    color: #ff6a00;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

/* Матч */

.performance-match {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ff6a00;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.performance-vs {
    color: #6b6b72;
}

.performance-date {
    margin-top: 6px;
    color: #6b6b72;
    font-size: 11px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

/* Мобильные */

@media (max-width: 700px) {

    .performances-section {
        padding: 10px 0 70px;
    }

    .performances-container {
        width: calc(100% - 24px);
    }

    .performances-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .performances-header h2 {
        font-size: 30px;
    }

    .performances-grid {
        grid-template-columns: 1fr;
    }

    .performance-card {
        padding: 16px;
    }

    .performance-value {
        font-size: 28px;
    }
}
.performance-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.performance-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
/* =========================================================
   ГЕОГРАФИЯ ЛИГИ
   ========================================================= */

.geo-label {
    display: inline-block;

    color: #FC6D0C;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;

    margin-bottom: 10px;
}


.geo-header h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;

    letter-spacing: -1.5px;
}


.geo-header p {
    margin: 14px 0 0;

    color: rgba(255,255,255,.52);

    font-size: 15px;
}


.geo-counter {
    display: flex;
    align-items: center;
    gap: 25px;

    flex-shrink: 0;
}


.geo-counter-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


.geo-counter-item strong {
    color: #FC6D0C;

    font-size: 34px;
    line-height: 1;
}


.geo-counter-item span {
    margin-top: 5px;

    color: rgba(255,255,255,.45);

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.geo-counter-divider {
    width: 1px;
    height: 40px;

    background: rgba(255,255,255,.12);
}


/* =========================================================
   РОССИЯ
   ========================================================= */

.geo-russia {
    fill: rgba(255,255,255,.035);

    stroke: rgba(255,255,255,.16);

    stroke-width: 1.2;

    vector-effect: non-scaling-stroke;
}


/* =========================================================
   МАРШРУТЫ
   ========================================================= */

.geo-route {
    fill: none;

    stroke: rgba(252, 109, 12, .30);

    stroke-width: 1.4;

    stroke-dasharray: 5 8;

    vector-effect: non-scaling-stroke;

    animation:
        geo-route-flow 2.2s linear infinite;
}


.geo-route-glow {
    fill: none;

    stroke: rgba(252, 109, 12, .08);

    stroke-width: 7;

    vector-effect: non-scaling-stroke;

    filter: blur(3px);
}


@keyframes geo-route-flow {

    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -26;
    }

}


.geo-flight-dot {
    fill: #FC6D0C;

    opacity: .95;
}


/* =========================================================
   ГОРОДА
   ========================================================= */

.geo-city {
    cursor: pointer;
}


.geo-city-pulse {
    fill: none;

    stroke: rgba(252,109,12,.45);

    stroke-width: 1.5;

    animation:
        geo-city-ping 2s ease-out infinite;
}


@keyframes geo-city-ping {

    0% {
        opacity: .8;
        transform: scale(.6);
    }

    70% {
        opacity: 0;
        transform: scale(2.2);
    }

    100% {
        opacity: 0;
        transform: scale(2.2);
    }

}


.geo-city-dot {
    fill: #FC6D0C;

    stroke: #17171b;

    stroke-width: 2;

    vector-effect: non-scaling-stroke;
}


.geo-city-main .geo-city-dot {
    fill: #fff;

    stroke: #FC6D0C;

    stroke-width: 3;
}


.geo-city-main .geo-city-pulse {
    stroke: #FC6D0C;
}


/* =========================================================
   ПЛАШКИ
   ========================================================= */

.geo-city-label rect {
    fill: rgba(20,20,23,.94);

    stroke: rgba(255,255,255,.09);

    stroke-width: 1;

    opacity: .95;

    transition:
        fill .2s ease,
        stroke .2s ease;
}


.geo-city:hover .geo-city-label rect {
    fill: rgba(252,109,12,.12);

    stroke: rgba(252,109,12,.5);
}


.geo-city-name {
    fill: #fff;

    font-size: 12px;

    font-weight: 700;
}


.geo-city-count {
    fill: rgba(255,255,255,.48);

    font-size: 9px;
}


.geo-city-distance {
    fill: #FC6D0C;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .5px;
}


/* =========================================================
   ЛЕГЕНДА
   ========================================================= */

.geo-legend {
    position: absolute;

    left: 25px;
    bottom: 22px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 20px;

    padding: 10px 14px;

    border-radius: 10px;

    background: rgba(15,15,17,.85);

    border: 1px solid rgba(255,255,255,.07);

    backdrop-filter: blur(10px);
}


.geo-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;

    color: rgba(255,255,255,.48);

    font-size: 10px;
}


.geo-legend-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #FC6D0C;
}


.geo-legend-line {
    width: 28px;
    height: 1px;

    background:
        repeating-linear-gradient(
            to right,
            #FC6D0C 0,
            #FC6D0C 5px,
            transparent 5px,
            transparent 10px
        );
}


.geo-legend-main-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #fff;

    border: 2px solid #FC6D0C;
}


/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 800px) {

    .geo-section {
        padding: 60px 0 70px;
    }

    .geo-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .geo-counter {
        align-self: stretch;

        justify-content: flex-start;
    }

    .geo-map-wrapper {
        min-height: 400px;

        overflow-x: auto;
    }

    .geo-map {
        min-width: 850px;
        min-height: 400px;
    }

    .geo-legend {
        left: 15px;
        bottom: 15px;
        right: 15px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .geo-route,
    .geo-city-pulse {
        animation: none;
    }

}
/* =========================================================
   ГЕОГРАФИЯ ЛИГИ
   ========================================================= */

.geo-section {
    width: 100%;
    padding: 90px 0 110px;
    color: #fff;
    overflow: hidden;
}


/* =========================================
   HEADER
   ========================================= */

.geo-header {
    margin: 0 auto 35px;

    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;

    gap: 30px;
}


.geo-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #FC6D0C;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}


.geo-header h2 {
    margin: 0;

    font-size: clamp(
        30px,
        4vw,
        52px
    );

    line-height: 1;

    letter-spacing: -1.5px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}


.geo-header p {
    margin: 14px 0 0;

    color:  #fc6d0c;

    font-size: 15px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}


/* =========================================
   COUNTER
   ========================================= */

.geo-counter {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    flex-shrink: 0;
}


.geo-counter strong {
    font-size: 48px;

    line-height: .9;

    color: #FC6D0C;

    font-weight: 800;
}


.geo-counter span {
    margin-top: 8px;

    color: rgba(
        255,
        255,
        255,
        .45
    );

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}


/* =========================================
   MAP CONTAINER
   ========================================= */

.geo-map-wrapper {
    position: relative;

    width: min(
        1400px,
        calc(100% - 30px)
    );

    margin: 0 auto;

    min-height: 560px;

    border-radius: 24px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 35% 45%,
            rgba(252, 109, 12, .08),
            transparent 35%
        ),
        #17171b;

    border: 1px solid rgba(
        255,
        255,
        255,
        .07
    );

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, .35);
}


.geo-map {
    display: block;

    width: 100%;

    height: auto;

    min-height: 560px;
}


/* =========================================
   REAL RUSSIA SVG
   ========================================= */

.geo-russia-image {
    opacity: .50;

    filter:
        grayscale(1)
        brightness(.65)
        contrast(1.25);

    pointer-events: none;
}


.geo-map-overlay {
    fill: rgba(
        17,
        17,
        20,
        .38
    );

    pointer-events: none;
}


/* =========================================
   ROUTES
   ========================================= */

.geo-route {
    fill: none;

    stroke: rgba(
        252,
        109,
        12,
        .48
    );

    stroke-width: 1.4;

    stroke-dasharray:
        5 8;

    vector-effect:
        non-scaling-stroke;

    animation:
        geo-route-flow
        2.2s
        linear
        infinite;
}


.geo-route-glow {
    fill: none;

    stroke: rgba(
        252,
        109,
        12,
        .11
    );

    stroke-width: 7;

    vector-effect:
        non-scaling-stroke;

    filter: blur(3px);
}


@keyframes geo-route-flow {

    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -26;
    }

}


/* =========================================
   FLYING DOT
   ========================================= */

.geo-flight-dot {
    fill: #FC6D0C;

    opacity: .95;

    pointer-events: none;
}


/* =========================================
   CITY
   ========================================= */

.geo-city {
    cursor: default;
}


.geo-city-glow {
    fill: url(
        #geo-point-gradient
    );

    opacity: .18;

    pointer-events: none;
}


.geo-city-pulse {
    fill: none;

    stroke:
        rgba(
            252,
            109,
            12,
            .55
        );

    stroke-width: 1.5;

    animation:
        geo-city-ping
        2.2s
        ease-out
        infinite;
}


@keyframes geo-city-ping {

    0% {
        opacity: .85;

        transform:
            scale(.65);
    }

    70% {
        opacity: 0;

        transform:
            scale(2.3);
    }

    100% {
        opacity: 0;

        transform:
            scale(2.3);
    }

}


.geo-city-dot {
    fill: #FC6D0C;

    stroke: #17171b;

    stroke-width: 2;

    vector-effect:
        non-scaling-stroke;
}


.geo-city-main
.geo-city-dot {
    fill: #fff;

    stroke: #FC6D0C;

    stroke-width: 3;
}


.geo-city-main
.geo-city-glow {
    fill: url(
        #geo-main-gradient
    );

    opacity: .45;
}


/* =========================================
   CITY LABEL
   ========================================= */

.geo-city-label {
    pointer-events: none;
}


.geo-city-label rect {
    fill:
        rgba(
            20,
            20,
            23,
            .94
        );

    stroke:
        rgba(
            255,
            255,
            255,
            .10
        );

    stroke-width: 1;

    transition:
        fill .2s ease,
        stroke .2s ease;
}


.geo-city:hover
.geo-city-label rect {
    fill:
        rgba(
            252,
            109,
            12,
            .14
        );

    stroke:
        rgba(
            252,
            109,
            12,
            .55
        );
}


.geo-city-name {
    fill: #fff;

    font-size: 12px;

    font-weight: 700;

    dominant-baseline:
        central;
}


.geo-city-count {
    fill:
        rgba(
            255,
            255,
            255,
            .48
        );

    font-size: 9px;
}


.geo-city-distance {
    fill: #FC6D0C;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .4px;
}


/* =========================================
   LEGEND
   ========================================= */

.geo-legend {
    position: absolute;

    left: 25px;

    bottom: 22px;

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 10px 14px;

    border-radius: 10px;

    background:
        rgba(
            12,
            12,
            14,
            .86
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .08
        );

    backdrop-filter:
        blur(12px);
}


.geo-legend-item {
    display: flex;

    align-items: center;

    gap: 8px;

    color:
        rgba(
            255,
            255,
            255,
            .58
        );

    font-size: 10px;
}


.geo-legend-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #FC6D0C;

    box-shadow:
        0 0 8px
        rgba(
            252,
            109,
            12,
            .55
        );
}


.geo-legend-line {
    width: 24px;

    border-top:
        1px dashed
        rgba(
            252,
            109,
            12,
            .65
        );
}


.geo-legend-main-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #fff;

    border:
        2px solid
        #FC6D0C;

    box-sizing: border-box;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .geo-section {
        padding:
            60px 0 70px;
    }


    .geo-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 20px;
    }


    .geo-counter {
        align-items: flex-start;

        flex-direction: row;

        gap: 8px;
    }


    .geo-counter strong {
        font-size: 32px;
    }


    .geo-counter span {
        margin-top: 10px;
    }


    .geo-map-wrapper {
        width:
            calc(100% - 20px);

        min-height: 430px;

        border-radius: 18px;
    }


    .geo-map {
        min-height: 430px;

        transform:
            scale(1.05);

        transform-origin:
            center center;
    }


    .geo-city-label rect {
        opacity: .92;
    }


    .geo-city-name {
        font-size: 10px;
    }


    .geo-city-count {
        font-size: 8px;
    }


    .geo-city-distance {
        font-size: 7px;
    }


    .geo-legend {
        left: 12px;
        right: 12px;
        bottom: 12px;

        justify-content:
            center;

        flex-wrap: wrap;

        gap: 10px 15px;
    }

}
/* =========================================
   ПОДПИСИ ГОРОДОВ
   ========================================= */

.geo-city {
    cursor: pointer;
}

/* Все подписи городов по умолчанию скрыты */
.geo-city:not(.geo-city-main) .geo-city-label {
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
    pointer-events: none;
}

/* При наведении на город показываем табличку */
.geo-city:not(.geo-city-main):hover .geo-city-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Если город выбран кликом — держим табличку открытой */
.geo-city.geo-city-active .geo-city-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: none;
}

/* Череповец всегда виден */
.geo-city-main .geo-city-label {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
}

/* Чтобы точка оставалась кликабельной */
.geo-city-dot,
.geo-city-pulse,
.geo-city-glow {
    pointer-events: none;
}
/* =========================================
   GEO CITY INTERACTION
   ========================================= */

.geo-map .geo-city {
    pointer-events: all !important;
    cursor: pointer;
}

/* Невидимая зона клика */
.geo-map .geo-city-hitarea {
    pointer-events: all !important;
    cursor: pointer;
}

/* Внутренние элементы не перехватывают клик */
.geo-map .geo-city-glow,
.geo-map .geo-city-pulse,
.geo-map .geo-city-dot {
    pointer-events: none !important;
}

/* =========================================
   ПОДПИСИ
   ========================================= */

/* Все города кроме Череповца скрыты */
.geo-map .geo-city:not(.geo-city-main) .geo-city-label {
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    pointer-events: none;
}

/* Наведение */
.geo-map .geo-city:not(.geo-city-main):hover .geo-city-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Выбранный кликом */
.geo-map .geo-city.geo-city-active .geo-city-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Череповец всегда открыт */
.geo-map .geo-city-main .geo-city-label {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
}
/* =========================================================
   ЛИДЕРЫ МАТЧА
   ========================================================= */

.match-leaders {
    margin-top: 45px;
    margin-bottom: 30px;
}

.match-leaders-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.match-leaders-heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.match-leaders-heading span {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.match-leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.match-leader {
    position: relative;
    min-height: 180px;
    padding: 20px;
    overflow: hidden;

    background: #3498db5e;
    border: 1px solid #ffffff;
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.match-leader:hover {
    transform: translateY(-3px);
    background: #3498db5e;
}

.match-leader::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.match-leader.leader-team1::before {
    background: #e10600;
}

.match-leader.leader-team2::before {
    background: #3b82f6;
}

.leader-role {
    color: #fc6d0c;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.leader-value {
    margin-top: 5px;

    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
}

.leader-player {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 22px;
}

.leader-player img {
    width: 52px;
    height: 52px;

    object-fit: cover;

    border-radius: 50%;
    background: #ffffff;

    border: 2px solid rgba(255, 255, 255, 0.08);
}

.leader-player-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leader-player-info strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'GT Eesti Pro Display', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-player-info span {
    color: #fc6d0c;
    font-size: 13px;
    font-family: 'GT Eesti Pro Display', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Планшет */

@media (max-width: 1000px) {

    .match-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Телефон */

@media (max-width: 600px) {

    .match-leaders-grid {
        grid-template-columns: 1fr;
    }

    .match-leader {
        min-height: 150px;
    }

}
.match-leader {
    position: relative;
}

.leader-team-logo {
    position: absolute;
    right: 12px;

    width: 52px;
    height: 52px;

    object-fit: contain;
    z-index: 2;
}
/* =========================================================
   ДИНАМИКА СЧЁТА
   ========================================================= */

.score-dynamics {
    margin-top: 40px;
    padding: 26px;
    border: 1px solid #26262c;
    border-radius: 18px;
    color: #fff;
}
.score-team-home {
    color: #e10600;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.score-team-away {
    color: #3b82f6;
    font-family: 'GT Eesti Pro Display', sans-serif;
}
.score-dynamics-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.score-dynamics-heading h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.score-dynamics-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.score-team {
    font-weight: 700;
}

.score-vs {
    color: #fc6d0c;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.score-dynamics-current {
    font-family: var(--font-mono, monospace);
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.score-chart-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.score-dynamics-chart {
    display: block;
    width: 100%;
    height: 260px;
    overflow: visible;
}

.score-zero-line {
    stroke: #38383f;
    stroke-width: 1;
}

.score-quarter-line {
    stroke: #26262c;
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.score-area-home {
    fill: #d9534f;
    stroke: none;
}

.score-area-away {
    fill: #1b83c9;
    stroke: none;
}

.score-dynamics-line {
    fill: none;
    stroke: #e10600;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.score-selected-line {
    stroke: #fff;
    stroke-width: 1;
    stroke-dasharray: 4 5;
    opacity: .55;
}

.score-selected-point {
    pointer-events: none;
}

.score-quarter-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: -3px;
    color: #fc6d0c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.score-quarter-labels span {
    text-align: center;
}

.score-dynamics-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #26262c;
}

.score-dynamics-readout > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.readout-caption {
    color: #fc6d0c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.score-dynamics-readout strong {
    font-family: var(--font-mono, monospace);
    font-size: 15px;
}

.dynamics-navigation {
    flex-direction: row !important;
    align-items: center;
    color: #fc6d0c;
    font-size: 12px;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.dynamics-nav-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #26262c;
    border-radius: 8px;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: .2s;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.dynamics-nav-btn:hover {
    background: #1d1d22;
    border-color: #44444b;
}

.score-dynamics-summary {
    margin-top: 18px;
    color: #fc6d0c;
    font-size: 12px;
    line-height: 1.6;
    font-family: 'GT Eesti Pro Display', sans-serif;
}

.score-dynamics-empty {
    padding: 50px 20px;
    text-align: center;
    color: #6b6b72;
    font-size: 13px;
}


/* мобильная версия */

@media (max-width: 700px) {

    .score-dynamics {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .score-dynamics-heading {
        align-items: center;
        margin-bottom: 15px;
    }

    .score-dynamics-heading h3 {
        font-size: 14px;
    }

    .score-dynamics-teams {
        font-size: 11px;
    }

    .score-dynamics-current {
        font-size: 18px;
    }

    .score-dynamics-chart {
        height: 180px;
    }

    .score-dynamics-readout {
        gap: 10px;
    }

    .dynamics-navigation span {
        display: none;
    }

    .score-dynamics-readout strong {
        font-size: 13px;
    }

    .score-dynamics-summary {
        font-size: 11px;
    }
}
/* =========================================================
   ADMIN TOURNAMENT
   ========================================================= */

.admin-tournament-panel {
    margin: 20px 0;
}

.admin-tournament-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-tournament-row label {
    font-weight: 600;
}

.admin-tournament-row select {
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

.manage-groups-btn {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 600;
}


/* =========================================================
   MODAL
   ========================================================= */

.groups-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;
}

.groups-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);
}

.groups-modal-content {
    position: relative;

    width: min(1000px, calc(100vw - 30px));
    max-height: calc(100vh - 40px);

    overflow: hidden;

    background: #fff;
    border-radius: 16px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    display: flex;
    flex-direction: column;
}

.groups-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid #eee;
}

.groups-modal-header h2 {
    margin: 0;
}

.groups-modal-close {
    border: none;
    background: none;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.groups-modal-description {
    padding: 14px 24px;

    color: #777;
}

.groups-container {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;

    padding: 20px 24px;

    overflow-y: auto;
}

.tournament-group {
    min-width: 0;
}

.tournament-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;

    font-size: 18px;
    font-weight: 700;
}

.group-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #eee;

    font-size: 13px;
}

.team-drop-zone {
    min-height: 300px;

    padding: 10px;

    border: 2px dashed #ccc;
    border-radius: 12px;

    background: #fafafa;

    transition:
        border-color 0.15s,
        background 0.15s;
}

.team-drop-zone.drag-over {
    border-color: #222;
    background: #f0f0f0;
}

.draggable-team {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px;

    margin-bottom: 8px;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    cursor: grab;

    user-select: none;

    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.draggable-team:last-child {
    margin-bottom: 0;
}

.draggable-team:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.draggable-team.dragging {
    opacity: 0.45;
    transform: scale(0.98);
}

.drag-handle {
    color: #999;
    font-size: 20px;
    cursor: grab;
}

.draggable-team img {
    width: 42px;
    height: 42px;

    object-fit: contain;

    flex-shrink: 0;
}

.draggable-team-info {
    min-width: 0;
}

.draggable-team-name {
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draggable-team-city {
    margin-top: 2px;

    font-size: 12px;
    color: #888;
}

.groups-modal-footer {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding: 16px 24px;

    border-top: 1px solid #eee;
}

.groups-cancel-btn,
.groups-save-btn {
    border: none;
    border-radius: 8px;

    padding: 10px 18px;

    cursor: pointer;

    font-weight: 600;
}

.groups-cancel-btn {
    background: #eee;
}

.groups-save-btn {
    background: #222;
    color: #fff;
}

.groups-save-btn:disabled {
    opacity: 0.6;
    cursor: default;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .groups-container {
        grid-template-columns: 1fr;
    }

    .groups-modal-content {
        max-height: calc(100vh - 20px);
    }

}
.team-row.hidden {
    display: none;
}
.tournament-selector {
    width: calc(100% - 40px);
    max-width: 1200px;

    margin: 20px auto 30px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 15px 20px;

    background: rgba(255, 255, 255, 0.95);

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
}

.tournament-selector-title {
    font-weight: 800;
    color: #fc6d0c;
    white-space: nowrap;
}

.tournament-selector select {
    flex: 1;

    height: 44px;

    padding: 0 15px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

@media (max-width: 550px) {

    .tournament-selector {
        width: calc(100% - 24px);

        flex-direction: column;
        align-items: stretch;
    }

}
.tournament-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tournament-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.65);

    align-items: center;
    justify-content: center;
}

.tournament-modal.show {
    display: flex;
}

.tournament-modal-content {
    width: 500px;
    max-width: calc(100% - 30px);

    background: #fff;

    border-radius: 12px;

    padding: 25px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tournament-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.tournament-modal-header h2 {
    margin: 0;
}

.modal-close {
    border: none;
    background: transparent;

    font-size: 28px;

    cursor: pointer;
}

.tournament-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tournament-form label {
    font-weight: 600;
    margin-top: 5px;
}

.tournament-form input,
.tournament-form textarea,
.tournament-form select {
    width: 100%;
    box-sizing: border-box;

    padding: 10px;

    border: 1px solid #ccc;
    border-radius: 6px;

    font-size: 15px;
}

.tournament-form textarea {
    min-height: 90px;
    resize: vertical;
}

.admin-button {
    border: none;
    border-radius: 6px;

    padding: 10px 16px;

    cursor: pointer;

    font-weight: 600;
}