/* style.css */

/* Общие стили */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #121212;
    /* Темный фон */
    color: #e0e0e0;
    /* Светлый текст */
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Навигация */
.navbar {
    background-color: #1b1b1b;
    position: relative;
    /* Чтобы позиционировать выпадающее меню */
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 0;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.main-logo {
    height: 35px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    /* Зеленый акцент */
    margin: 0;
}

.logo-suffix {
    color: #e0e0e0;
}

.mobile-menu-btn {
    display: none;
    /* Скрыто на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    height: 3px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 2px;
}

/* Анимация гамбургера */
.mobile-menu-btn .bar {
    transition: all 0.3s ease;
    /* Плавный переход для всех свойств */
}

.mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    /* Верхняя полоска поворачивается и смещается */
}

.mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
    /* Средняя полоска исчезает */
}

.mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    /* Нижняя полоска поворачивается и смещается */
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #66BB6A;
    /* Более светлый зеленый при наведении */
}

/* Основной контент (сетка) */
.main-grid {
    max-width: 1200px;
    margin: 1.5rem auto;
    display: grid;
    grid-template-columns: 1fr;
    /* По умолчанию одна колонка для мобильных */
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr 2fr 1fr;
        /* 3 колонки для десктопов */
    }
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
        /* Показываем кнопку на мобильных */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        /* Меню выпадает сразу под шапкой */
        left: 0;
        width: 100%;
        background-color: #1b1b1b;
        flex-direction: column;
        padding: 0;
        /* Убираем падинг в закрытом состоянии */
        max-height: 0;
        /* Скрываем для анимации */
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out, padding 0.2s ease-in-out;
        border-bottom: 1px solid #2a2a2a;
        z-index: 1000;
    }

    .nav-links.active {
        max-height: 300px;
        /* Увеличил запас высоты */
        opacity: 1;
        /* Показываем при наличии класса active */
        padding: 1rem 0;
        /* Возвращаем падинг при открытии */
    }

    .nav-links a {
        margin: 0.5rem 0 0.5rem 1rem;
        /* Вертикальные отступы для ссылок */
    }
}

/* Боковые колонки */
.sidebar-left,
.sidebar-right,
.main-content>div {
    background-color: #1b1b1b;
    padding: 1rem;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

/* Список матчей */
.match-item {
    background-color: #1b1b1b;
    padding: 0.75rem;
    border-left: 4px solid transparent;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.match-item:hover {
    background-color: #252525;
}

.match-item.live {
    border-left-color: #4CAF50;
    /* Зеленая полоска для LIVE матчей */
}

.match-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.live-status {
    color: #EF5350;
    /* Красный для LIVE */
    font-weight: bold;
}

.match-event {
    color: #888;
}

.match-teams {
    font-size: 0.9rem;
    font-weight: 500;
}

.team-score {
    display: flex;
    justify-content: space-between;
}

.team-score span:last-child {
    color: #888;
}

/* Центральный контент */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-news {
    position: relative;
    height: 250px;
    /* Фиксированная высота для изображения */
    overflow: hidden;
    border-radius: 4px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.5s ease;
}

.featured-news:hover .news-image {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.news-tag {
    background-color: #4CAF50;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    color: white;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.5rem;
    color: white;
}

.latest-results {
    padding: 1rem;
    background-color: #1b1b1b;
    border-radius: 4px;
}

.results-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.result-item:hover {
    background-color: #252525;
}

.result-time {
    color: #888;
    width: 3rem;
}

.result-team {
    flex: 1;
    text-align: right;
    font-weight: 500;
}

.result-score {
    background-color: #2a2a2a;
    color: #66BB6A;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    margin: 0 1rem;
    font-weight: bold;
}

/* Рейтинг команд */
.team-ranking {
    margin-bottom: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.ranking-item span:first-child {
    color: #888;
    width: 2rem;
}

.ranking-item span:last-child {
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.ranking-item span:last-child:hover {
    color: #66BB6A;
}

.full-ranking-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: transparent;
    border: 1px solid #444;
    color: #b0b0b0;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-radius: 4px;
}

.full-ranking-btn:hover {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #666;
}

/* Удаляем старые стили для турниров */
/*
.tournament-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.tournament-item:hover {
    background-color: #252525;
}

.tournament-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
*/

/* Новые стили для карточек турниров */
.tournaments-list {
    display: grid;
    gap: 1.5rem;
    /* Отступ между карточками */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Адаптивная сетка */
}

.tournament-card {
    background-color: #1b1b1b;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: cardEntrance 0.6s ease-out forwards;
}

.tournament-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #4CAF50;
    /* Зеленый акцент при наведении */
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.15);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tournament-logo {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    border: none;
    /* Зеленая рамка для логотипа */
}

.tournament-card-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
}

.tournament-description {
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
    flex-grow: 1;
    /* Чтобы описание занимало доступное пространство */
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Прижимает детали к низу карточки */
}

.prize-pool {
    font-size: 1rem;
    font-weight: bold;
    color: #d4d4d4;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    /* Позволяем кнопкам переноситься, если их много */
}

@media (max-width: 480px) {
    .card-actions {
        flex-direction: column;
        /* На совсем маленьких экранах кнопки в столбик */
    }
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: white;
}

.action-btn i {
    margin-right: 0.5rem;
    /* Отступ между иконкой и текстом */
}


.action-btn:active {
    transform: scale(0.98);
}

.discord-btn {
    background-color: #5865F2;
    /* Цвет Discord */
}

.discord-btn:hover {
    background-color: #4752C4;
}

.twitch-btn {
    background-color: #9146FF;
    /* Цвет Twitch */
}

.twitch-btn:hover {
    background-color: #7D38DB;
}

.youtube-btn {
    background-color: #FF0000;
    /* Цвет YouTube */
}

.youtube-btn:hover {
    background-color: #CC0000;
}

/* Корректировка существующих стилей для бейджей турниров */
.tourney-badge {
    font-size: 0.75rem;
    /* Чуть крупнее для карточек */
    padding: 4px 8px;
    /* Больше отступов */
    border-radius: 4px;
}

/* Стили для турниров */
.tournament-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.tournament-item:hover {
    background-color: #252525;
}

.tournament-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tourney-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 50px;
    text-align: center;
}

.tourney-badge.ended {
    background-color: #EF5350;
    color: white;
}

.tourney-badge.open {
    background-color: #4CAF50;
    color: white;
}

.tourney-badge.live {
    background-color: #2196F3;
    color: white;
}

.tourney-badge.soon {
    background-color: #FFA000;
    color: white;
}

.tourney-badge.upcoming {
    background-color: #2a2a2a;
    color: #888;
}

/* Стили для списка кланов */
.clan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.clan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #222;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #2a2a2a;
}

