Inspired by their superb attack, Liverpool survived a late wobble to inflict the first league defeat of the season on Pep Guardiola’s runaway leaders, who more than played their part in a seven-goal thriller