A piece of feathered dinosaur tail has been found trapped in amber and perfectly preserved for almost 100 million years.

Despite the yawning gulf of time, individual feather fronds can easily be identified. The specimen has even retained signs of its original colour and traces of blood.

Scientists believe the tail belonged to a small juvenile cousin of Tyrannosaurus rex that lived in Asia 99 million years ago.

The 3.6cm lump of amber, which is hardened tree resin, was discovered in a market in Myitkyina, Burma, last year where it had been offered for sale as a curiosity or item of jewellery.

The fossil within it, described as "astonishing" by researchers, was originally mistaken for plant material.

Microscopic examination and CT (computed tomography) X-ray scans confirmed that the tail had come from a flightless dinosaur and not an early species of bird.

Professor Mike Benton, from the School of Earth Sciences at the University of Bristol, said: "It's amazing to see all the details of a dinosaur tail - the bones, flesh, skin and feathers - and to imagine how this little fellow got his tail caught in the resin, and then presumably died because he could not wrestle free.

"There's no thought that dinosaurs could shed their tails, as some lizards do today."

The Bristol team joined colleagues from China and Canada to carry out the analysis, reported in the journal Current Biology.

The specimen consists of eight vertebrae, but is thought to be just a fragment of a complete tail that may have been three times longer.

By looking at the structure of the bones, scientists were able to discount any possibility that it was from a bird.

Dr Ryan McKellar, from the Royal Saskatchewan Museum in Canada, said: "We can be sure of the source because the vertebrae are not fused into a rod, or pygostyle, as in modern birds and their closest relatives. Instead, the tail is long and flexible, with keels of feathers running down each side.

"In other words, the feathers definitely are those of a dinosaur, not a prehistoric bird."

Chemical analysis showed that the soft tissue layer around the bones retained traces of ferrous iron - residue from the animal's blood.

The dinosaur was a "theropod", the large family of mostly carnivorous two-legged beasts to which T. rex belonged.

Writing in the journal, they concluded: "The theropod tail reported here is an astonishing fossil, highlighting the unique preservation potential of amber."

The experts believe the dinosaur belonged to the theropod sub-group of coelurosaurs, which included tyrannosaurs.