/* Рейтинг звездами */
.rating-stars {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}


.rating-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 20px;
}

.rating-max {
    font-weight: 600;
}

.form-group .rating-input {
    width: 60px;
    padding: 4px 6px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-align: center;
    color: var(--text-primary);
}

.rating-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.rating-input::-webkit-outer-spin-button,
.rating-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rating-input {
    appearance: textfield;
    -moz-appearance: textfield;
}


.rating-star {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 235, 59, 0.3);
    -webkit-mask: url('../../images/Rat_rate.webp') center/contain no-repeat;
    mask: url('../../images/Rat_rate.webp') center/contain no-repeat;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    position: relative;
    margin-bottom: 5px;
}

.rating-star.hovered {
    -webkit-mask: url('../../images/Rat_rate2.webp') center/contain no-repeat;
    mask: url('../../images/Rat_rate2.webp') center/contain no-repeat;
}


/* Стили для лейблов "worst" и "best" */
.rating-star.rating-label {
    width: auto;
    height: auto;
    -webkit-mask: none;
    mask: none;
    background-color: transparent;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Стили для "worst" (красный цвет) */
.rating-star.rating-label[data-rating="0"] {
    color: #999;
}

.rating-star.rating-label[data-rating="0"]:hover {
    background-color: rgba(255, 177, 99, 0.1);
    color: #c98c41;
    text-shadow: 0 0 20px rgba(255, 99, 99, 0.5);
    border-color: rgba(255, 154, 99, 0.3);
    transform: scale(1.05);
}

.rating-star.rating-label[data-rating="0"].active {
    background-color: rgba(255, 99, 99, 0.2);
    color: #ffa163;
    text-shadow: 0 0 30px rgba(255, 161, 99, 0.8);
    border-color: #cd8549;
    transform: scale(1.1);
}

.rating-star.rating-label[data-rating="0"].hover-highlight {
    background-color: rgba(255, 99, 99, 0.05);
    color: #CCC;
    transform: scale(1.02);
}

/* Стили для "best" (зеленый цвет) */
.rating-star.rating-label[data-rating="11"] {
    color: #999;
}

.rating-star.rating-label[data-rating="11"]:hover {
    background-color: rgba(99, 255, 132, 0.1);
    color: #63FF84;
    text-shadow: 0 0 20px rgba(99, 255, 132, 0.5);
    border-color: rgba(99, 255, 132, 0.3);
    transform: scale(1.05);
}

.rating-star.rating-label[data-rating="11"].active {
    background-color: rgba(99, 255, 132, 0.2);
    color: #63FF84;
    text-shadow: 0 0 30px rgba(99, 255, 132, 0.8);
    border-color: #63FF84;
    transform: scale(1.1);
}

.rating-star.rating-label[data-rating="11"].hover-highlight {
    background-color: rgba(99, 255, 132, 0.05);
    color: #CCC;
    transform: scale(1.02);
}

/* Анимация для плавного перехода между состояниями */
.rating-stars:hover .rating-star {
    transition: all 0.2s ease;
}

