﻿/* Секция карточек */
.common-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: 650px;

}

/* Сетка карточек */
.players-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 0;
    margin-bottom: 1.2rem;
}

/* Карточка игрока */
.player-card {
    flex: 1 1 calc(25% - 1rem);
    max-width: 300px;
    min-width: 250px;
    background-color: #a0c3e3;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /* Prevent text from overflowing the card */
}

    .player-card:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

/* Фото игрока */
.player-photo img {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    object-position: 50% 15%; 
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Информация о игроке */
.player-info {
    color: #333333;
    font-size: 16px;
    line-height: 1.4; 
    word-wrap: break-word; /* Ensures long words break to new lines */
}

    .player-info .player-name {
        font-size: 1.2rem; /* Reduced font size to prevent overflow */
        font-weight: 700;
        color: #007bff;
        margin-bottom: 0.5rem;
        overflow-wrap: break-word; /* Ensures long names wrap */
    }

    .player-info p {
        margin: 0.3rem 0;
        font-size: 0.9rem; /* Slightly smaller font size for additional text */
    }

/* Адаптивные стили */
@media (max-width: 1200px) {
    .player-card {
        flex: 1 1 calc(33.33% - 1rem);
    }
}

@media (max-width: 992px) {
    .player-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .player-card {
        flex: 1 1 100%;
    }
}



/* === Мобильная адаптивность === */
@media (max-width: 768px) {
    .common-section {
        padding: 1rem; 
    }

    .history-section .logo-float {
        float: none; 
        margin: 0 auto 1rem; 
        display: block; 
        max-width: 100%; 
        height: auto; 
    }

    .history-section .history-content p {
        font-size: 16px;
        line-height: 1.4;
        text-align: justify;
    }

    .key-dates-title {
        font-size: 1.5rem;
    }

    .key-dates-list li {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.6rem;
    }
}

/* Адаптивная секция интро */
.custom-staff-intro {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center;
    gap: 20px; 
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.custom-intro-photo {
    width: 100%;
    max-width: 300px; 
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.custom-intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

/* Сетка карточек */
.sprocket-strips-p-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 1rem;
    justify-content: center; 
    margin-bottom: 15px;
    padding: 0;
    list-style: none; 
}

.sprocket-strips-p-block {
    flex: 1 1 350px;
    width: 33%;
    max-width: 33%;
    background-color: #a0c3e3;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    text-align: left;
    overflow: hidden;
    padding-left: 10px;
    margin: 0;
    height: 250px;
}

    .sprocket-strips-p-block:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

/* Внутренний блок, где лежит фото и текст */
.sprocket-strips-p-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.staff-photo {
    
    max-height: 225px;
    height: auto;
    border-radius: 10px;
   
}

.team_player_name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.team_player_ampl {
    font-size: 1rem;
    color: #f8f9fa;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 769px) and (max-width: 1224px) {


    .sprocket-strips-p-block {
        width: unset;
        max-width: 80%;
    }
}

@media (max-width: 768px) {


    .sprocket-strips-p-block {
        min-width: 100%;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        height:auto !important;
    }

    .sprocket-strips-p-item {
        flex-direction: column;
        text-align: center;
        max-width: 250px;
       
    }

    .staff-photo {
        margin: 0 auto 1rem auto;
        max-width: 200px; 
        min-height: 150px;
    }
}

/* === Сетка карточек матчей === */
.matches-grid {
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    padding: 0 1rem; 
    box-sizing: border-box; 
    margin: 0 auto; 
    width: 100%; 
    max-width: 1200px; 
}

/* Карточка матча */
.match-card {
    background-color: #f8f9fa;
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    padding: 1.2rem; 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%; 
}

    .match-card:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }


/* Дата матча */
.match-date {
    font-size: 1.5rem; 
    font-weight: bold;
    background-color: #007bff;
    color: #f8f9fa;
    margin-bottom: 3rem;
}

/* Сетка команд и счёта */
.teams {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; 
}

/* Логотипы и названия команд */
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 auto; 
}

/* Логотип команды */
.team-logo {
    width: 75px; 
    height: 75px;
    object-fit: contain; 
    margin-bottom: 0.5rem;
}

/* Название команды */
.team-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: unset;
}

/* Счёт */
.score {
    font-size: 4.0rem; 
    font-weight: bold;
    color: #007bff; 
    text-align: center;
}

