.disabled-card {
    opacity: 0.6;
    border: 1px dashed var(--border-color);
    background-color: rgba(0,0,0,0.05);
}

.feature-card .status {
    margin: 0px;
}

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ ОЦЕНКИ СУДЕЙ --- */

.referees-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.referee-rate-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    gap: 12px;
}

.referee-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.rate-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.referee-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* --- СИСТЕМА ЗВЕЗДНОГО РЕЙТИНГА (CSS-only) --- */

.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Позволяет корректно подсвечивать звезды при наведении слева направо */
    justify-content: center;
    gap: 5px;
}

.star-rating input {
    display: none; /* Скрываем стандартные радиокнопки */
}

.star-rating label {
    font-size: 30px;
    color: var(--border-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Подсветка звезд при наведении и выборе */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b; /* Красивый золотой / янтарный цвет */
}

/* Адаптивность для мобильных устройств */
@media (min-width: 600px) {
    .referee-rate-box {
        flex-direction: row;
        justify-content: space-between;
    }
    .referee-info {
        width: auto;
    }
}

/* Контейнер сетки матчей */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- СТИЛИ СТРАНИЦЫ МАТЧЕЙ --- */

h1 {
    font-size: 26px;
    margin-bottom: 24px;
    color: var(--nav-text);
}


.feature-card {
    background-color: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* --- СТИЛИ ЗАГОЛОВКА КАРТОЧКИ --- */

.feature-card h3 {
    margin-top: 0;
    color: var(--nav-text);
    font-size: 17px; /* Немного уменьшили для баланса */
    line-height: 1.3;

    /* Стили для обрезки длинных названий */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name {
    word-break: break-word; /* Позволяет переносить длинные слова целиком */
}
.vs {
    font-size: 0.8em;
    opacity: 0.6;
    padding: 0 4px;
}
.disabled-card {
    opacity: 0.75;
}

/* Секция судей в матче */
.match-referees {
    margin: 15px 0;
    flex-grow: 1;
}

.referees-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.referees-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referee-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.referee-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.referee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referee-name {
    font-size: 14px;
    color: var(--text-color);
}

.no-referees {
    font-size: 13px;
    opacity: 0.7;
    font-style: italic;
    color: var(--text-color);
}

.match-status {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

/* --- КРАСИВАЯ ПАГИНАЦИЯ --- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-current,
.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pagination-link {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    border: 1px solid var(--border-color);
}

.pagination-link:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.pagination-current {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
}

.pagination-dots {
    color: var(--text-color);
    opacity: 0.6;
    border: none;
    background: none;
    cursor: default;
}

/* Стили для мобилок */
@media (max-width: 768px) {
    /* На мобильных сетка всегда в одну колонку */
    .matches-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 22px;
    }

    /* Уменьшаем отступы в карточке для экономии места на узком экране */
    .feature-card {
        padding: 15px;
    }

    /* Уменьшаем размер шрифта заголовка матча */
    .feature-card h3 {
        font-size: 15px;
    }
}

/* Дополнительно для маленьких экранов */
@media (max-width: 480px) {
    .pagination-link,
    .pagination-current {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}