/* Базовые стили */
html {
  scroll-behavior: smooth;
}

body,
html {
  height: 100%;
}

body {
  background-color: #111316;
  color: #8c929a;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
}

* {
  padding: 0;
  margin: 0;
}

ol,
ul {
  list-style: none;
}

i {
  font-style: normal;
}

input,
textarea {
  outline: none;
}

button,
input,
textarea {
  background: none;
  border: none;
}

::-webkit-input-placeholder {
  color: #828282;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
}

input:-webkit-autofill {
  background: transparent;
}

input:autofill {
  background: transparent;
}

input:-webkit-autofill,
input:-webkit-autofill:active,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
  -webkit-transition-delay: 99999s;
  -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
}

input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

a {
  color: #8c929a;
  text-decoration: none;
}

a:focus {
  outline: 0;
}

a:hover {
  color: #fff;
}

.clearfix:after,
.clearfix:before {
  display: table;
  line-height: 0;
  content: "";
}

.clearfix:after {
  clear: both;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
}

img {
  width: auto;
  height: auto;
  max-width: 100%;
  border: 0;
  vertical-align: top;
}

.img-w {
  display: block;
  width: 100%;
}

.img-h,
.img-wh {
  display: block;
  height: 100%;
}

.img-wh {
  width: 100%;
}

.pr {
  position: relative;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.dv {
  vertical-align: middle;
}

.di,
.dv {
  display: inline-block;
}

.mask {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
}

.fw {
  font-weight: 700;
}

table {
  border-spacing: 0;
}

.table-reset,
.table-reset caption,
.table-reset tbody,
.table-reset td,
.table-reset tfoot,
.table-reset th,
.table-reset thead,
.table-reset tr {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

.tabs .tabc {
  display: none;
}

.tabs .active {
  display: block;
}

.ms-controller,
[ms-controller] {
  display: none;
}

.disable {
  filter: grayscale(100%);
}

/* Основные контейнеры и компоненты */
.dark-theme {
  background: #111316;
}

.header-container {
  background-color: #2c3038;
  color: white;
  padding: 10px 20px;
}

.flex-container {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #2c3038;
}

.icon-small {
  width: 30px;
  height: 30px;
}

.text-normal {
  margin: 0;
  font-size: 16px;
}

.dark-container {
  background-color: #2c3038;
  color: white;
}

.logo-wrapper {
  display: block;
  width: 140px;
  height: 58px;
}

.full-size {
  width: 100%;
  height: 100%;
}

/* Top bar стили */
#top-bar {
  z-index: 999;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

#top-bar,
#top-bar .top-bar-box {
  width: 100%;
  height: 70px;
  position: fixed;
  top: 0;
  background: #202429;
}

#top-bar .top-bar-box {
  padding: 0 80px;
  margin: 0 auto;
  z-index: 10;
}

#top-bar .top-bar-box .wrap {
  max-width: 1200px;
  width: 100%;
  height: 70px;
  margin: 0 auto;
  justify-content: space-between;
}

#top-bar .top-bar-box .top-bar-left,
#top-bar .top-bar-box .wrap {
  display: flex;
  align-items: center;
}

#top-bar .top-bar-box .top-bar-left .top-logo {
  display: block;
  width: 140px;
  height: 58px;
}

#top-bar .top-bar-box .top-bar-left .top-navs {
  display: flex;
  align-items: center;
  height: 36px;
  line-height: 36px;
  font-size: 16px;
}

#top-bar .top-bar-box .top-bar-left .top-navs .top-nav {
  margin-left: 40px;
  height: 36px;
  position: relative;
}

#top-bar .top-bar-box .top-bar-left .top-navs .top-nav .nav-link,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav > a {
  display: block;
  height: 36px;
  line-height: 36px;
  color: #8c929a;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

#top-bar .top-bar-box .top-bar-left .top-navs .top-nav.cur .nav-link,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav.cur > a,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav:hover .nav-link,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav:hover > a {
  color: #fff;
}

#top-bar .top-bar-box .top-bar-left .top-navs .top-nav.cur .nav-link::after,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav.cur > a::after,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav:hover .nav-link::after,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav:hover > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
  height: 2px;
  background-color: #00acca;
  transition: width 0.3s ease;
}

#top-bar .top-bar-box .top-bar-left .top-navs .top-nav .nav-link::after,
#top-bar .top-bar-box .top-bar-left .top-navs .top-nav > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #00acca;
  transition: width 0.3s ease;
}

