Entropy localization in magnetic compounds and thin-film nanostructures