.jl-rating-star {
    --jl-star-shape: polygon(50% 2%, 64% 34%, 99% 38%, 73% 62%, 80% 96%, 50% 79%, 20% 96%, 27% 62%, 1% 38%, 36% 34%);
    position: relative;
    display: inline-block;
    width: var(--jl-star-size, 1em);
    height: var(--jl-star-size, 1em);
    flex: none;
    clip-path: var(--jl-star-shape);
    background: #9b501d;
}

.jl-rating-star-outline::after {
    position: absolute;
    inset: var(--jl-star-stroke, 2px);
    clip-path: var(--jl-star-shape);
    background: var(--jl-star-surface, #fffdf7);
    content: "";
}

.jl-rating-display {
    display: flex;
    align-items: center;
    gap: .35em;
    font-weight: 700;
}

.jl-card-title .jl-card-rating.jl-rating-display::before {
    content: none;
}

@media (max-width: 740px) {
    :is(.jl-discovery, .jl-catalogue, .jl-person-works) .jl-card-rating {
        --jl-star-surface: #faebd8;
    }
}

.jl-discovery-grid .jl-card-rating {
    --jl-star-surface: #faebd8;
}

.jl-watchlist-status .jl-watchlist-rating {
    --jl-star-surface: #f6ebdb;
    display: inline-flex;
    max-width: 100%;
    padding: .15rem .45rem;
    border-radius: 6px;
    background: var(--jl-star-surface);
    color: #623415;
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
}

@media (forced-colors: active) {
    .jl-rating-star {
        background: CanvasText;
        forced-color-adjust: none;
    }

    .jl-rating-star-outline::after {
        background: Canvas;
    }
}
