.reviews-page .filters {
    position: relative; /* для позиционирования кнопки */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filters-collapsed {
    max-height: 120px;
    overflow: hidden;
    padding-bottom: 2.5rem; /* место под кнопку */
}

/* Градиент */
.filters-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(31,31,31,0) 0%, #1f1f1f 80%);
    z-index: 1;
}

/* Кнопка прижата к низу */
.filters-overlay {
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.filters-toggle {
    pointer-events: auto;
    padding: 0.4rem;
    background: #6c5ce7;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    transition: background 0.2s ease;
}

.filters-toggle:hover {
    background: #5842c3;
}

.chip {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #2c2c2c;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}
.chip.active {
    background: #6c5ce7;
}

.review-card {
    display: flex;
    background: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.review-card .content {
    padding: 1rem;
    flex: 1;
}
.review-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.review-card p {
    font-size: 0.9rem;
    color: #ccc;
}

.screenshots-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.screenshots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.screenshots img {
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screenshots img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.read-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
    background: #6c5ce7;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.read-btn:hover {
    background: #5842c3;
}

.pagination {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
}
.pagination a,
.pagination .ellipsis {
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    background: #2c2c2c;
    color: white;
    text-decoration: none;
    min-width: 32px;
    text-align: center;
}
.pagination a.active {
    background: #6c5ce7;
}
.pagination .ellipsis {
    cursor: default;
    background: transparent;
}

/* shimmer */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}
.shimmer {
    background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.15) 37%,
    rgba(255,255,255,0.05) 63%
    );
    background-size: 400px 100%;
    animation: shimmer 1.2s infinite;
}

/* Контейнер обложки */
.cover.image-wrapper {
    width: 180px;
    min-height: 180px; /* гарантирует, что плейсхолдер/картинка видны */
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    position: relative; /* чтобы абсолютные img и placeholder позиционировались внутри */
}

/* Заполняем весь контейнер */
.cover.image-wrapper img,
.cover.image-wrapper .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshots .image-wrapper {
    width: 80px;
    height: 45px;
    flex-shrink: 0;
}

/* и img, и placeholder абсолютно занимают весь контейнер */
.image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.image-wrapper img,
.image-wrapper .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .review-card {
        flex-direction: column;
    }

    .cover.image-wrapper {
        width: 100%;
        min-height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .review-card .content {
        padding: 0.8rem;
    }

    .review-card h2 {
        font-size: 1rem;
    }

    .screenshots-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .read-btn {
        margin-top: 0.5rem;
    }
}