Substitute Gabriel Martinelli scored a stoppage-time winner as Brazil snatched a place in the last 16 of the World Cup with a 2-1 win over Japan in Houston.
Carlo Ancelotti’s side were stunned when Japan took the lead with a superb strike from Kaishu Sano after 29 minutes but replied when Casemiro atoned for a poor first-half performance with a fine header.