.season-selector {
    margin: 20px 0;
    text-align: center;
}

.standing-table-header {
    margin-bottom: 8px;
    text-align: center;
    color: #ffffff;
}

.referee-page-note {
    max-width: 1100px;
    margin: 0 auto 18px;
    padding: 0 12px;
    color: #9eb0ca;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.stat-category {
    max-width: 1100px;
    margin: 22px auto 10px;
    padding: 0 4px;
    justify-content: center;
    text-align: center;
    color: #f3f6ff;
    font-size: 26px;
    line-height: 1.2;
}

.ref-table-wrap {
    width: min(1100px, calc(100vw - 24px));
    max-width: 1100px;
    margin: 0 auto 18px;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(124, 158, 215, 0.18);
    background: linear-gradient(180deg, rgba(19,32,58,0.96), rgba(10,17,31,0.98));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

.ref-table-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

table.stat-time {
    width: 100%;
    min-width: 700px;
    margin: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    color: #edf2fb;
}

table.stat-time tr:first-child {
    background: transparent;
    color: inherit;
}

table.stat-time th,
table.stat-time td {
    border: 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

table.stat-time th {
    background: linear-gradient(180deg, rgba(22, 33, 58, 0.96), rgba(16, 26, 46, 0.96));
    color: #9db3d7;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    line-height: 1.2;
    min-width: 0;
    max-width: 84px;
}

table.stat-time td {
    background: rgba(15, 25, 44, 0.92);
    color: #edf2fb;
    border-top: 1px solid rgba(255,255,255,0.06);
}

table.stat-time th + th,
table.stat-time td + td {
    border-left: 1px solid rgba(255,255,255,0.08);
}

table.stat-time th:first-child,
table.stat-time td:first-child {
    position: sticky;
    left: 0;
    width: 138px;
    min-width: 138px;
    max-width: 138px;
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 10px 0 14px -14px rgba(0, 0, 0, 0.9);
}

table.stat-time th:first-child {
    z-index: 4;
    background: linear-gradient(180deg, #16213a, #101a2e);
    max-width: 138px;
}

table.stat-time td:first-child {
    z-index: 2;
    background: #122034;
}

table.stat-time tbody tr:hover td,
table.stat-time tr:hover td {
    background: rgba(18, 32, 52, 0.98);
}

table.stat-time tbody tr:hover td:first-child,
table.stat-time tr:hover td:first-child {
    background: #122034;
}

table.stat-time td:first-child,
table.stat-time th:first-child {
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

table.stat-time td:first-child {
    font-weight: 700;
}

table.stat-time .col-total-games {
    width: 66px;
    min-width: 66px;
    max-width: 66px;
}

table.stat-time .col-btts,
table.stat-time .col-gd-0-1,
table.stat-time .col-gd-2-3 {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
}

table.stat-time .col-avg-goals,
table.stat-time .col-under-2-5,
table.stat-time .col-over-2-5,
table.stat-time .col-home-win,
table.stat-time .col-away-win,
table.stat-time .col-draw,
table.stat-time .col-over-1-5-ht {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
}

.stat-time .ref-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.stat-time .ref-link:hover {
    color: #ffe2a0 !important;
    text-decoration: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.season-selector select {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.season-selector button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #587e6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.season-selector button:hover {
    background-color: #45a049;
}

.current-season {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: beige;
}

.no-data-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.no-data-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-data-icon {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 20px;
}

.no-data-message h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.no-data-message p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.redirect-options {
    margin-top: 30px;
}

.redirect-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.redirect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.redirect-btn.primary {
    background-color: #4CAF50;
    color: white;
}

.redirect-btn.primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.redirect-btn.secondary {
    background-color: #2196F3;
    color: white;
}

.redirect-btn.secondary:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .referee-page-note {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .stat-category {
        font-size: 22px;
        margin-top: 20px;
    }

    table.stat-time {
        min-width: 620px;
    }

    table.stat-time th,
    table.stat-time td {
        padding: 9px 10px;
        font-size: 13px;
    }

    table.stat-time th {
        max-width: 76px;
    }

    table.stat-time th:first-child,
    table.stat-time td:first-child {
        width: 118px;
        min-width: 118px;
        max-width: 118px;
    }

    table.stat-time th:first-child {
        max-width: 118px;
    }

    table.stat-time .col-total-games {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
    }

    table.stat-time .col-btts,
    table.stat-time .col-gd-0-1,
    table.stat-time .col-gd-2-3 {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }

    table.stat-time .col-avg-goals,
    table.stat-time .col-under-2-5,
    table.stat-time .col-over-2-5,
    table.stat-time .col-home-win,
    table.stat-time .col-away-win,
    table.stat-time .col-draw,
    table.stat-time .col-over-1-5-ht {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }

    .redirect-buttons {
        flex-direction: column;
        align-items: center;
    }

    .redirect-btn {
        width: 100%;
        max-width: 280px;
    }
}
