.league-forge-container {
	container-type: inline-size;
}

.league-forge-container h1 { font-size: 1.8rem; }
.league-forge-container h2 { font-size: 1.5rem; }
.league-forge-container h3 { font-size: 1.2rem; }
.league-forge-container h4 { font-size: 1.05rem; }

.league-forge-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.league-forge-card {
	overflow: hidden;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.league-forge-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.league-forge-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f6f7f7;
}

.league-forge-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.league-forge-card__body {
	padding: 16px;
}

.league-forge-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.league-forge-card__title strong {
	display: block;
	color: var(--lf-ink);
	font-weight: 800;
}

.league-forge-card__meta {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--lf-muted);
	margin-bottom: 3px;
}

.league-forge-card__image--league img {
	object-fit: contain;
	padding: 15%;
	background: #fff;
}

.league-forge-card__excerpt {
	margin: 8px 0 0;
}

.league-forge-empty {
	margin: 0;
}

.league-forge-page-header {
	text-align: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.league-forge-page-logo {
	max-width: 100px;
	height: auto;
	margin-bottom: 15px;
}

.league-forge-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 100%;
	margin: 20px auto 0;
	padding: 6px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	font-weight: 700;
}

.league-forge-nav a,
.league-forge-nav span {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--lf-brand);
	line-height: 1.2;
	transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.league-forge-nav span {
	cursor: default;
}

.league-forge-nav a:hover,
.league-forge-nav a:focus {
	background: #fff;
	color: var(--lf-brand-strong);
	text-decoration: none;
	box-shadow: inset 0 0 0 1px #c3c4c7;
}

.league-forge-nav a:focus-visible {
	outline: 2px solid var(--lf-brand);
	outline-offset: 2px;
}