/* Информация о матче */
.match-info {
    margin-top: 1rem;
    font-size: 1rem;
    color: #6a7685; 
    line-height: 2; 
    margin-bottom: 1rem;
    font-weight: 700;
}

/* === Адаптация под разные устройства === */

/* Для iPad и планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
    .match-card {
        padding: 1rem; 
    }

    .team-logo {
        width: 65px;
        height: 65px;
    }

    .score {
        font-size: 3rem;
    }
}

/* === Стили для телефонов === */
@media (max-width: 767px) {
    .checkbox-container {
        max-width: 100% !important;
        font-size: 0.7rem;
        justify-content: center; 
        margin: 0 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    .checkbox-label {
        font-size: 1.1rem !important; 
       
    }

    .matches-grid {
        padding: 0 0.5rem;
    }

    .match-card {
        padding: 0.8rem; 
    }

    .teams {
        flex-direction: column; 
        gap: 10px;
    }

    .team {
        flex-direction: row; 
        align-items: center; 
        gap: 10px; 
        width:unset;
    }

    .team-logo {
        width: 50px; 
        height: 50px;
    }

    .team-name {
        font-size: 1.5rem; 
        white-space: normal; 
    }

    .score {
        font-size: 3rem;
        margin: 10px 0; 
    }

    .match-info {
        font-size: 0.9rem;
    }
}

/* Контейнер для чекбокса */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 1.5rem 1rem;
    background-color: #6a7685;
    max-width: 285px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.2rem;
}

/* Стили для чекбокса */
.custom-checkbox {
    width: 20px;
    height: 20px; 
    cursor: pointer; 
    margin-right: 0.75rem; 

}

/* Стили для текста чекбокса */
.checkbox-label {
    font-size: 1.2rem; 
    color: #f8f9fa; 
    font-weight: 700;
    cursor: pointer; 
}

/* === Базовые стили таблицы === */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1rem;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .standings-table th {
        background-color: #007bff;
        color: white;
        font-weight: bold;
        padding: 0.75rem 1rem; 
        text-align: left;
        vertical-align: middle; 
        border: none;
    }

    .standings-table td {
        padding: 0.75rem 1rem; 
        text-align: left; 
        vertical-align: middle; 
        border: none;
        color: #333;
    }

.standing-row:nth-child(odd) {
    background-color: #f8f9fa;
}

.standing-row:nth-child(even) {
    background-color: #ffffff;
}

/* Блок с логотипом и названием команды */
.team-info {
    display: grid; 
    grid-template-columns: auto 1fr; 
    align-items: center;
    gap: 0.5rem; 
}

.standings-team-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.stadium-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6a7685;
    line-height: 1;
    font-weight: 600;
}

    .stadium-info span {
        display: block;
    }

/* === Адаптивные стили === */

@media (min-width: 768px) and (max-width: 1024px) {
    .standings-table th, .standings-table td {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        text-align: center !important;
    }

    .standings-team-logo {
        width: 50px;
        height: 50px;
    }
}

/* Для телефонов */
@media (max-width: 767px) {
    .standings-table {
        font-size: 0.8rem;
        box-shadow: none; 
    }

        .standings-table th, .standings-table td {
            padding: 0.5rem;
            text-align: center !important;
        }

    .team-info {
        grid-template-columns: auto; 
        justify-items: center; 
        gap: 0.25rem;
    }

    .standings-team-logo {
        width: 40px;
        height: 40px;
    }
}



/* Стиль заголовков и секции */
/* Заголовок матча */
.match-header {
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team {
    text-align: center;
}

.team-logo {
    width: 115px;
    height: 115px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .team-logo {
        width: 75px;
        height: 75px;
        object-fit: contain;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .team-logo {
        width: 95px;
        height: 95px;
        object-fit: contain;
        margin-bottom: 0.5rem;
    }
}


.match-tour {
    font-size: 1.1rem;
    color: #6a7685;
}

.stadium-info {
    font-size: 1rem;
    color: #333;
}

/* События */
.match-events {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .event-item:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.event-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.event-details {
    flex-grow: 1;
}

    .event-details p {
        margin: 0;
        font-size: 1rem;
        color: #333;
    }

.no-events {
    text-align: center;
    font-size: 1.1rem;
    color: #6a7685;
    margin-top: 1rem;
}

.container {
    padding: 0 1rem;
}