/* ==========================================================================
   Schedule page (program.html)
   ========================================================================== */

.page-head {
	padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
	padding-bottom: clamp(2rem, 4vw, 3rem);
	background:
		radial-gradient(70% 120% at 20% 0%, rgba(255, 59, 92, 0.16), transparent 60%),
		radial-gradient(50% 100% at 85% 10%, rgba(139, 92, 246, 0.14), transparent 60%),
		var(--bg-2);
	border-bottom: 1px solid var(--line);
}

.page-head h1 {
	font-size: clamp(2.75rem, 8vw, 6rem);
}

.page-head p {
	max-width: 52ch;
	margin-top: 1.25rem;
}

/* ------------------------------------------------------------------ Tabs */

.tabs {
	display: flex;
	gap: 0.4rem;
	margin-bottom: 2.5rem;
	padding: 0.35rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
}

.tab {
	padding: 0.6rem 1.4rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	transition: background var(--fast), color var(--fast);
}

.tab:hover {
	color: var(--text);
}

.tab.is-active {
	background: var(--accent);
	color: #fff;
}

/* ----------------------------------------------------------- Match cards */

.matches {
	display: grid;
	gap: 1rem;
}

.match {
	display: grid;
	grid-template-columns: 190px 1fr auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
}

/* left rail: date + competition */
.match__when {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-right: clamp(1rem, 3vw, 2.5rem);
	border-right: 1px solid var(--line);
}

.match__date {
	font-family: var(--font-display);
	font-size: 1.9rem;
	line-height: 1;
	letter-spacing: 0.04em;
}

.match__time {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent);
}

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

/* middle: the fixture */
.match__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: clamp(0.75rem, 2.5vw, 2rem);
}

.match__team {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.match__team--away {
	flex-direction: row-reverse;
	text-align: right;
}

.match__team img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	flex-shrink: 0;
	filter: invert(1);
}

/* opponent logos are supplied as full-colour artwork */
.match__team img.is-artwork {
	filter: none;
	border-radius: 4px;
}

.match__team span {
	font-family: var(--font-display);
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.match__vs {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--dim);
}

.match__score {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: 2rem;
	line-height: 1;
}

/* right: action */
.match__watch {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.3rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background var(--fast), border-color var(--fast), transform var(--fast);
}

/* pink-artwork icon flattened to white — see .social in style.css */
.match__watch img {
	width: 17px;
	height: 17px;
	filter: brightness(0) invert(1);
	opacity: 0.75;
}

.match__watch:hover {
	background: #9146ff;
	border-color: #9146ff;
	transform: translateY(-2px);
}

.match__watch:hover img {
	opacity: 1;
}

/* ---------------------------------------------------------- Empty state */

.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: clamp(3rem, 7vw, 5rem) 1.5rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	text-align: center;
	background: var(--surface);
}

.empty img {
	width: 52px;
	height: 52px;
	filter: invert(1);
	opacity: 0.2;
}

.empty h3 {
	font-size: 1.5rem;
}

.empty p {
	max-width: 42ch;
}

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

@media (max-width: 1000px) {
	.match {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		text-align: center;
	}

	.match__when {
		align-items: center;
		padding-right: 0;
		padding-bottom: 1.25rem;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.match__watch {
		justify-self: center;
	}
}

@media (max-width: 620px) {
	.match__teams {
		gap: 0.5rem;
	}

	.match__team {
		flex-direction: column;
		gap: 0.6rem;
	}

	.match__team--away {
		flex-direction: column;
	}

	.match__team span {
		font-size: 1.05rem;
	}

	.match__team img {
		width: 44px;
		height: 44px;
	}
}
