/* Players page — table list + detail modal */
.players-filters {
    margin-bottom: 16px;
}

.players-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.players-filters-grid label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 12px;
    color: #64748b;
}

.players-filters-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.players-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: #fff;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.players-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    white-space: nowrap;
}

.players-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    vertical-align: middle;
}

.players-table tbody tr.players-row-clickable {
    cursor: pointer;
}

.players-table tbody tr.players-row-clickable:hover {
    background: rgba(59, 130, 246, 0.06);
}

.players-name-cell {
    font-weight: 600;
    color: #0f172a;
}

.players-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.players-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.players-badge--active { background: #dcfce7; color: #166534; }
.players-badge--blocked { background: #fee2e2; color: #991b1b; }
.players-badge--suspended { background: #fef3c7; color: #92400e; }
.players-badge--yes { background: #dbeafe; color: #1e40af; }
.players-badge--no { background: #f1f5f9; color: #64748b; }
.players-badge--warn { background: #ffedd5; color: #c2410c; }

.players-pagination {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

/* Player detail modal */
.player-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.player-detail-stat {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.35);
}

.player-detail-stat__label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.player-detail-stat__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 4px;
}

.player-detail-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-bottom: 8px;
}

.player-detail-tab {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.player-detail-tab.active {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.player-detail-tab-pane {
    display: none;
}

.player-detail-tab-pane.active {
    display: block;
}

.player-detail-table-wrap {
    overflow-x: auto;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
}

.player-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.player-detail-table th,
.player-detail-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

.player-detail-table th {
    position: sticky;
    top: 0;
    background: #0f172a;
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
}

.player-detail-kv {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.player-detail-kv th {
    text-align: left;
    padding: 6px 12px 6px 0;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: top;
    width: 160px;
}

.player-detail-kv td {
    padding: 6px 0;
    color: #e2e8f0;
    word-break: break-word;
}

.player-detail-empty {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.risk-row-clickable {
    cursor: pointer;
}

.risk-row-clickable:hover {
    background: rgba(59, 130, 246, 0.06) !important;
}

#risk-detail-body .player-detail-kv th {
    color: #94a3b8;
}

#risk-detail-body .player-detail-kv td {
    color: #e2e8f0;
}
