/* tables.css - Стили таблиц */

/* table th,
table td {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table {
    table-layout: fixed;
    width: 100%;
}



.pair-cell {
    max-width: 200px;
    overflow: hidden;
}

.pair-cell .pair-container {
    max-width: 200px;
    overflow: hidden;
}
 */




.games-table {
    /*width: 100%;*/
    border-collapse: collapse;
    margin-top: 15px;

    width: 100%;
    /* max-width: 100px; */
    border-collapse: collapse;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.games-table th,
.games-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px; /* или любой другой размер */
}




.games-table th {
    cursor: pointer;
    color: #a5b4fc;
    user-select: none;
}

.games-table th:hover {
    background: rgba(255, 255, 255, 0.05);
}

.games-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.games-table a {
    color: #93c5fd;
    text-decoration: none;
}

.games-table a:hover {
    text-decoration: underline;
}

/* Ссылки на YouTube в таблицах */
.youtube-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.youtube-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Другие внешние ссылки */
.external-link {
    color: #93c5fd;
    text-decoration: none;
}

.external-link:hover {
    text-decoration: underline;
}






.game-info-table {
    /* width: 100%; */
    table-layout: fixed;
    width: 120%;
    max-width: 120px;
    border-collapse: collapse;
    margin-top: 20px;

    /* overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
}

.game-info-table th,
.game-info-table td {
    font-size: 12px;
    width: 120px;
    max-width: 120px;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-info-table th {
    color: #a5b4fc;
    font-weight: 600;
}

.game-info-table a {
    color: #93c5fd;
    text-decoration: none;
}

.game-info-table a:hover {
    text-decoration: underline;
}






/* Таблица «Доска лидеров» — уменьшенный шрифт */
.leaderboard-table {
    border-collapse: collapse;
    margin-top: 15px;

    table-layout: auto;
    white-space: normal;
    max-width: 100px;
    border-collapse: collapse;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-table th,
.leaderboard-table td {
    font-size: 12px;
    overflow: visible;
    text-overflow: unset;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px; /* или любой другой размер */
}

.leaderboard-table th {
    cursor: pointer;
    color: #a5b4fc;
    user-select: none;
}

.leaderboard-table th:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.leaderboard-table a {
    color: #93c5fd;
    text-decoration: none;
}

.leaderboard-table a:hover {
    text-decoration: underline;
}



/* Таблица «Результаты матчей» — уменьшенный шрифт */
.match-results-table th,
.match-results-table td {
    font-size: 11px;
}

/* Таблица пар — специфичный размер шрифта */
#pairLeaderboardTable th,
#pairLeaderboardTable td {
    font-size: 12px; /* или любой другой размер */
}


.red    { background-color: rgba(255, 102, 102, 0.3); }
.yellow { background-color: rgba(255, 255, 102, 0.3); }
.white  { background-color: rgba(255, 255, 255, 0.1); }
.black  { background-color: rgba(128, 128, 128, 0.3); }
