:root {
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --primary-100: #e8f0ff;
    --surface: #f7f9fc;
    --border: rgba(15,23,42,.08);
    --text: #0f172a;
    --muted: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(2,6,23,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.subtitle {
    color: var(--muted);
    margin-top: 4px;
}

.header-stats {
    display: flex;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-600);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.tab {
    padding: 12px 24px;
    border: none;
    background: var(--surface);
    color: var(--muted);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab.active {
    background: var(--primary);
    color: white;
}

/* Filters */
.filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 200px;
}

.pill-filters {
    display: flex;
    gap: 8px;
}

.pill {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--muted);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pill.active {
    background: var(--primary-100);
    color: var(--primary);
    border-color: var(--primary);
}

/* Table */
.table-container {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    background: white;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.2s;
}

.table th:hover {
    background: var(--surface);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.badge-online {
    background: var(--success);
    color: white;
    animation: pulse 2s infinite;
}

.badge-offline {
    background: #fef2f2;
    color: var(--danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn:hover {
    background: var(--surface);
}

/* Error */
.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
}