I agree, incredibly poor officiating, firstly not offside, should take ten seconds to conclude that.
Even then, clearly deliberate play, based on distance, the defender's issue was poor technique, used wrong foot to attmept to kick the ball.
Were the offcials reading the law book or looking at...