.a2z-top-players {
	--a2z-stat-row-h: 34px;
	margin: 0 0 32px;
}

.a2z-top-players__heading {
	margin: 0 0 20px;
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 700;
	color: #fff;
}

.a2z-top-players__grid {
	display: grid;
	gap: 20px;
	align-items: stretch;
}

.a2z-top-players__grid--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.a2z-top-players__grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a2z-top-players__grid--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a2z-top-player-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	padding: 16px;
	border: 1px solid #4a4868;
	border-radius: 10px;
	background: #2a2843;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

.a2z-top-player-card__rank {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 999px;
	background: #008751;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.a2z-top-player-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	min-height: 72px;
	margin: 0 0 12px;
	padding-right: 40px;
}

.a2z-top-player-card__photo,
.a2z-top-player-card__photo-fallback {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex: 0 0 auto;
	object-fit: cover;
}

.a2z-top-player-card__photo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #3c3b5b;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
}

.a2z-top-player-card__identity {
	min-width: 0;
}

.a2z-top-player-card__name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.a2z-top-player-card__name a {
	color: #fff;
	text-decoration: none;
}

.a2z-top-player-card__name a:hover {
	color: #00ff85;
}

.a2z-top-player-card__score {
	margin: 0;
	min-height: 16px;
	font-size: 12px;
	color: #9e9caa;
}

.a2z-top-player-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex: 0 0 auto;
	height: 42px;
	margin: 0 0 12px;
	padding: 0 10px;
	list-style: none;
	border-radius: 8px;
	background: #323150;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.a2z-top-player-card__meta-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	flex: 1 1 0;
	cursor: default;
}

.a2z-top-player-card__flag,
.a2z-top-player-card__club-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
	border-radius: 3px;
}

.a2z-top-player-card__club-logo {
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.a2z-top-player-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #9e9caa;
}

.a2z-top-player-card__jersey,
.a2z-top-player-card__position {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: #fff;
	line-height: 1;
}

.a2z-top-player-card__jersey svg,
.a2z-top-player-card__position svg {
	flex: 0 0 auto;
	color: #00ff85;
}

.a2z-top-player-card__jersey em {
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
	min-width: 12px;
	text-align: center;
}

.a2z-top-player-card__tabs {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.a2z-top-player-card__panels {
	flex: 0 0 auto;
	width: 100%;
	height: calc(var(--a2z-stat-row-h) * 5);
	min-height: calc(var(--a2z-stat-row-h) * 5);
	max-height: calc(var(--a2z-stat-row-h) * 5);
	margin: 0 0 12px;
	overflow: hidden;
}

.a2z-top-player-card__panel {
	display: none !important;
	width: 100%;
	height: 100%;
	max-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-sizing: border-box;
	scrollbar-width: none;
}

.a2z-top-player-card__panel.is-active {
	display: block !important;
}

.a2z-top-player-card__panel[hidden] {
	display: none !important;
}

.a2z-top-player-card__panel:hover,
.a2z-top-player-card__panel:focus-within {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 255, 133, 0.55) rgba(255, 255, 255, 0.06);
}

.a2z-top-player-card__panel::-webkit-scrollbar {
	width: 0;
}

.a2z-top-player-card__panel:hover::-webkit-scrollbar,
.a2z-top-player-card__panel:focus-within::-webkit-scrollbar {
	width: 4px;
}

.a2z-top-player-card__panel::-webkit-scrollbar-track {
	background: transparent;
}

.a2z-top-player-card__panel:hover::-webkit-scrollbar-track,
.a2z-top-player-card__panel:focus-within::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 999px;
}

.a2z-top-player-card__panel::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 999px;
}

.a2z-top-player-card__panel:hover::-webkit-scrollbar-thumb,
.a2z-top-player-card__panel:focus-within::-webkit-scrollbar-thumb {
	background: rgba(0, 255, 133, 0.55);
}

.a2z-top-player-card__panel::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}

.a2z-top-player-card__stats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.a2z-top-player-card__stats li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: var(--a2z-stat-row-h);
	min-height: var(--a2z-stat-row-h);
	max-height: var(--a2z-stat-row-h);
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-sizing: border-box;
}

.a2z-top-player-card__stats li:last-child {
	border-bottom: 0;
}

.a2z-top-player-card__stats span {
	font-size: 12px;
	color: #b8b6c8;
	line-height: 1.3;
}

.a2z-top-player-card__stats strong {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
}

.a2z-top-player-card__stats strong small {
	margin-left: 2px;
	font-size: 10px;
	font-weight: 600;
	color: #9e9caa;
}

.a2z-top-player-card__tablist {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	flex: 0 0 auto;
	margin-top: auto;
}

.a2z-top-player-card__tab {
	appearance: none;
	outline: none;
	border: 1px solid #4a4868;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
	color: #b8b6c8;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 8px 6px;
	min-height: 36px;
	cursor: pointer;
	box-shadow: none;
}

.a2z-top-player-card__tab:hover {
	border-color: #5c5a7a;
	color: #fff;
}

.a2z-top-player-card__tab:focus,
.a2z-top-player-card__tab:focus-visible {
	outline: none;
	box-shadow: none;
}

.a2z-top-player-card__tab.is-active {
	background: #008751;
	border-color: #008751;
	color: #fff;
}

.a2z-grade {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	border-radius: 6px;
	font-size: 12px;
}

.a2z-grade--a {
	background: rgba(0, 135, 81, 0.25);
	color: #00ff85;
}

.a2z-grade--b {
	background: rgba(77, 163, 255, 0.2);
	color: #4da3ff;
}

.a2z-grade--c {
	background: rgba(255, 193, 7, 0.18);
	color: #ffc107;
}

.a2z-grade--d {
	background: rgba(255, 111, 111, 0.18);
	color: #ff8f8f;
}

.a2z-top-player-card__empty {
	margin: 0;
	font-size: 13px;
	color: #9e9caa;
}

.a2z-top-players--empty {
	padding: 24px;
	border: 1px solid #4a4868;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: #9e9caa;
	text-align: center;
}

@media (max-width: 1199px) {
	.a2z-top-players__grid--cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.a2z-top-players__grid--cols-4,
	.a2z-top-players__grid--cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.a2z-top-players__grid--cols-4,
	.a2z-top-players__grid--cols-3,
	.a2z-top-players__grid--cols-2 {
		grid-template-columns: 1fr;
	}
}