.league-forge-nav a.active,
.league-forge-nav span.active {
	background: var(--lf-brand);
	color: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.league-forge-nav a.active:hover,
.league-forge-nav a.active:focus {
	background: var(--lf-brand-strong);
	color: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.league-forge-nav .is-contextual {
	background: #1d2327;
}

.league-forge-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.league-forge-table th,
.league-forge-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.league-forge-table th {
	background-color: #f9f9f9;
}

.league-forge-table img {
	vertical-align: middle;
	margin-right: 8px;
}

.league-forge-card__teams {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px;
	background: #f6f7f7;
}

.league-forge-card__teams img {
	width: 40px;
	height: 40px;
}

.league-forge-card__match-title {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.league-forge-team-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	line-height: 1.25;
}

a.league-forge-team-link:hover,
a.league-forge-team-link:focus {
	color: var(--lf-brand-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.league-forge-team-link:focus-visible {
	outline: 2px solid var(--lf-brand);
	outline-offset: 2px;
	border-radius: 4px;
}

.league-forge-team-link img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex: 0 0 auto;
}

.league-forge-team-link .team-name {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-team-link--reverse {
	flex-direction: row-reverse;
}

.league-forge-team-link--stacked {
	flex-direction: column;
	justify-content: center;
	text-align: center;
	font-weight: 700;
}

.league-forge-team-link--stacked img {
	width: 42px;
	height: 42px;
}

.league-forge-team-link--compact {
	gap: 6px;
	font-size: 0.92em;
}

.league-forge-team-link--text {
	display: inline;
	font-weight: 700;
}

.league-forge-card__score {
	font-weight: bold;
	margin-top: 5px;
	color: #d63638;
}

.league-forge-card__date {
	font-size: 0.85rem;
	color: #646970;
	margin-top: 5px;
}

.league-forge-group-header {
	background: var(--lf-brand);
	color: #fff;
	padding: 10px 15px;
	margin: 25px 0 0;
	border-radius: 4px 4px 0 0;
	font-size: 1rem;
}

.league-forge-group-header + .league-forge-table {
	margin-top: 0;
	border-top: none;
}

.league-forge-group-header + .league-forge-standings-scroll {
	margin-top: 0;
}

.league-forge-group-header + .league-forge-standings-scroll .league-forge-table {
	border-top: none;
}

.league-forge-date-group {
	background: #f0f0f1;
	padding: 8px 15px;
	margin: 25px 0 10px;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-left: 4px solid var(--lf-brand);
}

.league-forge-fixtures-list {
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
}

.league-forge-fixture-row {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	border-bottom: 1px solid #eee;
}

.league-forge-fixture-row:last-child {
	border-bottom: none;
}

.league-forge-fixture-time {
	width: 80px;
	font-size: 0.85rem;
	color: #646970;
}

.league-forge-fixture-teams {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.league-forge-fixture-team {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.league-forge-fixture-team.home {
	justify-content: flex-end;
	text-align: right;
}

.league-forge-fixture-team.away {
	justify-content: flex-start;
	text-align: left;
}

.league-forge-fixture-score {
	width: 80px;
	text-align: center;
	font-weight: bold;
	background: #f6f7f7;
	padding: 6px 8px;
	border-radius: 4px;
	margin: 0 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.league-forge-fixture-score a {
	text-decoration: none;
	color: inherit;
}

.league-forge-table .team-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}

.league-forge-table .team-cell .league-forge-team-link {
	font-weight: 700;
}

.form-cell {
	white-space: nowrap;
}

.form-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 3px;
	font-size: 11px;
	font-weight: bold;
	color: #fff;
	margin-right: 3px;
}

.form-win { background-color: #46b450; }
.form-draw { background-color: #ffb900; }
.form-loss { background-color: #dc3232; }

.league-forge-overview-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.league-forge-overview-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px;
	margin-bottom: 24px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.league-forge-overview-identity {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.league-forge-overview-identity img {
	width: 76px;
	height: 76px;
	object-fit: contain;
	flex: 0 0 auto;
}

.league-forge-overview-identity h2 {
	margin: 0;
	font-size: clamp(1.4rem, 2vw, 1.8rem);
	line-height: 1.1;
}

.league-forge-kicker {
	margin: 0 0 6px;
	color: #646970;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
}

.league-forge-overview-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.league-forge-overview-tags span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 0.86rem;
	font-weight: 700;
}

.league-forge-overview-tags span {
	background: #f6f7f7;
	color: #1d2327;
}

.league-forge-overview-cards {
	display: grid;
	grid-template-columns: 0.8fr 1.1fr 1.1fr;
	gap: 16px;
	margin-bottom: 30px;
}

.league-forge-overview-card,
.league-forge-overview-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.league-forge-overview-card {
	padding: 18px;
	min-width: 0;
}

.league-forge-overview-card p {
	margin: 8px 0 0;
	color: #646970;
}

.league-forge-card-label {
	display: block;
	margin-bottom: 12px;
	color: #646970;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
}

.league-forge-overview-team {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.league-forge-overview-card--leader {
	padding: 15px;
}

.league-forge-overview-card--leader .league-forge-card-label {
	margin-bottom: 8px;
}

.league-forge-overview-card--leader .league-forge-overview-team {
	flex-direction: column;
	text-align: center;
	gap: 8px;
}

.league-forge-overview-card--leader .league-forge-team-link--stacked {
	gap: 4px;
}

.league-forge-overview-card--leader .league-forge-team-link--stacked img {
	width: 32px;
	height: 32px;
}

.league-forge-overview-team img {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.league-forge-overview-team span {
	display: block;
}

.league-forge-overview-team-meta span {
	margin-top: 3px;
	color: #646970;
	font-size: 0.9rem;
}

.league-forge-overview-match {
	display: block;
	color: inherit;
	text-decoration: none;
}

.league-forge-overview-match:hover,
.league-forge-overview-match:focus {
	color: inherit;
	text-decoration: none;
}

.league-forge-overview-match-date,
.league-forge-overview-match-venue {
	color: #646970;
	font-size: 0.86rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-overview-match-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.league-forge-overview-match-teams .league-forge-team-link {
	font-weight: 700;
	line-height: 1.25;
}

.league-forge-overview-match-teams .league-forge-team-link:last-child {
	justify-content: flex-end;
	text-align: right;
}

.league-forge-overview-score-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 6px 10px;
	background: #f6f7f7;
	border-radius: 4px;
	color: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
}

.league-forge-overview-score-link:hover,
.league-forge-overview-score-link:focus {
	background: #eef6fc;
	color: var(--lf-brand-strong);
	text-decoration: none;
}

.league-forge-overview-section {
	min-width: 0;
	padding: 20px;
	overflow-x: auto;
}

.league-forge-overview-section--wide {
	grid-column: 1 / -1;
}

.league-forge-overview-section--top-five {
	overflow-x: hidden;
}

.league-forge-table--compact {
	table-layout: fixed;
}

.league-forge-table--compact th,
.league-forge-table--compact td {
	padding-inline: 8px;
}

.league-forge-table--compact th:first-child,
.league-forge-table--compact td:first-child {
	width: 42px;
	text-align: center;
}

.league-forge-table--compact th:nth-child(n+3),
.league-forge-table--compact td:nth-child(n+3) {
	width: 42px;
	text-align: center;
}

.league-forge-table--compact .league-forge-team-link {
	max-width: 100%;
}

.league-forge-live-board {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	background: #fff;
}

.league-forge-live-filters {
	display: flex;
	gap: 10px;
	margin: 16px 0;
	overflow-x: auto;
}

.league-forge-live-filters button {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: #eef0f2;
	color: #50575e;
	font: inherit;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}

.league-forge-live-filters button[aria-pressed="true"] {
	background: var(--lf-brand);
	color: #fff;
}

.league-forge-live-matches {
	border-top: 1px solid #dcdcde;
}

.league-forge-live-match {
	display: grid;
	grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 52px;
	align-items: center;
	gap: 16px;
	padding: 14px 8px;
	border-bottom: 1px solid #dcdcde;
	color: inherit;
	text-decoration: none;
}

.league-forge-live-match:hover,
.league-forge-live-match:focus-visible {
	background: #f6f7f7;
}

.league-forge-live-match[hidden] {
	display: none;
}

.league-forge-live-match__status {
	font-weight: 800;
	color: var(--lf-brand);
}

.league-forge-live-match__teams,
.league-forge-live-match__score {
	display: grid;
	gap: 8px;
}

.league-forge-live-match__teams > span {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	font-weight: 700;
}

.league-forge-live-match__teams img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.league-forge-live-match__score {
	text-align: center;
	color: var(--lf-brand);
	font-size: 1.05rem;
}

.league-forge-live-matches__empty {
	margin: 0;
	padding: 20px 8px;
}

.league-forge-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--lf-brand);
}

.league-forge-section-heading h3 {
	margin: 0;
	font-size: 1.1rem;
}

.league-forge-section-heading a {
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.league-forge-overview-section .league-forge-table,
.league-forge-overview-section .league-forge-date-group:first-child {
	margin-top: 0;
}

@container (max-width: 900px) {
	.league-forge-overview-grid {
		grid-template-columns: 1fr;
	}
	.league-forge-overview-hero {
		align-items: flex-start;
		flex-direction: column;
	}
}

@container (max-width: 700px) {
	.league-forge-overview-cards {
		grid-template-columns: 1fr;
	}
}

@container (max-width: 600px) {
	.league-forge-live-board {
		padding: 14px;
	}
	.league-forge-live-match {
		grid-template-columns: 68px minmax(0, 1fr) 36px;
		gap: 8px;
	}
	.league-forge-live-match__status {
		font-size: 0.82rem;
	}
	.league-forge-nav {
		justify-content: flex-start;
		flex-wrap: nowrap;
		margin-left: -4px;
		margin-right: -4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.league-forge-nav a,
	.league-forge-nav span {
		flex: 0 0 auto;
		min-height: 38px;
		padding: 8px 12px;
		white-space: nowrap;
	}
	.league-forge-overview-hero,
	.league-forge-overview-card,
	.league-forge-overview-section {
		padding: 16px;
	}
	.league-forge-overview-identity {
		align-items: flex-start;
	}
	.league-forge-overview-identity img {
		width: 58px;
		height: 58px;
	}
	.league-forge-overview-match-teams {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.league-forge-overview-match-teams .league-forge-team-link,
	.league-forge-overview-match-teams .league-forge-team-link:last-child {
		justify-content: center;
		text-align: center;
	}
	.league-forge-overview-score-link {
		width: 100%;
	}
	.league-forge-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
	.league-forge-fixture-row {
		flex-direction: column;
		gap: 10px;
	}
	.league-forge-fixture-time {
		width: 100%;
		text-align: center;
	}
	.league-forge-fixture-row .team-name {
		display: none;
	}
	.league-forge-table th:nth-child(3),
	.league-forge-table td:nth-child(3),
	.league-forge-table th:nth-child(4),
	.league-forge-table td:nth-child(4),
	.league-forge-table th:nth-child(5),
	.league-forge-table td:nth-child(5),
	.league-forge-table th:nth-child(6),
	.league-forge-table td:nth-child(6) {
		display: none;
	}
}

/* Stats Styles */
.league-forge-stats-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.league-forge-stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.league-forge-stats-section h3 {
	border-bottom: 2px solid var(--lf-brand);
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.league-forge-stats-table td:last-child {
	text-align: center;
	font-size: 1.2rem;
}

.league-forge-player-photo {
	border-radius: 50%;
	vertical-align: middle;
}

/* H2H Styles */
.league-forge-h2h-header {
	display: flex;
	align-items: center;
	justify-content: space-around;
	background: #f6f7f7;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 30px;
	text-align: center;
}

.h2h-team img {
	max-width: 80px;
	height: auto;
	margin-bottom: 10px;
}

.h2h-team h3 {
	margin: 0;
}

.h2h-vs {
	font-size: 2.5rem;
	line-height: 1;
	font-weight: bold;
	color: var(--lf-brand);
	margin-bottom: 5px;
}

.h2h-match-date {
	font-weight: 600;
	color: #1d2327;
}

.h2h-status {
	margin-top: 6px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #646970;
}

.h2h-venue {
	font-size: 0.9rem;
	color: #646970;
	margin-top: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-h2h-scoreline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.league-forge-h2h-scoreline strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 54px;
	padding: 4px 8px;
	background: #f6f7f7;
	border-radius: 4px;
}

.league-forge-primary-tabs,
.league-forge-secondary-tabs,
.league-forge-event-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.league-forge-primary-tabs {
	margin: 0 -1px;
	padding: 0 18px;
	border: 1px solid #dcdcde;
	border-inline-width: 0;
}

.league-forge-primary-tabs button,
.league-forge-secondary-tabs button,
.league-forge-event-filters button {
	flex: 0 0 auto;
	border: 0;
	font: inherit;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}

.league-forge-primary-tabs button {
	position: relative;
	padding: 18px 14px;
	background: transparent;
	color: #50575e;
}

.league-forge-primary-tabs button[aria-selected="true"] {
	color: var(--lf-brand);
}

.league-forge-primary-tabs button[aria-selected="true"]::after {
	content: "";
	position: absolute;
	right: 14px;
	bottom: 0;
	left: 14px;
	height: 4px;
	border-radius: 4px 4px 0 0;
	background: var(--lf-brand);
}

.league-forge-secondary-tabs {
	padding: 24px 0 4px;
}

.league-forge-secondary-tabs button,
.league-forge-event-filters button {
	padding: 10px 14px;
	border-radius: 8px;
	background: #eef0f2;
	color: #50575e;
}

.league-forge-secondary-tabs button[aria-selected="true"],
.league-forge-event-filters button.is-active {
	background: var(--lf-brand);
	color: #fff;
}

.league-forge-event-filters {
	margin: 0 0 16px;
	padding: 12px;
	border-radius: 8px;
	background: #f6f7f7;
}

.league-forge-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}

.league-forge-summary-grid > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.league-forge-summary-grid span {
	font-size: 0.8rem;
	color: #646970;
	text-transform: uppercase;
}

.league-forge-stat-comparison > header,
.league-forge-stat-comparison > div {
	display: grid;
	grid-template-columns: minmax(80px, 1fr) minmax(130px, 2fr) minmax(80px, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px;
	text-align: center;
	border-bottom: 1px solid #dcdcde;
}

.league-forge-stat-comparison > header {
	grid-template-columns: 1fr 1fr;
	border-radius: 8px 8px 0 0;
	background: #f6f7f7;
}

.league-forge-stat-comparison > div strong:first-child {
	text-align: right;
}

.league-forge-stat-comparison > div strong:last-child {
	text-align: left;
}

.league-forge-stat-comparison > div span {
	font-size: 0.85rem;
	color: #646970;
}

.league-forge-table-scroll {
	overflow-x: auto;
}

.league-forge-player-match-stats {
	min-width: 660px;
}

.league-forge-match-section {
	margin: 30px 0;
}

.league-forge-match-events,
.league-forge-lineup-players {
	list-style: none;
	margin: 0;
	padding: 0;
}

.league-forge-match-events li,
.league-forge-lineup-players li {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) minmax(100px, auto);
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid #dcdcde;
}

.league-forge-match-events li[hidden] {
	display: none;
}

.league-forge-match-events time {
	font-weight: 700;
	color: var(--lf-brand);
}

.league-forge-match-events li > div span,
.league-forge-match-events li > div small,
.league-forge-sidelined span,
.league-forge-sidelined small {
	display: block;
	color: #646970;
}

.league-forge-lineups,
.league-forge-sidelined {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.league-forge-lineup,
.league-forge-sidelined article {
	padding: 16px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.league-forge-lineup h4 {
	display: flex;
	justify-content: space-between;
	margin-top: 0;
}

.league-forge-lineup-players li {
	grid-template-columns: 30px minmax(0, 1fr) 30px;
	padding-inline: 0;
}

.league-forge-lineup-players small {
	text-align: right;
}

.league-forge-sidelined article .league-forge-player-link {
	margin-bottom: 8px;
}

@container (max-width: 768px) {
	.league-forge-stats-grid {
		grid-template-columns: 1fr;
	}
	.league-forge-h2h-header {
		flex-direction: column;
		gap: 20px;
	}
	.league-forge-lineups,
	.league-forge-sidelined {
		grid-template-columns: 1fr;
	}
	.league-forge-match-events li {
		grid-template-columns: 46px minmax(0, 1fr);
	}
	.league-forge-match-events li > span {
		grid-column: 2;
	}
}

/* Live Badge */
.live-badge {
	display: block;
	font-size: 0.7rem;
	color: #d63638;
	font-weight: bold;
	margin-top: 2px;
	animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
	50% { opacity: 0; }
}

/* Teams Grid */
.league-forge-teams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.league-forge-team-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
	padding: 0;
	overflow: hidden;
}

.league-forge-team-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.league-forge-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.league-forge-card-link:hover,
.league-forge-card-link:focus {
	text-decoration: none;
	color: inherit;
}

.league-forge-team-card .league-forge-card-link {
	padding: 20px;
}

.league-forge-team-card img {
	max-width: 80px;
	height: auto;
	margin-bottom: 15px;
}

.league-forge-team-card h4 {
	margin: 0 0 10px;
	font-size: 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-team-card p {
	margin: 5px 0;
	font-size: 0.9rem;
	color: #646970;
}

/* Team Details */
.league-forge-team-header {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
}

.league-forge-team-header img {
	max-width: 120px;
	height: auto;
	margin-right: 30px;
}

.team-info-text h2 {
	margin: 0 0 15px;
	font-size: 1.75rem;
}

.team-info-text p {
	margin: 5px 0;
}

.league-forge-team-stats-summary {
	margin-bottom: 40px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.stat-item {
	background: #f6f7f7;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid #dcdcde;
}

.stat-label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	color: #646970;
	margin-bottom: 5px;
}

.stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--lf-brand);
}

.league-forge-team-squad {
	margin-top: 40px;
}

.squad-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.player-card {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 15px;
}

.player-card img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: 15px;
	background: #f0f0f1;
}

.player-name {
	font-weight: bold;
	font-size: 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player-position {
	font-size: 0.9rem;
	color: #646970;
}

.player-number {
	font-size: 0.8rem;
	color: var(--lf-brand);
	font-weight: bold;
}

@container (max-width: 600px) {
	.league-forge-team-header {
		flex-direction: column;
		text-align: center;
	}
	.league-forge-team-header img {
		margin-right: 0;
		margin-bottom: 20px;
	}
}

/* League Forge UI refresh */
.league-forge-container {
	--lf-ink: #171a1f;
	--lf-muted: #69717d;
	--lf-line: #d8dde5;
	--lf-panel: #ffffff;
	--lf-soft: #f4f7f9;
	--lf-brand: #146c43;
	--lf-brand-strong: #0b4f32;
	--lf-brand-rgb: 20,108,67;
	--lf-brand-strong-rgb: 11,79,50;
	--lf-accent: #d9412e;
	--lf-accent-soft: #fff2ef;
	--lf-accent-rgb: 217,65,46;
	--lf-gold: #f4b400;
	--lf-gold-rgb: 244,180,0;
	--lf-focus: #0a7ed0;
	color: var(--lf-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.league-forge-theme-navy {
	--lf-brand: #1d4ed8;
	--lf-brand-strong: #1e3a8a;
	--lf-brand-rgb: 29,78,216;
	--lf-brand-strong-rgb: 30,58,138;
	--lf-accent: #f97316;
	--lf-accent-soft: #fff7ed;
	--lf-accent-rgb: 249,115,22;
	--lf-gold: #facc15;
	--lf-gold-rgb: 250,204,21;
	--lf-focus: #2563eb;
}

.league-forge-theme-crimson {
	--lf-brand: #b91c1c;
	--lf-brand-strong: #7f1d1d;
	--lf-brand-rgb: 185,28,28;
	--lf-brand-strong-rgb: 127,29,29;
	--lf-accent: #0f766e;
	--lf-accent-soft: #ecfeff;
	--lf-accent-rgb: 15,118,110;
	--lf-gold: #f59e0b;
	--lf-gold-rgb: 245,158,11;
	--lf-focus: #dc2626;
}

.league-forge-theme-purple {
	--lf-brand: #7c3aed;
	--lf-brand-strong: #5b21b6;
	--lf-brand-rgb: 124,58,237;
	--lf-brand-strong-rgb: 91,33,182;
	--lf-accent: #db2777;
	--lf-accent-soft: #fdf2f8;
	--lf-accent-rgb: 219,39,119;
	--lf-gold: #f59e0b;
	--lf-gold-rgb: 245,158,11;
	--lf-focus: #8b5cf6;
}

.league-forge-theme-graphite {
	--lf-ink: #18181b;
	--lf-muted: #71717a;
	--lf-line: #d4d4d8;
	--lf-soft: #f4f4f5;
	--lf-brand: #3f3f46;
	--lf-brand-strong: #18181b;
	--lf-brand-rgb: 63,63,70;
	--lf-brand-strong-rgb: 24,24,27;
	--lf-accent: #ca8a04;
	--lf-accent-soft: #fefce8;
	--lf-accent-rgb: 202,138,4;
	--lf-gold: #eab308;
	--lf-gold-rgb: 234,179,8;
	--lf-focus: #52525b;
}

.league-forge-theme-amber {
	--lf-brand: #d97706;
	--lf-brand-strong: #92400e;
	--lf-brand-rgb: 217,119,6;
	--lf-brand-strong-rgb: 146,64,14;
	--lf-accent: #059669;
	--lf-accent-soft: #ecfdf5;
	--lf-accent-rgb: 5,150,105;
	--lf-gold: #fbbf24;
	--lf-gold-rgb: 251,191,36;
	--lf-focus: #f59e0b;
}

.league-forge-theme-rose {
	--lf-brand: #e11d48;
	--lf-brand-strong: #9f1239;
	--lf-brand-rgb: 225,29,72;
	--lf-brand-strong-rgb: 159,18,57;
	--lf-accent: #7c3aed;
	--lf-accent-soft: #f5f3ff;
	--lf-accent-rgb: 124,58,237;
	--lf-gold: #f59e0b;
	--lf-gold-rgb: 245,158,11;
	--lf-focus: #fb7185;
}

.league-forge-theme-midnight {
	--lf-brand: #0f172a;
	--lf-brand-strong: #020617;
	--lf-brand-rgb: 15,23,42;
	--lf-brand-strong-rgb: 2,6,23;
	--lf-accent: #38bdf8;
	--lf-accent-soft: #f0f9ff;
	--lf-accent-rgb: 56,189,248;
	--lf-gold: #fbbf24;
	--lf-gold-rgb: 251,191,36;
	--lf-focus: #1e293b;
}

.league-forge-theme-forest {
	--lf-brand: #064e3b;
	--lf-brand-strong: #022c22;
	--lf-brand-rgb: 6,78,59;
	--lf-brand-strong-rgb: 2,44,34;
	--lf-accent: #b45309;
	--lf-accent-soft: #fffbeb;
	--lf-accent-rgb: 180,83,9;
	--lf-gold: #fbbf24;
	--lf-gold-rgb: 251,191,36;
	--lf-focus: #065f46;
}

.league-forge-theme-azure {
	--lf-brand: #0284c7;
	--lf-brand-strong: #0369a1;
	--lf-brand-rgb: 2,132,199;
	--lf-brand-strong-rgb: 3,105,161;
	--lf-accent: #f43f5e;
	--lf-accent-soft: #fff1f2;
	--lf-accent-rgb: 244,63,94;
	--lf-gold: #f59e0b;
	--lf-gold-rgb: 245,158,11;
	--lf-focus: #0ea5e9;
}

.league-forge-container a {
	text-underline-offset: 3px;
}

.league-forge-container h2,
.league-forge-container h3,
.league-forge-container h4 {
	color: var(--lf-ink);
	letter-spacing: 0;
}

.league-forge-directory {
	max-width: 1180px;
	margin: 0 auto;
}

.league-forge-directory__hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 32px;
	padding: clamp(28px, 5vw, 56px);
	background:
		radial-gradient(circle at 88% 12%, rgba(var(--lf-gold-rgb),0.34), transparent 30%),
		linear-gradient(135deg, var(--lf-brand-strong), var(--lf-brand));
	border-radius: 18px;
	color: #fff;
	box-shadow: 0 24px 56px rgba(var(--lf-brand-strong-rgb),0.22);
}

.league-forge-directory__hero::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -150px;
	width: 330px;
	height: 330px;
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: 50%;
	box-shadow: 0 0 0 42px rgba(255,255,255,0.05), 0 0 0 84px rgba(255,255,255,0.035);
	pointer-events: none;
}

.league-forge-directory__intro,
.league-forge-directory__stats {
	position: relative;
	z-index: 1;
}

.league-forge-directory__kicker,
.league-forge-directory__eyebrow {
	margin: 0 0 8px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.league-forge-directory__kicker {
	color: rgba(255,255,255,0.76);
}

.league-forge-directory__hero h2 {
	max-width: 14ch;
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.65rem);
	font-weight: 850;
	line-height: 0.98;
	letter-spacing: -0.045em;
}

.league-forge-directory__intro > p:last-child {
	max-width: 650px;
	margin: 18px 0 0;
	color: rgba(255,255,255,0.82);
	font-size: clamp(0.98rem, 2vw, 1.12rem);
	line-height: 1.65;
}

.league-forge-directory__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(104px, 1fr));
	gap: 10px;
}

.league-forge-directory__stats > div {
	min-width: 112px;
	padding: 16px;
	background: rgba(255,255,255,0.11);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 12px;
	backdrop-filter: blur(8px);
}

.league-forge-directory__stats strong,
.league-forge-directory__stats span {
	display: block;
}

.league-forge-directory__stats strong {
	color: #fff;
	font-size: 1.7rem;
	line-height: 1;
}

.league-forge-directory__stats span {
	margin-top: 6px;
	color: rgba(255,255,255,0.72);
	font-size: 0.75rem;
	font-weight: 700;
}

.league-forge-directory__search {
	position: relative;
	max-width: 500px;
	margin: -30px auto 40px;
	z-index: 10;
}

.league-forge-directory__search input[type="search"] {
	width: 100%;
	min-height: 56px;
	padding: 16px 82px 16px 48px;
	background: var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 14px;
	color: var(--lf-ink);
	font-size: 1rem;
	box-shadow: 0 12px 32px rgba(23,26,31,0.08);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.league-forge-directory__search input[type="search"]:focus {
	outline: none;
	border-color: var(--lf-brand);
	box-shadow: 0 12px 32px rgba(var(--lf-brand-rgb),0.12);
}

.league-forge-directory__search-icon::before {
	content: "🔍";
	position: absolute;
	left: 18px;
	top: 28px;
	transform: translateY(-50%);
	filter: grayscale(1);
	font-size: 1.1rem;
	opacity: 0.5;
	pointer-events: none;
}

.league-forge-directory__search-clear {
	position: absolute;
	top: 10px;
	right: 10px;
	min-height: 36px;
	padding: 6px 12px;
	background: var(--lf-soft);
	border: 1px solid var(--lf-line);
	border-radius: 9px;
	color: var(--lf-brand-strong);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	cursor: pointer;
}

.league-forge-directory__search-clear:hover {
	background: rgba(var(--lf-brand-rgb),0.1);
	border-color: rgba(var(--lf-brand-rgb),0.35);
}

.league-forge-directory__search-clear:focus-visible {
	outline: 3px solid var(--lf-focus);
	outline-offset: 2px;
}

.league-forge-directory__search-status {
	margin: 9px 4px 0;
	color: var(--lf-muted);
	font-size: 0.78rem;
	font-weight: 700;
	text-align: center;
}

.league-forge-directory__content {
	margin-top: clamp(30px, 5vw, 52px);
}

.league-forge-directory__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}

.league-forge-directory__eyebrow {
	color: var(--lf-brand);
}

.league-forge-directory__heading h3 {
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 820;
	letter-spacing: -0.025em;
}

.league-forge-directory__heading > p {
	margin: 0 0 3px;
	color: var(--lf-muted);
	font-size: 0.9rem;
}

.league-forge-directory__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.league-forge-directory-card {
	min-width: 0;
	margin: 0;
	background: var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(23,26,31,0.055);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.league-forge-directory-card:hover {
	border-color: rgba(var(--lf-brand-rgb),0.42);
	box-shadow: 0 18px 38px rgba(var(--lf-brand-strong-rgb),0.13);
	transform: translateY(-3px);
}

.league-forge-directory-card > a {
	display: grid;
	grid-template-columns: 94px minmax(0, 1fr);
	align-items: stretch;
	min-height: 178px;
	color: var(--lf-ink);
	text-decoration: none;
}

.league-forge-directory-card > a:hover,
.league-forge-directory-card > a:focus {
	color: var(--lf-ink);
	text-decoration: none;
}

.league-forge-directory-card > a:focus-visible {
	outline: 3px solid var(--lf-focus);
	outline-offset: 3px;
	border-radius: 14px;
}

.league-forge-directory-card__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background:
		linear-gradient(145deg, rgba(var(--lf-brand-rgb),0.13), rgba(var(--lf-gold-rgb),0.08)),
		var(--lf-soft);
	border-right: 1px solid var(--lf-line);
	border-radius: 13px 0 0 13px;
}

.league-forge-directory-card__mark img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	filter: drop-shadow(0 8px 10px rgba(23,26,31,0.13));
}

.league-forge-directory-card__mark > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: var(--lf-brand);
	border-radius: 18px;
	color: #fff;
	font-size: 1.8rem;
	font-weight: 850;
	box-shadow: 0 10px 22px rgba(var(--lf-brand-rgb),0.22);
}

.league-forge-directory-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 20px;
}

.league-forge-directory-card__country {
	width: 100%;
	margin: 0 0 5px;
	overflow: hidden;
	color: var(--lf-muted);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.league-forge-directory-card h4 {
	display: -webkit-box;
	width: 100%;
	margin: 0;
	overflow: hidden;
	color: var(--lf-ink);
	font-size: 1.08rem;
	font-weight: 820;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.league-forge-directory-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.league-forge-directory-card__meta span {
	padding: 4px 7px;
	background: var(--lf-soft);
	border: 1px solid var(--lf-line);
	border-radius: 999px;
	color: var(--lf-muted);
	font-size: 0.68rem;
	font-weight: 750;
	line-height: 1.15;
}

.league-forge-directory-card__action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 15px;
	color: var(--lf-brand);
	font-size: 0.78rem;
	font-weight: 820;
}

.league-forge-directory-card__action span {
	transition: transform 0.18s ease;
}

.league-forge-directory-card:hover .league-forge-directory-card__action span {
	transform: translateX(3px);
}

.league-forge-directory__no-results {
	padding: 60px 20px;
	text-align: center;
	color: var(--lf-muted);
	font-size: 1.1rem;
	background: var(--lf-soft);
	border-radius: 18px;
	margin-top: 20px;
}

.league-forge-directory__empty {
	margin-top: 28px;
	padding: clamp(28px, 6vw, 64px);
	background: var(--lf-soft);
	border: 1px dashed rgba(var(--lf-brand-rgb),0.38);
	border-radius: 16px;
	text-align: center;
}

.league-forge-directory__empty strong {
	display: block;
	color: var(--lf-ink);
	font-size: 1.2rem;
}

.league-forge-directory__empty p {
	max-width: 540px;
	margin: 8px auto 0;
	color: var(--lf-muted);
}

@container (max-width: 700px) {
	.league-forge-directory__hero {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 24px;
		border-radius: 14px;
	}

	.league-forge-directory__hero h2 {
		max-width: 16ch;
	}

	.league-forge-directory__stats {
		width: min(100%, 300px);
	}

	.league-forge-directory__heading {
		display: block;
	}

	.league-forge-directory__heading > p {
		margin-top: 8px;
	}
}

@container (max-width: 430px) {
	.league-forge-directory__stats {
		grid-template-columns: 1fr 1fr;
	}

	.league-forge-directory__stats > div {
		min-width: 0;
		padding: 12px;
	}

	.league-forge-directory__grid {
		grid-template-columns: 1fr;
	}

	.league-forge-directory-card > a {
		grid-template-columns: 78px minmax(0, 1fr);
		min-height: 164px;
	}

	.league-forge-directory-card__mark {
		padding: 10px;
	}

	.league-forge-directory-card__mark img {
		width: 58px;
		height: 58px;
	}

	.league-forge-directory-card__body {
		padding: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.league-forge-directory-card,
	.league-forge-directory-card__action span {
		transition: none;
	}
}

.league-forge-page-header {
	position: relative;
	padding: 18px 18px 16px;
	margin-bottom: 24px;
	background:
		linear-gradient(135deg, rgba(var(--lf-brand-rgb),0.1), rgba(var(--lf-gold-rgb),0.08)),
		var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(23,26,31,0.06);
}

.league-forge-page-header__main {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px 10px 20px;
}

.league-forge-page-header__logo-wrapper {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.league-forge-page-logo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	margin-bottom: 0 !important;
}

.league-forge-page-header__title-group {
	flex: 1;
}

.league-forge-page-header__country {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--lf-muted);
	margin-bottom: 4px;
}

.league-forge-page-header__title {
	margin: 0 !important;
	font-size: 1.8rem !important;
	font-weight: 850;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--lf-ink);
}

.league-forge-page-header__subtitle {
	display: block;
	margin-top: 6px;
	font-size: 1rem;
	color: var(--lf-brand);
	font-weight: 600;
}

@container (max-width: 500px) {
	.league-forge-page-header__main {
		flex-direction: column;
		text-align: center;
	}
}

.league-forge-page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent 0 48%, rgba(var(--lf-brand-rgb),0.08) 48% 52%, transparent 52%),
		repeating-linear-gradient(90deg, rgba(var(--lf-brand-rgb),0.05) 0 1px, transparent 1px 96px);
	border-radius: inherit;
}

.league-forge-page-logo {
	position: relative;
	width: 82px;
	max-width: 82px;
	margin: 0 auto 14px;
	padding: 10px;
	background: rgba(255,255,255,0.86);
	border: 1px solid rgba(216,221,229,0.9);
	border-radius: 8px;
	box-shadow: 0 10px 22px rgba(23,26,31,0.08);
}

.league-forge-nav {
	position: relative;
	justify-content: flex-start;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	padding: 5px;
	background: rgba(255,255,255,0.86);
	border-color: rgba(216,221,229,0.95);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 22px rgba(23,26,31,0.06);
}

.league-forge-nav a,
.league-forge-nav span {
	min-height: 38px;
	color: var(--lf-brand-strong);
	font-size: 0.92rem;
	font-weight: 750;
}

.league-forge-nav a:hover,
.league-forge-nav a:focus {
	background: var(--lf-soft);
	color: var(--lf-brand-strong);
	box-shadow: none;
}

.league-forge-nav a:focus-visible,
.league-forge-overview-score-link:focus-visible,
.league-forge-card-link:focus-visible {
	outline: 2px solid var(--lf-focus);
	outline-offset: 2px;
}

.league-forge-nav a.active,
.league-forge-nav span.active {
	background: var(--lf-brand);
	color: #fff;
	box-shadow: 0 8px 18px rgba(var(--lf-brand-rgb),0.24);
}

.league-forge-nav a.active:hover,
.league-forge-nav a.active:focus {
	background: var(--lf-brand-strong);
}

.league-forge-nav .is-contextual {
	background: var(--lf-ink);
}

.league-forge-overview-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.72fr);
	align-items: stretch;
	gap: 18px;
	padding: 22px;
	background:
		linear-gradient(135deg, rgba(var(--lf-brand-rgb),0.12), rgba(var(--lf-gold-rgb),0.12)),
		#fff;
	border-color: var(--lf-line);
	box-shadow: 0 16px 36px rgba(23,26,31,0.08);
}

.league-forge-overview-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,0.5) 49% 51%, transparent 51%),
		repeating-linear-gradient(90deg, rgba(var(--lf-brand-rgb),0.055) 0 1px, transparent 1px 76px);
	border-radius: inherit;
}