#top-bar .top-bar-box .top-bar-right {
  display: flex;
  align-items: center;
}

#top-bar .top-bar-box .top-bar-right .top-login {
  font-size: 14px;
  color: #b1becd;
  margin-left: 30px;
  cursor: pointer;
}

#top-bar .top-bar-box .top-bar-right .top-login:hover {
  color: #fff;
}

/* Body стили */
#activity-layer,
#layer,
#prediction-detail-layer {
  width: 100%;
  height: 100%;
}

#activity-layer #body,
#layer #body,
#prediction-detail-layer #body {
  width: 100%;
  padding: 80px 0;
  background: url("assets/page-bg.png") top no-repeat;
  margin-bottom: 20px;
}

#activity-layer #body .wrap,
#layer #body .wrap,
#prediction-detail-layer #body .wrap {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

/* Announce bar стили */
#announce-bar {
  background: #ff6b35;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}

#announce-bar .announce-wrap {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

#announce-bar .announce-wrap .horn-icon {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  margin-right: 10px;
}

#announce-bar .announce-wrap .announce-item {
  flex: 1;
  line-height: 20px;
}

/* Carousel стили */
.carousel {
  /* Базовые стили для карусели */
}

.carousel-vertical {
  /* Вертикальная карусель */
}

.slider {
  /* Базовые стили для слайдера */
}

.slider-vertical {
  /* Вертикальный слайдер */
}

.slider-initialized {
  /* Инициализированный слайдер */
}

.slider-list {
  /* Список слайдов */
}

.slider-track {
  /* Трек слайдов */
}

.slider-slide {
  /* Отдельный слайд */
}

.slider-active {
  /* Активный слайд */
}

.slider-current {
  /* Текущий слайд */
}

.slider-cloned {
  /* Клонированный слайд */
}

/* UI компоненты */
.stack {
  display: flex;
  flex-direction: column;
}

.text {
  margin: 0;
}

.spinner {
  /* Стили для спиннера */
}

/* Основные контейнеры */
.main-container {
  padding-right: 280px; /* Отступ для правого сайдбара */
}

.logo-container {
  display: block;
  width: 140px;
  height: 58px;
}

/* Фильтры */
.filter-container {
  /* Основной контейнер фильтров */
  display: flex;
  justify-content: center;
}

.game-list {
  margin-top: 20px;
  list-style: none;
  padding: 0;
  border-radius: 8px;
  width: 65px;
  font-family: Arial, sans-serif;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #2c3038;
  border-color: #444;
  height: 100%;
}

.game-list li {
  padding: 5px 10px;
  border-bottom: 1px solid #444;
  background-color: #2c3038;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #8c929a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 55px;
  justify-content: center;
  font-size: 12px;
}

.game-list li:last-child {
  border-bottom: 1px solid #444;
  background-color: #2c3038;
}

.game-list li:hover {
  background-color: #444;
  color: #fff;
}

.game-list li:first-child {
  border-radius: 8px 0 0 8px;
}

.game-list li img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* Специфичные стили для иконок в сайдбаре */
.game-list li .game-icon {
  display: block;
}

.game-list li .game-icon-active {
  display: none;
}

.game-list li.active .game-icon {
  display: none;
}

.game-list li.active .game-icon-active {
  display: block;
}

.filter-buttons {
  /* Контейнер кнопок фильтра - устарел */
  display: none;
}

.filter-btn {
  /* Кнопка фильтра - устарела */
  display: none;
}

.filter-text {
  /* Текст фильтра - устарел */
  display: none;
}

/* Предсказания */
.predictions-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.match-card {
  border-radius: 8px;
  background: #2c3038;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.match-card:hover {
  border-color: #555;
}

.match-header {
  width: 880px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #2c3038;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

.match-header:hover {
  background: #2c3038;
}

.league-info {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 7px 1px;
  position: relative;
  background: #272b33;
}

.league-logo,
.match-card .game-icon {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  flex-shrink: 0;
}

.league-name {
  font-weight: 500;
  color: #8c929a;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.match-time {
  position: absolute;
  color: #888;
  font-size: 15px;
  right: 6px;
  top: 3px;
}

/* Стили для времени с "later" - зеленый */
.match-time.later {
  color: #4caf50;
  font-weight: 500;
}

/* Стили для времени без "later" - красный */
.match-time.not-later {
  color: #f44336;
  font-weight: 500;
}

.teams-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: center;
  min-width: 400px;
}

