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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a202c;
    color: #e2e8f0;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

h1 { 
    font-weight: 600;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 30px 0;
    color: #e2e8f0;
    letter-spacing: -0.5px;
}

.add-score-btn {
    background: #2d3748;
    color: #e2e8f0;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    display: block;
    width: fit-content;
    margin: 0 auto 30px auto;
    transition: all 0.2s ease;
    border: 1px solid #4a5568;
}

.add-score-btn:hover { 
    background: #374151;
    border-color: #718096;
}

.controls { 
    margin-bottom: 30px;
    background: #2d3748;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #4a5568;
}

.controls label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e0;
    margin-bottom: 8px;
}

select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: #1a202c;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

select:hover {
    border-color: #718096;
    background: #2d3748;
}

select:focus {
    outline: none;
    border-color: #718096;
    background: #2d3748;
}

select option {
    background: #2d3748;
    color: #e2e8f0;
}

.table-container { 
    width: 100%;
    overflow-x: auto;
    background: #2d3748;
    border-radius: 12px;
    border: 1px solid #4a5568;
}

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

th, td { 
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}

th { 
    background: #374151;
    color: #cbd5e0;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #4a5568;
    cursor: pointer;
}

th:hover {
    background: #4a5568;
}

tbody tr {
    transition: all 0.15s ease;
    border-bottom: 1px solid #4a5568;
}

tbody tr:hover { 
    background: #374151;
}

tbody tr:nth-child(1) { 
    background: rgba(255,215,0,0.05);
    border-left: 3px solid #ffd700;
}

tbody tr:nth-child(2) { 
    background: rgba(192,192,192,0.05);
    border-left: 3px solid #c0c0c0;
}

tbody tr:nth-child(3) { 
    background: rgba(205,127,50,0.05);
    border-left: 3px solid #cd7f32;
}

tbody tr:nth-child(1) td:first-child::before { 
    content: '1. '; 
    color: #ffd700; 
    font-weight: 600; 
}

tbody tr:nth-child(2) td:first-child::before { 
    content: '2. '; 
    color: #c0c0c0; 
    font-weight: 600; 
}

tbody tr:nth-child(3) td:first-child::before { 
    content: '3. '; 
    color: #cd7f32; 
    font-weight: 600; 
}

td {
    color: #e2e8f0;
}

td:nth-child(4) {
    color: #90cdf4;
    font-weight: 600;
    font-size: 1rem;
}

#loading { 
    text-align: center;
    color: #cbd5e0;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 40px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #2d3748; }
::-webkit-scrollbar-thumb { 
    background: #4a5568;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: #718096; }

@media (max-width: 768px) {
    body { padding: 10px; }
    h1 { font-size: 1.5rem; }
    .controls { padding: 16px; }
    th, td { padding: 10px 8px; font-size: 0.825rem; }
}
