/* MODE FILTER */
.mode-filter {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mode-filter__list {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    transition: all .4s ease;
}

.mode-filter__item {
    flex: 1 1 150px;
    max-width: 177px;
    width: 100%;
    min-width: 125px;
    height: 53px;
    background: var(--card);
    border-radius: var(--br-8);
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: all .4s ease;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.mode-filter__item:hover,
.mode-filter__item--active {
    box-shadow: var(--span) 0 0 0 2px inset;
}

.mode-filter__item-name,
.mode-filter__online-count {
    font-family: var(--font-family-2);
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-7);
    letter-spacing: .04em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    flex-grow: 1;
}

.mode-filter__online {
    gap: 8px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    z-index: 4;
    margin-left: auto;
    flex-shrink: 0;
}

.mode-filter__online-indicator {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 2px;
    display: block;
}

.mode-filter__online-indicator-wrapper {
    height: 1rem;
    display: flex;
    align-items: center;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    color: var(--text-custom);
}

.mode-filter__online-indicator {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--green);
  border-radius: var(--br-2);
  animation: mode-filter__online-indicator-animation 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
}

@keyframes mode-filter__online-indicator-animation {
  0% {
    transform: scale(1) rotate(0deg);
    border-radius: var(--br-2);
  }

  50% {
    transform: scale(0.6) rotate(90deg);
    border-radius: var(--br-50);
  }

  100% {
    transform: scale(1) rotate(180deg);
    border-radius: var(--br-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-filter__online-indicator {
    animation: none;
  }
}
/* MODE FILTER */

/* MODE BANNER */
.mode-banner {
    height: 280px;
    background: var(--card);
    border-radius: var(--br-8);
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    padding: 30px;
}

.mode-banner__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
}

.mode-banner__content {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mode-banner__info {
    max-width: 600px;
}

/* HEADER SECTION */
.mode-banner__header {
    margin-bottom: 24px;
}

.mode-banner__title {
    font-family: var(--font-family-1);
    font-size: var(--font-size-7xl);
    font-weight: var(--font-weight-8);
    color: var(--stars);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* BODY SECTION */
.mode-banner__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mode-banner__description {
    font-size: var(--font-size-default);
    color: var(--text-default);
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
}

/* BUTTON STYLES */
.mode-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
    overflow: hidden;
}

.mode-banner__button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* COMMANDS BUTTON SPECIFIC STYLES */
.mode-banner__button--commands {
    background: var(--red);
    border: none;
}

.mode-banner__button--commands::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mode-banner__button--commands:hover::before {
    left: 100%;
}

.mode-banner__button--commands:hover {
    background: var(--span);
    color: var(--grey);
}

/* ICON STYLES */
.mode-banner__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mode-banner__button:hover .mode-banner__icon {
    transform: scale(1.2);
}

.mode-banner__button-text {
    font-weight: 500;
    white-space: nowrap;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .mode-banner {
        height: auto;
        min-height: 200px;
        padding: 20px;
    }
    
    .mode-banner__title {
        font-size: 32px;
    }
    
    .mode-banner__subtitle-text {
        font-size: 18px;
    }
    
    .mode-banner__description {
        font-size: 14px;
    }
    
    .mode-banner__button {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .mode-banner__icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .mode-banner {
        padding: 16px;
    }
    
    .mode-banner__title {
        font-size: 28px;
    }
    
    .mode-banner__subtitle-text {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .mode-banner__description {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .mode-banner__button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}
/* MODE BANNER */

/* =========================
   SERVERS LIST (layout)
   ========================= */
.servers {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.servers__list{
    display: grid;
    gap: 10px;
    align-content: flex-start;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    width: 100%;
}

/* =========================
   SERVER CARD
   ========================= */
.server-card {
    width: 100%;
    border-radius: var(--br-8);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
    height: 85px;
    display: flex;
    background-color: var(--card);
    position: relative;
    cursor: pointer;
}

.server-card__badge {
    position: absolute;
    z-index: 5;
    transform: rotate(-4deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -12px 0 0 -5px;
    padding: 2px 6px;
    gap: 10px;
    border-radius: var(--br-6);
    font-family: var(--font-family-2);
    font-weight: var(--font-weight-6);
    font-style: normal;
    font-size: var(--font-size-s);
    line-height: 150%;
    letter-spacing: -0.02em;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-default);
    background: linear-gradient(135deg, #90c65b 0%, #90c65b 100%);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2), 0 0 50px rgba(144, 198, 91, 0.8), 0 4px 100px rgba(144, 198, 91, 0.5);
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

/* Optional: Animation for new badges */
@keyframes badgeAppear {
    0% {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    70% {
        transform: rotate(2deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: rotate(-4deg) scale(1);
    }
}

.server-card__badge.new {
    animation: badgeAppear 0.5s ease-out forwards;
}

/* Optional: Different color variants */
.server-card__badge--hot {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    box-shadow: 
        0 4px 4px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(255, 107, 107, 0.8),
        0 4px 100px rgba(255, 71, 87, 0.5);
}

.server-card__badge--new {
    background: linear-gradient(135deg, #2ED573 0%, #1DD1A1 100%);
    box-shadow: 
        0 4px 4px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(46, 213, 115, 0.8),
        0 4px 100px rgba(29, 209, 161, 0.5);
}

.server-card__badge--popular {
    background: linear-gradient(135deg, #FF9F43 0%, #FF9F1C 100%);
    box-shadow: 
        0 4px 4px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(255, 159, 67, 0.8),
        0 4px 100px rgba(255, 159, 28, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .server-card__badge {
        font-size: 10px;
        padding: 1px 4px;
        gap: 6px;
        transform: rotate(-3deg);
    }
}

/* BG */
.server-card__bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.server-card__bg-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
    filter: grayscale(.25) contrast(1.05) brightness(.7);
    transform: scale(1.06);
}

/* overlay/vignette for readability */
.server-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(80% 120% at 25% 45%, rgba(255,255,255,.08), rgba(0,0,0,0) 55%),
    linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.18) 65%, rgba(0,0,0,.52));
  pointer-events:none;
}

/* content row */
.server-card__row {
    position: relative;
    gap: 14px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
    z-index: 5;
}

.server-card__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* title like screenshot */
.server-card__name {
    color: var(--text-default);
    font-weight: var(--font-weight-7);
    font-size: var(--font-size-default);
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* meta line */
.server-card__meta{
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-m);
  line-height: 1;
  color: rgba(255,255,255,.65);
}

.server-card__dot{
  color: rgba(255,255,255,.35);
}

.server-card__map, 
.server-card__players,
.server-card__ping {
  font-weight: 600;
  color: rgba(255,255,255,.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

/* actions */
.server-card__actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}

.server-card__action {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: rgb(255 255 255 / 0%);
    color: rgba(255, 255, 255, .75);
    transition: transform .15s ease, background .15s ease, color .15s ease;
}

.server-card__action svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.server-card__action:hover{
  background-color: transparent;
  color: var(--span) !important;
}

.server-card__action:active{
  transform: translateY(0);
}

button:focus, .button:focus {
    border: none!important;
}

/* =========================
   HOVER STATE (green outline like your first mock)
   ========================= */
.server-card:hover,
.server-card--hover{
  border-color: rgba(140,255,80,.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(140,255,80,.55),
    0 0 22px rgba(140,255,80,.18),
    0 14px 34px rgba(0,0,0,.45);

  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

.server-card:hover .server-card__bg-img,
.server-card--hover .server-card__bg-img{
  opacity: .20;
  filter: grayscale(.15) contrast(1.1) brightness(.75);
}

/* optional: slightly boost button visibility on hover */
.server-card:hover .server-card__action,
.server-card--hover .server-card__action{
  color: rgba(255,255,255,.82);
}

/* =========================
   OPTIONAL: keep it nice on small screens
   ========================= */
@media (max-width: 420px){
  .server-card{
    width: 100%;
  }
  .server-card__name{
    font-size: 18px;
  }
  .server-card__map{
    max-width: 160px;
  }
}

/* Блок с названием сервера */
.server-card__name {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Контейнер для флага */
.server-card__flag {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    overflow: hidden;
    border-radius: .125rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

/* ==== */

/* modal window */

.modal-window-server {
    position: fixed;
    display: flex;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 500;
    transition: all 0.3s;
    pointer-events: auto;
    background: var(--bg-modal);
    opacity: 0;
    justify-content: center;
    align-items: center;
}

.modal-window-server .card {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  border-radius: 2px;
}

@media (max-width: 768.9px) {
  .modal-window-server > div {
    width: 25em;
  }
}

@media (min-width: 769px) {
  .modal-window-server > div {
    width: 33em;
  }
}

.modal-window-server > div {
  position: absolute;
  width: min(100vw - 2rem, 920px);
  margin: 0 auto;
  padding: 10px;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--card);
  border-radius: var(--br-8);
  pointer-events: none;
}

.modal_players_online {
  visibility: hidden;
}

.modal_players_online.modal_show {
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
}

.modal_players_online > .modal-card {
  transform: scale(0.95);
  transition: 0.2s;
  overflow: hidden;
}

.modal_players_online.modal_show > .modal-card {
  transform: scale(1);
  transition: 0.2s;
  overflow: hidden;
  pointer-events: all;
}

.modal-card__header {
  text-transform: uppercase;
}

.modal-card__header svg {
  width: 24px;
  height: 24px;
  fill: var(--text-default);
  opacity: 0.3;
  transition: 0.3s;
}

.modal-card__header svg:hover {
  fill: var(--text-default);
  opacity: 1;
}

.server-modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.cover {
  height: 135px;
  overflow: hidden;
  background-size: contain;
  margin: 0 0 24px;
}

.server-modal__bg img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.server-modal__bg .shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--card), transparent),
    linear-gradient(0deg, var(--card), transparent);
}

.server-modal__header {
  height: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.modal-card__badge {
  padding: 8px 12px;
  margin: 0;
}

.modal-refresh {
  position: absolute;
  top: 0px;
  right: 40px;
  padding: 10px;
  border-radius: 0 0 0 12px;
  transition: 0.3s;
  display: flex;
  z-index: 1;
  opacity: 0.8;
  background-color: var(--modal-bg);
}

.modal-refresh:hover {
  color: var(--default-text-color);
  cursor: pointer;
}

.modal-btn__close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  transition: 0.3s;
  display: flex;
  z-index: 1;
  opacity: 0.8;
}

.modal-table {
  padding: 5px;
}

.modal-card__footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--grey);
}

@media (max-width: 768px) {

  .mon_admins_header {
    grid-template-columns: 2fr;
    padding: 8px 15px;
    display: grid;
    background-color: var(--transparent-2-w);
    border-radius: 8px;
    margin: 5px 0;
    user-select: none;
    width: 100%;
    justify-items: start;
  }

  .mon_list_body li {
    height: 44px;
    background: transparent;
    border: 1px solid var(--transparent-2-w);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 2fr 0.6fr;
    padding: 15px;
    margin: 0;
    transition: 0.3s;
    position: relative;
    justify-items: start;
    align-content: center;
  }

  .mon_admin_list_body li {
    height: 44px;
    background: transparent;
    border: 1px solid var(--transparent-2-w);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 2fr;
    padding: 15px;
    margin: 0;
    transition: 0.3s;
    position: relative;
    justify-items: start;
    align-content: center;
  }

  .mon_none {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mon_admins_header {
    padding: 8px 15px;
    display: grid;
    grid-template-columns: 2fr;
    background-color: var(--transparent-2-w);
    border-radius: 8px;
    margin: 5px 0;
    user-select: none;
    width: 100%;
    justify-items: start;
  }

  .mon_list_body li {
    height: 44px;
    background: transparent;
    border: 1px solid var(--transparent-2-w);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 2.5fr 0.5fr 0.58fr;
    padding: 15px;
    margin: 0;
    transition: 0.3s;
    position: relative;
    justify-items: start;
    align-content: center;
  }

  .mon_admin_list_body li {
    height: 44px;
    background: transparent;
    border: 1px solid var(--transparent-2-w);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 2fr;
    padding: 15px;
    margin: 0;
    transition: 0.3s;
    position: relative;
    justify-items: start;
    align-content: center;
  }

  .mon_none {
    display: block;
  }
}

.mon_header span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-custom);
  display: flex;
  gap: 10px;
  align-items: center;
}

.mon_header svg {
  fill: var(--text-custom);
  opacity: 0.6;
}

.mon_admins_header span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-custom);
  display: flex;
  gap: 10px;
  align-items: center;
}

.mon_admins_header svg {
  width: 10px;
  height: 10px;
  fill: var(--text-custom);
  opacity: 0.6;
}

.mon_list_scroll {
  max-height: 250px;
  overflow: hidden;
  overflow-y: scroll;
  width: 100%;
  margin-bottom: 5px;
}

.mon_list_body li:not(:last-child) {
  margin-bottom: 3px;
}

.mon_list_body li span {
  font-size: 11px;
  font-weight: 500;
  -webkit-user-drag: none;
  transition: 0.3s;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-custom);
}

.mon_list_body li a {
  color: var(--default-text-color);
  cursor: pointer;
  transition: 0.3s;
  font-weight: 700;
}

.mon_admin_list_body li:not(:last-child) {
  margin-bottom: 3px;
}

.mon_admin_list_body li span {
  font-size: 11px;
  font-weight: 500;
  -webkit-user-drag: none;
  transition: 0.3s;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-custom);
}

.mon_admin_list_body li a {
  color: var(--default-text-color);
  cursor: pointer;
  transition: 0.3s;
  font-weight: 700;
}

.mon_player_name {
  white-space: nowrap;
  width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.server_map_name_second {
  position: relative;
  font-size: 30px;
  font-weight: 700;
  font-family: "Unbounded";
  color: var(--text-custom);
  z-index: 2;
  user-select: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 350px;
}

.server_map_now_play_text {
  position: relative;
  font-size: 14px;
  font-weight: normal;
  color: var(--text-default);
  user-select: none;
  text-transform: none;
  opacity: 0.7;
}

.map_name_block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
  justify-content: space-between;
}

/* Модальное окно команд режима */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    width: 100%;
    max-width: 500px;
    background: var(--card);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
    box-shadow: 0px 0px 20px 20px rgb(0 0 0 / 16%);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.modal-header {
    position: relative;
    padding: 0;
}

.modal-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.modal-cover img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.6s ease;
}

.modal-container:hover .modal-cover img {
    transform: scale(1.05);
}

.modal-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--card), transparent);
}

