Endrick scored a 96th-minute winner as Brazil beat Mexico 3-2 in a thrilling pre-Copa America friendly.

Brazil coach Dorival Junior named an experimental line-up for Saturday's clash in Texas, but it was one of his substitutes who struck the crucial blow for the Selecao.

Endrick, who will link up with his new club Real Madrid after the Copa America, was the hero as he headed in brilliantly from a cross from Los Blancos star Vinicius Junior.

It capped off a topsy-turvy game in which Brazil had surrendered a 2-0 lead.

Andreas Pereira put them ahead after five minutes, before Gabriel Martinelli doubled their lead with a simple finish in the 54th minute.

Yet Mexico, who were coming into the game on the back of a 4-0 thrashing at the hands of Uruguay, looked set to snatch a draw when Julian Quinones and Guillermo Martinez dragged them level, with that second goal coming in the 92nd minute.

But parity lasted only four minutes, with Vinicius and Endrick teaming up excellently for Brazil's winner, as the duo will hope to do for Madrid next season.

Next up for Brazil is a friendly against the United States, before they kick off their Copa America campaign against Costa Rica.

Data Debrief: A star is born

Endrick became the youngest goalscorer in an international match at Wembley when he netted against England in March.

And in 2024, the 17-year-old now has three goals in the space of 93 minutes for the Selecao. Indeed, Brazil's number nine has converted 50 per cent of his six shots in that time.