/**
 * Sitewide + personal cabinet: rating stars
 * Default/empty: #CCCCCC | Active/hover: #FFC422
 *
 * Root cause: feed sprite #cotinder-icon-star uses path fill="currentColor".
 * When cotinderFeedIconSprite is on, stars render as <use> (no <path> in DOM),
 * so entity-star-rating.js cannot setAttribute('fill'). Color then follows
 * surrounding text (often #000 / #2d2d2d) — active stars look black.
 * custom.css yellow rules lack !important and lose to detail/card color.
 */

/* --- inactive / default: gray --- */
.entity-star-rating .star,
.card-stars .star,
.card-stars__wrapper .star {
    color: #CCCCCC !important;
}

.entity-star-rating .star svg,
.entity-star-rating .star svg path,
.entity-star-rating .star svg use,
.card-stars .star svg,
.card-stars .star svg path,
.card-stars .star svg use,
.card-stars__wrapper .star svg,
.card-stars__wrapper .star svg path,
.card-stars__wrapper .star svg use {
    fill: #CCCCCC !important;
    color: #CCCCCC !important;
}

/* --- active + hover: yellow --- */
.entity-star-rating .star.active,
.entity-star-rating .star:hover,
.card-stars .star.active,
.card-stars .star:hover,
.card-stars__wrapper .star.active,
.card-stars__wrapper .star:hover {
    color: #FFC422 !important;
}

.entity-star-rating .star.active svg,
.entity-star-rating .star.active svg path,
.entity-star-rating .star.active svg use,
.entity-star-rating .star:hover svg,
.entity-star-rating .star:hover svg path,
.entity-star-rating .star:hover svg use,
.card-stars .star.active svg,
.card-stars .star.active svg path,
.card-stars .star.active svg use,
.card-stars .star:hover svg,
.card-stars .star:hover svg path,
.card-stars .star:hover svg use,
.card-stars__wrapper .star.active svg,
.card-stars__wrapper .star.active svg path,
.card-stars__wrapper .star.active svg use,
.card-stars__wrapper .star:hover svg,
.card-stars__wrapper .star:hover svg path,
.card-stars__wrapper .star:hover svg use {
    fill: #FFC422 !important;
    color: #FFC422 !important;
}

/* Detail «Последние посты» / «Фото и видео» / pet & owner cards */
.pet__bottom .entity-star-rating .star.active,
.pet__bottom .card-stars .star.active,
.pet__top_image .entity-star-rating .star.active,
.profiles-flex__item .entity-star-rating .star.active,
.another-pet .entity-star-rating .star.active,
.fancybox__container .entity-star-rating .star.active,
.index__post .entity-star-rating .star.active,
.personal .entity-star-rating .star.active,
.personal .card-stars .star.active {
    color: #FFC422 !important;
}

.pet__bottom .entity-star-rating .star.active svg,
.pet__bottom .entity-star-rating .star.active svg use,
.pet__bottom .entity-star-rating .star.active svg path,
.pet__bottom .card-stars .star.active svg,
.pet__bottom .card-stars .star.active svg use,
.pet__bottom .card-stars .star.active svg path,
.pet__top_image .entity-star-rating .star.active svg,
.pet__top_image .entity-star-rating .star.active svg use,
.pet__top_image .entity-star-rating .star.active svg path,
.profiles-flex__item .entity-star-rating .star.active svg use,
.another-pet .entity-star-rating .star.active svg use,
.fancybox__container .entity-star-rating .star.active svg use,
.index__post .entity-star-rating .star.active svg use,
.personal .entity-star-rating .star.active svg,
.personal .entity-star-rating .star.active svg use,
.personal .entity-star-rating .star.active svg path {
    fill: #FFC422 !important;
    color: #FFC422 !important;
}