.clan-card:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
}

.clan-icon {
    width: 40px;
    height: 40px;
    background-color: #1b1b1b;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.clan-name-text {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Стили для футера */
.footer {
    background-color: #1b1b1b;
    border-top: 1px solid #2a2a2a;
    padding: 3rem 1rem 1.5rem;
    margin-top: auto;
    /* Прижимает футер к низу, если контента мало */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #4CAF50;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    font-size: 1.4rem;
    color: #888;
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: #4CAF50;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.footer-bottom strong {
    color: #888;
}

/* Стили для админ-панели */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #1b1b1b;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    background-color: #121212;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    padding: 0.8rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.admin-form label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: -0.5rem;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: #4CAF50;
    outline: none;
}

.image-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
    display: none;
    margin: 0.5rem 0;
}

.admin-list {
    background-color: #1b1b1b;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    margin-top: 1rem;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

@media (max-width: 600px) {
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-btn {
    background-color: #FFA000;
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.edit-btn:hover {
    background-color: #FF8F00;
}

.admin-item:last-child {
    border-bottom: none;
}

.delete-btn {
    background-color: #EF5350;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #D32F2F;
}

/* Стили для ограничения доступа */
.role-restricted-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(1);
    position: relative;
}

/* Навигация внутри админки */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    /* Позволяем перенос, чтобы не распирало страницу */
}

.tab-btn {
    background: #1b1b1b;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    /* Кнопки растягиваются, заполняя ряд */
    text-align: center;
}

.tab-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Кнопка бургера для админки */
.admin-burger-btn {
    display: none;
    width: 100%;
    background: #1b1b1b;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 0.9rem;
}

@media (max-width: 800px) {
    .admin-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 колонки на планшетах */
    }
}

@media (max-width: 500px) {
    .admin-burger-btn {
        display: flex;
    }

    .admin-tabs {
        display: none;
        /* Скрываем по умолчанию на мобилках */
        grid-template-columns: 1fr;
        /* В одну колонку при открытии */
        border-bottom: none;
    }

    .admin-tabs.active {
        display: grid;
        animation: slideDown 0.3s ease-out;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-section {
    display: none;
}

/* Стили для страницы входа */
.login-container {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #1b1b1b;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    text-align: center;
}

.login-container .results-title {
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.login-container .admin-form {
    padding: 0;
    /* Убираем внутренний падинг формы, так как он уже есть у контейнера */
    border: none;
    /* Убираем рамку формы */
    background-color: transparent;
    /* Убираем фон формы */
}

/* Стили для Flash сообщений */
.flash-messages-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.flash-message {
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.flash-message.success {
    background-color: #4CAF50;
    color: white;
}

.flash-message.danger {
    background-color: #EF5350;
    color: white;
}

.flash-message.info {
    background-color: #2196F3;
    color: white;
}

.flash-message.warning {
    background-color: #FFC107;
    color: #333;
}

/* Modal Styles */
.modal-overlay {
    display: flex;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: #1b1b1b;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #4CAF50;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 1rem;
}

.modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-section h4 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.full-width {
    grid-column: 1 / -1;
}

/* Page Transitions */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    /* Должен совпадать с фоном body */
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
    opacity: 1;
    visibility: visible;
}

.page-transition-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Tournament Separator */
.tournaments-separator {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(to right, transparent, #2a2a2a, transparent);
    margin: 3rem 0 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tournaments-separator::after {
    content: "ПРОШЕДШИЕ ТУРНИРЫ";
    background-color: #121212;
    padding: 0 1.5rem;
    color: #444;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Стили для состава в карточке клана */
.clan-players {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #2a2a2a;
    margin-top: 0.5rem;
}

.clan-player {
    flex: 1;
    text-align: center;
    padding: 0;
}

.clan-player-avatar {
    width: 40px;
    height: 40px;
    image-rendering: auto;
    border-radius: 4px;
    background-color: #2a2a2a;
    object-fit: cover;
}

.clan-player-name {
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.clan-player-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.clan-player-role {
    font-size: 0.6rem;
    font-weight: 600;
    color: #888;
}

/* Статистика в ряд */
.clan-stats-row {
    display: flex;
    border-top: 1px solid #2a2a2a;
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -1.5rem;
    /* Растягиваем на всю ширину карточки */
}

.clan-stats-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
}

.clan-stats-item:not(:last-child) {
    border-right: 1px solid #2a2a2a;
}

.clan-stats-label {
    display: block;
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clan-stats-value {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 700;
}