.team {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 180px;
  min-width: 180px;
}

.team:first-child {
  justify-content: flex-end;
}

.team:last-child {
  justify-content: flex-start;
}

.team-name {
  max-width: 140px;
  width: 100%;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
}

.vs-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 60px;
  min-width: 60px;
  flex-shrink: 0;
}

.vs {
  color: #fff;
  font-size: 16px;
}

.format {
  color: #666;
  font-size: 10px;
  background: #333;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.arrow {
  color: #888;
  font-size: 12px;
  transition: transform 0.3s ease;
  width: 20px;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.match-card.active .arrow {
  transform: rotate(180deg);
}

.match-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #2c3038;
}

.match-card.active .match-details {
  max-height: 1000px;
}

.prediction-item {
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.prediction-item:hover {
  background: rgba(74, 158, 255, 0.05);
}

.prediction-item:last-child {
  border-bottom: none;
}

.prediction-title {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 10px;
}

.prediction-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.option:last-child {
  justify-content: flex-end;
}

.team {
  color: #fff;
  font-size: 13px;
}

.odds {
  color: #4caf50;
  font-weight: 600;
  font-size: 13px;
  background: rgba(76, 175, 80, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #888;
}

.status-icon {
  width: 16px;
  height: 16px;
}

/* Дополнительные элементы */
.additional-image {
  /* Дополнительные изображения */
  max-width: 100%;
  height: auto;
}

.additional-text {
  /* Дополнительные тексты */
  font-size: 14px;
  color: #8c929a;
}

.loading-text {
  /* Текст загрузки */
  color: #666;
  font-style: italic;
}

.loading-spinner {
  /* Спиннер загрузки */
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.additional-container {
  /* Дополнительные контейнеры */
  margin: 8px 0;
}

.section-title {
  /* Заголовки секций */
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 16px;
}

.copyright {
  /* Копирайт */
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

.footer {
  /* Футер */
  background-color: #2c3038;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-container {
  /* Контейнер футера */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Медиа запросы */
@media (max-width: 767px) {
  #top-bar .top-bar-box {
    padding: 0 10px 0 0;
  }

  #top-bar .top-bar-box .top-bar-left .top-logo {
    display: none;
  }

  #activity-layer #body .wrap,
  #layer #body .wrap,
  #prediction-detail-layer #body .wrap {
    padding: 10px 0;
  }

  #announce-bar .announce-wrap {
    padding: 0 10px;
  }

  .prediction-row {
    flex-direction: column;
  }

  .teams-container {
    flex-direction: column;
    gap: 12px;
  }
}

/* Статистика и футер */
.stats-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}

.stats-tabs p {
  padding: 5px 0;
  cursor: pointer;
  color: #8c929a;
  position: relative;
}

.stats-tabs p.active {
  color: #00aaff;
  font-weight: 500;
}

.stats-tabs p.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00aaff;
}

