/* GamePort IGDB Games: product page. Turn off in WooCommerce → IGDB Games when the theme styles these parts. */

.gpigdb-score { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; line-height: 1.25; }
.gpigdb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 6px; border-radius: 6px; font-size: 22px; font-weight: 700; color: #fff; background: #5c6370; }
.gpigdb-badge.gpigdb-hi { background: #1b7f3b; }
.gpigdb-badge.gpigdb-mid { background: #8a6100; }
.gpigdb-badge.gpigdb-lo { background: #b3261e; }
.gpigdb-score-label { font-weight: 600; }
.gpigdb-score-label small { display: block; font-weight: 400; opacity: .8; }
.gpigdb-genres { opacity: .85; }

.gpigdb-media-sec,
.gpigdb-facts-sec { clear: both; margin: 32px 0; }

.gpigdb-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gpigdb-trailer,
.gpigdb-player { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.gpigdb-trailer img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .15s; }
.gpigdb-trailer:hover img,
.gpigdb-trailer:focus-visible img { opacity: 1; }
.gpigdb-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, .75); }
.gpigdb-play svg { fill: #fff; }
.gpigdb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.gpigdb-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gpigdb-shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gpigdb-shots img { display: block; width: 100%; height: auto; border-radius: 6px; }

.gpigdb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 0 0 12px; }
.gpigdb-facts div { margin: 0; }
.gpigdb-facts dt { font-size: 13px; font-weight: 400; opacity: .75; }
.gpigdb-facts dd { margin: 0; font-weight: 600; }
.gpigdb-credit { font-size: 13px; opacity: .85; }

@media (prefers-reduced-motion: reduce) {
	.gpigdb-trailer img { transition: none; }
}
