.sb-lead {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.sb-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.sb-stat {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border-color, #2a475e);
    border-radius: 3px;
    padding: 12px 10px;
    text-align: center;
}

.sb-stat-value {
    display: block;
    color: var(--text-light, #fff);
    font-size: 18px;
    font-weight: 700;
}

.sb-stat-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 3px;
    width: fit-content;
    max-width: 100%;
}

.sb-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    border-radius: 2px;
}

.sb-tabs a:hover,
.sb-tabs a.is-active {
    background: linear-gradient(180deg, #417a9b 0%, #2f5f7f 100%);
    color: #fff;
    text-decoration: none;
}

.sb-toolbar {
    align-items: center;
}

.sb-chipbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px;
}

.sb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sb-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--border-color, #2a475e);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text, #c7d5e0);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sb-chip:hover,
.sb-chip.is-active {
    color: #fff;
    text-decoration: none;
    border-color: var(--accent, #66c0f4);
}

.sb-chip.is-active {
    background: linear-gradient(180deg, #417a9b 0%, #2f5f7f 100%);
}

.sb-table td,
.sb-table th {
    white-space: nowrap;
}

.sb-table .sb-reason {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-row {
    cursor: pointer;
}

.sb-row:focus {
    outline: 1px solid var(--accent, #66c0f4);
    outline-offset: -1px;
}

.sb-row.is-open td,
.sb-row.is-open:hover td {
    background: rgba(102, 192, 244, 0.12);
}

.sb-row--permanent td {
    box-shadow: inset 3px 0 0 #c0392b;
}

.sb-row--active td {
    box-shadow: inset 3px 0 0 #e67e22;
}

.sb-row--expired td,
.sb-row--unbanned td,
.sb-row--deleted td {
    box-shadow: inset 3px 0 0 #27ae60;
    opacity: 0.88;
}

.sb-player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sb-avatar {
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: hsl(var(--sb-hue, 200), 42%, 32%);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.sb-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-detail-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.sb-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.sb-pill--permanent { background: #c0392b; }
.sb-pill--active { background: #d35400; }
.sb-pill--expired { background: #7f8c8d; }
.sb-pill--unbanned,
.sb-pill--deleted { background: #27ae60; }

.sb-detail td {
    background: rgba(0, 0, 0, 0.28) !important;
    white-space: normal;
    padding: 16px 18px !important;
    cursor: default;
}

.sb-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
}

.sb-detail-grid dt {
    display: block;
    color: var(--accent, #66c0f4);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.sb-detail-grid dd {
    margin: 0;
    color: var(--text-light, #fff);
    word-break: break-word;
}

.sb-detail-reason {
    grid-column: 1 / -1;
}

.sb-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.sb-pager a,
.sb-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border-color, #2a475e);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text, #c7d5e0);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    border-radius: 3px;
}

.sb-pager a:hover {
    color: var(--accent, #66c0f4);
    text-decoration: none;
}

.sb-pager a.is-active {
    color: #fff;
    border-color: var(--accent, #66c0f4);
    background: rgba(102, 192, 244, 0.16);
}

.sb-table code {
    font-size: 11px;
}

@media (max-width: 1100px) {
    .sb-col-date {
        display: none;
    }
    .sb-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sb-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sb-col-admin,
    .sb-table thead th:nth-child(1),
    .sb-table tbody td:nth-child(1) {
        display: none;
    }
    .sb-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sb-detail-grid {
        grid-template-columns: 1fr;
    }
    .sb-tabs {
        width: 100%;
    }
}
