.wppl-player-cards {
	position: relative;
	width: 100%;
	--wppl-pc-glow-color: #F1C40F;
	box-sizing: border-box;
}

.wppl-player-cards *,
.wppl-player-cards *::before,
.wppl-player-cards *::after {
	box-sizing: border-box;
}

/* ---- Track ---- */

.wppl-pc-track {
	display: flex;
	align-items: stretch;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 4px 2px 14px;
}

.wppl-pc-slider .wppl-pc-track {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-left: 4px;
	padding-right: 4px;
}

.wppl-pc-slider .wppl-pc-track::-webkit-scrollbar {
	display: none;
	height: 0;
}

/* Clones exist only so the slider can loop seamlessly; they're swapped out
   for the real card the moment they'd otherwise be settled on. */
.wppl-pc-clone {
	pointer-events: none;
}

.wppl-pc-slider {
	padding: 0 46px;
}

.wppl-pc-grid .wppl-pc-track {
	flex-wrap: wrap;
	justify-content: center;
	overflow: visible;
}

/* ---- Card ---- */

.wppl-pc-card {
	position: relative;
	flex-shrink: 0;
	width: 210px;
	min-width: 210px;
	max-width: 100%;
	background-color: #0B1E3C;
	border: 2px solid transparent;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	scroll-snap-align: center;
	box-shadow: 0 4px 14px rgba(4, 10, 22, 0.25);
}

a.wppl-pc-card {
	cursor: pointer;
}

.wppl-pc-card.is-mvp {
	width: 260px;
	min-width: 260px;
	box-shadow: 0 0 0 0 var(--wppl-pc-glow-color), 0 6px 20px rgba(4, 10, 22, 0.3);
}

.wppl-pc-card.is-mvp.has-glow {
	animation: wppl-pc-glow 2.4s ease-in-out infinite;
}

@keyframes wppl-pc-glow {
	0%, 100% {
		box-shadow: 0 0 10px 0 var(--wppl-pc-glow-color), 0 6px 20px rgba(4, 10, 22, 0.3);
	}
	50% {
		box-shadow: 0 0 28px 8px var(--wppl-pc-glow-color), 0 6px 20px rgba(4, 10, 22, 0.3);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wppl-pc-card.is-mvp.has-glow {
		animation: none;
		box-shadow: 0 0 18px 3px var(--wppl-pc-glow-color), 0 6px 20px rgba(4, 10, 22, 0.3);
	}
}

/* ---- Rank badge ---- */

.wppl-pc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
	background-color: #3B6EF5;
	color: #FFFFFF;
}

/* ---- Photo ---- */

.wppl-pc-photo-wrap {
	position: relative;
	width: 100%;
	height: 220px;
	overflow: hidden;
	flex-shrink: 0;
	background: linear-gradient(180deg, rgba(11, 30, 60, 0.2), rgba(11, 30, 60, 0.6));
}

.wppl-pc-card.is-mvp .wppl-pc-photo-wrap {
	height: 280px;
}

.wppl-pc-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Body ---- */

.wppl-pc-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.wppl-pc-name {
	font-size: 16px;
	font-weight: 800;
	color: #FFFFFF;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wppl-pc-card.is-mvp .wppl-pc-name {
	font-size: 19px;
}

.wppl-pc-team {
	font-size: 12px;
	font-weight: 600;
	color: #8A94A6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wppl-pc-divider {
	width: 32px;
	height: 3px;
	border-radius: 2px;
	background-color: #F1C40F;
	margin: 10px 0;
	flex-shrink: 0;
}

.wppl-pc-stats-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.wppl-pc-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wppl-pc-stat-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: #8A94A6;
	text-transform: uppercase;
	white-space: nowrap;
}

.wppl-pc-stat-value {
	font-size: 24px;
	font-weight: 800;
	color: #3B6EF5;
	line-height: 1;
}

.wppl-pc-card.is-mvp .wppl-pc-stat-value {
	color: #FFFFFF;
	font-size: 28px;
}

.wppl-pc-profile-icon,
.wppl-pc-mvp-badge {
	flex-shrink: 0;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.wppl-pc-profile-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid #3B6EF5;
	color: #3B6EF5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 0;
	border-left: none;
	margin-left: 12px;
}

.wppl-pc-mvp-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-align: center;
}

.wppl-pc-star {
	font-size: 18px;
	line-height: 1;
	color: #F1C40F;
}

.wppl-pc-mvp-label {
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.6px;
	color: #F1C40F;
	white-space: nowrap;
	text-transform: uppercase;
}

/* ---- Navigation arrows ---- */

.wppl-pc-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background-color: #FFFFFF;
	color: #0B1E3C;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(4, 10, 22, 0.2);
	z-index: 3;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	padding: 0;
}

.wppl-pc-nav:hover {
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 6px 18px rgba(4, 10, 22, 0.28);
}

.wppl-pc-nav:active {
	transform: translateY(-50%) scale(0.96);
}

.wppl-pc-nav-prev {
	left: 0;
}

.wppl-pc-nav-next {
	right: 0;
}

.wppl-pc-nav[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
	.wppl-pc-slider {
		padding: 0 38px;
	}
	.wppl-pc-nav {
		width: 34px;
		height: 34px;
		font-size: 18px;
	}
	.wppl-pc-badge {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}
	.wppl-pc-body {
		padding: 14px;
	}
	.wppl-pc-name {
		font-size: 14px;
	}
	.wppl-pc-card.is-mvp .wppl-pc-name {
		font-size: 16px;
	}
	.wppl-pc-stat-value {
		font-size: 20px;
	}
	.wppl-pc-card.is-mvp .wppl-pc-stat-value {
		font-size: 23px;
	}

	/* Size cards as a share of the visible track (not a fixed px width) so
	   one card shows fully and the next peeks in at the edge - a visual cue
	   that there's more to swipe through. Card Width/MVP Card Width controls
	   are overridden here on purpose: this peek layout is the intended
	   mobile behaviour regardless of the desktop width chosen. */
	.wppl-pc-slider .wppl-pc-card:not(.is-mvp) {
		width: 82% !important;
		min-width: 82% !important;
		scroll-snap-align: start;
	}
	.wppl-pc-slider .wppl-pc-card.is-mvp {
		width: 86% !important;
		min-width: 86% !important;
		scroll-snap-align: start;
	}
	.wppl-pc-slider .wppl-pc-track {
		padding-left: 4px;
		padding-right: 34px;
	}
}

@media (max-width: 480px) {
	.wppl-pc-slider {
		padding: 0 30px;
	}
	.wppl-pc-nav {
		width: 28px;
		height: 28px;
		font-size: 15px;
	}
	.wppl-pc-track {
		gap: 12px;
	}
}
