/* Banlist Premium — Control Center style */
.banlist-premium {
  --bl-bg: #06050b;
  --bl-bg2: #0d0a17;
  --bl-panel: rgba(255, 255, 255, 0.06);
  --bl-stroke: rgba(255, 255, 255, 0.09);
  --bl-text: #f4f1ff;
  --bl-muted: #aaa2c7;
  --bl-soft: #8b7cc3;
  --bl-purple: #8b5cf6;
  --bl-purple-2: #6d28d9;
  --bl-purple-3: #c084fc;
  --bl-green: #22c55e;
  --bl-gray: #94a3b8;
  --bl-orange: #fb923c;
  --bl-pink: #fb7185;
  --bl-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --bl-radius: 24px;
  --bl-radius-md: 18px;
  --bl-radius-sm: 14px;
  --bl-blur: 18px;
  --bl-trs: 0.25s ease;
  min-height: 60vh;
  padding: 22px 0 40px;
  background: transparent;
  color: var(--bl-text);
}

.banlist-wrap {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
}

.banlist-main {
  display: grid;
  gap: 18px;
  align-items: start;
}

.banlist-premium .glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--bl-stroke);
  border-radius: var(--bl-radius);
  backdrop-filter: blur(var(--bl-blur));
  -webkit-backdrop-filter: blur(var(--bl-blur));
  box-shadow: var(--bl-shadow);
}

.banlist-hero {
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.banlist-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -80px 10%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 62%);
  pointer-events: none;
}

.banlist-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.banlist-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ddd3ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.banlist-tagline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bl-purple-3);
  box-shadow: 0 0 18px var(--bl-purple-3);
}

.banlist-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bl-text);
}

.banlist-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--bl-muted);
  font-size: 15px;
  line-height: 1.7;
}

.banlist-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-self: flex-start;
}

.banlist-hero-chip {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ece7ff;
  font-size: 13px;
  font-weight: 600;
}

/* Stats */
.banlist-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.banlist-stat {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.banlist-stat::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.36;
  pointer-events: none;
}

.banlist-stat.total::after { background: rgba(139, 92, 246, 0.45); }
.banlist-stat.active::after { background: rgba(34, 197, 94, 0.32); }
.banlist-stat.expired::after { background: rgba(251, 146, 60, 0.28); }
.banlist-stat.removed::after { background: rgba(251, 113, 133, 0.28); }

.banlist-stat-name {
  color: var(--bl-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  margin-bottom: 10px;
}

.banlist-stat-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--bl-text);
}

.banlist-stat-sub {
  font-size: 13px;
  color: var(--bl-muted);
}

/* Panel */
.banlist-panel {
  overflow: hidden;
}

.banlist-controls {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 180px;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.banlist-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--bl-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.banlist-input-wrap {
  position: relative;
}

.banlist-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #c8bbff;
  pointer-events: none;
}

.banlist-control,
.banlist-select {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: var(--bl-text);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: border-color var(--bl-trs), box-shadow var(--bl-trs);
}

.banlist-select option {
  background: #0b0816;
  color: var(--bl-text);
}

.banlist-control {
  padding-left: 44px;
}

.banlist-control:focus,
.banlist-select:focus {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 0 30px rgba(139, 92, 246, 0.14);
}

.banlist-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--bl-text) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-weight: 700;
  font-size: 14px;
  transition: transform var(--bl-trs), opacity var(--bl-trs), box-shadow var(--bl-trs);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.banlist-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.18);
}

.banlist-field-submit .banlist-btn {
  width: 100%;
}

.banlist-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--bl-muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.banlist-meta-bar strong {
  color: var(--bl-text);
}

.banlist-desktop-table {
  padding: 10px 12px 14px;
  overflow: auto;
}

.banlist-premium table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.banlist-premium thead th {
  padding: 10px 14px;
  text-align: left;
  color: #b6abd8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.banlist-premium tbody tr {
  transition: transform var(--bl-trs), filter var(--bl-trs);
}