.league-forge-overview-identity,
.league-forge-overview-visual {
	position: relative;
	z-index: 1;
}

.league-forge-overview-identity {
	align-self: center;
}

.league-forge-overview-identity img {
	width: 82px;
	height: 82px;
	padding: 10px;
	background: rgba(255,255,255,0.92);
	border: 1px solid rgba(216,221,229,0.95);
	border-radius: 8px;
	box-shadow: 0 10px 22px rgba(23,26,31,0.08);
}

.league-forge-overview-identity h2 {
	max-width: 13ch;
	font-size: 1.8rem;
	font-weight: 800;
}

.league-forge-kicker,
.league-forge-card-label,
.stat-label {
	color: var(--lf-muted);
}

.league-forge-overview-tags span {
	background: rgba(255,255,255,0.82);
	border: 1px solid rgba(216,221,229,0.88);
	color: var(--lf-ink);
}

.league-forge-overview-visual {
	display: grid;
	align-content: end;
	justify-items: center;
	min-height: 188px;
	padding: 16px;
	overflow: hidden;
	background:
		linear-gradient(160deg, rgba(var(--lf-brand-rgb),0.92), rgba(23,26,31,0.92)),
		var(--lf-brand);
	border: 1px solid rgba(var(--lf-brand-strong-rgb),0.45);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.league-forge-overview-visual::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 6px;
}

