Phantom cosmology with general potentials