Jihadists planned for six months to fill three vans and carry out deadly attacks, police say.
The German-Turkish writer must stay in Madrid while Turkey considers requesting his extradition.
Cameron Russell, 20, from Dalry in Ayrshire, died after an incident in the Sunny Beach resort.
Where the attacks leaves Catalan independence
The brainwashed teens fleeing to Europe
Spanish custody battle sends mother into hiding
Barcelona rejects hate after attacks
The hackers targeting shipping companies
Anti-terror focus switched from Eta to jihadists
Broadcast time 21:06 BST - 22:00 BST
Broadcast time 23:06 BST - 23:20 BST
Broadcast time 02:06 BST - 02:30 BST
Broadcast time 03:06 BST - 03:30 BST