Wilson Ramos hit a three-run homer, five Tampa Bay pitchers combined on a five-hitter and the Rays beat the Detroit Tigers 5-2 Tuesday night. The Rays (47-44) moved three games above .500 for the first time since Aug. 6 last year after posting their 13th win in the last 14 home games. Tampa Bay lost its bid for a third shutout in four games when the Tigers scored twice in the ninth. After blanking the Mets in New York on Saturday and Sunday, the Rays outslugged the Tigers 10-9 in 10 innings Monday night. Detroit didn’t get its second hit until John Hicks’ two-out infield single in the seventh against Adam Kolarek, who allowed Nicholas Castellanos’ RBI double and a run-scoring single by Goodrum in ninth. Matt Boyd gave up five runs and four hits in six innings. The lefty is 0-4 over his last six starts, allowing 28 runs in 28 innings during that stretch. The skidding Tigers have lost 17 of 21.