/* ---------- Контейнер карточек ---------- */
.cs2-monitoring-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 10px 0;
}

/* ---------- Карточка сервера ---------- */
.cs2-monitoring-card {
  width: 442px;
  min-height: 130px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 16px 16px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #222;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cs2-monitoring-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

/* ---------- Красная прозрачная накладка ---------- */
.cs2-monitoring-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(30 0 0 / 48%);
  border-radius: 25px;
  z-index: 1;
}

.cs2-monitoring-card * {
  position: relative;
  z-index: 2;
}

/* ---------- Верх карточки ---------- */
.cs2-monitoring-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs2-tag.cs2-top {
  background: #ff4d4f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  padding: 2px 14px;
  white-space: nowrap;
}

.cs2-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 12px;
}

/* ---------- Кнопка "Play" ---------- */
.cs2-play {
  flex-shrink: 0;
  border: 2px solid #ff0000;
  color: #ff0000;
  background-color: rgba(117, 0, 0, 0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.2s, background 0.3s, transform 0.2s;
}

.cs2-play:hover {
  transform: scale(1.1);
}

.cs2-play:after {
  content: '';
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polygon points="8,5 19,12 8,19"/></svg>') center/contain no-repeat;
}

.cs2-play.copied {
  border-color: #3fd1b2;
  background-color: rgba(0, 50, 0, 0.55);
}

.cs2-play.copied:after {
  background: url('data:image/svg+xml;utf8,<svg fill="%233fd1b2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.285 6.709a1 1 0 0 0-1.414 0l-8.285 8.285-4.285-4.285a1 1 0 1 0-1.414 1.414l5 5a1 1 0 0 0 1.414 0l9-9a1 1 0 0 0 0-1.414z"/></svg>') center/contain no-repeat;
}

/* ---------- Нижняя часть карточки ---------- */
.cs2-monitoring-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.cs2-tag.cs2-online {
  background: #cc2e2e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  padding: 2px 14px;
  white-space: nowrap;
}

.cs2-map,
.cs2-city {
  background: rgba(34, 34, 44, 0.8);
  color: #fff;
  font-size: 12px;
  border-radius: 14px;
  padding: 2px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Tooltip ---------- */
.cs2-tooltip {
  position: fixed;
  background: #222;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0.97;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- Фильтр ---------- */
.servers_filter.card {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(18, 18, 18, 0.95);
    border-radius: 14px;
    box-shadow: 0 0 0 1px #111;
    flex-wrap: wrap;
    gap: 10px;
}

.filter_left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter_chips {
    display: flex;
    gap: 6px;
}

.chips_btn {
    padding: 6px 14px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: background .25s, color .25s;
}

.chips_btn.chips_active,
.chips_btn:hover {
    background: #fff;
    color: #000;
}

/* ---------- Кнопка обновления ---------- */
#updateservers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#updateservers:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.1);
}

#updateservers svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.servers_filter_card {
  background: rgba(131, 4, 4, 0.35);
}

.servers_filter.card {
    background: #1a1a1a; /* например, тёмно-серый */
}

.cs2-servers-filter {
    background: rgb(55 0 0 / 95%) !important;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}