Barcelona survived a late Panathinaikos onslaught to claim an 80-76 win in round two of the Euroleague Top 16.