Houston: Substitute Gabriel Martinelli struck deep into injury time to fire Brazil past a resilient Japan side with a dramatic 2-1 win on Monday, sending the five-time champions into the World Cup last 16.

The Arsenal winger scored in the 95th minute in Houston, breaking Japanese hearts in the most decisive fashion. Brazil will now face either Ivory Coast or Norway in New Jersey on Sunday after edging a gripping knockout contest.

Japan stunned the favourites in the 29th minute when midfielder Kaishu Sano produced a brilliant solo effort, capitalising on a Brazilian mistake. The Mainz midfielder picked the ball up near the centre circle, drove past Casemiro and finished calmly past Alisson for his first international goal.

Carlo Ancelotti’s side responded after the break, with veteran Casemiro heading home from a Gabriel delivery 11 minutes into the second half to restore parity. From there, Brazil dominated possession and pressed relentlessly.

Japan, who had already beaten Brazil in a friendly earlier in the year, defended bravely and frustrated their opponents for long spells, with goalkeeper Zion Suzuki making key saves. But as the match wore on, Brazil’s pressure intensified.

Lucas Paquetá was forced off injured at half-time, replaced by Endrick, as Brazil pushed for a breakthrough. Vinicius Junior repeatedly threatened, striking the post after forcing Suzuki into action, while Japan’s defence cleared off the line on multiple occasions.

Just when extra time looked inevitable, Martinelli delivered the decisive blow in the dying seconds, sealing a dramatic comeback and sparking wild celebrations among the Brazil fans.

Japan’s historic wait for a first World Cup knockout win continues, while Brazil march on as they chase a record-extending sixth title.