Phillies lose to Pirates, 6-5