A 22-year-old male presents with acute scrotal pain after a twisting injury during football. On examination, the left testicle is swollen, tender, high-riding, and has a horizontal lie (bell-clapper deformity). The cremasteric reflex is absent on the left. Prehn's sign is negative (elevation does not relieve pain). What is the diagnosis and what is the surgical time window?