We investigate the spectra of heavy quarkonia–charmonium ( \(c\bar{c}\) ) and bottomonium ( \(b\bar{b}\) ) by solving the Klein–Gordon equation in D dimensions with a potential combining equal scalar–vector quadratic confinement and a modified screened Yukawa core. Using the Nikiforov–Uvarov method, we derive closed-form expressions for bound-state energies and wave functions, applicable in both relativistic and nonrelativistic regimes. We test the model against PDG-2024 data in two complementary ways: first, by fitting each sector independently (‘non-joint’) and second, by enforcing a common parameter set across both families (‘joint’). Analyses are performed for individual resonances and for spin-averaged center-of-gravity (COG) masses, which minimize hyperfine effects and reveal the underlying level structure. Non-joint fits reproduce each spectrum with typical absolute deviations of \(\mathcal {O}(0.1)\) GeV. The joint COG fit, based on 15 data points (8 for \(c\bar{c}\) , 7 for \(b\bar{b}\) ), achieves \(\chi ^2_{\textrm{tot}}=1.1584\) for 6 degree of freedom, corresponding to \(\chi ^2/\textrm{pt}=0.077\) and \(\chi ^2/\textrm{dof}=0.193\) . With this strategy (common parameters and COG inputs with sector-specific theory uncertainties), most residuals lie in the 0.02−0.23 GeV range. The largest occur in higher radial excitations: the \(b\bar{b}\) 3S and 4S levels are overestimated (underbound) by \({\sim }0.23~\textrm{GeV}\) and the \(c\bar{c}\) 4S lies \({\sim }0.18\) GeV high. The \(b\bar{b}\) 1P centroid is underestimated by \({\sim }0.15\) GeV. These patterns suggest that physics beyond a common-parameter static potential, e.g., mild flavor dependence in screening/curvature or threshold-induced coupled-channel effects, becomes relevant at intermediate radii, especially for excited S waves. The model further predicts unobserved levels: \(c\bar{c}(1F)\approx 4.124\) GeV and \(b\bar{b}(1D,2D,1F)\approx (10.132,10.545,10.450)\) GeV, with estimated theoretical uncertainties of 0.10−0.20 GeV. Overall, compact static potentials capture the gross spectral structure across quark flavors while highlighting where dynamical refinements, such as flavor-sensitive screening and coupled-channel effects, will be most impactful for future theory and experiment.