.weekly-stats {
  width: 300px;
  height: 100%;
  background: #2c3038;
  border-left: 1px solid #333;
  z-index: 100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.stats-tabs {
  display: flex;
  border-bottom: 1px solid #333;
  background: #272b33;
  flex-shrink: 0;
}

.stats-tabs .text {
  flex: 1;
  text-align: center;
  color: #888;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.stats-tabs .text.active {
  color: #00acca;
  background: #1a1a1a;
}

.stats-container {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  background: #2c3038;
}

.stats-list {
  display: flex;
  flex-direction: column;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.3s ease;
  flex-direction: row;
}

.stat-item:hover {
  background: #2c3038;
}

.rank-icon {
  width: 24px;
  height: 24px;
}

.rank-number {
  width: 24px;
  height: 24px;
  background: #2c3038;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 12px;
  font-weight: 500;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.player-name {
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  color: #ffb543;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Скроллбар для статистики */
.stats-container::-webkit-scrollbar {
  width: 6px;
}

.stats-container::-webkit-scrollbar-track {
  background: #272b33;
}

.stats-container::-webkit-scrollbar-thumb {
  background: #2c3038;
}

.stats-container::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Адаптивность для сайдбара */
@media (max-width: 1100px) {
  .stats-tabs {
    gap: 0px;
  }
  .main-container {
    padding-right: 0;
    padding-left: 0;
  }
  .filter-container {
    padding: 0 5px;
  }
  .game-list {
    min-width: 100px;
    max-width: 100vw;
    margin-top: 10px;
    padding: 0 2px;
    border-radius: 8px;
  }
  .game-list li {
    min-width: 60px;
    height: 48px;
    font-size: 12px;
    padding: 4px 6px;
    gap: 4px;
  }
  .match-header {
    width: 97%;
    min-width: unset;
    padding: 10px 8px;
    gap: 10px;
  }
  .league-info,
  .teams-info {
    min-width: unset;
    width: auto;
    gap: 8px;
  }
  .team,
  .vs-info {
    min-width: unset;
    width: auto;
    font-size: 13px;
  }
  .team-logo {
    width: 26px;
    height: 26px;
  }
  .team-name {
    font-size: 15px;
    max-width: 100px;
  }
  .league-logo,
  .match-card .game-icon {
    width: 13px;
    height: 13px;
  }
  .weekly-stats {
    display: flex;
    width: auto;
    margin: 0;
    padding: 0 5px;
    border-radius: 10px;
    align-items: center;
  }
  .stats-container {
    padding: 8px 0;
    font-size: 13px;
  }
  .stat-item {
    gap: 6px;
    padding: 8px 4px;
  }
  .rank-icon {
    width: 20px;
    height: 20px;
  }
  .avatar {
    width: 26px;
    height: 26px;
  }
  .player-name {
    font-size: 13px;
    max-width: 80px;
  }
  .score {
    font-size: 13px;
  }
  .empty-state {
    height: 320px;
    min-height: 180px;
    margin: 12px 0;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  #top-bar .top-bar-box .top-bar-left .top-navs {
    font-size: 14px;
    gap: 10px;
  }
  .main-container {
    padding: 0 5px;
  }
  .match-header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: unset;
    padding: 10px 5px;
    gap: 8px;
  }
  .league-info,
  .teams-info {
    flex-direction: row;
    width: 100%;
    min-width: unset;
    gap: 8px;
  }
  .team,
  .vs-info {
    min-width: unset;
    width: auto;
  }
  .weekly-stats {
    display: flex;
    width: auto;
    margin: 0;
    padding: 0 5px;
    border-radius: 10px;
    align-items: center;
  }
  .stats-container {
    padding: 10px 0;
  }
}

/* Пустое состояние */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 880px;
  height: 500px;
  background: #2c3038;
  border: 1px solid #333;
  border-radius: 8px;
  margin: 20px;
}

.empty-state-content {
  text-align: center;
  padding: 40px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-state-title {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}

.empty-state-description {
  color: #8c929a;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .arrow {
    display: none;
  }
  .empty-state {
    width: 100%;
  }
  .game-list {
    width: 65px;
    min-width: unset;
    max-width: unset;
    margin-top: 10px;
  }
  .game-list li {
    min-width: unset;
  }
  .game-list li:first-child {
  }
  .match-header {
    width: 97%;
    min-width: unset;
    padding: 10px 8px;
    gap: 10px;
  }
  .league-info,
  .teams-info {
    min-width: unset;
    width: auto;
    gap: 8px;
  }
  .team,
  .vs-info {
    min-width: unset;
    width: auto;
  }
  .team-logo {
    width: 25px;
    height: 25px;
  }
  .team-name {
    font-size: 14px;
    max-width: 100px;
  }
  .league-logo,
  .match-card .game-icon {
    width: 13px;
    height: 13px;
  }
  .weekly-stats {
    display: flex;
    width: auto;
    margin: 0;
    padding: 0 5px;
    border-radius: 10px;
    align-items: center;
  }
  .stats-container {
    width: 100%;
  }
  #top-bar .top-bar-box .top-bar-left,
  #top-bar .top-bar-box .wrap {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
}

@media (max-width: 768px) {
  .weekly-stats {
    display: none !important;
  }
  .mobile-login,
  .mobile-register {
    font-size: 16px;
    color: #fff;
    position: absolute;
    right: 16px;
    margin-right: 10px;
  }

  .mobile-register {
    display: none;
  }

  #top-bar .top-bar-box {
    padding: 0 10px;
  }
  #top-bar .top-bar-box .top-bar-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  #top-bar .top-bar-box .top-bar-left .top-logo {
    display: block;
    width: 135px;
    height: 41px;
  }
  #top-bar .top-bar-box .top-bar-left .top-navs {
    flex-direction: row;
    gap: 15px;
    font-size: 19px;
    height: auto;
    margin-top: 10px;
  }
  #top-bar .top-bar-box .top-bar-left .top-navs .top-nav {
    margin-left: 0;
    margin-bottom: 5px;
  }
  .main-container {
    padding: 0 2px;
  }
  .filter-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .match-header {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    min-width: unset;
    padding: 13px 0px;
    gap: 6px;
  }
  .league-info,
  .teams-info {
    flex-direction: row;
    width: 100%;
    min-width: unset;
    gap: 6px;
  }
  .team,
  .vs-info {
    min-width: unset;
    width: auto;
    font-size: 12px;
  }
  .team-logo {
    width: 50px;
    height: 50px;
  }
  .team-name {
    font-size: 17px;
    max-width: 80px;
  }
  .league-logo,
  .match-card .game-icon {
    width: 12px;
    height: 12px;
  }
  .weekly-stats {
    display: none;
  }
  .stats-container {
    padding: 5px 0;
    font-size: 12px;
  }
  .stat-item {
    gap: 4px;
    padding: 6px 2px;
  }
  .rank-icon {
    width: 18px;
    height: 18px;
  }
  .avatar {
    width: 22px;
    height: 22px;
  }
  .player-name {
    font-size: 12px;
    max-width: 60px;
  }
  .score {
    font-size: 12px;
  }
  .empty-state {
    height: 250px;
    min-height: 180px;
    margin: 10px 0;
    font-size: 13px;
  }

  .predictions-container {
    width: 100%;
  }

  .filter-container {
    flex-direction: row;
    padding: 10px;
  }
}

