Text this: Molecular states with charm: Insights from vacuum and finite-temperature analyses