Text this: Heat generation in spatially confined solids through electronic light scattering