Filters an HLS main playlist by preferred language using BCP 47 relatedness matching.
Strategy:
Collect all unique languages from audio alternative renditions.
Find the best matching language using relatedness scoring.
If a match is found, keep only renditions at the same relatedness level (or better),
plus renditions without a language tag. Filter variants whose audio group has no
remaining matching renditions.
If no match is found or filtering would remove all variants, return unchanged.
Filters an HLS main playlist by preferred language using BCP 47 relatedness matching.
Strategy: