.stats-page-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: flex-start;
  position: relative;
}

.stats-sidebar {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
}

.col-deaths{
  position: relative;
}
.col-kills{
  position: relative;
  text-align: center;
}

.standAgent{
  position: absolute;
  bottom: -39px;
  pointer-events: none;
}
.col-hs{
  position: relative;
  right: -10px;
}
.stats-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tournament-info-card {
  position: relative;
  overflow: hidden;
}
.trophy-video {
  max-width: 700px !important;

  object-fit: cover;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.tournament-info-card:hover .trophy-video {
  opacity: 1;
}
.tournament-info-card .tournament-icon,
.tournament-info-card .tournament-text,
.tournament-info-card .btn-red {
  position: relative;
  z-index: 2;
}

.tournament-video-wrapper{
  width: 400px;
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-muted);
}

.server-item.active, .server-item:hover {
  background-color: var(--color-red);
  color: white;
}

.server-item.active .online-indicator {
  opacity: 1;
}

.server-item i {
  font-size: 18px;
}

.online-indicator {
  margin-left: auto;
  color: var(--color-green);
  opacity: 0.3;
}

.abstract{
  position: absolute;
  right: 0;
  bottom: 0;
  filter: opacity(0.5);
  object-fit: none;
  background-size: 100% 100%;
}

