/* Сброс отступов и базовая модель коробки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Фон страницы: светло-голубовато-серый */
body {
  font-family: Arial, sans-serif;
  background: #d7deeb;
  color: #000;
  min-height: 100vh;
}

/* Шапка (тёмная панель) */
header {
  background: #1f1f28;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.logo-icon {
  width: 50px;
  height: 40px;
  margin-right: 10px;
}

/* Поле поиска */
#search {
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  outline: none;
}

/* Две колонки */
main {
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* Левая колонка: список + пагинация */
.player-list {
  width: 30%;
  background: #f0f2f5;
  border-radius: 8px;
  min-height: 70vh;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.player-list h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  background: #2f3241;
  color: #fff;
  padding: 10px;
  border-radius: 8px 8px 0 0;
}

.player-list ul {
  list-style-type: none;
  padding: 10px;
  margin: 0;
}

/* Элементы списка */
.player-list li {
  background: #ffffff;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  /* text-transform: uppercase; <-- включите, если нужен капс */
}

.player-list li:hover {
  background-color: #e2e7ef;
  transform: scale(1.02);
}

/* Пагинация */
.pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.pagination button {
  background: #2f3241;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}

.pagination button.active {
  background: #ffbe00;
  color: #000;
}

.pagination button:hover {
  background: #3b3f51;
}

.pagination-dots {
  color: #333;
  padding: 6px 10px;
  font-size: 1rem;
}

/* Правая колонка: карточка */
.player-details {
  flex: 1;
  background: #f0f2f5;
  border-radius: 8px;
  min-height: 70vh;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.player-details h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  background: #2f3241;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
}

/* Содержимое карточки */
#detailsContainer {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  color: #000;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  flex: 1;
}

/* Верхняя часть: никнейм + ранг */
.nickname-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.nickname {
  font-size: 1.6rem;
  font-weight: bold;
  color: #2f3241;
  margin-right: 15px;
}

/* Ранг: крупная иконка */
.rank-icon {
  width: 220px;
  height: 220px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

/* Контейнер для роли */
.role-container {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Тёмный круг для белой иконки роли */
.role-icon {
  width: 60px; 
  height: 60px;
  background-color: #2f3241;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

/* Картинка внутри role-icon */
.role-icon img {
  max-width: 80%;
  height: auto;
}

/* Ховер-эффект (увеличение) для ранга и роли */
.rank-icon:hover,
.role-icon:hover {
  transform: scale(1.1);
}

/* Параметры (Situation / Status) */
#detailsContainer p {
  margin: 10px 0;
  font-size: 1rem;
}

#detailsContainer strong {
  font-weight: bold;
  color: #2f3241;
}

/* YouTube-встроенный плеер */
.youtube-container {
  margin-top: 20px;
  text-align: center;
}

.youtube-container iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border: none;
}

/* Кнопка "Publish Dumbass" */
.publish-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffbe00;
  color: #000;
  font-size: 1rem;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.3s;
}

.publish-button:hover {
  background-color: #ffc733;
  transform: scale(1.05);
}

/* Адаптив < 768px */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  .player-list,
  .player-details {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .pagination {
    position: static;
    transform: none;
    margin-top: 10px;
    justify-content: center;
  }

  .rank-icon {
    width: 150px;
    height: 150px;
  }

  .role-icon {
    width: 50px;
    height: 50px;
  }

  .role-icon img {
    max-width: 70%;
  }
}
