means the same as "tough luck" or "bad luck!"
Woman: "How'd you get on with the driving test?"
Man: "I failed"
Woman: "aww, hard lines!"
Bad luck, usually not due to ones own fault.
Footballer 1: *Pass gets intercepted*
Footballer 2: “That’s hard lines”