{% set max_count = rating.count.values() | max if rating.count else 1 %}
{% for i in range(1, 11) %}
{% set count = rating.count[i|string] or 0 %}
{% set height_percent = (count / max_count * 100) if max_count > 0 else 0 %}
{% set final_height = height_percent if height_percent > 1 else 1 %}
{% endfor %}
1510
{% endif %}
{{ name_cn or name }}
{% if name_cn and name != name_cn %}
{{ name }}
{% endif %}
{% if rating %}
★{{ rating.score }}
{% set display_rank = rating.rank or rank %}
{% if display_rank %}
#{{ display_rank }}
{% endif %}
{{ rating.total }} 人评分
{% if collection and collection.doing %}
{{ collection.doing }} 人在看
{% endif %}
{% else %}
暂无评分
{% endif %}
{% if tags %}
{% for tag in tags[:8] %}
{{ tag.name }}
{% endfor %}