Cards hold off Pirates in extras, win series