Locked-room mystery
The "locked-room" or "impossible crime" mystery is a subgenre of detective fiction in which a crime is committed in circumstances under which it was seemingly impossible for the perpetrator to commit the crime or evade detection in the course of getting in and out of the crime scene.