.tournament-info-card {
  display: flex;
  position: relative;
  align-items: center;
  gap: 25px;
  background-image: url(../img/stats.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  width: 100%;
  border-left: 4px solid var(--color-red);
}

.tournament-icon {
  font-size: 3rem;
  color: var(--color-red);
}

.tournament-text {
  flex-grow: 1;
  margin-bottom: 30px;
}

.tournament-text h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.tournament-text p {
  color: var(--text-light);
}

.tournament-info-card .btn-white {
  background-color: var(--bg-card-light);
  color: var(--text-light);
}

.player-stats-table {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  grid-template-columns: 50px 1fr 200px 80px;
  display: grid;
  padding: 15px 25px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  gap: 20px;
}

.tripleDiv{
  display: flex;
  justify-content: space-between;
  position: relative;
  left: -190px;
  width: 286px;
}

.tripleDiv div{
  width: 180px;
  text-align: center;
}

.col-hs{
  position: relative;
  left: -10px;
}

.col-stats {
  position: relative;
  left: -150px;
  display: grid;
  grid-template-columns: 80px 80px 80px;
  gap: 15px;
  justify-content: center;
  text-align: center;
}
.player-row {
  display: grid;
  grid-template-columns: 50px 1fr 200px 80px;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid rgb(255 255 255 / 32%);
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 20px;
  position: relative;
}

.player-row:hover {
  background-color: var(--bg-card-light);
}

.player-row:last-child {
  border-bottom: none;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
}

.col-player {
  display: flex;
  align-items: center;
  width: 63%;
}

.player-nick a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-nick img {
  width: 40px;
  height: 40px;
  border-radius: 100%;
}

.details-value a img {
  display: none;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-nick {
  font-weight: 600;
}

.player-steam {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-card-light);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}
.stat-item i {
  color: var(--color-red);
}
.col-actions {
  text-align: right;
}

.btn-trophy {
  background: none;
  border: none;
  font-size: 55px;
  transform: rotateZ(15deg);
  color: var(--color-yellow);
  opacity: 0;
  transition: opacity 0.3s;
}



.player-row.rank-1 .btn-trophy, .player-row.rank-2 .btn-trophy, .player-row.rank-3 .btn-trophy {
  opacity: 1;
}

.player-row.rank-1 {
  background-image: linear-gradient(to right, #2a2211, transparent);
  border-left: 3px solid #FFD700;
}

.player-row.rank-1 .btn-trophy {
  color: #FFD700;
  text-shadow: 0 0 10px #ffd700;
  animation: gold-shine 3s infinite;
}

.player-row.rank-2 {
  background-image: linear-gradient(to right, #282828, transparent);
  border-left: 3px solid #C0C0C0;
}

.player-row.rank-2 .btn-trophy {
  color: #C0C0C0;
  text-shadow: 0 0 8px #c0c0c0;
}

.player-row.rank-3 {
  background-image: linear-gradient(to right, #2c1d12, transparent);
  border-left: 3px solid #CD7F32;
}

.player-row.rank-3 .btn-trophy {
  color: #CD7F32;
}

.modal-stats .modal-content {
  padding: 0;
}

.modal-stats .modal-tabs {
  padding: 0 25px;
}

.stats-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 25px;
  align-items: stretch;
}

.stats-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.stat-block, .stat-progress-block {
  flex: 1; /* Добавлено для равномерного распределения высоты */
  min-height: 0; /* Исправляет проблему с flexbox в некоторых браузерах */
}

.stat-block {
  background-color: var(--bg-card-light);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.stat-icon-bg {
  width: 45px;
  height: 45px;
  min-width: 45px;
  background-color: rgba(215, 31, 44, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-red);
}

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  text-align: start;
}

.stat-value a img {
  display: none;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-progress-block {
  background-color: var(--bg-card-light);
  padding: 15px;
  border-radius: 10px;
  height: 100%;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #111;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-red), var(--color-yellow));
  border-radius: 4px;
}

.full-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 25px;
}

@keyframes gold-shine {
  0%, 100% {
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffc400;
  }
  50% {
    text-shadow: 0 0 15px #fff700, 0 0 30px #ffc400;
  }
}

@media (max-width: 1200px) {
  .stats-page-layout {
    grid-template-columns: 1fr;
  }

  .stats-sidebar {
    margin-bottom: 30px;
  }

  .server-list {
    flex-direction: row;
    justify-content: center;
  }
  .abstract{
    object-fit: cover;
    max-width: -webkit-fill-available;
  }
}

@media (max-width: 768px) {

  .tournament-video-wrapper{
    display: none;
  }
  .table-header, .player-row {
    grid-template-columns: 40px 1fr 80px;
  }

  .col-stats {
    display: none;
  }

  .full-stats-grid {
    grid-template-columns: 1fr;
  }
}


.stats-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  padding: 15px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
}
.search-bar-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  font-weight: 700;
}
.search-bar-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(215, 31, 44, 0.1);
  color: var(--color-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}
.search-input-wrapper label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  position: absolute;
  left: 15px;
  top: 5px;
}
.search-input-wrapper input {
  background-color: #212121;
  padding: 20px 15px 11px 15px;
  border-radius: 10px;
  border: none;
  color: var(--text-light);
  text-align: left;
  width: 200px;
  font-weight: 600;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-input-wrapper input:focus {
  outline: none;
}

.search-button {
  width: 45px;
  height: 45px;
  background-color: var(--color-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.search-button:hover {
  background-color: var(--color-red-light);
}

@media (max-width: 992px) {
  .stats-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .search-input-wrapper {
    background-color: var(--bg-card-light);
    padding: 5px 5px 5px 15px;
    border-radius: 8px;
  }
  .search-input-wrapper input {
    text-align: left;
    background-color: transparent;
  }
}


.banlist-header {
  background: url("../img/banlist.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 40px;
  background-color: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  height: 350px;
  display: flex;
  flex-direction: column;
}

.bans-header {
  background: url("../img/bans.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 40px;
  background-color: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  height: 350px;
  display: flex;
  flex-direction: column;
}

.complaints-header {
  background: url("../img/complaints.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 40px;
  background-color: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  height: 350px;
  display: flex;
  flex-direction: column;
}
.banlist-header-content {
  position: relative;
  z-index: 2;
}
.header-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: var(--color-red);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.05;
}
.banlist-tabs {
  display: flex;
  gap: 10px;
  background-color: var(--bg-card-light);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #333;
  margin-bottom: 20px;
  width: max-content;
}
.banlist-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.banlist-tab.active, .banlist-tab:hover {
  background-color: var(--color-red);
  color: white;
}
.banlist-info .section-title {
  font-size: 2rem;
  margin-bottom: 5px;
}
.banlist-info p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.banlist-actions {
  margin-top: 120px;
  display: flex;
  gap: 15px;
}
.player-row.ban-row {
  grid-template-columns: 1fr 1fr 1.5fr 200px;
}
.col-reason {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.col-time {
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.status-red {
  color: #fff;
  background-color: var(--color-red);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  display: block;
  text-align: center;

}
.status-green {
  color: #fff;
  background-color: var(--color-green);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  display: block;
  text-align: center;
}

.status-yellow {
  color: #fff;
  background-color: var(--color-yellow);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  display: block;
  text-align: center;
}

.status-blue {
  color: #fff;
  background-color: var(--color-blue);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  display: block;
  text-align: center;
}

.status-default {
  color: #fff;
  background-color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  display: block;
  text-align: center;
}


@media (max-width: 992px) {
  .banlist-header {
    flex-direction: column;
    align-items: stretch;
  }
  .banlist-tabs, .banlist-actions {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .banlist-table-header, .player-row.ban-row {
    grid-template-columns: 1fr 100px;
  }
  .col-admin, .col-reason {
    display: none;
  }
}

/*color 1*/
.stat-item:nth-child(3){
  background: #000000;
}

/*color 2*/
.stat-item:nth-child(3){
  background: #2d3b26;
}

/*!*color 3*!*/
.stat-item:nth-child(3){
  background: #430d0d;
}

/*!*color 4*!*/
.stat-item:nth-child(3){
  background: #0d2243;
}

/*!*color 5*!*/
.stat-item:nth-child(3){
  background: rgb(141 127 17);
}


.ban-details-window {
  max-width: 700px;
  background-color: #161616;
}
.ban-details-window .modal-header {
  padding-bottom: 25px;
}
.ban-details-window .modal-content {
  padding-top: 0;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}
.details-item {
  display: flex;
  gap: 15px;
  background-color: #212121;
  padding: 15px;
  border-radius: 8px;
}
.details-icon {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  background-color: rgba(215, 31, 44, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-red);
}
.details-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.details-value {
  font-weight: 600;
  font-size: 1rem;
}
.details-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.details-full-width {
  grid-column: 1 / -1;
}
.modal-action-btn {
  width: 100%;
  padding: 14px;
  justify-content: center;
}

.empty-element {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  padding: 20px 0;
}

input.stats-input {
  background-color: var(--bg-card-light);
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--bg-card-light);
  width: 100%;
  text-align: center;
  color: var(--text-light);
  outline: none;
  transition: ease-in-out 0.2s;
}

input.stats-input:focus {
  border: 1px solid var(--color-red);
}

@media (max-width: 1200px) {
  .stats-page-layout {
    grid-template-columns: 1fr;
  }
  .stats-sidebar {
    margin-bottom: 30px;
  }
  .server-list {
    flex-direction: row;
    justify-content: center;
  }
  .tournament-info-card {
    flex-direction: column;
    text-align: center;
  }
  .tournament-video-wrapper {
    width: 100%;
    max-width: 400px;
    height: 200px;
  }
}

@media (max-width: 992px) {
  .table-header {
    display: none;
  }
  .player-row {
    grid-template-columns: 40px 1fr 55px;
    gap: 15px;
  }
  .col-stats {
    display: none;
  }
  .btn-trophy {
    font-size: 32px;
    transform: rotateZ(0deg);
  }
  .standAgent {
    display: none;
  }
  .stats-page-layout {
    grid-template-columns: 100%;
  }
  .abstract {
    object-fit: unset;
    max-width: unset;
  }
  .tournament-info-card .btn-white{
    width: 100%;
    text-align: center;
    margin: 10px 0!important;
    display: block;
  }
  .modal-stats{
    overflow-y: scroll;
    scale: 0.9;
    height: 500px;
  }

}

@media (max-width: 768px) {
  .full-stats-grid,
  .stats-columns {
    grid-template-columns: 1fr;
  }
  .tournament-info-card {
    padding: 20px;
  }
  .tournament-text h3 {
    font-size: 1.8rem;
  }
  .details-grid{
    width: 100%;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
  }
  .details-item{
    width: 100%;
  }
  .modal-content{
    overflow-y: scroll;
    scale: 0.9;
    height: 500px;

  }
}