Viral phylodynamics of host adaptation and antigenic evolution