/* GamePix Loader — front-end styles */

.gpxldr-wrap {
	max-width: 100%;
	margin: 0 auto;
}

.gpxldr-grid {
	display: grid;
	grid-template-columns: repeat(var(--gpxldr-columns, 4), 1fr);
	gap: 18px;
	margin: 10px 0 24px;
}

@media (max-width: 900px) {
	.gpxldr-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}
}

@media (max-width: 600px) {
	.gpxldr-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

.gpxldr-card {
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	background: #14162b;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	outline: none;
}

.gpxldr-card:hover,
.gpxldr-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.gpxldr-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #000;
}

.gpxldr-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gpxldr-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.gpxldr-card:hover .gpxldr-play,
.gpxldr-card:focus-visible .gpxldr-play {
	opacity: 1;
}

.gpxldr-info {
	padding: 10px 12px;
}

.gpxldr-title {
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gpxldr-cat {
	font-size: 11px;
	color: #9aa0b4;
	margin-top: 3px;
	text-transform: capitalize;
}

.gpxldr-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 10px 0 30px;
	flex-wrap: wrap;
}

.gpxldr-btn {
	padding: 9px 20px;
	background: #4a47f5;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border: none;
	cursor: pointer;
}

.gpxldr-btn:hover {
	background: #3835c7;
}

.gpxldr-btn-disabled {
	background: #cfd0e6;
	color: #8a8ca8 !important;
	cursor: default;
}

.gpxldr-page-indicator {
	font-size: 14px;
	color: #666;
}

/* Play modal */
.gpxldr-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.gpxldr-modal.gpxldr-open {
	display: flex;
}

.gpxldr-modal-inner {
	position: relative;
	width: 100%;
	max-width: 1000px;
}

.gpxldr-iframe-wrap {
	width: 100%;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.gpxldr-iframe-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.gpxldr-close {
	position: absolute;
	top: -42px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	line-height: 1;
	padding: 6px;
}
