/* 0.39.30 follow-up: fix incomplete desktop pages, counter overflow, and restore one price divider. */

/* Keep exactly one divider between social counters and commerce/price. */
.ygr-discovery .ygr-card--discovery .ygr-card__commerce,
.yg-radar-related .ygr-card--related .ygr-card__commerce,
.yg-radar-event-archive-grid .ygr-card__commerce {
    border-top: 1px solid rgba(23, 32, 51, .09) !important;
    border-block-start: 1px solid rgba(23, 32, 51, .09) !important;
}

/* The 0.39.29 social tiles were too horizontally constrained. Stack icon/value/label
   so all three tiles remain inside the card at every supported width. */
.ygr-discovery .ygr-card__social .ygr-stat,
.yg-radar-related .ygr-card--related .ygr-card__social .ygr-stat,
.yg-radar-event-archive-grid .ygr-card__social .ygr-stat,
.yg-radar-event-archive-grid .yg-radar-web-card__social-proof .ygr-stat {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 18px auto auto !important;
    place-items: center !important;
    align-content: center !important;
    row-gap: 2px !important;
    column-gap: 0 !important;
    min-width: 0 !important;
    min-height: 68px !important;
    padding: 7px 4px !important;
    overflow: hidden !important;
    text-align: center !important;
}

.ygr-discovery .ygr-card__social .ygr-stat .yg-radar-icon-container,
.yg-radar-related .ygr-card--related .ygr-card__social .ygr-stat .yg-radar-icon-container,
.yg-radar-event-archive-grid .ygr-card__social .ygr-stat .yg-radar-icon-container,
.yg-radar-event-archive-grid .yg-radar-web-card__social-proof .ygr-stat .yg-radar-icon-container {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    align-self: center !important;
    justify-self: center !important;
}

.ygr-discovery .ygr-stat__value,
.yg-radar-related .ygr-stat__value,
.yg-radar-event-archive-grid .ygr-stat__value {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #172033 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.ygr-discovery .ygr-stat__label,
.yg-radar-related .ygr-stat__label,
.yg-radar-event-archive-grid .ygr-stat__label {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #667085 !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Invisible filler completes an incomplete carousel page (e.g. 7 cards in pages of 4).
   It is not an Event item and therefore never participates in filtering/navigation counts. */
.ygr-discovery .ygr-rail__page-spacer-03930 {
    display: block !important;
    flex: 0 0 var(--ygr-tail-spacer-03930, 0px) !important;
    width: var(--ygr-tail-spacer-03930, 0px) !important;
    min-width: var(--ygr-tail-spacer-03930, 0px) !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 689px) {
    .ygr-discovery .ygr-card__social .ygr-stat,
    .yg-radar-related .ygr-card--related .ygr-card__social .ygr-stat,
    .yg-radar-event-archive-grid .ygr-card__social .ygr-stat,
    .yg-radar-event-archive-grid .yg-radar-web-card__social-proof .ygr-stat {
        min-height: 64px !important;
        padding: 6px 3px !important;
    }

    .ygr-discovery .ygr-stat__label,
    .yg-radar-related .ygr-stat__label,
    .yg-radar-event-archive-grid .ygr-stat__label {
        font-size: 9.5px !important;
    }
}
