/* =========================================================
   /players directory — scoped modern UI, Material 3 dark
   All custom tokens match code.html tailwind.config.
   ========================================================= */

.enp-players-dir {
	color: #f1f3fc;
}
.enp-players-dir a { color: inherit; }

/* ---- Hero ---- */
.enp-dir-hero {
	min-height: 520px;
	background: #0a0e14;
	isolation: isolate;
}
.enp-dir-hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: .35;
	filter: grayscale(.4) contrast(1.05);
	z-index: 0;
}
.enp-dir-hero__veil {
	position: absolute; inset: 0; z-index: 1;
	background:
		radial-gradient(1200px 520px at 20% 10%, rgba(202, 253, 0, .08), transparent 60%),
		linear-gradient(180deg, rgba(10,14,20,.3) 0%, rgba(10,14,20,.85) 60%, #0a0e14 100%);
}
.enp-dir-hero__title {
	font-family: 'Manrope', sans-serif;
	color: #f1f3fc;
	text-shadow: 0 2px 40px rgba(0,0,0,.6);
}
.enp-grad-text {
	background: linear-gradient(90deg, #cafd00 0%, #afffd1 60%, #f3ffca 100%);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* ---- Hero stats ---- */
.enp-hero-stats { position: relative; z-index: 2; }
.enp-hero-stat {
	display: flex; gap: 14px; align-items: center;
	padding: 18px 20px;
	background: linear-gradient(140deg, rgba(21,26,33,.9), rgba(27,32,40,.8));
	border: 1px solid rgba(202, 253, 0, .12);
	border-radius: .75rem;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.enp-hero-stat::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(202,253,0,.14), transparent 45%);
	opacity: 0; transition: opacity .4s;
}
.enp-hero-stat:hover {
	transform: translateY(-3px);
	border-color: rgba(202,253,0,.35);
	box-shadow: 0 10px 30px -10px rgba(202,253,0,.25);
}
.enp-hero-stat:hover::before { opacity: 1; }
.enp-hero-stat__icon {
	width: 44px; height: 44px; flex-shrink: 0;
	border-radius: .75rem;
	background: rgba(202, 253, 0, .1);
	color: #cafd00;
	display: grid; place-items: center;
}
.enp-hero-stat__icon .material-symbols-outlined { font-size: 22px; }
.enp-hero-stat__label {
	font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
	color: #a8abb3; margin-bottom: 4px;
}
.enp-hero-stat__value {
	font-family: 'Manrope', sans-serif; font-weight: 800;
	font-size: 28px; line-height: 1; color: #f3ffca;
	font-variant-numeric: tabular-nums;
}

/* ---- Tabs (sticky jump nav) ---- */
.enp-dir-tabs {
	position: relative; z-index: 3;
}
.enp-tab {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px; border-radius: 999px;
	background: rgba(21, 26, 33, .7);
	border: 1px solid rgba(255,255,255,.06);
	color: #a8abb3;
	font-weight: 600; font-size: 13px;
	backdrop-filter: blur(8px);
	transition: all .25s ease;
	text-decoration: none;
}
.enp-tab .material-symbols-outlined { font-size: 16px; color: #cafd00; }
.enp-tab:hover {
	background: #cafd00; color: #3a4a00; border-color: transparent;
	transform: translateY(-1px);
}
.enp-tab:hover .material-symbols-outlined { color: #3a4a00; }

/* ---- Board section headers ---- */
.enp-board-header { max-width: 768px; }
.enp-board-section, .enp-browse-section {
	opacity: 0; transform: translateY(16px);
	animation: enp-rise .6s cubic-bezier(.2,.8,.2,1) forwards;
	animation-delay: .05s;
}
.enp-browse-section { animation-delay: .1s; }
@keyframes enp-rise { to { opacity: 1; transform: none; } }

/* ---- Podium ---- */
.enp-podium { position: relative; }
.enp-podium__card {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	text-align: center;
	padding: 32px 22px 26px;
	border-radius: 1rem;
	background: linear-gradient(160deg, #151a21, #0f141a);
	border: 1px solid rgba(255,255,255,.06);
	text-decoration: none;
	overflow: hidden;
	transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.enp-podium__card::before {
	content: ""; position: absolute; inset: -1px;
	border-radius: inherit; padding: 1px;
	background: linear-gradient(135deg, var(--medal, #cafd00), transparent 60%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: .55; transition: opacity .4s;
	pointer-events: none;
}
.enp-podium__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px -20px rgba(var(--medal-glow, 202, 253, 0), .35);
}
.enp-podium__card:hover::before { opacity: 1; }
.enp-podium__card--gold   { --medal: #f3ffca; --medal-glow: 202,253,0; }
.enp-podium__card--silver { --medal: #cdd5e6; --medal-glow: 205,213,230; }
.enp-podium__card--bronze { --medal: #ffd2c8; --medal-glow: 255,210,200; }
.enp-podium__card--gold   { transform: translateY(-16px) scale(1.03); }
.enp-podium__card--gold:hover { transform: translateY(-22px) scale(1.03); }

@media (max-width: 767px) {
	.enp-podium__card--gold { transform: none; order: -1; }
	.enp-podium__card--gold:hover { transform: translateY(-4px); }
}

.enp-podium__rank {
	position: absolute; top: 14px; left: 18px;
	font-family: 'Manrope'; font-weight: 800;
	font-size: 42px; line-height: 1;
	color: var(--medal);
	opacity: .35;
}
.enp-podium__card--gold .enp-podium__rank { opacity: .55; font-size: 48px; }

.enp-podium__face {
	width: 80px; height: 80px;
	border-radius: 999px;
	background: #20262f;
	display: grid; place-items: center;
	margin-bottom: 16px;
	overflow: hidden;
	box-shadow: 0 12px 30px -10px rgba(0,0,0,.6), 0 0 0 2px var(--medal) inset;
}
.enp-podium__card--gold .enp-podium__face {
	width: 96px; height: 96px;
	box-shadow: 0 16px 40px -12px rgba(202,253,0,.4), 0 0 0 2px var(--medal) inset;
}
.enp-podium__flag {
	width: 100%; height: 100%;
	object-fit: cover;
}

.enp-podium__name {
	font-family: 'Manrope'; font-weight: 800;
	font-size: 18px; color: #f1f3fc;
	margin-bottom: 4px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	max-width: 100%;
}
.enp-podium__card--gold .enp-podium__name { font-size: 22px; }
.enp-podium__club {
	font-size: 12px; color: #a8abb3;
	margin-bottom: 16px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	max-width: 100%;
}
.enp-podium__value {
	font-family: 'Manrope'; font-weight: 800;
	font-size: 22px;
	color: #cafd00;
	font-variant-numeric: tabular-nums;
}
.enp-podium__card--gold .enp-podium__value { font-size: 28px; }
.enp-podium__unit { font-size: .5em; color: #a8abb3; margin-left: 2px; font-weight: 600; }

/* ---- Leaderboard (4–50) ---- */
.enp-leaderboard {
	background: #151a21;
	border: 1px solid rgba(255,255,255,.05);
	border-radius: .75rem;
	overflow: hidden;
}
.enp-leaderboard__head {
	display: grid;
	grid-template-columns: 56px 1fr 180px 140px;
	gap: 8px;
	padding: 14px 24px;
	background: #0f141a;
	color: #a8abb3;
	font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
	font-weight: 700;
	border-bottom: 1px solid rgba(255,255,255,.04);
}
@media (max-width: 767px) {
	.enp-leaderboard__head { grid-template-columns: 48px 1fr 100px; padding: 12px 16px; }
	.enp-leaderboard__head > span:nth-child(3) { display: none; }
}
.enp-leaderboard__body { max-height: 640px; overflow-y: auto; }
.enp-leaderboard__body::-webkit-scrollbar { width: 8px; }
.enp-leaderboard__body::-webkit-scrollbar-track { background: transparent; }
.enp-leaderboard__body::-webkit-scrollbar-thumb {
	background: rgba(202,253,0,.25); border-radius: 4px;
}
.enp-leaderboard__body::-webkit-scrollbar-thumb:hover { background: rgba(202,253,0,.55); }

.enp-leaderboard__row {
	display: grid;
	grid-template-columns: 56px 1fr 180px 140px;
	gap: 8px;
	align-items: center;
	padding: 14px 24px;
	border-bottom: 1px solid rgba(255,255,255,.04);
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	transition: background .2s, padding-left .25s;
}
.enp-leaderboard__row:hover {
	background: #1b2028;
	padding-left: 32px;
}
.enp-leaderboard__row:hover .enp-leaderboard__name { color: #cafd00; }
@media (max-width: 767px) {
	.enp-leaderboard__row { grid-template-columns: 48px 1fr 100px; padding: 12px 16px; }
	.enp-leaderboard__row > .enp-leaderboard__club { display: none !important; }
}
.enp-leaderboard__rank {
	font-family: 'Manrope'; font-weight: 800;
	color: #a8abb3;
	font-variant-numeric: tabular-nums;
}
.enp-leaderboard__player {
	display: flex; align-items: center; gap: 12px;
	min-width: 0;
}
.enp-leaderboard__flag {
	width: 28px; height: auto;
	border-radius: 3px;
	flex-shrink: 0;
	box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.enp-leaderboard__name {
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	transition: color .2s;
}
.enp-leaderboard__club {
	color: #a8abb3;
	font-size: 13px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.enp-leaderboard__value {
	font-family: 'Manrope'; font-weight: 800;
	color: #cafd00;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ---- Browse section ---- */
.enp-browse-block { }
.enp-browse-title {
	display: flex; align-items: center; gap: 10px;
	font-family: 'Manrope'; font-weight: 700;
	font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
	color: #a8abb3;
	margin-bottom: 16px;
}
.enp-browse-title .material-symbols-outlined {
	font-size: 20px; color: #cafd00;
}

.enp-chip-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}
.enp-chip-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.enp-chip {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 16px;
	background: #151a21;
	border: 1px solid rgba(255,255,255,.05);
	border-radius: .75rem;
	text-decoration: none; color: inherit;
	font-weight: 600; font-size: 14px;
	transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
	position: relative;
	overflow: hidden;
}
.enp-chip::after {
	content: ""; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(202,253,0,.15) 0%, transparent 70%);
	opacity: 0; transition: opacity .35s;
}
.enp-chip:hover {
	transform: translateY(-2px);
	border-color: rgba(202,253,0,.35);
	background: #1b2028;
}
.enp-chip:hover::after { opacity: 1; }
.enp-chip__icon {
	width: 32px; height: 32px;
	flex-shrink: 0;
	border-radius: .5rem;
	background: rgba(202,253,0,.08);
	color: #cafd00;
	display: grid; place-items: center;
	overflow: hidden;
}
.enp-chip__icon .material-symbols-outlined { font-size: 18px; }
.enp-chip__icon--img { background: #0f141a; padding: 0; }
.enp-chip__icon--img img { width: 100%; height: 100%; object-fit: cover; }
.enp-chip__label {
	flex: 1;
	min-width: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	color: #f1f3fc;
}
.enp-chip__count {
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(202,253,0,.1);
	color: #cafd00;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.enp-chip--position .enp-chip__icon { background: rgba(175,255,209,.08); color: #afffd1; }
.enp-chip--position .enp-chip__count { background: rgba(175,255,209,.08); color: #afffd1; }

/* ---- Mobile polish ---- */
@media (max-width: 767px) {
	.enp-dir-hero__title { font-size: 2.5rem; }
	.enp-hero-stat { padding: 14px 16px; }
	.enp-hero-stat__value { font-size: 22px; }
	.enp-podium__card { padding: 24px 16px 20px; }
	.enp-chip-grid, .enp-chip-grid--compact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.enp-chip-grid, .enp-chip-grid--compact { grid-template-columns: 1fr; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.enp-board-section, .enp-browse-section { animation: none; opacity: 1; transform: none; }
	.enp-hero-stat, .enp-podium__card, .enp-chip, .enp-leaderboard__row, .enp-tab { transition: none; }
}
