/* ========== СТИЛИ СТРАНИЦЫ СЕРВЕРА ========== */
.server-header-card {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.server-header-bg {
    background: linear-gradient(135deg, rgb(26, 26, 46) 0%, rgb(22, 33, 62) 100%);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
	border-radius: var(--radius, 16px);
}
.server-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: blur(2px) saturate(1.2);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}
.server-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.server-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.server-header-info { flex: 1; }
.server-title {
  font-size: 28px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-weight: 700;
}

/* ========== IP БЛОК С КОПИРОВАНИЕМ ========== */
.server-ip-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ip-copy-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.ip-copy-wrapper:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.server-ip {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 10px 0 0 10px;
  font-family: monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  user-select: all;
}

.ip-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  flex-shrink: 0;
}

.ip-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ip-copy-btn:active {
  transform: scale(0.92);
}

.ip-copy-wrapper.copied {
  border-color: var(--success);
  background: rgba(0, 0, 0, 0.6);
}

.ip-copy-wrapper.copied .ip-copy-btn {
  color: var(--success);
}

/* ========== КНОПКИ В ШАПКЕ СЕРВЕРА ========== */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-icon.primary:hover {
  background: var(--primary-btn-hover);
  border-color: var(--primary-btn-hover);
}


.header-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: white;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.header-action-btn:hover { background: rgba(255, 255, 255, 0.1); }
.header-action-btn.danger:hover { background: rgba(239, 68, 68, 0.3); border-color: rgb(239, 68, 68); color: rgb(255, 179, 179); }
.header-action-btn.favorite { color: #ffd700; }
.header-action-btn.like { color: #ff6b6b; }
.header-action-btn.share { color: #60a5fa; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.online { background: rgba(16, 185, 129, 0.2); color: rgb(16, 185, 129); }
.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ========== СТАТИСТИКА СЕРВЕРА ========== */
.stats-section {
    margin-bottom: 24px;
}

.stats-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    background: transparent;
}

.stats-grid-6 .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
}

.stats-grid-6 .stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stats-grid-6 .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stats-grid-6 .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== ДВЕ КОЛОНКИ ========== */
.server-two-columns {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .server-two-columns { grid-template-columns: 1fr; } }

.server-left, .server-right { display: flex; flex-direction: column; gap: 24px; }

/* ========== УНИВЕРСАЛЬНЫЕ КАРТОЧКИ ========== */
.info-card, .options-card, .chart-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.info-card-header, .options-header, .chart-header {
  padding: 14px 18px;
  background: var(--bg-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* ========== ОПЦИИ ========== */
.options-grid { display: flex; flex-direction: column; }
.option-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.option-item:last-child { border-bottom: none; }
.option-icon { width: 30px; font-size: 18px; text-align: center; }
.option-content { flex: 1; }
.option-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.option-value { font-size: 13px; color: var(--text-muted); }
.option-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.option-tag {
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.option-tag.mode { background: var(--primary-container); color: var(--primary); }
.option-tag.tag { background: var(--primary-soft); color: var(--primary); }

/* ========== АДМИНИСТРАЦИЯ ========== */
.admin-message {
    background: var(--bg-soft);
    padding: 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 16px 0;
    border-left: 3px solid var(--primary);
    color: var(--text);
}

/* Контакты администрации - ссылки в одну линию */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-soft);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.contact-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.contact-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.contact-link:hover .contact-icon {
    opacity: 1;
}

/* СВЕТЛАЯ ТЕМА */
[data-theme="light"] .contact-icon {
    filter: invert(1);
}


/* Для темной темы */
[data-theme="dark"] .contact-icon {
    opacity: 0.6;
}

[data-theme="dark"] .contact-link:hover .contact-icon {
    opacity: 1;
}

/* ========== ГРАФИКИ ========== */
.chart-header { display: flex; justify-content: space-between; align-items: center; }
.chart-mini-tabs { display: flex; gap: 6px; }
.chart-mini-tab {
  padding: 4px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.chart-mini-tab.active { background: rgb(0, 90, 208); color: white; border-color: var(--primary); }
.chart-body { padding: 18px; }

.chart-title {
  margin-bottom: 20px;
  text-align: center;
}
.chart-title h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text);
}
.chart-title p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== КОНТЕЙНЕРЫ С ПРОКРУТКОЙ ========== */
.chart-scroll,
.raw-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0 0 10px;
  width: 100%;
  max-width: 100%;
}
.chart-scroll::-webkit-scrollbar,
.raw-chart-scroll::-webkit-scrollbar {
  height: 10px;
}
.chart-scroll::-webkit-scrollbar-track,
.raw-chart-scroll::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 10px;
}
.chart-scroll::-webkit-scrollbar-thumb,
.raw-chart-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  cursor: pointer;
}
.chart-scroll::-webkit-scrollbar-thumb:hover,
.raw-chart-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* ========== СПИСОК СТОЛБЦОВ ========== */
.chart-bars {
  display: flex;
  gap: 12px;
  min-width: min-content;
  align-items: flex-end;
  justify-content: center;
  width: max-content;
  min-width: 100%;
}
.raw-chart-bars {
  display: flex;
  gap: 4px;
  min-width: min-content;
  align-items: flex-end;
  justify-content: center;
  width: max-content;
  min-width: 100%;
}

