KANSAS CITY, Mo. — Jose Ramirez hit a go-ahead homer in the 14th inning and the Indians held on to beat the Kansas City Royals 5-4 Thursday night in a game that lasted just shy of five hours and finished after midnight.