Nanoporous platinum broadband absorber has attracted interest in thermosensorics and IR photodetection due to its unique properties. In this work we report the physical mechanism underlying broadband absorption in electrochemically-grown, nanoporous Pt films by analyzing NIR-ViS-UV spectral ellipsometry data of nanoporous Pt films in dependence on the Pt film thickness (27, 35, 38, 48nm). For the two thinner films a single layer model with a graded optical index Pt surface layer was used. For the two thicker films a two-layer optical model with a constant optical index Pt substrate layer and a graded optical index Pt surface layer was used. The graded optical index of the Pt surface layer reduces surface reflectivity and the constant optical index Pt substrate layer supports multiple reflections in the Pt film. Finally, we relate the thickness dependent optical index with the nanostructure of the nanoporous Pt film, which can be controlled in the electrochemical growth process. We observed that while in the transverse plane the multilayer exhibits graded refractive index, in the top horizontal planes the multilayer assembly exhibits discontinuous refractive index values due to the distribution of platinum crystal islands in air, which allows a metamaterial behavior of the whole system.