.league-forge-overview-visual::after {
	content: "";
	position: absolute;
	top: 18px;
	left: 50%;
	width: 74px;
	height: 74px;
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 50%;
	transform: translateX(-50%);
}

.league-forge-overview-visual img {
	position: relative;
	z-index: 1;
	width: min(112px, 48%);
	height: auto;
	margin-bottom: 18px;
	padding: 12px;
	background: rgba(255,255,255,0.9);
	border-radius: 8px;
	box-shadow: 0 16px 30px rgba(0,0,0,0.2);
}

.league-forge-overview-metrics {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.league-forge-overview-metrics span {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 8px;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: 6px;
	color: rgba(255,255,255,0.82);
	font-size: 0.72rem;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.league-forge-overview-metrics strong {
	display: block;
	color: #fff;
	font-size: 1rem;
	line-height: 1.1;
	text-transform: none;
	white-space: nowrap;
}

.league-forge-overview-cards {
	grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1.1fr) minmax(260px, 1.1fr);
}

.league-forge-overview-card,
.league-forge-overview-section,
.league-forge-team-card,
.league-forge-team-header,
.player-card {
	border-color: var(--lf-line);
	box-shadow: 0 10px 24px rgba(23,26,31,0.05);
}

.league-forge-overview-card {
	padding: 18px;
	background: linear-gradient(180deg, #fff, #fbfcfd);
}

.league-forge-overview-card--leader {
	border-top: 4px solid var(--lf-gold);
}

.league-forge-overview-section {
	padding: 18px;
}

.league-forge-section-heading {
	border-bottom-color: var(--lf-brand);
}

.league-forge-section-heading a {
	color: var(--lf-brand-strong);
}

.league-forge-table {
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--lf-line);
	border-radius: 8px;
	background: #fff;
}

.league-forge-table th {
	background: var(--lf-soft);
	color: var(--lf-muted);
	font-size: 0.78rem;
	text-transform: uppercase;
}

.league-forge-table td {
	color: var(--lf-ink);
}

.league-forge-table tbody tr:nth-child(even) {
	background: #fbfcfd;
}

.league-forge-table tbody tr:hover {
	background: rgba(var(--lf-brand-rgb),0.08);
}

.league-forge-group-header {
	background: var(--lf-brand);
	color: #fff;
	border-radius: 6px 6px 0 0;
}

.league-forge-overview-section .league-forge-group-header,
.league-forge-content .league-forge-group-header {
	color: #fff;
}

.league-forge-date-group {
	background: var(--lf-soft);
	border-left-color: var(--lf-brand);
	border-radius: 0 6px 6px 0;
	color: var(--lf-muted);
	letter-spacing: 0;
}

.league-forge-fixtures-list {
	border-color: var(--lf-line);
	border-radius: 8px;
	background: #fff;
}

.league-forge-fixture-row {
	padding: 14px 16px;
}

.league-forge-fixture-row:hover {
	background: #fbfcfd;
}

.league-forge-fixture-score,
.league-forge-overview-score-link,
.league-forge-h2h-scoreline strong {
	background: var(--lf-accent-soft);
	color: var(--lf-accent);
	border: 1px solid rgba(var(--lf-accent-rgb),0.18);
	border-radius: 6px;
}

.league-forge-fixture-score a {
	color: inherit;
}

.form-icon {
	border-radius: 999px;
}

.form-win { background-color: var(--lf-brand); }
.form-draw { background-color: var(--lf-gold); color: var(--lf-ink); }
.form-loss { background-color: var(--lf-accent); }

.league-forge-stats-section h3 {
	border-bottom-color: var(--lf-brand);
}

.stat-item {
	background: linear-gradient(180deg, #fff, var(--lf-soft));
	border-color: var(--lf-line);
}

.stat-value,
.player-number,
.h2h-vs {
	color: var(--lf-brand);
}

.league-forge-h2h-header {
	background:
		linear-gradient(135deg, rgba(var(--lf-brand-rgb),0.1), rgba(var(--lf-accent-rgb),0.07)),
		var(--lf-soft);
	border: 1px solid var(--lf-line);
}

.league-forge-team-card:hover,
.league-forge-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(23,26,31,0.1);
}

.player-card {
	min-width: 0;
}

.player-card img,
.league-forge-player-photo {
	object-fit: cover;
}

@container (max-width: 980px) {
	.league-forge-overview-hero {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
	}
}

@container (max-width: 700px) {
	.league-forge-page-header {
		padding: 14px;
	}

	.league-forge-overview-hero {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.league-forge-overview-identity h2 {
		max-width: none;
		font-size: 1.45rem;
	}

	.league-forge-overview-visual {
		min-height: 166px;
	}

	.league-forge-overview-cards {
		grid-template-columns: 1fr;
	}
}

@container (max-width: 600px) {
	.league-forge-nav {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.league-forge-overview-match-teams {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	}

	.league-forge-overview-match-teams .league-forge-team-link,
	.league-forge-overview-match-teams .league-forge-team-link:last-child {
		justify-content: center;
		text-align: center;
	}

	.league-forge-overview-score-link {
		width: auto;
		min-width: 62px;
	}

	.league-forge-fixture-row .team-name {
		display: inline;
	}

	.league-forge-fixture-teams {
		width: 100%;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 8px;
	}

	.league-forge-fixture-team {
		min-width: 0;
	}

	.league-forge-fixture-score {
		width: auto;
		min-width: 58px;
		margin: 0;
	}

	.league-forge-fixture-team.home .league-forge-team-link {
		justify-content: flex-end;
	}

	.league-forge-fixture-team.away .league-forge-team-link {
		justify-content: flex-start;
	}
}

@container (max-width: 430px) {
	.league-forge-overview-metrics {
		grid-template-columns: 1fr;
	}

	.league-forge-overview-match-teams,
	.league-forge-fixture-teams {
		grid-template-columns: 1fr;
	}

	.league-forge-overview-match-teams .league-forge-team-link:last-child,
	.league-forge-fixture-team.home,
	.league-forge-fixture-team.away,
	.league-forge-fixture-team.home .league-forge-team-link,
	.league-forge-fixture-team.away .league-forge-team-link {
		justify-content: center;
		text-align: center;
	}
}

.league-forge-player-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.league-forge-player-link:hover,
.league-forge-player-link:focus {
	color: var(--lf-brand-strong);
	text-decoration: underline;
}

.league-forge-player-link:focus-visible,
.player-card--link:focus-visible {
	outline: 2px solid var(--lf-focus);
	outline-offset: 2px;
	border-radius: 8px;
}

.league-forge-player-link span {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player-card--link {
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.player-card--link:hover,
.player-card--link:focus {
	color: inherit;
	text-decoration: none;
	border-color: rgba(var(--lf-brand-rgb),0.35);
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(23,26,31,0.1);
}

.league-forge-player-details {
	display: grid;
	gap: 24px;
}

.league-forge-player-header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto);
	align-items: center;
	gap: 22px;
	padding: 26px;
	background:
		linear-gradient(135deg, rgba(var(--lf-brand-rgb),0.12), rgba(var(--lf-accent-rgb),0.07)),
		#fff;
	border: 1px solid var(--lf-line);
	border-radius: 8px;
	box-shadow: 0 16px 36px rgba(23,26,31,0.08);
}

.league-forge-player-header > img {
	width: 116px;
	height: 116px;
	object-fit: cover;
	background: var(--lf-soft);
	border: 4px solid #fff;
	border-radius: 8px;
	box-shadow: 0 12px 24px rgba(23,26,31,0.12);
}

.league-forge-player-header h2 {
	margin: 0;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.1;
}

.league-forge-player-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.league-forge-player-tags span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	background: rgba(255,255,255,0.82);
	border: 1px solid rgba(216,221,229,0.88);
	border-radius: 4px;
	color: var(--lf-ink);
	font-size: 0.85rem;
	font-weight: 700;
}

.league-forge-player-team {
	justify-self: end;
	min-width: 0;
	padding: 12px;
	background: rgba(255,255,255,0.72);
	border: 1px solid rgba(216,221,229,0.88);
	border-radius: 8px;
}

.league-forge-player-summary-grid,
.league-forge-player-stat-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
}

.league-forge-player-stat-item {
	min-width: 0;
	padding: 16px;
	background: linear-gradient(180deg, #fff, var(--lf-soft));
	border: 1px solid var(--lf-line);
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 8px 20px rgba(23,26,31,0.04);
}

.league-forge-player-info-grid {
	display: grid;
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
	gap: 24px;
	align-items: start;
}

.league-forge-player-panel {
	min-width: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--lf-line);
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(23,26,31,0.05);
}

.league-forge-player-panel h3 {
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--lf-brand);
	font-size: 1.1rem;
}

