/* Стили боковых иллюстрированных постеров и модального окна просмотра */

.tournaments-posters-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 40px auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.side-poster {
    flex: 0 0 260px;
    max-width: 260px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.side-poster-left {
    border: 2px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
}

.side-poster-left:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--gold-bright);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.35);
}

.side-poster-right {
    border: 2px solid rgba(0, 255, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 255, 0.15);
}

.side-poster-right:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: #00FFFF;
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.35);
}

.side-poster img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    transition: opacity 0.3s ease;
}

/* Модальное окно полноэкранного постера */
#posterModal .modal-content {
    max-width: 820px;
    width: 92%;
    background: rgba(18, 14, 11, 0.96);
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
    overflow-y: auto;
}

.poster-modal-img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.poster-modal-caption {
    margin-top: 20px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.poster-modal-caption h3 {
    color: var(--gold-bright);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}

.poster-grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 650px) {
    .poster-grid-info {
        grid-template-columns: 1fr;
    }
}

/* Скрытие боковых постеров на экранах < 1380px для защиты мобильной верстки */
@media (max-width: 1380px) {
    .side-poster {
        display: none !important;
    }
    .tournaments-posters-flex {
        padding: 0;
    }
}
