Here’s a nice 10-minute short from Facts Factory, “The Ten Most Dangerous and Extreme Railways in the World”.
One of these is a railroad in Thailand, where housing obstacles in a poor neighborhood are removed so that a train can pass. There are three trains through the Andes, one in Peru used to be the highest in the world. There are a couple of funiculars or cog railways to go up steep grades (Mount Washington NH didn’t make the list). There are a couple in Bangladesh and India where people ride on the roof and fall off.