
.user {
    background-color: #EFF6F9;
    padding: 40px;
    border-radius: 20px;
}

.user__grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    margin-bottom: 32px;
}

.user__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.user__name {
    font-weight: 600;
    color: #242424;
    font-size: 16px;
    margin-bottom: 8px;
}

.user__desc {
    font-weight: 400;
    font-size: 12px;
    color: rgba(36, 36, 36, 0.6);
    margin-bottom: 4px;
}

.user__autor {
    font-size: 12px;
    color: #242424;
    font-weight: 500;
    margin-bottom: 20px;
}

.user__profile-btn {
    background-color: #fff;
    box-shadow: 0 11px 20px rgba(0, 7, 42, 0.0509803922);
    padding: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 50px;
    transition: 0.2s;
}

.user__profile-btn:hover {
    background-color: #f2f1f1;
}

.user__detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user__detail:not(:last-child) {
    margin-bottom: 20px;
}

.user__detail-text {
    display: flex;
    gap: 4px;
}

.user__detail-text > div {
    font-weight: 700;
    font-size: 12px;
}

.user__detail-text > span {
    font-weight: 400;
    font-size: 12px;
}

.user__articles {
    padding-left: 50px;
    border-left: 1px solid rgba(36, 36, 36, 0.1019607843);
}

.user__title {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 40px;
    line-height: 1.1;
}

.user__link {
    font-weight: 400;
    font-size: 16px;
    text-decoration: underline;
    display: block;
    transition: 0.2s;
}

.user__link:not(:last-child) {
    margin-bottom: 20px;
}

.user__link:hover {
    color: #37AD80;
}

.user__block {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(36, 36, 36, 0.1019607843);
}

.user__block-views {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user__block-views > span {
    font-weight: 600;
    font-size: 16px;
}

.user__grade {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user__grade-flex {
    display: flex;
    gap: 8px;
}

.user__share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user__share > span {
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 768px) {
    .user {
        padding: 20px;
    }

    .user__grid {
        grid-template-columns: 1fr;
    }

    .user__articles {
        padding-left: unset;
        border-left: unset;
    }

    .user__grade-flex > svg {
        width: 20px;
        height: 20px;
    }

    .user__grade {
        gap: 10px;
    }

    .blog-page-wrapper {
        padding-top: 3rem;
    }

    .ts-articles h2 {
        margin-top: 35px;
    }

    .py-6 {
        padding-bottom: 4rem;
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    .user__grade {
        margin-bottom: 20px;
    }

    .user__block {
        flex-direction: column;
    }

    .user__share {
        margin-left: auto;
    }
}

.ts-article-list, .ts-article-list2 {
    display: grid !important;
    gap: 20px;
}

.ts-article-list2 {
    gap: 14px;
}

.ts_html h2:first-child {
    margin-top: 0;
}

.ts-articles h3 {
    margin-bottom: 14px;
}

.user__grade-flex {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.star {
    position: relative;
    width: 28px;
    height: 24px;
    background-image: url("/img/blocks/article-navigation/icons/star-2.svg"); /* Пустая звезда */
    background-size: cover;
    background-repeat: no-repeat;
}

.star::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-image: url("/img/blocks/article-navigation/icons/star.svg"); /* Заполненная звезда */
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.star.full::before {
    width: 100%;
}

.star.half::before {
    width: 50%;
}

@media (max-width: 767px) {
    .user__block {
        flex-direction: row;
    }

    .user__grade {
        margin-bottom: 0;
    }

    .user__grade-flex {
        gap: 3px;
    }

    .star {
        width: 20px;
        height: 18px;
    }

    .ts-article-list {
        gap: 12px;
    }

}