/* ========== СТОЛБЦЫ ========== */
.chart-bar-item,
.raw-bar-item {
  flex: 0 0 auto;
  text-align: center;
  position: relative;
}
.chart-bar-item { width: 60px; }
.raw-bar-item { width: 30px; }

.chart-bar-wrapper,
.raw-bar-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}
.chart-bar-wrapper { height: 160px; margin-bottom: 8px; }
.raw-bar-wrapper { height: 140px; margin-bottom: 8px; }

.chart-bar,
.raw-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-btn) 100%);
  transition: height 0.3s ease, transform 0.2s;
  min-height: 4px;
}
.chart-bar { border-radius: 6px 6px 4px 4px; }
.raw-bar { border-radius: 3px 3px 2px 2px; }
.chart-bar:hover,
.raw-bar:hover {
  background: linear-gradient(180deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: scaleX(1.05);
}

.chart-bar-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 6px;
}

.raw-bar-label {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transform: rotate(-45deg);
  margin-top: 6px;
  width: 30px;
  position: relative;
  left: 0;
}

/* ========== ТУЛТИПЫ ========== */
.global-tooltip {
  position: fixed;
  z-index: 10000;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  max-width: 300px;
  min-width: 180px;
}
.global-tooltip.visible {
  opacity: 1;
  visibility: visible;
}
.global-tooltip .tooltip-content { padding: 12px 16px; }
.global-tooltip .tooltip-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transform: rotate(45deg);
  pointer-events: none;
}
.global-tooltip.tooltip-top .tooltip-arrow {
  bottom: -7px;
  left: 50%;
  margin-left: -6px;
  border-top: none;
  border-left: none;
}
.global-tooltip.tooltip-bottom .tooltip-arrow {
  top: -7px;
  left: 50%;
  margin-left: -6px;
  border-bottom: none;
  border-right: none;
}

.tooltip-data {
  font-size: 12px;
  line-height: 1.5;
}
.srvPage-tp {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.srvPage-tpR {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.srvPage-tpRLabel {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.srvPage-tpRValue {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}
.srvPage-tpRValue b { font-size: 20px; }

/* ========== УНИВЕРСАЛЬНЫЙ ТУЛТИП ========== */
.ttGlobal {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 600px;
  opacity: 0;
  transform: translateY(4px);
}
.ttGlobal.ttVisible {
  opacity: 1;
  transform: translateY(0);
  animation: ttSlideUp 0.2s ease forwards;
}
.ttContainer {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius, 12px);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.15));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text, #fff);
}
.ttText {
  color: var(--text, #fff);
  font-size: 13px;
  line-height: 1.5;
}
.ttArrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--card, rgba(0, 0, 0, 0.92));
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