.modal-title-block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    padding-top: 60px;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent);
}

.modal-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
}

.icon-command {
    width: 18px;
    height: 18px;
    color: #4cc9f0;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Content */
.modal-content {
    padding: 24px;
}

.commands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--transparent-5-w);
}

.commands-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--font-weight-6);
    color: var(--text-default);
    font-size: var(--font-size-default);
}

.commands-count {
    background: rgba(76, 201, 240, 0.1);
    color: var(--span);
    padding: 6px 12px;
    border-radius: var(--br-6);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-5);
}

.commands-list {
    list-style: none;
    padding: 0;
    padding-right: 3px;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.commands-list::-webkit-scrollbar {
    background-color: var(--transparent-2-w);
    width: 2px;
    height: 2px;
}

.commands-list::-webkit-scrollbar-track {
border-width: 0;
}

.commands-list::-webkit-scrollbar-thumb {
border-width: 1px 1px 1px 2px;
    background-color: var(--span);
}

.command-item {
    background: var(--span-low);
    border: 1px solid var(--span-half);
    border-radius: var(--br-12);
    padding: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.command-item:hover {
    background: var(--span-middle);
    transform: translateX(5px);
}

.command-icon {
    width: 24px;
    height: 24px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.command-icon svg {
    width: 14px;
    height: 14px;
    color: #4cc9f0;
}

.command-text {
    flex: 1;
    color: var(--text-custom);
    font-size: var(--font-size-m);
    word-break: break-word;
}

.command-copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.command-copy:hover {
    background: rgba(76, 201, 240, 0.1);
    color: #4cc9f0;
    border-color: #4cc9f0;
}

/* Footer */
.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer .button {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.primary-btn {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    border: none;
    color: white;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #3db8e0 0%, #3255e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-container {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .modal-cover {
        height: 150px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .commands-list {
        max-height: 250px;
    }
}

/* Анимация для появления команд */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.command-item:nth-child(1) { animation-delay: 0.1s; }
.command-item:nth-child(2) { animation-delay: 0.2s; }
.command-item:nth-child(3) { animation-delay: 0.3s; }
.command-item:nth-child(4) { animation-delay: 0.4s; }
.command-item:nth-child(5) { animation-delay: 0.5s; }

.copy_button {
    background: var(--span-10) !important;
}

.modal-btn__close {
background: transparent;
}

.modal-btn__close:hover {
background: transparent;
}

.mon_header {
    display: grid;
    grid-template-columns: 1fr;
}

/* Блок команд */
.teams {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 1024px) {
    .teams {
        grid-template-columns: 1fr 1fr;
    }
}

/* Блок команды */
.team {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team__info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.team__name {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.team__counter {
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Список игроков команды */
.team__players {
    width: 100%;
    max-height: 256px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Слот игрока */
.team__slot {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.team__slot--empty {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.team__slot-text {
    color: #a5acc7;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Блок наблюдателей */
.spectators {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spectators__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spectators__icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.spectators__title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Список наблюдателей */
.spectators__list {
    max-height: 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Слот наблюдателя */
.spectators__slot {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.spectators__slot--empty {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.spectators__slot-text {
    color: #a5acc7;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Стили для скроллбара */
.team__players::-webkit-scrollbar,
.spectators__list::-webkit-scrollbar {
    width: 6px;
}

.team__players::-webkit-scrollbar-track,
.spectators__list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.team__players::-webkit-scrollbar-thumb,
.spectators__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.team__players::-webkit-scrollbar-thumb:hover,
.spectators__list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox */
.team__players,
.spectators__list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Плавные переходы */
.team,
.spectators,
.team__slot,
.spectators__slot {
    transition: all 0.2s ease;
}

.team__slot:hover:not(.team__slot--empty),
.spectators__slot:hover:not(.spectators__slot--empty) {
    background: rgba(255, 255, 255, 0.08);
}

/* Блок: modal-card__header */
.modal-card__header {
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

/* Кнопка закрытия */
.modal-card__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-card__close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.modal-card__close-icon {
    width: 16px;
    height: 16px;
    fill: white;
    opacity: 0.8;
}

.modal-card__close:hover .modal-card__close-icon {
    opacity: 1;
}

/* Обложка с картой */
.modal-card__cover {
}

.modal-card__map-image {
position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    width: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

.modal-card__shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(20, 20, 20, 1), rgba(20, 20, 20, 0.8), transparent);
    pointer-events: none;
}

/* Информация о сервере */
.modal-card__info {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
    margin-top: 40px;
}

.modal-card__details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-content: center;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Название сервера */
.modal-card__title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Счет */
.modal-card__score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-card__score-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.modal-card__score-value {
    color: white;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 80px;
    text-align: center;
}

/* Статистика */
.modal-card__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #a5acc7;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-card__stats-icon {
    width: 16px;
    height: 16px;
    fill: #a5acc7;
}

.modal-card__stats-text {
    color: #a5acc7;
    font-size: 14px;
    font-weight: 400;
}

.modal-card__stats-separator {
    color: rgba(165, 172, 199, 0.4);
    font-size: 14px;
    margin: 0 2px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-card__cover {
        height: 160px;
    }
    
    .modal-card__title {
        font-size: 18px;
    }
    
    .modal-card__score-value {
        font-size: 20px;
    }
    
    .modal-card__stats {
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .modal-card__cover {
        height: 140px;
    }
    
    .modal-card__info {
        padding: 16px;
        padding-top: 30px;
        margin-top: -30px;
    }
    
    .modal-card__title {
        font-size: 16px;
    }
    
    .modal-card__score-value {
        font-size: 18px;
    }
    
    .modal-card__stats {
        gap: 8px;
    }
}

/* Анимации */
.modal-card__score-value {
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Эффекты для иконок счета при активном матче */
.modal-card__score-icon--ct.winning {
    filter: brightness(1) invert(0);
}

.modal-card__score-icon--t.winning {
    filter: brightness(1) invert(0);
}

/* Слот игрока (заполненный) */
.team__slot--filled {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    transition: all 0.2s ease;
}

.team__slot--filled:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ссылка в слоте */
.team__slot-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 8px 16px;
}

/* Контейнер игрока */
.team__player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Информация об игроке */
.team__player-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Для правильной работы text-overflow */
}

/* Аватар игрока */
.team__player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.team__slot--filled:hover .team__player-avatar {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Детали игрока */
.team__player-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    flex: 1;
    justify-content: flex-start;
}

/* Имя игрока */
.team__player-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 115px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.2s ease;
}

.team__slot--filled:hover .team__player-name {
    color: #4fc3f7;
    text-shadow: 0 1px 4px rgba(79, 195, 247, 0.3);
}

.team__player-admin svg {
    width: 24px;
    height: 24px;
    fill: var(--text-default);
    opacity: 0.3;
    transition: 0.3s;
}

/* Статистика игрока */
.team__player-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

/* Время игрока */
.team__player-time {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease;
}

.team__player-time-value {
    color: #a5acc7;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 20px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.team__slot--filled:hover .team__player-time-value {
    color: #90caf9;
}

/* Адаптивность */
@media (max-width: 768px) {
    .team__slot-link {
        padding: 8px 12px;
    }
    
    .team__player-info {
        gap: 8px;
    }
    
    .team__player-name {
        font-size: 13px;
        max-width: 90px;
    }
    
    .team__player-stats {
        gap: 16px;
    }
    
    .team__player-time-value {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .team__player-name {
        max-width: 70px;
    }
    
    .team__player-stats {
        gap: 12px;
    }
}

/* Анимации для времени (если нужно обновление) */
.team__player-time-value {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Индикатор активности */
.team__player--active .team__player-avatar {
    box-shadow: 0 0 0 2px #4caf50, 0 0 10px rgba(76, 175, 80, 0.3);
}

.team__player--afk .team__player-avatar {
    filter: grayscale(0.7);
    opacity: 0.7;
}

.team__player--admin .team__player-avatar {
    box-shadow: 0 0 0 2px #ff9800, 0 0 10px rgba(255, 152, 0, 0.3);
}