/* Fighter Stats */
.stats-row {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 2rem;
    margin: 2rem 0;
}

.stats-title {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
}

.rating-value,
.fights-count {
    color: #D0021B !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-values span {
    font-size: 1.2rem;
}

.wins-stat {
    color: #00C853 !important;
    /* зелёный */
}

.draws-stat {
    color: #FFD600 !important;
    /* жёлтый */
}

.losses-stat {
    color: #D0021B !important;
    /* красный */
}

.stats-item {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-item h3 {
    color: var(--mainWhite);
    margin-bottom: 1rem;
}

.social-link {
    width: 80%;
    max-width: 100px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.social-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
}

.social-icon::before {
    font-size: 3rem !important;
    color: #D0021B !important;
    transition: color 0.2s, -webkit-text-stroke 0.2s;
    -webkit-text-stroke: 0px #D0021B;
}

.social-link:hover .social-icon::before {
    color: transparent !important;
    -webkit-text-stroke: 2px #D0021B !important;
}

/* Медиа-галерея */
.media-gallery {
    margin-top: var(--gallery-margin-top) !important;
    margin-bottom: var(--gallery-margin-bottom) !important;
}

.media-gallery .row {
    display: flex;
    align-items: center;
    /* Центрирует основное фото по вертикали */
    min-height: 400px;
    /* Можно скорректировать под нужную высоту */
}

.media-gallery .preview-column {
    min-height: 400px;
    /* Совпадает с высотой .row */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.media-gallery .main-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.preview-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-gallery-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 400px;
}

.preview-column {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .media-gallery {
        margin-bottom: 1.5rem !important;
        /* Было 3rem, стало меньше */
        margin-top: 2rem !important;
        /* Можно тоже уменьшить, если нужно */
    }

    /* <= lg */
    .media-gallery-row {
        flex-direction: column;
        min-height: unset;
    }

    .main-media,
    .preview-column {
        min-height: unset !important;
    }

    .preview-column {
        flex-direction: row;
        min-height: unset;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        /* <--- не переносить! */
        width: 100%;
        margin-top: 1rem;
    }

    .preview-column>div {
        flex: 1 1 0;
        max-width: none;
        margin-bottom: 0;
    }

    .media-gallery .row,
    .media-gallery-row {
        min-height: unset !important;
    }
}

/* История боёв */
.fight-card {
    border-top: 2px solid var(--mainRed);
    border-bottom: 2px solid var(--mainRed);
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.fight-header {
    background: var(--mainRed);
    color: var(--mainWhite);
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.fight-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.vs-icon {
    font-weight: bold;
    font-size: 2rem;
    color: var(--mainWhite);
}

.result {
    text-transform: uppercase;
}

.result.win {
    color: var(--mainGreen);
}

.result.loss {
    color: var(--mainRed);
}

.result.draw {
    color: var(--mainGrey);
}