.league-forge-player-facts {
	display: grid;
	grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
	gap: 0;
	margin: 0;
	border: 1px solid var(--lf-line);
	border-radius: 8px;
	overflow: hidden;
}

.league-forge-player-facts dt,
.league-forge-player-facts dd {
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid var(--lf-line);
}

.league-forge-player-facts dt {
	background: var(--lf-soft);
	color: var(--lf-muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.league-forge-player-facts dd {
	min-width: 0;
	color: var(--lf-ink);
	font-weight: 700;
}

.league-forge-player-facts dt:nth-last-child(2),
.league-forge-player-facts dd:last-child {
	border-bottom: none;
}

@container (max-width: 760px) {
	.league-forge-player-header {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.league-forge-player-tags {
		justify-content: center;
	}

	.league-forge-player-team {
		justify-self: center;
	}

	.league-forge-player-info-grid {
		grid-template-columns: 1fr;
	}
}

@container (max-width: 430px) {
	.league-forge-player-header {
		padding: 18px;
	}

	.league-forge-player-header h2 {
		font-size: 1.5rem;
	}

	.league-forge-player-facts {
		grid-template-columns: 1fr;
	}

	.league-forge-player-facts dt {
		border-bottom: none;
	}
}

/* Keep fixture rows aligned across long team names. */
.league-forge-fixture-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
}

.league-forge-fixture-time {
	width: auto;
	min-width: 0;
	white-space: nowrap;
	text-align: left;
}

.league-forge-fixture-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-width: 0;
	width: 100%;
}

.league-forge-fixture-team {
	min-width: 0;
	display: flex;
	align-items: center;
}

.league-forge-fixture-team.home {
	justify-content: flex-end;
	text-align: right;
}

.league-forge-fixture-team.away {
	justify-content: flex-start;
	text-align: left;
}

.league-forge-fixture-team .league-forge-team-link {
	max-width: 100%;
	min-width: 0;
}

.league-forge-fixture-team.home .league-forge-team-link {
	justify-content: flex-end;
}

.league-forge-fixture-team.away .league-forge-team-link {
	justify-content: flex-start;
}

.league-forge-fixture-team .team-name {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-fixture-team img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex: 0 0 auto;
}

.league-forge-fixture-score {
	width: 100%;
	min-width: 3.4rem;
	margin: 0;
	justify-self: center;
}

.league-forge-fixture-score a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
}

