/* Профиль игрока — доп. стили для sidebar */
.player-profile__info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.player-profile__club {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.player-profile__club-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.player-profile__club-name {
    font-size: 0.9rem;
    color: #888;
}

.player-profile__name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.player-profile__judge {
    font-size: 0.85rem;
    color: var(--clm-red, #c62828);
    font-weight: 500;
}

/* Вкладки — используют стандартные .sidebar-menu-item из clm.css */
/* data-wrapper и data-wrapper.hidden — стили из clm.css и club-view.css */

/* Достижения — сетка кубков */
.achievements-section {
    margin-bottom: 2rem;
}

.achievements-section__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trophy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.trophy-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trophy-card__img {
    width: 80px;
    height: 93px;
    margin-bottom: 0.75rem;
}

.trophy-card__name {
    font-size: 0.85rem;
    color: var(--clm-red, #c62828);
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.trophy-card__place {
    font-size: 0.8rem;
    color: #888;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* Турниры — список */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tournament-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    gap: 1rem;
}

.tournament-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tournament-row:last-child {
    border-bottom: none;
}

.tournament-row__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.tournament-row__name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-row__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.tournament-row__score {
    font-size: 0.9rem;
    font-weight: 600;
    color: #eee;
    white-space: nowrap;
}

.tournament-row__place {
    font-size: 0.9rem;
    color: #aaa;
    white-space: nowrap;
}

.tournament-row__trophy {
    width: 28px;
    height: 33px;
}

.tournament-row__badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.tournament-row__badge--pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.tournament-row__badge--participant {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

/* Статистика */
.stats-filter {
    margin-bottom: 1.5rem;
}

.stats-filter select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #eee;
    font-size: 0.9rem;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row--full {
    grid-column: 1 / -1;
}

.stat-row__label {
    color: #aaa;
    font-size: 0.9rem;
}

.stat-row__value {
    font-weight: 600;
    font-size: 1rem;
}

.stat-row__games {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
}

.stats-section-title {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1rem 0.5rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Загрузка — overlay поверх контента */
#stats-content {
    position: relative;
}

#stats-content.stats-content--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    z-index: 10;
}

#stats-content.stats-content--loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--clm-red, #c62828);
    border-radius: 50%;
    z-index: 11;
    animation: stats-spin 0.7s linear infinite;
}

@keyframes stats-spin {
    to { transform: rotate(360deg); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .trophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tournament-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tournament-row__right {
        align-self: flex-end;
    }
}
