/* Сбрасываем отступы, запрещаем горизонтальный скролл */
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #0a0e17;
  color: #fff;
  font-family: Arial, sans-serif; /* Arial для основного текста */
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Подключаем шрифт BigNoodleTooOblique ТОЛЬКО для никнеймов */
@font-face {
  font-family: 'BigNoodleTooOblique';
  src: url('fonts/bignoodletoooblique.ttf') format('truetype');
}

/* Шапка */
header {
  background: #1b2838;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input#search {
  padding: 10px;
  border-radius: 5px;
  border: none;
  max-width: 300px;
  width: 100%;
}

/* Основной контент (две колонки) */
main {
  display: flex;
  padding: 20px;
  flex-wrap: nowrap; /* На ПК не переносим, на мобильном переопределим */
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff9f00;
}

.logo-icon {
  width: 57px;
  height: 40px;
  margin-right: 10px;
}

/* Блок "Список игроков" */
.player-list {
  width: 30%;
  border-right: 1px solid #333;
  padding: 20px;
  max-height: 80vh; /* Скролл внутри списка (при желании уберите) */
  overflow-y: auto;
}

.player-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Никнеймы в списке — BigNoodle */
.player-list li {
  position: relative;
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid #333;
  font-family: 'BigNoodleTooOblique', sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s ease;
  z-index: 1;
}

.player-list li:hover {
  color: #000;
}

/* Подсветка при наведении (псевдоэлемент) */
.player-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #ff9f00;
  border-radius: 10px;
  transform: skewX(-25deg);
  transform-origin: left center;
  z-index: -1;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.player-list li:hover::before {
  width: 100%;
  opacity: 1;
}

/* Пагинация в потоке */
.pagination {
  margin-top: 15px;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.pagination button {
  background: #1b2838;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button.active {
  background: #0875f5;
}

.pagination button:hover {
  background: #065bb3;
}

.pagination-dots {
  color: #fff;
  padding: 5px;
  font-size: 1rem;
}

/* Блок "Детали игрока" */
.player-details {
  width: 70%;
  padding: 20px;
}

#detailsContainer {
  background: #1b2838;
  padding: 20px;
  border-radius: 10px;
  font-size: 1.2rem; /* Arial для Situation, Status и т.д. */
  min-height: 200px;
}

/* --- Никнейм и ранги: на ПК в одну строку, на мобилке переносим. --- */
.nickname-container {
  display: flex;
  flex-direction: row; /* по умолчанию в строку */
  align-items: center;
  margin-bottom: 10px;
}

/* Никнейм (BigNoodle) */
.nickname {
  font-family: 'BigNoodleTooOblique', sans-serif;
  font-size: 6rem;
  color: #fff;
  text-transform: uppercase;
  margin-right: 20px; /* Отступ от иконок */
}

/* Контейнер с рангами (на ПК в строке, на мобилке — см. медиа-запрос) */
.ranks {
  display: flex;
  align-items: center;
}

/* Иконки рангов */
.rank-icon {
  width: 120px;
  height: 120px;
  margin: 0 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 100%;
}

.rank-icon:hover {
  transform: scale(1.1);
}

.rank-separator {
  font-family: 'BigNoodleTooOblique', sans-serif;
  font-size: 4rem;
  color: #fff;
  margin: 0 5px;
}

/* Контейнер роли */
.role-container {
  margin-top: 0px;
  text-align: left;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* если не влезает, пусть переносится */
}

.role-icon {
  width: 100px;
  height: 86px;
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 100%;
  margin-bottom: 10px;
}

.role-icon:hover {
  transform: scale(1.1);
}

/* YouTube-вставки */
.youtube-container {
  margin-top: 20px;
  text-align: center;
}

.youtube-container iframe {
  width: 100%;
  max-width: 480px;
  height: 270px;
  border: none;
}

/* Кнопка на ПК (больших экранах) фиксирована снизу справа */
.publish-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0875f5;
  color: #fff;
  font-size: 1.2rem;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.publish-button:hover {
  background-color: #065bb3;
  transform: scale(1.05);
}

/* ====== Адаптивные стили ====== */

/* 1) Для экранов до 992px (примерно планшеты) */
@media (max-width: 992px) {
  main {
    flex-wrap: wrap;
  }

  .player-list {
    width: 40%;
    max-height: none;
  }

  .player-details {
    width: 60%;
  }

  .player-list li {
    font-size: 2.5rem;
  }

  .rank-icon {
    width: 100px;
    height: 100px;
  }
  .role-icon {
    width: 80px;
    height: 68px;
  }
}

/* 2) Для экранов до 768px (смартфоны и маленькие планшеты) */
@media (max-width: 768px) {
  /* В один столбик */
  main {
    flex-direction: column;
    padding: 10px;
  }

  .player-list,
  .player-details {
    width: 100%;
    padding: 10px;
  }

  .player-list {
    border-right: none;
    border-bottom: 1px solid #333;
    max-height: unset;
    padding-bottom: 20px;
  }

  .pagination {
    margin-top: 10px;
  }

  /* Меньше шрифт у списка */
  .player-list li {
    font-size: 2rem;
  }

  /* Меньше шрифт никнейма */
  .nickname {
    font-size: 3rem;
    margin-right: 0; 
  }

  /* Иконки рангов на мобилке — на новой строке */
  .nickname-container {
    flex-direction: column; 
    align-items: flex-start; 
  }

  .rank-icon {
    width: 120px; 
    height: 120px;
    margin: 5px 0;
  }

  .role-icon {
    width: 60px;
    height: 50px;
  }

  .youtube-container iframe {
    max-width: 100%;
    height: auto;
  }

  /* Кнопка в потоке (не фиксированная) */
  .publish-button {
    position: static;
    margin: 20px auto;
    display: block;
  }
}