@keyframes ttSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== КОМПАКТНЫЙ ТУЛТИП ДЛЯ ГРАФИКОВ ===== */
.ttChartData {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
}
.ttChartRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.05));
}
.ttChartRow:last-child { border-bottom: none; }
.ttChartLabel {
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  font-size: 12px;
  font-weight: 400;
  margin-right: 24px;
  flex-shrink: 0;
}
.ttChartValue {
  color: var(--text, #fff);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}
.ttChartValue b {
  color: var(--primary, #4CAF50);
  font-weight: 700;
}

/* ========== КАРТОЧКИ СТАТИСТИКИ ========== */
.chart-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.chart-stat-card {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: transform 0.2s;
}
.chart-stat-card:hover { transform: translateY(-2px); }
.chart-stat-icon { font-size: 24px; margin-bottom: 6px; }
.chart-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.chart-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== ПОПУЛЯРНЫЕ КАРТЫ ========== */
.popular-list { padding: 12px; }
.popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.popular-item:last-child { border-bottom: none; }

.popular-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}
.popular-percent {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 45px;
}
.popular-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== ПОСЛЕДНИЕ КАРТЫ ========== */
.recent-list { padding: 12px; }
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
}
.recent-item:last-child { border-bottom: none; }
.recent-map {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-time {
  font-size: 11px;
  color: var(--text-muted);
}
.recent-badge {
  background: var(--success);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
}
.recent-players {
  font-size: 11px;
  color: var(--text-muted);
}
.recent-duration {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== ТАБЛИЦЫ ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-muted);
}

.rank-cell { color: #555; }

.player-name {
  max-width: 150px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-name a {
  color: var(--text);
  text-decoration: none;
}
.player-name a:hover { color: var(--primary); }

.status-online {
  color: var(--success);
  font-size: 10px;
  margin-left: 4px;
}

.bot-tag {
  background: var(--danger);
  color: white;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
}

.view-all-link {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--bg-soft);
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s;
}
.view-all-link:hover { background: var(--border); }

.players-table-container {
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}
.players-table-container::-webkit-scrollbar {
  width: 6px;
}
.players-table-container::-webkit-scrollbar-track {
  background: var(--bg-soft);
  border-radius: 3px;
}
.players-table-container::-webkit-scrollbar-thumb {
  background: var(--text-soft);
  border-radius: 3px;
}
.players-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.no-data {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* ========== ОТЗЫВЫ ========== */
.reviews-compact {
    padding: 4px;
}

.review-form-compact {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.emotion-compact {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.emotion-btn-compact {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.emotion-btn-compact:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.emotion-btn-compact.active {
    background: var(--primary-btn-hover);
    color: #fff;
    border-color: var(--primary-btn-hover);
}

.emotion-btn-compact.active[data-emotion="0"] {
    background: var(--danger);
    border-color: var(--danger);
}

.review-form-compact textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
    font-family: inherit;
    box-sizing: border-box;
}

.review-form-compact textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-send {
    padding: 8px 20px;
    background: var(--primary-btn-hover);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send:hover:not(:disabled) {
    background: var(--primary-btn);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== ОТЗЫВЫ СПИСОК ===== */
.review-item {
    padding: 12px 16px;
	border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
	margin: 10px;
}

.review-item:hover {
    background: var(--bg-soft);
}

.review-item:last-child {
    border-bottom: none;
}

/* Чередование цветов */
.review-item:nth-child(odd) {
    background: rgb(215, 242, 250, 0.5);
}

.review-item:nth-child(even) {
    background: rgba(250, 235, 215, 0.5);
}

/* Если нужно с полупрозрачностью для темной темы */
[data-theme="dark"] .review-item:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .review-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.review-avatar-link {
    flex-shrink: 0;
    text-decoration: none;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.review-avatar-link:hover .review-avatar {
    border-color: var(--primary);
}

.review-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.review-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.review-name {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-name:hover {
    color: var(--primary);
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.review-emotion {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.review-body {
    padding-left: 5px;
}

.review-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.empty-reviews {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

#review-result {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    display: none;
}

#review-result.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

#review-result.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

#review-counter {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    .review-body {
        padding-left: 0;
    }
    
    .review-header {
        flex-wrap: wrap;
    }
    
    .review-user {
        flex: 1;
        min-width: 0;
    }
    
    .review-name {
        font-size: 13px;
    }
    
    .review-text {
        font-size: 12px;
    }
}

/* ========== АДАПТИВ СТРАНИЦЫ СЕРВЕРА ========== */
@media (max-width: 1024px) {
    .stats-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .server-header-content { flex-direction: column; align-items: flex-start; }
    .server-logo { width: 70px; height: 70px; }
    .stats-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stats-grid-6 .stat-card {
        padding: 12px 8px;
    }
    .stats-grid-6 .stat-value {
        font-size: 18px;
    }
    .stats-grid-6 .stat-label {
        font-size: 10px;
    }
    .chart-bar-item { width: 50px; }
    .chart-bar-wrapper { height: 140px; }
    .chart-bar-value { font-size: 10px; }
    .chart-bar-label { font-size: 9px; }
    .raw-bar-item { width: 24px; }
    .raw-bar-wrapper { height: 120px; }
    .raw-bar-label { font-size: 7px; left: -8px; }
    .chart-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .chart-stat-value { font-size: 18px; }
}

@media (max-width: 480px) {
    .chart-bar-item { width: 45px; }
    .chart-stats-grid { grid-template-columns: 1fr; }
    .stats-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .stats-grid-6 .stat-card {
        padding: 10px 6px;
        border-radius: 12px;
    }
    .stats-grid-6 .stat-value {
        font-size: 16px;
    }
    .stats-grid-6 .stat-label {
        font-size: 9px;
    }
}

/* ========== ТУЛТИПЫ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 640px) {
  .ttGlobal {
    max-width: 90vw;
    left: 5vw !important;
    right: 5vw !important;
    transform: none !important;
  }
  .ttGlobal .ttContainer { padding: 12px 14px; }
  .ttChartData { min-width: unset; width: 100%; }
}

/* Защита от растягивания */
.server-left,
.server-right,
.chart-card,
.chart-body,
.chart-container {
  min-width: 0;
}

/* СТАТИСТИКА ОТДЕЛЬНЫМИ БЛОКАМИ */
.stats-section {
    margin-bottom: 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 12px;
	background: transparent;
}
.stats-grid:last-child {
    margin-bottom: 0;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ПРОГРЕССБАР (ОТДЕЛЬНЫЙ БЛОК) */
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.progress-track {
    background: var(--bg-soft);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4c8caf, #86d0e2);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* LIVE сессия */
.live-session-card {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid #4CAF50;
    overflow: hidden;
    margin-bottom: 24px;
}
.live-session-header {
    padding: 14px 18px;
    background: rgba(76, 175, 80, 0.1);
    font-weight: 600;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-dot {
    font-size: 18px;
}
.live-session-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.live-stat {
    background: var(--bg-soft);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.live-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.live-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Графики */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.chart-card-full {
    margin-bottom: 0;
}
.chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 0 0 10px;
    width: 100%;
    max-width: 100%;
}
.chart-scroll::-webkit-scrollbar {
    height: 8px;
}
.chart-scroll::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 10px;
}
.chart-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
.bar-chart-wide {
    display: flex;
    gap: 8px;
    min-width: max-content;
    align-items: flex-end;
    padding: 5px 0;
    height: 140px;
}
.bar-wrap-wide {
    flex: 0 0 auto;
    width: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.bar-val {
    font-size: 0.65em;
    margin-bottom: 2px;
    color: var(--text-soft);
    text-align: center;
}
.bar {
    width: 100%;
    max-width: 32px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
    min-height: 2px;
}
.bar.blue { background: linear-gradient(180deg, #2196F3, #1565C0); }
.bar.orange { background: linear-gradient(180deg, #FF9800, #e65100); }
.bar-lbl {
    font-size: 0.6em;
    color: var(--text-soft);
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

/* Адаптив */
@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .live-session-body {
        grid-template-columns: 1fr;
    }
    .bar-wrap-wide {
        width: 40px;
    }
    .bar {
        max-width: 28px;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bar-wrap-wide {
        width: 34px;
    }
    .bar {
        max-width: 24px;
    }
}

.stats-grid-full {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .stats-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Разделитель между сессиями */
.bar-wrap-wide {
    position: relative;
}
.bar-divider {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.3);
    border-left: 2px dashed var(--border);
    pointer-events: none;
    z-index: 2;
}
.bar-wrap-wide.has-divider .bar-divider {
    display: block;
}
.bar-wrap-wide:not(.has-divider) .bar-divider {
    display: none;
}
.data-table tbody tr:last-of-type td { border-bottom: none; }

/* В style/server.css */
.header-action-btn.favorite.active {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-color: #ffd700;
}

.header-action-btn.like.voted {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border-color: #ff4444;
    cursor: not-allowed;
}

.header-action-btn.like:disabled {
    cursor: not-allowed;
}

/* ===== СТАТИСТИКА ПО ИГРАМ ===== */
.game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.game-stat-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.game-stat-card.active {
    border-color: var(--primary);
    background: var(--bg-soft);
}
.game-stat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-stat-icon img {
    object-fit: contain;
}
.game-stat-info {
    flex: 1;
    min-width: 0;
}
.game-stat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.game-stat-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== СТАТИСТИКА ПОИСКА ===== */
.search-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
	justify-items: center;
}

/* ===== ЗАГОЛОВОК ===== */
.page-header {
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 28px;
    margin: 0 0 4px 0;
    color: var(--text);
}
.page-header p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== ТАБЛИЦА ===== */
.data-table .server-name {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.data-table .server-name a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.data-table .server-name a:hover {
    color: var(--primary);
}
.data-table .player-name a {
    font-weight: 500;
}
.data-table .player-name a:hover {
    color: var(--primary);
}

/* ===== МОБИЛЬНЫЙ СПИСОК ===== */
.mobile-list {
    display: none;
    padding: 8px 16px;
}
.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}
.player-item:last-child {
    border-bottom: none;
}
.player-item:hover {
    background: var(--bg-soft);
}
.player-item:active {
    background: var(--bg-soft);
}
.player-item .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    flex: 1;
    margin-right: 12px;
}
.player-item .info .name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.player-item .info .details {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-item .info .details span {
    color: var(--text-muted);
}
.player-item .status-badge {
    font-size: 11px;
    flex-shrink: 0;
}
.player-item .bot-tag {
    font-size: 9px;
    background: var(--danger);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.data-table tbody tr:last-of-type td { border-bottom: none; }

/* ===== ИНФОРМАЦИОННЫЕ СООБЩЕНИЯ ===== */
.info-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--border);
}
.info-message.info {
    background: var(--bg-soft);
    color: var(--text);
}
.info-message strong {
    color: var(--text);
}
.info-message small {
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .filter-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .filter-group > div {
        min-width: unset !important;
        flex: unset !important;
        width: 100%;
    }
    .filter-group > div:last-child {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-top: 4px;
    }
    .filter-group > div:last-child label {
        display: none;
    }
    .filter-group > div:last-child .btn {
        flex: 1;
    }
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-header h1 {
        font-size: 22px;
    }
    
    /* Скрываем десктопную таблицу, показываем мобильный список */
    .desktop-table {
        display: none !important;
    }
    .mobile-list {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .game-stats {
        grid-template-columns: 1fr 1fr;
    }
    .game-stat-card {
        padding: 10px 12px;
    }
    .game-stat-name {
        font-size: 12px;
    }
    .stat-value {
        font-size: 24px;
    }
    .filter-group > div:last-child .btn {
        min-width: 60px;
    }
    .player-item {
        padding: 10px 12px;
    }
    .player-item .info .name {
        font-size: 14px;
    }
    .player-item .info .details {
        font-size: 11px;
    }
    .player-item .status-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}