.review-detail {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.review-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(90deg, #ffdd00, #ff4e50, #8e2de2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineTitle 15s linear infinite;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

@keyframes shineTitle {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ===== Лейаут ===== */
@media (min-width: 992px) {
    .review-layout {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }
    .review-main {
        flex: 1;
    }
    .review-sidebar {
        width: 220px;
        flex-shrink: 0;
        position: relative;
    }


}

/* ===== Блок покупки ===== */
.buy-block-floating {
    background: #141424;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 1rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    max-width: 220px;
}

.buy-block-floating.is-fixed {
    left: auto;
    right: calc((100% - 1200px) / 2); /* отступ от правого края контейнера */
}

.buy-block-floating img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* квадратное соотношение */
    object-fit: cover;   /* заполняет, обрезая лишнее */
    border-radius: 12px 12px 0 0; /* верхние углы скруглены */
    display: block;
}

.buy-block-floating .game-title {
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 0.5rem;
    text-align: center;
}

.buy-block-floating .buy-btn {
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}
.buy-block-floating .buy-btn:hover {
    opacity: 0.85;
}

/* Мобилка */
@media (max-width: 991px) {
    .buy-block-floating {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.8rem;
        border-radius: 12px 12px 0 0;
        background: #141424;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
    }

    .buy-block-floating .image-wrapper {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 8px;
        overflow: hidden;
    }

    .buy-block-floating img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .buy-block-floating .game-title {
        display: none;
    }

    .buy-block-floating .buy-btn {
        flex-shrink: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 8px;
        white-space: nowrap;
    }
}

/* ===== Контент статьи ===== */
.review-components {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.review-article h2 {
    margin-bottom: 0.5rem;
    color: #ffcc00;
}

.review-article p {
    line-height: 1.6;
}

/* ===== Шиммер ===== */
.image-wrapper {
    position: relative;
    width: 100%;
}

.image-placeholder {
    background: #2c2c2c;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.shimmer {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #2c2c2c 0%, #3c3c3c 20%, #2c2c2c 40%, #2c2c2c 100%);
    background-size: 1000px 100%;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ===== Похожие обзоры ===== */
.similar-reviews {
    margin-top: 3rem;
}
.similar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
    line-height: 1.3;
    background: linear-gradient(90deg, #ffdd00, #ff4e50, #8e2de2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.similar-card {
    background: #1e1e2f;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.similar-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}
.similar-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.similar-info {
    padding: 0.8rem;
}
.similar-game-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Модальное окно ===== */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}
.screenshot-modal.open {
    display: flex;
}
.screenshot-modal img.modal-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
.modal-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}
.modal-nav span {
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    transition: 0.2s;
}
.modal-nav span:hover {
    color: #ffcc00;
}