@media (max-width: 450px) {
  #activity-layer #body,
  #layer #body,
  #prediction-detail-layer #body {
    padding: 50px 0;
  }

  .predictions-container {
    margin-top: 10px;
    padding: 0;
  }
  #top-bar .top-bar-box .top-bar-left .top-logo {
    position: absolute;
    left: 33%;
    top: 25%;
    width: 90px;
    height: 36px;
  }
  #top-bar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 56px;
    padding: 0 8px;
  }
  .mobile-burger {
    position: absolute;
    left: 10px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 2;
  }
  .burger-line {
    display: block;
    width: 26px;
    height: 4px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .top-bar-left {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
  }
  .top-logo {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
  }
  .logo-container {
    width: 90px;
    height: 36px;
  }
  .top-navs {
    display: none !important;
  }
  .top-bar-right {
    position: absolute;
    right: 45px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
  }
  .top-login {
    font-size: 15px;
    color: #fff;
    margin-left: 0;
    padding: 0 4px;
  }
  .filter-container {
    flex-direction: column;
    margin-bottom: 6px;
  }
  .game-list {
    display: flex;
    padding: 0px;
    width: 100%;
    min-width: unset;
    max-width: unset;
    justify-content: space-between;
  }
  .game-list li {
    width: 100%;
  }
}

/* Стили модального окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #1a1d23;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #2a2d35;
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #2a2d35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url("assets/modal-bg.png");
  border-radius: 12px 12px 0 0;
  position: relative;
  min-height: 80px;
}

.modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 29, 35, 0.6);
  border-radius: 12px 12px 0 0;
  z-index: 1;
}

.modal-header > * {
  position: relative;
  z-index: 2;
}

.modal-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #8c929a;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.1s ease;
}

.modal-close:hover {
  color: #ffffff;
  background: #2a2d35;
}

.modal-body {
  padding: 24px;
}

.login-form {
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 16px;
}

.code-input-container {
  display: flex;
  gap: 8px;
}

.code-input {
  flex: 1;
}

.send-code-btn {
  padding: 12px 16px;
  background: #2a2d35;
  border: 1px solid #3a3d45;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
  min-width: 80px;
}

.send-code-btn:hover {
  background: #3a3d45;
  border-color: #4a4d55;
}

.send-code-btn:active {
  background: #1a1d23;
}

.verification-note {
  margin: 12px 0 16px 0;
}

.verification-note p {
  color: #8c929a;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.form-input.error {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

.form-input.error:focus {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
}

.error-message {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid #ff4757;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0 16px 0;
}

.error-message p {
  color: #ff4757;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #252832;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: #4a9eff;
  background: #2a2d35;
}

.form-input::placeholder {
  color: #8c929a;
}

.login-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4a9eff, #3b82f6);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
}

.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #2a2d35;
}

.divider span {
  background: #1a1d23;
  color: #8c929a;
  padding: 0 16px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.steam-login-btn {
  width: 100%;
  padding: 12px 16px;
  background: #171a23;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.steam-login-btn:hover {
  background: #2a2d35;
  border-color: #3a3d45;
}

.login-footer {
  text-align: center;
}

.login-footer p {
  color: #8c929a;
  font-size: 14px;
  margin: 0;
}

.register-link {
  color: #4a9eff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.register-link:hover {
  color: #3b82f6;
}

/* Анимация появления модального окна */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal.show .modal-content {
  animation: modalFadeIn 0.3s ease;
}

