The lining of the pericardium directly adjacent (viscerale) to the outside of the heart, which is connected to the myocardium connective tissue is firmly attached.
https://flexikon.doccheck.com/en/Epicardium (© DocCheck Flexikon)