.league-forge-fixture-time,
.league-forge-fixture-score,
.league-forge-overview-score-link,
.league-forge-live-match__score,
.league-forge-table th,
.league-forge-table td,
.league-forge-match-center__time {
	font-variant-numeric: tabular-nums;
}

.league-forge-primary-tabs button:focus-visible,
.league-forge-secondary-tabs button:focus-visible,
.league-forge-event-filters button:focus-visible,
.league-forge-live-filters button:focus-visible,
.league-forge-match-center button:focus-visible {
	outline: 3px solid var(--lf-focus);
	outline-offset: 2px;
}

@container (max-width: 760px) {
	.league-forge-fixture-row {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
	}

	.league-forge-fixture-teams {
		grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
		gap: 10px;
	}

	.league-forge-fixture-score a {
		min-height: 40px;
	}
}

@container (max-width: 520px) {
	.league-forge-fixture-row {
		grid-template-columns: 1fr;
	}

	.league-forge-fixture-time {
		text-align: center;
	}

	.league-forge-fixture-teams {
		grid-template-columns: 1fr;
	}

	.league-forge-fixture-team.home,
	.league-forge-fixture-team.away,
	.league-forge-fixture-team.home .league-forge-team-link,
	.league-forge-fixture-team.away .league-forge-team-link {
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.league-forge-container *,
	.league-forge-container *::before,
	.league-forge-container *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Match Center Theme Overrides */
.league-forge-theme-midnight .league-forge-match-center {
	--lf-match-bg: #0f172a;
	--lf-match-panel: #1e293b;
	--lf-match-panel-strong: #020617;
}

.league-forge-theme-forest .league-forge-match-center {
	--lf-match-bg: #064e3b;
	--lf-match-panel: #065f46;
	--lf-match-panel-strong: #022c22;
}

.league-forge-theme-azure .league-forge-match-center {
	--lf-match-bg: #075985;
	--lf-match-panel: #0369a1;
	--lf-match-panel-strong: #0c4a6e;
}

.league-forge-theme-amber .league-forge-match-center {
	--lf-match-bg: #78350f;
	--lf-match-panel: #92400e;
	--lf-match-panel-strong: #451a03;
}

.league-forge-theme-rose .league-forge-match-center {
	--lf-match-bg: #881337;
	--lf-match-panel: #9f1239;
	--lf-match-panel-strong: #4c0519;
}

.league-forge-theme-navy .league-forge-match-center {
	--lf-match-bg: #1e3a8a;
	--lf-match-panel: #1d4ed8;
	--lf-match-panel-strong: #172554;
}

.league-forge-theme-crimson .league-forge-match-center {
	--lf-match-bg: #7f1d1d;
	--lf-match-panel: #b91c1c;
	--lf-match-panel-strong: #450a0a;
}

.league-forge-theme-purple .league-forge-match-center {
	--lf-match-bg: #5b21b6;
	--lf-match-panel: #7c3aed;
	--lf-match-panel-strong: #2e1065;
}

.league-forge-theme-graphite .league-forge-match-center {
	--lf-match-bg: #18181b;
	--lf-match-panel: #3f3f46;
	--lf-match-panel-strong: #09090b;
}

/* Keep standings columns aligned; table cells must not become flex containers. */
.league-forge-standings-scroll .league-forge-table {
	table-layout: fixed;
}

.league-forge-standings-scroll .league-forge-table th,
.league-forge-standings-scroll .league-forge-table td {
	vertical-align: middle;
}

.league-forge-standings-scroll .league-forge-table th:nth-child(1),
.league-forge-standings-scroll .league-forge-table td:nth-child(1) {
	width: 64px;
	text-align: center;
}

.league-forge-standings-scroll .league-forge-table th:nth-child(2),
.league-forge-standings-scroll .league-forge-table td:nth-child(2) {
	width: auto;
	text-align: left;
}

.league-forge-standings-scroll .league-forge-table th:nth-child(n+3):nth-child(-n+8),
.league-forge-standings-scroll .league-forge-table td:nth-child(n+3):nth-child(-n+8) {
	width: 76px;
	text-align: center;
}

.league-forge-standings-scroll .league-forge-table th:nth-child(9),
.league-forge-standings-scroll .league-forge-table td:nth-child(9) {
	width: 180px;
	text-align: left;
}

.league-forge-standings-scroll .league-forge-table .team-cell {
	display: table-cell;
}

.league-forge-standings-scroll .league-forge-table .team-cell .league-forge-team-link {
	display: inline-flex;
	max-width: 100%;
	vertical-align: middle;
}

.league-forge-standings-scroll .league-forge-table .team-cell .team-name {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-standings-scroll .league-forge-table .form-cell {
	text-align: left;
	white-space: nowrap;
}

.league-forge-top-sidebar {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.league-forge-top-sidebar .widget {
	margin: 0;
}

.league-forge-top-sidebar .league-forge-container {
	margin: 0;
}

/* Match center shortcode/widget */
.league-forge-match-center {
	--lf-match-bg: #202124;
	--lf-match-panel: #282a2e;
	--lf-match-panel-strong: #18191c;
	--lf-match-text: #f8fafc;
	--lf-match-muted: #b8bec7;
	--lf-match-line: rgba(255,255,255,0.1);
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.035), transparent 46%),
		var(--lf-match-bg);
	border-top: 2px solid var(--lf-accent);
	color: var(--lf-match-text);
	box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.league-forge-match-center::before,
.league-forge-match-center::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 40%;
	pointer-events: none;
	background: linear-gradient(45deg, rgba(255,255,255,0.04), transparent 58%);
	transform: skewX(18deg) translateX(-30%);
}

.league-forge-match-center::after {
	inset: 0 0 0 auto;
	transform: skewX(-18deg) translateX(30%);
}

.league-forge-match-center__stage,
.league-forge-match-center__rail {
	position: relative;
	z-index: 1;
}

.league-forge-match-center__stage {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) minmax(150px, 0.6fr) minmax(0, 1fr) 34px;
	align-items: center;
	gap: 12px;
	min-height: 122px;
	padding: 13px 16px 11px;
	text-align: center;
}

.league-forge-match-center__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	color: rgba(255,255,255,0.78);
	font-size: 2.35rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: color 0.16s ease, transform 0.16s ease;
}

