The Royals ran wild and outlasted the A's in a thrilling opener to baseball's postseason.

Salvador Perez singled home the winning run with two outs in the 12th inning, capping two late comebacks that gave Kansas City a 9-8 victory Tuesday night in the AL wild-card game.