{% comment %} Lead metric: percentile (the headline number) + a hover tooltip that explains what the rank actually means against the niche distribution. The raw CTR score was removed, most users only care about the niche rank, and showing both numbers side-by-side caused confusion about which one to optimise. Tooltip visibility uses the .intel-tooltip-trigger / .intel-tooltip classes defined in playground.html's extra_head, those are hand-written CSS, not Tailwind utilities, so they work even when the Tailwind bundle (theme/static/css/dist/styles.css) hasn't been rebuilt since this partial was added. {% endcomment %}
Percentile
Where your packaging ranks against other recent videos in the same niche. 80 means your title + thumbnail combo is predicted to outperform 80% of niche peers; 50 is average; below 30 is a sign to iterate.
{{ result.percentile }}
{% comment %} Niche match: label + slug + confidence. Confidence comes back from the API as a 0–1 float, render via {% widthratio %} to convert to an integer percentage, and color-grade the pill so a low-confidence classification (which makes the percentile less meaningful) is visually flagged. Each pill carries a "?" trigger with its own tooltip explaining the metric. {% endcomment %}
Niche match
{% with conf=result.niche_confidence %} {% if conf is not None %}
{% widthratio conf 1 100 %}% confidence How confident the classifier is that your packaging belongs to this niche. Below ~50% the percentile above is less reliable, you may be in a niche the model doesn't have strong distribution data for yet.
{% endif %} {% endwith %}
{{ result.niche_label }} {{ result.niche_slug }}