.server-error-container {
  width: 94.05%;
  max-width: 1426px;
  margin: 18px auto;
  padding: 18px 27px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5a0f0f 0%, rgb(89, 25, 25) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px rgba(40, 0, 0, 0.45);
  border: 1px solid rgba(255, 99, 99, 0.35);
}
.server-error-title {
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffd7d7;
}
.server-error-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  gap: 20px;
  margin: 40px auto;
  width: 94.05%;
  max-width: 1426px;
  box-sizing: border-box;
}
.server-error-modern .empty-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 15px rgba(255, 242, 0, 0.3));
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.server-error-modern .empty-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.server-error-modern .empty-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.server-error-modern .empty-subtitle {
  font-size: 15px;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
}
@media (max-width: 768px) {
  .server-error-modern {
    width: 95%;
    padding: 40px 20px;
  }
  .server-error-modern .empty-title {
    font-size: 18px;
  }
  .server-error-modern .empty-subtitle {
    font-size: 13px;
  }
}
.server-error-loading {
  opacity: 1 !important;
}
.server-error-loading .loading-spinner {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
}
.spinner-icon {
  font-size: 48px;
  animation: spinner-rotate 2s linear infinite;
  display: inline-block;
}
@keyframes spinner-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.version-badge {
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
    text-transform: uppercase;
    vertical-align: middle;
}
.stable-badge {
    background-color: #2e7d32;
    color: #fff;
    border: 1px solid #43a047;
}
.nightly-badge {
    background-color: #4527a0;
    color: #fff;
    border: 1px solid #5e35b1;
}
.section-title-row {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  width: 94.05%;
  max-width: 1426px;
  margin: 14px auto 7px auto;
}
.last-update-time {
  color: #3390ec;
  font-size: 14px;
  font-weight: 600;
  min-width: 55px;
  text-align: center;
  display: inline-block;
  background: rgba(51, 144, 236, 0.1);
  border: 1px solid rgba(51, 144, 236, 0.3);
  border-radius: 8px;
  padding: 4px 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  position: absolute;
  right: 0;
}
.server-flash {
  animation: server-flash 1s ease-out;
}
@keyframes server-flash {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(255, 255, 255, 0.3);
  }
  100% {
    background-color: transparent;
  }
}
.total-table {
  width: 94.05%;
  max-width: 1426px;
  margin: 18px auto;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  font-size: 16px;
}
@media (max-width: 768px) {
  .total-table {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
}
.total-cell {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 11px;
  text-align: center;
  vertical-align: middle;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);
  color: #2196F3;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.section-title {
  text-align: center;
  margin: 16px 0 10px;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title-text {
  background: linear-gradient(135deg, #787ae1 0%, #3390ec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(51, 144, 236, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.menu-count-badge {
  display: inline-block;
  font-size: 12px;
  color: rgb(170, 172, 255);
  background: rgba(120, 122, 225, 0.15);
  border: 1px solid rgba(120, 122, 225, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: normal;
}
.server-table {
  width: 94.05%;
  max-width: 1426px;
  margin: 0 auto 18px auto;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  font-size: 14px;
}
.server-table.has-expanded-row,
.server-table:has(.players-expand-row) {
  overflow: visible;
}
@media (max-width: 768px) {
  .server-table {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .server-table td:nth-child(3) {
    white-space: normal !important;
    word-wrap: break-word;
    line-height: 1.2;
  }
}
#public-nightly-table {
  margin-bottom: 10px;
}
.server-table th {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 9px;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0,86,122,0.25);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.server-table td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 9px;
  vertical-align: middle;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);
}
.server-table th:nth-child(1),
.server-table td:nth-child(1) { width: 15%; text-align: center; }
.server-table th:nth-child(2),
.server-table td:nth-child(2) { width: 30%; text-align: left; overflow: visible !important; }
.server-table th:nth-child(3),
.server-table td:nth-child(3) { width: 13%; overflow: visible !important; }
.server-table th:nth-child(4),
.server-table td:nth-child(4) { width: 20%; text-align: left; }
.server-table th:nth-child(5),
.server-table td:nth-child(5) { width: 20%; text-align: left; }
.server-table thead th {
  user-select: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.server-table thead th:hover {
  background: rgba(0,86,122,0.4);
}
.server-table tbody tr:hover {
  background-color: rgba(0,86,122,0.2);
}
.sortable { cursor: pointer; }
.sort-indicator { margin-left: 4px; font-size: 11px; opacity: 0.9; }
.server-row { cursor: pointer; touch-action: manipulation; }
.server-row:hover { background-color: rgba(0,86,122,0.3) !important; }
.server-row.version-outdated {
  background-color: rgba(255, 68, 68, 0.15) !important;
}
.server-row.version-outdated:hover {
  background-color: rgba(255, 68, 68, 0.25) !important;
}
.server-row.empty-server {
  opacity: 0.6;
  background-color: rgba(100, 100, 100, 0.2) !important;
}
.server-row.empty-server:hover {
  background-color: rgba(100, 100, 100, 0.3) !important;
}
.server-row.full-server {
  background-color: rgba(255, 193, 7, 0.15) !important;
}
.server-row.full-server:hover {
  background-color: rgba(255, 193, 7, 0.25) !important;
}
.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-content {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  margin: 5% auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  width: 80%;
  max-width: 1000px;
  color: #fff;
  animation: slideDown 0.2s ease-out;
}
.modal-header {
  background: rgba(0,86,122,0.25);
  padding: 14px 18px;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.close {
  color: #ccc;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: #fff;
}
.modal-body {
  padding: 18px;
}
.server-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.info-group h4 {
  margin: 0 0 11px 0;
  font-size: 15px;
  color: #4CAF50;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
}
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  padding: 4px 0;
}
.info-label {
  font-size: 14px;
  color: #ccc;
  font-weight: normal;
}
.info-value {
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  text-align: right;
}
.event-item {
  background: rgba(0,86,122,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  padding: 7px;
  margin-bottom: 7px;
}
.event-header {
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 4px;
}
.event-time {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 4px;
}
@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-10px);
    opacity: 0;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.modal.closing {
  animation: fadeOut 0.2s ease-out;
}
.modal-content.closing {
  animation: slideUp 0.2s ease-out;
}
.server-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-weight: normal;
  text-shadow: none;
}
.stat-pill.highlight {
  background: rgba(120, 122, 225, 0.15);
  border-color: rgba(120, 122, 225, 0.3);
  color: rgb(170, 172, 255);
}
.source-pill {
  font-weight: normal;
}
.source-pill-main {
  background: rgba(46, 125, 50, 0.18);
  border-color: rgba(67, 160, 71, 0.42);
  color: #8ee695;
}
.source-pill-reserve {
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffd766;
}
.stat-value {
  font-weight: bold;
  color: #fff;
}
@media (max-width: 768px) {
  .server-stats {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    margin-left: 0;
  }
}
.no-servers-info {
  width: 94.05%;
  max-width: 1426px;
  margin: 18px auto;
  padding: 18px 27px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5a0f0f 0%, rgb(89, 25, 25) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px rgba(40, 0, 0, 0.45);
  border: 1px solid rgba(255, 99, 99, 0.35);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.no-servers-title {
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffd7d7;
}
.no-servers-text {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  text-shadow: 1px 1px rgba(40, 0, 0, 0.45);
}
@media (max-width: 768px) {
  .no-servers-info {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    padding: 15px;
    box-shadow: none !important;
    border-radius: 0;
    text-shadow: none !important;
    background: rgba(30, 39, 50, 0.6) !important;
    border: 1px solid rgba(255, 99, 99, 0.3) !important;
  }
  .no-servers-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .no-servers-text {
    font-size: 14px;
    line-height: 1.5;
    color: #e4e4e4;
  }
}
.server-issues-container {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 14px;
  margin: 0 auto 18px auto;
  width: 94.05%;
  max-width: 1426px;
}
.server-issues-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.server-issues-icon {
  width: 24px;
  height: 24px;
}
.server-issues-header h3 {
  color: #fff;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.server-issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.server-issue-item {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  padding: 7px 11px;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  border-left: 4px solid rgba(255,255,255,0.3);
}
.server-loading {
  text-align: center;
  color: #ccc;
  font-style: italic;
  padding: 20px;
}
.relay-badge {
  font-size: 11px;
  color: #aaa;
  font-weight: normal;
  margin-left: 8px;
  font-style: italic;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 11px;
  background: rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}
.relay-badge:hover {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.server-info-btn,
.server-maphack-btn,
.server-ping-btn,
.online-history-btn,
.trade-map-close,
.trade-map-picker-item,
.trade-map-copy-menu button,
.online-history-period-btn {
  font-family: inherit;
}
.server-info-btn {
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 11px;
  border: 1px solid rgba(51, 144, 236, 0.35);
  background: rgba(51, 144, 236, 0.14);
  color: #8ecbff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  vertical-align: middle;
}
.server-info-btn:hover {
  background: rgba(51, 144, 236, 0.24);
  border-color: rgba(51, 144, 236, 0.55);
  color: #cbe8ff;
}
.server-maphack-btn {
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 11px;
  border: 1px solid rgba(255, 214, 102, 0.36);
  background: rgba(255, 193, 7, 0.16);
  color: #ffe082;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  vertical-align: middle;
}
.server-maphack-btn:hover {
  background: rgba(255, 193, 7, 0.24);
  border-color: rgba(255, 214, 102, 0.52);
  color: #fff2bc;
}
.server-name-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.server-name-main {
  min-width: 0;
  overflow-wrap: anywhere;
}
.server-ping-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: -5px;
  min-width: 68px;
  height: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9ca7b2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  vertical-align: middle;
}
.server-ping-btn:hover {
  background: transparent;
  color: #d3dde6;
}
.server-ping-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}
.server-ping-value {
  min-width: 34px;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
.server-ping-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 18px;
  height: 14px;
}
.server-ping-bars span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: #6f7882;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.server-ping-bars span:nth-child(1) { height: 5px; }
.server-ping-bars span:nth-child(2) { height: 9px; }
.server-ping-bars span:nth-child(3) { height: 13px; }
.server-ping-btn.ping-good {
  background: transparent;
  color: #8ee695;
}
.server-ping-btn.ping-good .server-ping-bars span {
  background: #4fd276;
  box-shadow: 0 0 7px rgba(79, 210, 118, 0.45);
}
.server-ping-btn.ping-warn {
  background: transparent;
  color: #ffd766;
}
.server-ping-btn.ping-warn .server-ping-bars span {
  background: #6f7882;
  box-shadow: none;
}
.server-ping-btn.ping-warn .server-ping-bars span:nth-child(1),
.server-ping-btn.ping-warn .server-ping-bars span:nth-child(2) {
  background: #ffcd48;
  box-shadow: 0 0 7px rgba(255, 205, 72, 0.4);
}
.server-ping-btn.ping-bad {
  background: transparent;
  color: #ff9a9a;
}
.server-ping-btn.ping-bad .server-ping-bars span {
  background: #6f7882;
  box-shadow: none;
}
.server-ping-btn.ping-bad .server-ping-bars span:nth-child(1) {
  background: #ff6363;
  box-shadow: 0 0 7px rgba(255, 99, 99, 0.4);
}
.server-ping-btn.ping-error {
  color: #8d98a3;
}
.server-ping-btn.ping-error .server-ping-bars span {
  background: #6f7882;
  box-shadow: none;
}
.server-ping-btn.ping-loading .server-ping-bars span {
  animation: server-ping-pulse 0.7s ease-in-out infinite alternate;
}
.server-ping-btn.ping-loading .server-ping-bars span:nth-child(2) {
  animation-delay: 0.12s;
}
.server-ping-btn.ping-loading .server-ping-bars span:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes server-ping-pulse {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
.host-badge {
  font-size: 12px;
  color: #aaa;
  font-weight: normal;
  margin-left: 8px;
  font-style: italic;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 11px;
  background: rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
}
.version-badge {
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 11px;
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stable-badge {
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.4);
  background: rgba(76, 175, 80, 0.15);
  text-shadow: 0 0 4px rgba(76, 175, 80, 0.3);
}
.nightly-badge {
  color: #9C27B0;
  border: 1px solid rgba(156, 39, 176, 0.4);
  background: rgba(156, 39, 176, 0.15);
  text-shadow: 0 0 4px rgba(156, 39, 176, 0.3);
}
.test-badge {
  font-size: 12px;
  color: #fff;
  font-weight: bold;
  margin-left: 8px;
  font-style: italic;
  border: 1px solid rgba(255, 165, 0, 0.6);
  padding: 3px 8px;
  border-radius: 11px;
  background: linear-gradient(90deg, #FF6B35, #FFA500,rgb(207, 177, 6),rgb(207, 138, 8), #FF6B35);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  position: relative;
  z-index: 10;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.players-cell {
  white-space: nowrap;
  overflow: visible !important;
  text-align: center;
}
.players-count {
  display: inline;
  min-width: 0;
  text-align: center;
}
.online-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid rgba(51, 144, 236, 0.45);
  background: rgba(51, 144, 236, 0.16);
  color: #8ecbff;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}
.online-history-btn:hover {
  background: rgba(51, 144, 236, 0.28);
  border-color: rgba(51, 144, 236, 0.75);
  color: #dff2ff;
}
.online-history-btn i {
  font-size: 10px;
  line-height: 1;
}
.online-history-modal {
  z-index: 100001;
}
.trade-map-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
}
.trade-map-modal-inner {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  overflow: hidden;
  width: min(680px, calc(100vw - 32px));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.trade-map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
}
.trade-map-modal-header > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.trade-map-modal-header > span i {
  margin-right: 8px;
  color: #9fdfff;
}
.trade-map-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8e4f0;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.trade-map-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.trade-map-outer {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  aspect-ratio: 1 / 0.85;
  max-height: calc(100vh - 130px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.1) 100%);
}
.trade-map-outer img,
#tradeMapCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.trade-map-outer img {
  object-fit: cover;
  display: block;
}
#tradeMapCanvas {
  pointer-events: auto;
  cursor: default;
}
.trade-map-picker {
  position: absolute;
  z-index: 8;
  min-width: 230px;
  max-width: min(90vw, 360px);
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.trade-map-picker-title {
  font-size: 12px;
  color: #c9d8e3;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.trade-map-picker-list {
  max-height: 220px;
  overflow-y: auto;
}
.trade-map-picker-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #eef5fa;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}
.trade-map-picker-item:last-child {
  border-bottom: 0;
}
.trade-map-picker-item:hover {
  background: rgba(255,255,255,0.1);
}
.trade-map-copy-menu {
  position: absolute;
  z-index: 8;
  min-width: 180px;
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.trade-map-copy-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #eef5fa;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}
.trade-map-copy-menu button:hover {
  background: rgba(255,255,255,0.1);
}
.trade-map-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100003;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: rgba(18, 28, 38, 0.94);
  border: 1px solid rgba(100, 190, 255, 0.32);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  color: #eaf6ff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  text-shadow: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.trade-map-copy-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.trade-map-notice {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #c9e4f8;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: rgba(13, 31, 50, 0.56);
}
.online-history-modal-content {
  max-width: 756px;
}
.online-history-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.online-history-period-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #d9ecff;
  cursor: pointer;
  transition: all 0.18s ease;
}
.online-history-period-btn:hover {
  border-color: rgba(51, 144, 236, 0.45);
  background: rgba(51, 144, 236, 0.12);
}
.online-history-period-btn.active {
  border-color: rgba(51, 144, 236, 0.8);
  background: rgba(51, 144, 236, 0.28);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(51, 144, 236, 0.25) inset;
}
.online-history-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 252px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 24, 40, 0.45) 0%, rgba(9, 24, 40, 0.1) 100%);
  padding: 8px 10px 2px 10px;
  box-sizing: border-box;
}
#onlineHistoryCanvas {
  width: 100%;
  height: 252px;
  display: block;
}
.online-history-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #c9e4f8;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: rgba(13, 31, 50, 0.78);
  border: 1px solid rgba(97, 166, 220, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  max-width: calc(100% - 32px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease;
}
.online-history-status.visible {
  opacity: 1;
  visibility: visible;
}
.online-history-status.error {
  color: #ffd4d4;
  border-color: rgba(255, 114, 114, 0.45);
  background: rgba(54, 20, 20, 0.84);
}
.close-online-history {
  color: #ccc;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-online-history:hover {
  color: #fff;
}
.toponline-badge {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
  .player-level-badge {
    font-size: 11px;
    color: #fff200;
    font-weight: bold;
    margin-left: 6px;
    border: 1px solid rgba(255, 242, 0, 0.3);
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(255, 242, 0, 0.1);
    display: inline-block;
    vertical-align: middle;
  }
.player-profile-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.pcap-main .player-profile-badges {
  margin-left: 2px;
  flex: 0 0 auto;
}
.player-profile-badge {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.ann-top-player-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  vertical-align: middle;
}
.ann-top-player-name {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.ann-nitro-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 4px rgba(255, 89, 208, 0.42));
}
.ann-nitro-bolt {
  animation: ann-nitro-bolt-pulse 1.8s ease-in-out infinite;
}
.score-full {
  color: #aaa;
  font-size: 11px;
  font-weight: normal;
}
@media (max-width: 768px) {
  .score-full {
    display: none;
  }
}
@media (max-width: 768px) {
  .section-title-row {
    width: 100%;
    margin: 12px 0 6px;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .section-title-row .last-update-time {
    position: static;
    margin-left: 10px;
    min-width: auto;
  }
  .section-title {
    font-size: 16px;
    margin: 12px 0 6px;
    text-align: center;
  }
  .server-table {
    width: 100%;
    margin: 0;
    font-size: 12px;
    display: table;
    border-collapse: collapse;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .server-table th {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
    color: #3390ec;
    font-weight: 500;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
  }
  .server-table td {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
    color: #e4e4e4;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
  }
  .server-table tr:last-child td {
    border-bottom: none;
  }
  .server-table th:nth-child(1),
  .server-table td:nth-child(1) {
    display: none;
  }
  .server-table th:nth-child(2),
  .server-table td:nth-child(2) {
    width: 35%;
    text-align: left;
    padding-left: 16px;
    white-space: normal;
    word-break: break-word;
  }
  .server-table td:nth-child(2) {
    line-height: 1.5;
  }
  .server-table td:nth-child(2) .relay-badge,
  .server-table td:nth-child(2) .host-badge,
  .server-table td:nth-child(2) .test-badge,
  .server-table td:nth-child(2) .server-info-btn,
  .server-table td:nth-child(2) .server-maphack-btn {
    display: inline-block;
    margin-left: 4px;
    margin-top: 0;
    vertical-align: middle;
    white-space: nowrap;
  }
  .server-name-cell {
    align-items: flex-start;
    gap: 6px;
  }
  .server-ping-btn {
    display: none;
  }
  .server-table th:nth-child(3),
  .server-table td:nth-child(3) {
    width: 17%;
  }
  .server-table th:nth-child(4),
  .server-table td:nth-child(4) {
    width: 25%;
    max-width: none;
  }
  .server-table th:nth-child(5),
  .server-table td:nth-child(5) {
    width: 20%;
    text-align: left;
  }
  .server-table tbody tr:hover {
    background-color: rgba(51, 144, 236, 0.05);
  }
  .total-table {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    font-size: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .total-cell {
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #3390ec;
    text-align: center;
  }
  .modal {
    z-index: 100000;
  }
  .modal[style*="display: block"] {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 0;
  }
  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #17212B;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 20px;
    box-sizing: border-box;
  }
  .modal-header {
    padding: 16px;
    background: rgba(30, 39, 50, 0.6);
    border-bottom: 1px solid rgba(51, 144, 236, 0.2);
    border-radius: 0;
  }
  .modal-header h3 {
    font-size: 18px;
    color: #e4e4e4;
  }
  .close {
    font-size: 24px;
    color: #3390ec;
  }
  .modal-body {
    padding: 16px;
    background: #17212B;
  }
  .server-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .info-group {
    background: transparent;
    border: none;
  }
  .info-group h4 {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    color: #3390ec;
    border-bottom: 1px solid rgba(51, 144, 236, 0.2);
  }
  .info-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 0;
  }
  .info-label {
    font-size: 15px;
    color: #3390ec;
  }
  .info-value {
    font-size: 15px;
    color: #e4e4e4;
    text-align: right;
  }
  .server-issues-container {
    width: 100%;
    padding: 12px 16px;
    margin: 0 0 15px 0;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 0;
    box-shadow: none;
  }
  .server-issues-header h3 {
    font-size: 16px;
    color: #e4e4e4;
  }
  .server-issue-item {
    font-size: 13px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-left: 3px solid rgba(255, 107, 107, 0.5);
    border-radius: 0;
  }
  .relay-badge,
  .host-badge,
  .test-badge,
  .adam-badge,
  .server-info-btn,
  .server-maphack-btn,
  .online-history-btn {
    font-size: 10px;
    padding: 3px 8px;
    margin-left: 4px;
    border: 1px solid rgba(51, 144, 236, 0.3);
    background: rgba(51, 144, 236, 0.1);
    border-radius: 11px;
  }
  .online-history-btn {
    width: 20px;
    height: 20px;
    padding: 0;
    min-width: 20px;
    margin-left: 3px;
  }
  .online-history-controls {
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .online-history-period-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
  .online-history-chart-wrap {
    min-height: 210px;
    padding: 6px 8px 2px 8px;
  }
  #onlineHistoryCanvas {
    height: 210px;
  }
  .online-history-status {
    font-size: 12px;
    padding: 6px 8px;
  }
  .close-online-history {
    color: #3390ec;
  }
  .trade-map-modal {
    align-items: flex-end;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
  }
  .trade-map-modal-inner {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(51, 144, 236, 0.25);
    border-radius: 18px 18px 0 0;
    background: #17212B;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
  }
  .trade-map-modal-header {
    padding: 12px 16px;
    border-bottom-color: rgba(51, 144, 236, 0.16);
    background: transparent;
    color: #e4e4e4;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
  }
  .trade-map-modal-header > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .trade-map-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
    border-color: rgba(51, 144, 236, 0.24);
    background: rgba(51, 144, 236, 0.1);
    color: #9fc8ef;
  }
  .trade-map-outer {
    width: 100%;
    height: min(68vh, calc(100vw * 0.85));
    min-height: 280px;
    max-height: none;
    aspect-ratio: auto;
    background: rgba(12, 18, 26, 0.6);
  }
  .toponline-badge {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }
  .players-cell {
    white-space: normal;
  }
  .players-count {
    display: inline;
    min-width: 0;
    margin-bottom: 0;
  }
  .sortable {
    cursor: pointer;
  }
  .sort-indicator {
    color: #3390ec;
    margin-left: 4px;
  }
  .server-uptime {
    font-size: 11px;
    color: #e4e4e4;
    white-space: nowrap;
  }
}
.server-row.expanded {
  background-color: rgba(51, 144, 236, 0.15) !important;
}
.players-expand-row {
  animation: expandIn 0.2s ease-out;
}
@keyframes expandIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.players-expand-cell {
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  overflow: visible !important;
}
.players-expand-wrap {
  padding: 10px 14px;
  overflow: visible;
}
.global-search-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 94.05%;
  max-width: 1426px;
  margin: 0 auto 12px auto;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 6px;
  box-sizing: border-box;
}
.global-search-icon {
  position: absolute;
  left: 19px;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  font-size: 13px;
  line-height: 1;
}
.global-search-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 14px;
  padding: 9px 80px 9px 36px;
  font-size: 14px;
  outline: none;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
}
.global-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: normal;
  text-shadow: none;
}
.global-search-input:focus {
  background: rgba(51, 144, 236, 0.07);
}
.global-search-count {
  position: absolute;
  right: 15px;
  font-size: 12px;
  font-weight: 600;
  color: #3390ec;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 768px) {
  .global-search-row {
    width: calc(100vw - 20px);
    max-width: none;
    min-height: 44px;
    margin: 4px auto 10px;
    padding: 0;
    border-radius: 12px;
    border-color: rgba(51, 144, 236, 0.2);
    background: rgba(30, 39, 50, 0.74);
    box-shadow: none;
    overflow: hidden;
  }
  .global-search-icon {
    left: 14px;
    font-size: 14px;
    color: rgba(126, 195, 255, 0.72);
  }
  .global-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 11px 74px 11px 38px;
    border-radius: 12px;
    color: #e4e4e4;
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
  }
  .global-search-input::placeholder {
    color: rgba(228, 228, 228, 0.46);
  }
  .global-search-input:focus {
    background: rgba(51, 144, 236, 0.11);
    box-shadow: 0 0 0 1px rgba(51, 144, 236, 0.22) inset;
  }
  .global-search-count {
    position: absolute;
    right: 12px;
    max-width: 68px;
    color: #7ec3ff;
    font-size: 11px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 420px) {
  .global-search-row {
    width: calc(100vw - 16px);
  }
  .global-search-input {
    padding-right: 66px;
    font-size: 15px;
  }
  .global-search-count {
    right: 10px;
    max-width: 58px;
    font-size: 10px;
  }
}
.search-hl {
  background: rgba(255, 210, 0, 0.22);
  color: #ffe066;
  border-radius: 2px;
  padding: 0 1px;
}
.players-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.clan-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.clan-group {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: visible;
}
.clan-groups.clan-groups-has-compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.clan-groups.clan-groups-has-compact .clan-group.clan-group-compact {
  grid-column: auto;
}
.clan-group + .clan-group {
  border-top: 1px solid rgba(51, 144, 236, 0.22);
}
.clan-group-no-clan {
  border-color: rgba(255, 193, 7, 0.36);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 215, 0, 0.03));
}
.clan-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  background: rgba(0, 86, 122, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.clan-group-no-clan .clan-group-header {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 215, 0, 0.1));
  border-bottom-color: rgba(255, 193, 7, 0.24);
}
.clan-group-name {
  font-size: 12px;
  font-weight: 700;
  color: #d9eeff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clan-group-title,
.clan-group-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.clan-group-title {
  flex: 1 1 auto;
}
.clan-group-meta {
  flex: 0 0 auto;
}
.clan-group-score {
  font-size: 11px;
  color: #cfe9ff;
  border: 1px solid rgba(158, 214, 255, 0.18);
  background: rgba(158, 214, 255, 0.08);
  border-radius: 9px;
  padding: 2px 7px;
  font-weight: 700;
  white-space: nowrap;
}
.clan-group-no-clan .clan-group-name {
  color: #ffd76a;
}
.clan-group-count {
  font-size: 11px;
  color: #3390ec;
  border: 1px solid rgba(51, 144, 236, 0.35);
  background: rgba(51, 144, 236, 0.14);
  border-radius: 9px;
  padding: 2px 8px;
  font-weight: 700;
}
.clan-group-no-clan .clan-group-count {
  color: #ffe08a;
  border-color: rgba(255, 193, 7, 0.42);
  background: rgba(255, 193, 7, 0.14);
}
.clan-group .players-capsules {
  padding: 9px 10px;
}
.player-capsule-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  flex: 0 0 auto;
}
.player-capsule-item {
  display: inline-flex;
  flex: 0 0 auto;
}
.player-capsule {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 7px 11px;
  box-sizing: border-box;
}
.player-capsule-link .player-capsule {
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.player-capsule-link:hover .player-capsule {
  background: rgba(51, 144, 236, 0.1);
  border-color: rgba(51, 144, 236, 0.25);
}
.pcap-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.pcap-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pcap-name.nick-gradient-animated .search-hl {
  -webkit-text-fill-color: #ffe066;
  color: #ffe066;
}
.pcap-main .player-level-badge {
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0;
}
.pcap-team {
  font-size: 11px;
  color: #9c7cff;
  background: rgba(156, 124, 255, 0.12);
  border: 1px solid rgba(156, 124, 255, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pcap-score {
  font-size: 11px;
  color: #aaa;
  margin-left: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}
.ann-player-hover-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: 240px;
  max-width: calc(100vw - 24px);
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(39, 39, 39, 0.98) 0%, rgba(24, 24, 24, 0.98) 100%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
  text-shadow: none;
}
.ann-player-hover-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(24, 24, 24, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.ann-player-hover-card.is-edge-left {
  left: 0;
  transform: translate(0, 6px);
}
.ann-player-hover-card.is-edge-left::after {
  left: 22px;
  transform: rotate(45deg);
}
.ann-player-hover-card.is-edge-right {
  right: 0;
  left: auto;
  transform: translate(0, 6px);
}
.ann-player-hover-card.is-edge-right::after {
  right: 22px;
  left: auto;
  transform: rotate(45deg);
}
.player-capsule:hover .ann-player-hover-card,
.player-capsule:focus-within .ann-player-hover-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.player-capsule:hover .ann-player-hover-card.is-edge-left,
.player-capsule:focus-within .ann-player-hover-card.is-edge-left,
.player-capsule:hover .ann-player-hover-card.is-edge-right,
.player-capsule:focus-within .ann-player-hover-card.is-edge-right {
  transform: translate(0, 0);
}
.ann-player-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ann-player-card-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.ann-player-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ann-player-card-name-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.ann-player-card-nitro {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}
.ann-player-card-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-player-card-role.player-target-role-badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.1);
  color: #b0bec5;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ann-player-card-role.role-admin { background: rgba(255, 82, 82, 0.15); color: #ff5252; border: 1px solid rgba(255, 82, 82, 0.2); }
.ann-player-card-role.role-banned { background: rgba(255, 82, 82, 0.15); color: #ff5252; border: 1px solid rgba(255, 82, 82, 0.25); }
.ann-player-card-role.role-premium { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.2); }
.ann-player-card-role.role-subscription { background: rgba(224, 64, 251, 0.15); color: #e040fb; border: 1px solid rgba(224, 64, 251, 0.2); }
.ann-player-card-role.role-booster { background: linear-gradient(135deg, #ff73fa, #b97eff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; border: 1px solid rgba(244, 127, 255, 0.45); box-shadow: inset 0 0 0 100px rgba(255, 115, 250, 0.12); }
.ann-player-card-role.role-old { background: rgba(149, 117, 205, 0.15); color: #9575cd; border: 1px solid rgba(149, 117, 205, 0.2); }
.ann-player-card-role.role-player { background: rgba(120, 144, 156, 0.15); color: #90a4ae; border: 1px solid rgba(120, 144, 156, 0.2); }
.ann-player-card-session {
  display: block;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.ann-player-card-afk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.28);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.ann-player-card-afk i {
  font-size: 10px;
}
.pcap-bot {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffcf66;
  background: rgba(255, 207, 102, 0.15);
  border: 1px solid rgba(255, 207, 102, 0.35);
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.players-expand-empty {
  padding: 16px;
  text-align: center;
  color: #888;
  font-style: italic;
  font-weight: normal;
}
.server-table tbody tr.players-expand-row:hover {
  background-color: transparent !important;
}
.players-expand-row:hover .players-expand-cell {
  background: rgba(0, 0, 0, 0.25) !important;
}
@media (max-width: 768px) {
  .server-table td.players-expand-cell {
    display: table-cell !important;
  }
  .players-expand-wrap {
    padding: 8px;
  }
  .clan-groups {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .clan-group {
    border-color: rgba(51, 144, 236, 0.16);
    background: rgba(51, 144, 236, 0.05);
  }
  .clan-group-no-clan {
    border-color: rgba(255, 193, 7, 0.36);
    background: rgba(255, 193, 7, 0.07);
  }
  .clan-group-header {
    background: rgba(51, 144, 236, 0.12);
    border-bottom: 1px solid rgba(51, 144, 236, 0.2);
    padding: 7px 10px;
  }
  .clan-group-meta {
    gap: 5px;
  }
  .clan-group-score {
    font-size: 10px;
    padding: 2px 6px;
  }
  .clan-group-no-clan .clan-group-header {
    background: rgba(255, 193, 7, 0.14);
    border-bottom-color: rgba(255, 193, 7, 0.24);
  }
  .clan-group-name {
    color: #7fc3ff;
    font-size: 11px;
  }
  .clan-group-no-clan .clan-group-name {
    color: #ffd76a;
  }
  .clan-group-count {
    color: #86c9ff;
    border-color: rgba(51, 144, 236, 0.3);
    background: rgba(51, 144, 236, 0.12);
  }
  .clan-group-no-clan .clan-group-count {
    color: #ffe08a;
    border-color: rgba(255, 193, 7, 0.42);
    background: rgba(255, 193, 7, 0.14);
  }
  .clan-group .players-capsules {
    padding: 8px;
  }
  .table-players-search-input {
    font-size: 14px;
    padding: 10px 11px;
  }
  .players-capsules {
    gap: 6px;
  }
  .player-capsule {
    padding: 6px 9px;
  }
  .pcap-name {
    font-size: 12px;
  }
}
@keyframes ann-nitro-bolt-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px #ff59d0); opacity: 0.7; }
  50%       { filter: drop-shadow(0 0 8px #7c72ff) drop-shadow(0 0 14px #ff59d0); opacity: 1; }
}
@keyframes ann-nitro-text-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.top-player-hidden-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px !important;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  border: none;
  background: none;
  padding: 0;
  letter-spacing: 0.3px;
}
.top-player-hidden-badge .ann-nitro-icon {
  width: 14px;
  height: 14px;
  animation: ann-nitro-bolt-pulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #ff59d0);
}
.top-player-hidden-badge span {
  background: linear-gradient(90deg, rgba(255,255,255,0.7) 0%, #ffffff 35%, #c084fc 55%, #ff59d0 70%, rgba(255,255,255,0.7) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ann-nitro-text-shimmer 2.6s linear infinite;
}
