Goal difference
The 16 qualified teams were seeded in the knockout stages according to their results in the second stage, with the group winners seeded 1–8, and the group runners-up seeded 9–16. The teams were ranked by: 1. Points (Pts); 2. Goal difference (GD); 3. Goals scored (GF); 4. Away goals (AG); 5. Drawing of lots.