.league-forge-match-center__arrow:hover,
.league-forge-match-center__arrow:focus {
	color: #fff;
	transform: scale(1.04);
}

.league-forge-match-center__team {
	display: grid;
	justify-items: center;
	gap: 6px;
	min-width: 0;
}

.league-forge-match-center__team img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	padding: 4px;
	background: rgba(255,255,255,0.94);
	border-radius: 50%;
	box-shadow: 0 5px 12px rgba(0,0,0,0.16);
}

.league-forge-match-center__team strong {
	max-width: 100%;
	color: var(--lf-match-text);
	font-size: 0.88rem;
	line-height: 1.2;
	font-weight: 750;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-match-center__team--home strong {
	color: var(--lf-accent);
}

.league-forge-match-center__meta {
	display: grid;
	justify-items: center;
	gap: 4px;
	min-width: 0;
}

.league-forge-match-center__league {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 4px 8px;
	background: rgba(0,0,0,0.28);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 6px;
	color: var(--lf-match-text);
	font-size: 0.76rem;
	font-weight: 750;
	text-decoration: none;
}

a.league-forge-match-center__league:hover,
a.league-forge-match-center__league:focus {
	color: #fff;
	text-decoration: none;
	background: rgba(255,255,255,0.1);
}

.league-forge-match-center__league img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.league-forge-match-center__league span {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-match-center__venue {
	max-width: 100%;
	color: var(--lf-match-muted);
	font-size: 0.7rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-match-center__time {
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 850;
	text-decoration: none;
	letter-spacing: 0;
}

a.league-forge-match-center__time:hover,
a.league-forge-match-center__time:focus {
	color: #fff;
	text-decoration: none;
}

.league-forge-match-center__date {
	color: var(--lf-match-text);
	font-size: 0.82rem;
	line-height: 1.1;
	font-weight: 750;
}

.league-forge-match-center__links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 1px;
}

.league-forge-match-center__links a {
	color: var(--lf-match-text);
	font-size: 0.62rem;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.league-forge-match-center__links a + a {
	position: relative;
	padding-left: 8px;
}

.league-forge-match-center__links a + a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 10px;
	background: rgba(255,255,255,0.24);
	transform: translateY(-50%);
}

.league-forge-match-center__rail {
	display: grid;
	grid-template-columns: 178px minmax(0, 1fr);
	gap: 3px;
	padding: 0 3px 3px;
}

.league-forge-match-center__rail-title,
.league-forge-match-center__card {
	min-width: 0;
	background: var(--lf-match-panel);
	border: 1px solid var(--lf-match-line);
	border-radius: 3px;
}

.league-forge-match-center__rail-title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	color: var(--lf-match-text);
	font-size: 0.78rem;
	font-weight: 750;
}

.league-forge-match-center__rail-title img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.league-forge-match-center__rail-title span {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-match-center__rail-wrap {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) 24px;
	align-items: stretch;
	gap: 3px;
	min-width: 0;
}

.league-forge-match-center__rail-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	min-height: 100%;
	padding: 0;
	background: var(--lf-match-panel-strong);
	border: 1px solid var(--lf-match-line);
	border-radius: 3px;
	color: rgba(255,255,255,0.82);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.league-forge-match-center__rail-arrow:hover,
.league-forge-match-center__rail-arrow:focus {
	background: var(--lf-accent);
	border-color: var(--lf-accent);
	color: #fff;
}

.league-forge-match-center__cards {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(168px, 1fr);
	gap: 3px;
	overflow-x: auto;
	scrollbar-color: var(--lf-accent) var(--lf-match-panel-strong);
	scrollbar-width: thin;
}

.league-forge-match-center__cards::-webkit-scrollbar {
	height: 6px;
}

.league-forge-match-center__cards::-webkit-scrollbar-track {
	background: var(--lf-match-panel-strong);
	border-radius: 999px;
}

.league-forge-match-center__cards::-webkit-scrollbar-thumb {
	background: var(--lf-accent);
	border: 1px solid var(--lf-match-panel-strong);
	border-radius: 999px;
}

.league-forge-match-center__cards::-webkit-scrollbar-thumb:hover {
	background: var(--lf-accent-strong);
}

.league-forge-match-center__card {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 6px 32px 6px 8px;
	color: var(--lf-match-text);
	text-decoration: none;
}

a.league-forge-match-center__card:hover,
a.league-forge-match-center__card:focus {
	color: var(--lf-match-text);
	text-decoration: none;
	background: #3c3c3c;
}

.league-forge-match-center__card.is-active {
	border-color: var(--lf-accent);
	box-shadow: inset 2px 0 0 var(--lf-accent);
}

.league-forge-match-center__card-date {
	color: var(--lf-match-text);
	font-size: 0.72rem;
	font-weight: 750;
}

.league-forge-match-center__card-status {
	position: absolute;
	top: 7px;
	right: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: var(--lf-accent);
	border-radius: 999px;
	color: #fff;
	font-size: 0.54rem;
	font-weight: 850;
	text-transform: uppercase;
}

.league-forge-match-center__card-team {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: var(--lf-match-muted);
	font-size: 0.72rem;
	font-weight: 650;
}

.league-forge-match-center__card-team img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
}

