/* Подключайте в <head> вашего HTML */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    background: #f4f6fa;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    color: #28426b;
    font-size: 13px; /* уменьшенный размер шрифта */
}

.container {
    max-width: 1500px;
    padding: 32px 24px;
    margin: 32px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px 0 rgb(40 66 107 / 9%);
}

.page-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #28426b;
}

/* Все остальные ваши стили без изменений */
.search-form {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.search-form input[type="text"] {
    padding: 8px 12px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    width: 240px;
    font-size: 1rem;
    background: #f7fbff;
    transition: border-color 0.3s;
}
.search-form input[type="text"]:focus {
    border-color: #3697fd;
    outline: none;
    box-shadow: 0 0 6px rgba(54,151,253,0.5);
}
.search-form button {
    padding: 8px 24px;
    border-radius: 12px;
    background: #28426b;
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.25s ease;
    height: 40px;
}
.search-form button:hover {
    background: #2469b7;
}

.table-wrapper {
    margin-top: 32px;
    background: #f7fbff;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 rgb(49,53,93,0.07);
    overflow-x: auto;
}
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.8rem;
}
colgroup col:nth-child(1) { min-width: 40px; }
colgroup col:nth-child(2) { min-width: 150px; }
colgroup col:nth-child(3) { min-width: 170px; }
colgroup col:nth-child(4) { min-width: 100px; }
colgroup col:nth-child(5) { min-width: 115px; }
colgroup col:nth-child(6) { min-width: 120px; }
colgroup col:nth-child(7) { min-width: 105px; }
colgroup col:nth-child(8) { min-width: 85px; }
colgroup col:nth-child(9) { min-width: 100px; }
colgroup col:nth-child(10) { min-width: 110px; }
colgroup col:nth-child(11) { min-width: 95px; }
colgroup col:nth-child(12) { min-width: 90px; }
th, td {
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #e2e6ea;
    vertical-align: middle;
}

/* Для даты с переносом строки */
td.date-cell {
    white-space: normal;
    line-height: 1.25;
    word-wrap: break-word;
}

/* Уберите стрелки сортировки, оставьте только подчеркивание */
th a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
}
th a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    border-bottom: 1.5px solid currentColor;
    transition: width 0.3s ease;
}
th a:hover::after {
    width: 100%;
}

/* Ссылки как обычный текст, только с подчеркиванием при наведении */
a.player-link,
a.clan-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}
a.player-link::after,
a.clan-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    border-bottom: 1.5px solid currentColor;
    transition: width 0.3s ease;
}
a.player-link:hover::after,
a.clan-link:hover::after {
    width: 100%;
}
a.player-link:hover,
a.clan-link:hover,
a.player-link:visited,
a.clan-link:visited {
    color: inherit;
    text-decoration: none;
}

tr:hover td {
    background-color: #d5e4fb;
}

.pagination {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}
.pagination a {
    margin: 0 6px;
    padding: 8px 16px;
    background-color: #f3f8ff;
    border: 1.5px solid #bcd1f1;
    border-radius: 9px;
    color: #4285f4;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    font-size: 13px;
}
.pagination a:hover {
    background-color: #2469b7;
    color: white;
    border-color: #2469b7;
}
.pagination a.active {
    background-color: #28426b;
    border-color: #28426b;
    color: white;
    pointer-events: none;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }
    .search-form {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .search-form input[type="text"] {
        width: 100%;
        max-width: 400px;
    }
    .table-wrapper {
        overflow-x: auto;
    }
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }
    thead tr {
        display: none;
    }
    tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 15px 10px;
        box-shadow: 0 3px 7px rgba(0,0,0,0.05);
    }
    td {
        padding-left: 50%;
        text-align: right;
        position: relative;
        white-space: normal;
        overflow: visible;
        max-width: none;
        text-overflow: clip;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }
    .pagination a {
        padding: 10px 18px;
        font-size: 1rem;
        margin: 0 5px 10px 5px;
        display: inline-block;
    }
}

/* Заголовок */
.page-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #28426b;
}

