/* ==========================================================================
   Team profile pages (a-team.html, academy.html)
   ========================================================================== */

.team-hero {
	position: relative;
	padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(70% 100% at 15% 0%, rgba(255, 59, 92, 0.18), transparent 60%),
		radial-gradient(60% 90% at 90% 20%, rgba(139, 92, 246, 0.16), transparent 60%),
		var(--bg-2);
	overflow: hidden;
}

.team-hero--academy {
	background:
		radial-gradient(70% 100% at 15% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
		radial-gradient(60% 90% at 90% 20%, rgba(255, 59, 92, 0.14), transparent 60%),
		var(--bg-2);
}

.team-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: end;
}

.team-hero h1 {
	font-size: clamp(2.75rem, 7vw, 5.5rem);
	line-height: 0.9;
}

.team-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.pill {
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.pill--live {
	border-color: rgba(255, 59, 92, 0.5);
	background: var(--accent-soft);
	color: var(--accent);
}

.team-hero__art {
	position: relative;
	margin: 0;
}

.team-hero__art img {
	width: 100%;
	object-fit: contain;
	object-position: bottom;
	filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
}

/* see section.css — same placeholder silhouette, re-tinted for the main roster */
.team-hero__art img.is-silhouette {
	filter: hue-rotate(22deg) saturate(1.2) drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
}

/* ---------------------------------------------------------- Roster grid */

.roster {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.player {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: 1.75rem 1rem 1.5rem;
	text-align: center;
}

.player__avatar {
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	margin-bottom: 0.75rem;
	border-radius: 50%;
	border: 1px solid var(--line);
	background:
		radial-gradient(70% 70% at 50% 30%, rgba(255, 59, 92, 0.18), transparent 70%),
		var(--surface-2);
	transition: border-color var(--fast), transform var(--fast);
}

.player__avatar img {
	width: 34px;
	height: 34px;
	filter: invert(1);
	opacity: 0.45;
	transition: opacity var(--fast);
}

.player:hover .player__avatar {
	border-color: var(--accent);
	transform: translateY(-3px);
}

.player:hover .player__avatar img {
	opacity: 0.9;
}

.player__number {
	position: absolute;
	top: 0.75rem;
	left: 0.9rem;
	font-family: var(--font-display);
	font-size: 1.6rem;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px var(--line-strong);
}

.player__name {
	font-family: var(--font-display);
	font-size: 1.35rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	word-break: break-word;
}

.player__role {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--dim);
}

/* open-slot card on the academy page */
.player--open .player__avatar {
	border-style: dashed;
	border-color: var(--line-strong);
	background: transparent;
}

.player--open .player__name {
	color: var(--muted);
}

.player--open:hover .player__avatar {
	border-color: var(--accent-2);
}

.stack-links {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-top: 1.5rem;
}

/* -------------------------------------------------------------- Info box */

.info {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.info__panel {
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.info__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--line);
	font-size: 0.85rem;
}

.info__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.info__row:first-child {
	padding-top: 0;
}

.info__row dt {
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--dim);
}

.info__row dd {
	margin: 0;
	font-weight: 500;
	text-align: right;
}

.info__panel dl {
	margin: 0;
}

@media (max-width: 1000px) {
	.roster {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	.team-hero__inner,
	.info {
		grid-template-columns: 1fr;
	}

	.team-hero__art {
		display: none;
	}
}

@media (max-width: 560px) {
	.roster {
		grid-template-columns: repeat(2, 1fr);
	}
}
