/* Field Directory / community server browser */
.sb-chrome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}
.page-servers .ps-tabs { margin: 0; }
.page-servers .sb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.page-servers .sb-toolbar .server-region-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.page-servers .sb-sep {
  display: none;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .page-servers .sb-sep { display: block; }
  .page-servers .sb-search { flex: 1 1 160px; max-width: 280px; margin-left: auto; }
}

.sb-hero {
  display: grid;
  gap: 14px;
  margin: 4px 0 14px;
}
@media (min-width: 960px) {
  .sb-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.sb-kicker {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8a33c;
}
.sb-hero h1 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}
.sb-hero-lead {
  margin: 0;
  max-width: 40rem;
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.45;
}
.sb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 14px;
}
.sb-hero-link {
  color: #e8a33c;
  font-size: 0.88rem;
  text-decoration: none;
}
.sb-hero-link:hover { text-decoration: underline; }
.sb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: min(320px, 100%);
}
.sb-stat {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  text-align: right;
}
.sb-stat span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}
.sb-stat strong {
  display: block;
  margin-top: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f3f4f6;
  font-variant-numeric: tabular-nums;
}
.sb-stat strong.is-live { color: #86efac; }

.sb-sponsored {
  margin: 0 0 18px;
}
.sb-sponsored-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
}
.sb-sponsored-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 900px) {
  .sb-sponsored-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sb-sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 14px;
  border: 1px solid rgba(232, 163, 60, 0.45);
  background:
    linear-gradient(160deg, rgba(232, 163, 60, 0.12), transparent 55%),
    rgba(18, 18, 24, 0.95);
  overflow: hidden;
}
.sb-sp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sb-banner) center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.sb-sp-card > * { position: relative; z-index: 1; }
.sb-sp-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border: 1px solid rgba(232, 163, 60, 0.55);
  color: #e8a33c;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sb-sp-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sb-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1a22;
  flex-shrink: 0;
}
.sb-logo--empty {
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: #e8a33c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sb-sp-name {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sb-sp-desc {
  margin: 4px 0 0;
  color: #a1a1aa;
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-sp-actions { margin-top: auto; }

.sb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}
.sb-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(15, 15, 18, 0.72);
}
.sb-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f3f4f6;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}
.sb-search svg { opacity: 0.65; flex-shrink: 0; }

.sb-community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.sb-community-grid .server-block--add {
  min-height: 100%;
}
.sb-community-grid .server-card--add {
  height: 100%;
  min-height: 160px;
  border-radius: 3px;
}
@media (min-width: 900px) {
  .sb-community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .sb-community-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Unify servers page controls (tabs / filters / search / CTAs) */
.page-servers .ps-tab,
.page-advertise .ps-tab {
  border-radius: 3px;
}
.page-servers .server-region-filters button,
.page-advertise .server-region-filters button {
  border-radius: 3px;
  border-color: rgba(255, 255, 255, 0.14);
  color: #d4d4d8;
}
.page-servers .server-region-filters button.is-active,
.page-advertise .server-region-filters button.is-active {
  border-color: rgba(232, 163, 60, 0.65);
  color: #e8a33c;
  background: rgba(232, 163, 60, 0.12);
}
.page-servers .sb-server-join,
.page-servers .sb-hero-actions .btn {
  border-radius: 3px;
}

.sb-comm {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(16, 16, 20, 0.95);
  overflow: hidden;
}
.sb-comm-bg-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
  pointer-events: none;
}
.sb-comm.has-bg .sb-comm-bg-img { display: block; }
.sb-comm.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Scrim + warm tint so banner art stays visible but not overpowering */
  background:
    linear-gradient(180deg, rgba(12, 12, 16, 0.72), rgba(12, 12, 16, 0.9)),
    linear-gradient(115deg, rgba(232, 163, 60, 0.22), transparent 58%);
}
.sb-comm.has-bg > :not(.sb-comm-bg-img) {
  position: relative;
  z-index: 2;
}
.sb-comm.is-sponsored {
  border-color: rgba(232, 163, 60, 0.45);
  box-shadow: inset 0 0 0 1px rgba(232, 163, 60, 0.12);
}
.sb-comm-banner {
  display: none;
  position: relative;
  height: 88px;
  overflow: hidden;
  background: #0c0c10;
}
.sb-comm-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-comm-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.15), rgba(16, 16, 20, 0.92));
  pointer-events: none;
}
.sb-comm.has-banner .sb-comm-banner { display: block; }
.sb-comm.has-banner .sb-comm-head { margin-top: -28px; }
.sb-comm-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 14px 8px;
}
.sb-comm-identity {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.sb-comm-identity .sb-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0c10;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.sb-logo--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8a33c;
}
.sb-comm-name {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.sb-comm-meta {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sb-comm-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.sb-comm-discord {
  white-space: nowrap;
}
.sb-comm-desc {
  position: relative;
  margin: 0;
  padding: 0 14px 8px;
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 62ch;
}
.sb-comm-players {
  flex-shrink: 0;
  text-align: right;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f3f4f6;
  line-height: 1;
}
.sb-comm-players span {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9ca3af;
}
.sb-comm-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 8px;
}
.sb-tag {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #c4c4cc;
  font-size: 0.72rem;
}
.sb-comm-servers-label {
  position: relative;
  padding: 6px 14px 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #71717a;
}
.sb-server-list {
  position: relative;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sb-server-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sb-server-row.is-off {
  opacity: 0.72;
}
.sb-server-ping-slot { width: 48px; }
.sb-server-row .server-ping {
  font-size: 0.75rem;
  white-space: nowrap;
}
.sb-server-row .server-ping-dot { display: none; }
.sb-server-row:last-child { border-bottom: 0; }
.sb-server-row:hover { background: rgba(255, 255, 255, 0.03); }
.sb-server-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: #f3f4f6;
}
.sb-server-sub {
  margin-top: 1px;
  color: #9ca3af;
  font-size: 0.72rem;
}
.sb-server-fill {
  min-width: 56px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: #e5e7eb;
}
.sb-server-res {
  display: block;
  margin-top: 1px;
  font-size: 0.65rem;
  color: #a1a1aa;
  letter-spacing: 0.02em;
}
.sb-fill-bar {
  margin-top: 3px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sb-fill-bar i {
  display: block;
  height: 100%;
  background: #e8a33c;
}
.sb-server-join {
  white-space: nowrap;
  padding: 0 10px;
  height: 28px;
  font-size: 0.72rem;
}
.sb-comm-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}
.sb-comm-yours {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8a33c;
}
.sb-empty {
  padding: 28px 16px;
  text-align: center;
  color: #9ca3af;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.sb-live-section {
  margin-top: 28px;
}
.sb-live-section h2 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
