body {
    font-family: Arial, Helvetica, sans-serif;
    color: #e2e8f0;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(22, 27, 34, 0.82);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid #30363d;
}

h1 {
    text-align: center;
    color: #58a6ff;
    margin-bottom: 16px;
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(88,166,255,0.4);
}

.gradient-legend {
    margin: 0 auto 24px;
    max-width: 500px;
    text-align: center;
}

.gradient-bar {
    height: 30px;
    background: linear-gradient(to right, #ff4d4d, #f0b429, #3fb950, #58a6ff);
    border-radius: 0;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.gradient-labels {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0 6px;
}

.gradient-labels span:first-child { color: #ff4d4d; }
.gradient-labels span:last-child  { color: #58a6ff; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #161b22;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #0d1117;
    color: #8b949e;
    padding: 16px 10px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

th:hover {
    background: #1a2533;
}

th.sorted-asc::after,
th.sorted-desc::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
}

th.sorted-asc::after {
    border-bottom-color: #58a6ff;
}

th.sorted-desc::after {
    border-top-color: #58a6ff;
}

td {
    padding: 16px 10px;
    text-align: center;
    border-top: 1px solid #30363d;
    color: #c9d1d9;
}

/* Белый цвет для колонок без градиента */
td:nth-child(7),  /* Помощь       */
td:nth-child(8),  /* Убийства     */
td:nth-child(9),  /* Смерти       */
td:nth-child(10), /* Хедшоты      */
td:nth-child(11)  /* Время в игре */
{
    color: #ffffff;
}

tr:hover {
    background: #1f2937;
}

.position {
    font-weight: bold;
    font-size: 1.3rem;
}

.place-1 .position { color: #ffd700; text-shadow: 0 0 12px #ffd700; font-size: 1.5rem; }
.place-2 .position { color: #c0c0c0; text-shadow: 0 0 8px #c0c0c0; }
.place-3 .position { color: #cd7f32; text-shadow: 0 0 6px #cd7f32; }
.place-4 .position, .place-5 .position { color: #a0d0ff; }

.nick {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
}

.nick:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.prize {
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
    font-size: 1.1rem;
}

.empty {
    text-align: center;
    padding: 80px;
    color: #8b949e;
    font-size: 1.4rem;
}