.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.back-btn:hover { color: var(--text); background: var(--surface); }
.back-btn svg { width: 15px; height: 15px; stroke: currentColor; }

.lb-hero {
  background: linear-gradient(140deg, #071a0e 0%, #0d2b1a 40%, #1b4332 80%, #2d6a4f 100%);
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
}
.lb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.lb-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.lb-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  flex-shrink: 0;
}
.lb-hero-badge svg { width: 14px; height: 14px; stroke: currentColor; }
.lb-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.lb-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-top: 6px;
}

.lb-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .lb-summary { grid-template-columns: repeat(2, 1fr); }
}
.lb-sum-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.lb-sum-item:last-child { border-right: none; }
@media (max-width: 640px) {
  .lb-sum-item:nth-child(2) { border-right: none; }
  .lb-sum-item:nth-child(3), .lb-sum-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}
.lb-sum-item:hover { background: rgba(255,255,255,0.05); }
.lb-sum-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.lb-sum-icon svg { width: 13px; height: 13px; stroke: rgba(255,255,255,0.75); }
.lb-sum-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  font-family: var(--mono);
  line-height: 1;
}
.lb-sum-label {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}

.lb-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 0 20px;
  gap: 12px;
}
.lb-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--online);
  text-transform: uppercase;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  animation: livePulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,157,94,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(45,157,94,0); }
}

.lb-top3 {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
  align-items: end;
}
@media (max-width: 640px) {
  .lb-top3 { grid-template-columns: 1fr; align-items: stretch; }
  .lb-top3-card:nth-child(1) { order: 2; }
  .lb-top3-card:nth-child(2) { order: 1; }
  .lb-top3-card:nth-child(3) { order: 3; }
}

.lb-top3-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.lb-top3-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.lb-top3-podium-num {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.lb-top3-card.rank-1::before { background: linear-gradient(90deg, #b45309, #fbbf24, #b45309); }
.lb-top3-card.rank-2::before { background: linear-gradient(90deg, #64748b, #b0bec5, #64748b); }
.lb-top3-card.rank-3::before { background: linear-gradient(90deg, #7c4f28, #c47e3a, #7c4f28); }
.lb-top3-card.rank-1 { box-shadow: 0 4px 28px rgba(251,191,36,0.22), var(--shadow); }
.lb-top3-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.lb-top3-medal { font-size: 32px; line-height: 1; }
.lb-top3-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--surface);
  flex-shrink: 0;
}
.lb-top3-icon img { width: 100%; height: 100%; object-fit: cover; }
.lb-top3-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.lb-top3-ip {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-light);
}
.lb-top3-players {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: -1.2px;
  line-height: 1;
  margin-top: 4px;
}
.lb-top3-plabel {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lb-top3-fill-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.lb-top3-fill-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.lb-top3-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.lb-top3-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #40c075);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.lb-top3-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  margin-top: 2px;
}
.lb-top3-status.online { background: var(--online-bg); color: var(--online); }
.lb-top3-status.offline { background: var(--offline-bg); color: var(--offline); }
.lb-top3-status .status-dot { width: 5px; height: 5px; }

.lb-top3-sparkline {
  width: 100%;
  height: 40px;
  margin-top: 4px;
}

.lb-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lb-stats-section {
  margin-bottom: 28px;
}
.lb-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .lb-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .lb-stats-grid { grid-template-columns: 1fr; }
}
.lb-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.lb-stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.lb-stat-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lb-stat-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
}
.lb-stat-card-icon svg { width: 13px; height: 13px; stroke: var(--text-muted); }
.lb-stat-card-val {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1;
}
.lb-stat-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.lb-stat-mini-chart {
  margin-top: 12px;
  height: 40px;
}

.lb-dist-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px;
  margin-bottom: 28px;
}
.lb-dist-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.lb-dist-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lb-dist-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.lb-dist-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}
.lb-dist-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.lb-dist-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.lb-dist-pct {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-muted);
}

.lb-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}
.lb-list-header {
  display: grid;
  grid-template-columns: 36px 44px 1fr 64px 96px 20px;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 680px) {
  .lb-list-header { grid-template-columns: 28px 36px 1fr 96px 20px; }
  .lb-list-header-spark { display: none; }
}
.lb-list-header-cell {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lb-list-header-cell.right { text-align: right; }

.lb-row {
  display: grid;
  grid-template-columns: 36px 44px 1fr 64px 96px 20px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--surface); }
.lb-row.lb-row-enter {
  animation: rowIn 0.28s ease both;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 680px) {
  .lb-row { grid-template-columns: 28px 36px 1fr minmax(80px, auto) 20px; gap: 10px; padding: 12px 12px; }
  .lb-row-sparkwrap { display: none !important; }
  .lb-row-players { min-width: 80px; }
  .lb-row-bar { width: 64px; }
  .lb-row-count { font-size: 13px; }
  .lb-row-max { font-size: 11px; }
}
@media (max-width: 420px) {
  .lb-row { grid-template-columns: 24px 32px 1fr minmax(72px, auto) 16px; gap: 8px; padding: 10px 10px; }
  .lb-row-bar { display: none; }
}

.lb-rank {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}
.lb-rank.top { color: var(--accent); }
.lb-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--surface);
  flex-shrink: 0;
}
.lb-row-icon img { width: 100%; height: 100%; object-fit: cover; }
.lb-row-info { flex: 1; min-width: 0; }
.lb-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-row-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.lb-row-ip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-light);
}
.lb-row-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
}
.lb-row-sparkwrap {
  display: flex;
  justify-content: center;
}
.lb-row-sparkline {
  width: 60px;
  height: 28px;
}
.lb-row-players {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.lb-row-count-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.lb-row-count {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}
.lb-row-count.has-players { color: var(--accent); }
.lb-row-sep {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}
.lb-row-max {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.lb-row-bar {
  width: 80px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.lb-row-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #40c075);
  transition: width 0.7s ease;
}
.lb-row-bar-fill.warm { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.lb-row-bar-fill.hot { background: linear-gradient(90deg, #ef4444, #f97316); }
.lb-offline-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--offline);
  background: var(--offline-bg);
  padding: 2px 8px;
  border-radius: 8px;
}
.lb-row-arrow {
  color: var(--text-light);
  transition: transform 0.15s, color 0.15s;
}
.lb-row-arrow svg { width: 15px; height: 15px; stroke: currentColor; display: block; }
.lb-row:hover .lb-row-arrow { color: var(--accent); transform: translateX(3px); }

.lb-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