.league-forge-match-center__card-team span {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-match-center__card-team strong {
	color: var(--lf-match-text);
	font-size: 0.78rem;
	font-weight: 850;
}

@container (max-width: 900px) {
	.league-forge-match-center__stage {
		grid-template-columns: minmax(0, 1fr) minmax(140px, 0.7fr) minmax(0, 1fr);
		min-height: 112px;
		padding: 12px 14px 10px;
	}

	.league-forge-match-center__arrow {
		display: none;
	}

	.league-forge-match-center__rail {
		grid-template-columns: 1fr;
	}
}

@container (max-width: 640px) {
	.league-forge-match-center__stage {
		grid-template-columns: 1fr;
		gap: 9px;
		min-height: 0;
		padding: 12px;
	}

	.league-forge-match-center__meta {
		order: -1;
	}

	.league-forge-match-center__team img {
		width: 44px;
		height: 44px;
	}

	.league-forge-match-center__team strong {
		font-size: 0.82rem;
	}

	.league-forge-match-center__time {
		font-size: 1.45rem;
	}

	.league-forge-match-center__date {
		font-size: 0.78rem;
	}
}

/* Shared league route experience */
.league-forge-route-intro {
	position: relative;
	display: grid;
	grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
	align-items: start;
	gap: clamp(18px, 4vw, 36px);
	margin: 0 0 26px;
	padding: clamp(20px, 4vw, 30px);
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(var(--lf-brand-rgb),0.11), rgba(var(--lf-gold-rgb),0.07)),
		var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(23,26,31,0.06);
}

.league-forge-route-intro::after {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 6px;
	background: linear-gradient(180deg, var(--lf-brand), var(--lf-accent));
}

.league-forge-route-intro__eyebrow {
	margin: 3px 0 0;
	color: var(--lf-brand);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.league-forge-route-intro h2 {
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 850;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.league-forge-route-intro div > p {
	max-width: 720px;
	margin: 9px 0 0;
	color: var(--lf-muted);
	line-height: 1.65;
}

.league-forge-empty-state,
.league-forge-match-section > .league-forge-empty {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 18px 0;
	padding: 20px;
	background: var(--lf-soft);
	border: 1px dashed rgba(var(--lf-brand-rgb),0.32);
	border-radius: 10px;
	color: var(--lf-muted);
}

.league-forge-empty-state__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	background: var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 50%;
	color: var(--lf-brand);
	font-weight: 850;
}

.league-forge-empty-state strong {
	display: block;
	color: var(--lf-ink);
	font-size: 1rem;
}

.league-forge-inline-empty {
	margin: 8px 0 0;
	color: var(--lf-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.league-forge-empty-state p {
	margin: 5px 0 0;
	line-height: 1.55;
}

.league-forge-empty-state a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 13px;
	padding: 7px 13px;
	background: var(--lf-brand);
	border-radius: 7px;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.league-forge-empty-state a:hover {
	background: var(--lf-brand-strong);
	color: #fff;
}

.league-forge-empty-state a:focus-visible,
.league-forge-table-scroll:focus-visible {
	outline: 3px solid var(--lf-focus);
	outline-offset: 3px;
}

.league-forge-table-scroll {
	max-width: 100%;
	margin-top: 16px;
	padding-bottom: 5px;
	border-radius: 8px;
	scrollbar-color: rgba(var(--lf-brand-rgb),0.62) var(--lf-soft);
	scrollbar-width: thin;
}

.league-forge-table-scroll .league-forge-table {
	margin-top: 0;
}

.league-forge-content > .league-forge-table-scroll .league-forge-table:not(.league-forge-table--compact),
.league-forge-stats-section .league-forge-table {
	min-width: 680px;
}

.league-forge-stats-container {
	gap: 22px;
}

.league-forge-stats-section {
	min-width: 0;
	padding: 20px;
	background: var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(23,26,31,0.05);
}

.league-forge-stats-section h3 {
	margin-top: 0;
}

.league-forge-stats-grid {
	gap: 22px;
}

.league-forge-teams-grid {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.league-forge-team-card {
	height: 100%;
	text-align: left;
}

.league-forge-team-card .league-forge-card-link {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	height: 100%;
	padding: 22px;
}

.league-forge-team-card img {
	width: 78px;
	height: 78px;
	margin: 0 0 18px;
	object-fit: contain;
}

.league-forge-team-card h4 {
	font-size: 1.08rem;
}

.league-forge-team-card p {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.league-forge-h2h-header {
	display: grid;
	grid-template-columns: minmax(130px, 1fr) minmax(170px, auto) minmax(130px, 1fr);
	justify-content: stretch;
	gap: 24px;
	padding: clamp(22px, 5vw, 38px);
}

.league-forge-h2h-header .h2h-team:first-child {
	justify-self: end;
}

.league-forge-h2h-header .h2h-team:last-child {
	justify-self: start;
}

.h2h-vs {
	font-variant-numeric: tabular-nums;
}

.league-forge-match-tabs {
	overflow: hidden;
	background: var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(23,26,31,0.05);
}

.league-forge-match-tabs > [role="tabpanel"] {
	padding: 0 22px 22px;
}

.league-forge-primary-tabs {
	background: var(--lf-soft);
	border-bottom-color: var(--lf-line);
}

.league-forge-team-details {
	display: grid;
	gap: 24px;
}

.league-forge-team-stats-summary,
.league-forge-team-squad {
	margin: 0;
	padding: 20px;
	background: var(--lf-panel);
	border: 1px solid var(--lf-line);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(23,26,31,0.05);
}

.league-forge-team-stats-summary h3,
.league-forge-team-squad h3 {
	margin-top: 0;
}

@container (max-width: 700px) {
	.league-forge-route-intro {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.league-forge-route-intro__eyebrow {
		margin: 0;
	}

	.league-forge-h2h-header {
		grid-template-columns: 1fr;
	}

	.league-forge-h2h-header .h2h-team:first-child,
	.league-forge-h2h-header .h2h-team:last-child {
		justify-self: center;
	}

	.league-forge-match-tabs > [role="tabpanel"] {
		padding-inline: 15px;
	}

	.league-forge-table-scroll .league-forge-table th:nth-child(n),
	.league-forge-table-scroll .league-forge-table td:nth-child(n) {
		display: table-cell;
	}
}

@container (max-width: 430px) {
	.league-forge-empty-state {
		display: block;
	}

	.league-forge-empty-state__mark {
		margin-bottom: 10px;
	}

	.league-forge-stats-section,
	.league-forge-team-stats-summary,
	.league-forge-team-squad {
		padding: 15px;
	}
}
