/* ================================================================
   Homepage Premium Polish  —  homepage-premium.css
   Patch P4  |  Additive only, zero builder overrides
   ================================================================ */

/* ---- 1. Hero: Inline Rating Block ---- */
.hp-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 5px 14px 5px 10px;
    margin-bottom: 16px;
    width: fit-content;
}

.hp-rating__stars {
    color: #f5c518;
    font-size: 15px;
    letter-spacing: 1.5px;
    line-height: 1;
    user-select: none;
}

.hp-rating__score {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1;
}

.hp-rating__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1;
}

/* ---- 2. Hero: CTA Group (primary + secondary side by side) ---- */
.hp-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

/* Secondary ghost button — Смотреть каталог */
.hp-btn-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    letter-spacing: 0.03em;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
    cursor: pointer;
}

.hp-btn-catalog:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* ---- 3. Hits Cards: Badge Pill ---- */
.hp-hit-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(254, 91, 63, 0.88);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.5;
    margin-top: 3px;
    vertical-align: middle;
}

/* ---- 4. Hits Cards: Softer shadow + hover polish ---- */
#i58tsv2r1_0 .imageFit {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

#i58tsv2r1_0 .blocklist__item:hover .imageFit {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px);
}

/* Smooth image scale on hover */
#i58tsv2r1_0 .imageFit__img {
    transition: transform 0.4s ease;
}

#i58tsv2r1_0 .blocklist__item:hover .imageFit__img {
    transform: scale(1.04);
}

/* Overlay gradient — richer bottom fade */
#i58tsv2r1_0 .imageFit__overlay {
    background: linear-gradient(
        to top,
        rgba(15, 15, 20, 0.78) 0%,
        rgba(15, 15, 20, 0.35) 45%,
        transparent 100%
    ) !important;
}

/* ---- 5. Hits Section: Premium Spacing ---- */
#i58tsv2r1_0 {
    padding-top: 24px;
    padding-bottom: 8px;
}

/* ---- 6. Mobile Safety ---- */
@media (max-width: 767px) {
    .hp-rating {
        margin-bottom: 14px;
    }

    .hp-cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hp-btn-catalog {
        width: 100%;
        padding: 13px 22px;
    }

    #i58tsv2r1_0 .imageFit {
        border-radius: 8px;
    }

    #i58tsv2r1_0 {
        padding-top: 12px;
    }
}

@media (max-width: 479px) {
    .hp-btn-catalog {
        font-size: 13px;
        padding: 12px 18px;
    }

    .hp-hit-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
}

/* ---- 7. No horizontal scroll guard ---- */
.mosaic-wrap {
    overflow-x: hidden;
}