/* Фиксированные боковые панели */
#right-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
}

.right-menus {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-menu {
  display: flex;
  align-items: center;
  background: #1a1d23;
  border: 1px solid #2a2d35;
  border-radius: 50px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 140px;
  overflow: hidden;
}

.right-menu:hover {
  background: #2a2d35;
  border-color: #4a9eff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.2);
}

.menu-icon-normal,
.menu-icon-hover {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  transition: opacity 0.3s ease;
}

.menu-icon-hover {
  position: absolute;
  opacity: 0;
}

.right-menu:hover .menu-icon-normal {
  opacity: 0;
}

.right-menu:hover .menu-icon-hover {
  opacity: 1;
}

.menu-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
  .modal-content {
    max-width: 95%;
    margin: 20px auto;
  }

  .modal-header {
    padding: 20px 20px 12px;
    min-height: 60px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 18px;
  }

  .code-input-container {
    flex-direction: column;
    gap: 12px;
  }

  .send-code-btn {
    width: 100%;
    min-width: unset;
  }

  #right-float {
    right: 10px;
    bottom: 10px;
  }

  .right-menu {
    min-width: 120px;
    padding: 10px 12px;
  }

  .menu-title {
    font-size: 12px;
  }

  .menu-icon-normal,
  .menu-icon-hover {
    width: 16px;
    height: 16px;
  }
}

/* Notice блок */
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  border: 2px solid #00ff88;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px auto;
  max-width: 1200px;
  background: linear-gradient(135deg, #000000, #00cc6a);
  position: relative;
  overflow: hidden;
}

.notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.notice img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.notice-text {
  flex: 1;
}

.notice-text p {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .notice {
    margin: 50px 20px 0px 20px;
    padding: 12px 16px;
    gap: 10px;
  }

  .notice img {
    width: 28px;
    height: 28px;
  }

  .notice-text p {
    font-size: 14px;
  }
}

/* Мобильное бургер-меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  visibility: visible;
  opacity: 1;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: #111316;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2a2d35;
  z-index: 10;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #2a2d35;
}

.mobile-logo img {
  height: 40px;
  width: auto;
}

.mobile-close {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #8c929a;
  transition: background 0.2s ease;
}

.close-line:first-child {
  transform: rotate(45deg);
}

.close-line:last-child {
  transform: rotate(-45deg);
}

.mobile-close:hover .close-line {
  background: #ffffff;
}

.mobile-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.mobile-nav-item {
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-nav-item:hover {
  background: #1a1d23;
}

.mobile-nav-link {
  padding: 16px 20px;
  color: #8c929a;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-item.active .mobile-nav-link {
  color: #4a9eff;
  border-left-color: #4a9eff;
  background: rgba(74, 158, 255, 0.1);
}

.mobile-nav-item:hover .mobile-nav-link {
  color: #ffffff;
}

.mobile-login-section {
  padding: 20px;
  border-top: 1px solid #2a2d35;
}

.mobile-login-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4a9eff, #3b82f6);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-login-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
}

/* Анимация бургера */
.mobile-burger.active .burger-line:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.mobile-burger.active .burger-line:last-child {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* SEO and Accessibility Improvements */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-header {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Focus indicators for accessibility */
.game-list li:focus,
.game-list li:hover {
  outline: 2px solid #4a9eff;
  outline-offset: 2px;
}

/* Improved keyboard navigation */
.game-list li[role="tab"]:focus {
  background-color: rgba(74, 158, 255, 0.1);
  border-radius: 4px;
}

/* Better alt text display for screen readers */
img[alt] {
  position: relative;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #4a9eff;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .game-list li:focus {
    outline: 3px solid currentColor;
  }
  
  .match-card {
    border: 1px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