.banlist-premium tbody tr:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.banlist-premium tbody td {
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.045);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  vertical-align: middle;
  color: var(--bl-text);
}

.banlist-premium tbody td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px 0 0 16px;
}

.banlist-premium tbody td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 16px 16px 0;
}

/* Type badges */
.banlist-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.banlist-type-box {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.banlist-type-box svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banlist-type--mute .banlist-type-box { color: #60a5fa; background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.2); }
.banlist-type--kick .banlist-type-box { color: #f59e0b; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.2); }
.banlist-type--ban .banlist-type-box { color: #fb7185; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.2); }
.banlist-type--warn .banlist-type-box { color: #c084fc; background: rgba(192, 132, 252, 0.13); border-color: rgba(192, 132, 252, 0.2); }

/* Player */
.banlist-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banlist-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #f7f3ff;
  flex: none;
  overflow: hidden;
}

.banlist-avatar--sm {
  border-radius: 10px;
}

.banlist-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.banlist-player--compact {
  gap: 10px;
}

.banlist-player--compact .banlist-player-name {
  margin: 0;
}

.banlist-issuer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.banlist-player-name {
  font-weight: 700;
  margin-bottom: 2px;
}

.banlist-player-role {
  font-size: 12px;
  color: var(--bl-muted);
}

/* Status badges */
.banlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.banlist-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.banlist-badge.b-active { color: #7ef0b1; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.18); }
.banlist-badge.b-inactive { color: #d0d7e5; background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.18); }
.banlist-badge.b-expired { color: #ffc38d; background: rgba(251, 146, 60, 0.12); border-color: rgba(251, 146, 60, 0.18); }
.banlist-badge.b-removed { color: #ffafbf; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.18); }

.banlist-reason {
  max-width: 230px;
  word-break: break-word;
  color: #eee8ff;
}

/* Empty state */
.banlist-empty-cell {
  padding: 32px !important;
  text-align: center;
}

.banlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px 40px;
  color: var(--bl-muted);
}

.banlist-empty-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #dbc9ff;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.banlist-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--bl-text);
  margin-bottom: 8px;
}

.banlist-empty-desc {
  font-size: 14px;
}

/* Mobile list */
.banlist-mobile-list {
  display: none;
  padding: 14px;
  gap: 14px;
  flex-direction: column;
}

.banlist-mobile-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px;
  box-shadow: var(--bl-shadow);
}

.banlist-mobile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.banlist-mobile-type {
  margin-bottom: 14px;
}

.banlist-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.banlist-kv {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.banlist-kv .banlist-k {
  font-size: 11px;
  color: var(--bl-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.banlist-kv .banlist-v {
  font-size: 14px;
  line-height: 1.45;
  color: #f2eeff;
  word-break: break-word;
}

/* Pagination */
.banlist-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--bl-text);
}

.banlist-pagination a,
.banlist-pagination span {
  color: var(--bl-text) !important;
}

.banlist-page-info {
  color: var(--bl-muted);
  font-size: 14px;
}

.banlist-page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banlist-btn-pagination {
  text-decoration: none;
  color: var(--bl-text) !important;
}

.banlist-btn-pagination[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.banlist-page-num {
  min-width: 110px;
  text-align: center;
  color: var(--bl-muted);
  font-weight: 700;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1180px) {
  .banlist-controls {
    grid-template-columns: 1fr 1fr;
  }

  .banlist-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .banlist-desktop-table {
    display: none;
  }

  .banlist-mobile-list {
    display: flex;
  }

  .banlist-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .banlist-wrap {
    width: min(1380px, calc(100% - 16px));
  }

  .banlist-hero,
  .banlist-panel {
    padding: 16px;
  }

  .banlist-stats {
    grid-template-columns: 1fr;
  }

  .banlist-mobile-grid {
    grid-template-columns: 1fr;
  }

  .banlist-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .banlist-page-controls {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banlist-premium *,
  .banlist-premium *::before,
  .banlist-premium *::after {
    transition: none !important;
  }
}
