/* --- СЕКЦИЯ РЕЦЕНЗИЙ --- */
.reviews-section {
    width: 100%;
    box-sizing: border-box;
    padding-left: 90px; /* Отступ от сайдбара */
    padding-right: 154px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Фикс заголовка и стрелок (чтобы они были в одной линии) */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.reviews-header h2 {
    font-size: 24px;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

/* --- КОНТЕЙНЕР --- */
.reviews-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-behavior: smooth;
    align-items: flex-start;
}
.reviews-container::-webkit-scrollbar { display: none; }

/* --- КАРТОЧКА --- */
.review-card {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    background: #0f1113;
    border-radius: 22px;
    border: 1px solid #1c1f22;
    position: relative;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Анимация подъема всей карточки */
.review-card:hover {
    border-color: #333;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.review-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* Текстовый блок (Слой ниже оверлея) */
.review-info-main {
    padding: 15px 20px 20px;
    text-align: center;
    background: #0f1113;
    position: relative;
    z-index: 10;
}

.album-name {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

.artist-name {
    font-size: 13px;
    color: #777;
    margin: 5px 0 15px;
}

/* --- ПАНЕЛЬ-ТРИГГЕР (Синяя плашка) --- */
.final-score-row {
    background: linear-gradient(135deg, rgba(0, 55, 180, 0.8) 0%, rgba(0, 100, 255, 0.9) 100%);
    border: 1px solid rgba(0, 150, 255, 0.4);
    padding: 12px 0;
    border-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    z-index: 11; /* Выше фона инфо-блока */
}

.final-score-row:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(0, 100, 255, 0.5);
}

/* --- ВЫПЛЫВАЮЩАЯ ПАНЕЛЬ (OVERLAY) --- */
.review-details-overlay {
    position: absolute;
    /* Увеличили высоту вылета, чтобы не перекрывалась текстом */
    bottom: 105px;
    left: 12px;
    right: 12px;
    background: rgba(18, 20, 23, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;

    /* Самый высокий слой в карточке */
    z-index: 100;

    /* Скрытое состояние */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 🎯 ЛОГИКА ПОЯВЛЕНИЯ */
/* Показываем, когда наведена мышь на синюю плашку или на саму панель */
.review-card:has(.final-score-row:hover) .review-details-overlay,
.review-details-overlay:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Стили текста в оверлее */
.details-album-title {
    font-size: 14px;
    margin: 0 0 15px 0;
    text-align: center;
    color: #00aaff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #bbb;
}
.stat-row span:last-child { color: #fff; font-weight: 600; }

/* Кнопки скролла */
.scroll-controls {
    display: flex;
    gap: 10px;
}

.btn-scroll {
    background: #1c1f22;
    border: 1px solid #333;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-scroll:hover {
    background: #0055ff;
    border-color: #0055ff;
}