.aif88-frontend {
	--aif88-navy: #17408b;
	--aif88-red: #c8102e;
	--aif88-bg: #f4f6f8;
	--aif88-text: #1d2733;
	color: var(--aif88-text);
}

.aif88-game-list,
.aif88-team-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.aif88-hub {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.aif88-hub-card {
	background: #fff;
	border: 1px solid #d9e2ef;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(23, 64, 139, 0.08);
	color: var(--aif88-text);
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-height: 190px;
	padding: 24px;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.aif88-hub-card:hover,
.aif88-hub-card:focus {
	border-color: var(--aif88-navy);
	box-shadow: 0 12px 30px rgba(23, 64, 139, 0.16);
	transform: translateY(-3px);
}

.aif88-hub-icon {
	font-size: 2rem;
}

.aif88-hub-card strong {
	color: var(--aif88-navy);
	font-size: 1.25rem;
}

.aif88-hub-card small {
	color: #59636e;
	flex: 1;
	line-height: 1.65;
}

.aif88-hub-card b {
	color: var(--aif88-red);
}

.aif88-game-card,
.aif88-team-card,
.aif88-game-detail,
.aif88-team-detail {
	background: #fff;
	border: 1px solid #d9dee5;
	border-radius: 8px;
	box-sizing: border-box;
	padding: 18px;
}

.aif88-game-card {
	border-top: 4px solid var(--aif88-navy);
}

.aif88-game-detail {
	border-top: 5px solid var(--aif88-navy);
	box-shadow: 0 12px 36px rgba(23, 64, 139, 0.08);
	padding: clamp(20px, 4vw, 38px);
}

.aif88-game-detail-header {
	align-items: flex-start;
	display: flex;
	gap: 18px;
	justify-content: space-between;
}

.aif88-game-detail-header time {
	color: var(--aif88-navy);
	display: block;
	font-size: 1.15rem;
	font-weight: 800;
}

.aif88-game-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.aif88-game-chips span,
.aif88-game-status {
	background: #e8eef8;
	border-radius: 999px;
	color: var(--aif88-navy);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 7px 11px;
}

.aif88-game-status {
	background: var(--aif88-navy);
	color: #fff;
	white-space: nowrap;
}

.aif88-game-status.is-live {
	background: var(--aif88-red);
}

.aif88-game-status.is-final {
	background: #263648;
}

.aif88-status-note {
	background: #fff5f6;
	border-left: 4px solid var(--aif88-red);
	margin: 18px 0 0;
	padding: 10px 14px;
}

.aif88-game-summary {
	background: #f4f7fb;
	border-left: 4px solid var(--aif88-navy);
	margin-top: 22px;
	padding: 16px 18px;
}

.aif88-game-summary h2,
.aif88-game-faq h2 {
	color: var(--aif88-navy);
	font-size: 1.15rem;
	margin: 0 0 8px;
}

.aif88-game-summary p {
	line-height: 1.75;
	margin: 0;
}

.aif88-game-card time,
.aif88-game-card small,
.aif88-team-card span {
	color: #59636e;
	display: block;
	font-size: 0.875em;
}

.aif88-schedule-filters {
	align-items: start;
	background: #fff;
	border: 1px solid #dce5f1;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(26, 62, 116, 0.07);
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin-bottom: 24px;
	padding: 16px;
}

.aif88-schedule-filters label,
.aif88-schedule-filters label span {
	display: block;
}

.aif88-schedule-filters label small {
	color: #75849a;
	display: block;
	font-size: 0.68rem;
	line-height: 1.35;
	margin: 5px 2px 0;
}

.aif88-schedule-filters label span {
	color: #24364d;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 2px 6px;
}

.aif88-schedule-filters input,
.aif88-schedule-filters select,
.aif88-schedule-filters button {
	border: 1px solid #bdc9d9;
	background-color: #f8fafd;
	border-radius: 9px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 0.92rem;
	min-height: 44px;
	padding: 8px 12px;
	width: 100%;
}

.aif88-schedule-filters select:focus,
.aif88-schedule-filters button:focus-visible,
.aif88-filter-actions > a:focus-visible {
	box-shadow: 0 0 0 3px rgba(32, 76, 148, 0.16);
	outline: 2px solid var(--aif88-navy);
	outline-offset: 1px;
}

.aif88-schedule-filters button {
	background: var(--aif88-navy);
	border-color: var(--aif88-navy);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	white-space: nowrap;
}

.aif88-schedule-filters button:hover {
	background: #153d7f;
	box-shadow: 0 5px 12px rgba(26, 62, 116, 0.18);
}

.aif88-filter-actions {
	align-items: center;
	align-self: start;
	display: flex;
	gap: 6px;
	justify-content: flex-start;
	margin-top: 24px;
	min-width: 0;
}

.aif88-filter-actions button {
	flex: 1 1 auto;
}

.aif88-filter-actions > a {
	align-items: center;
	background: #fff;
	border: 1px solid var(--aif88-navy);
	border-radius: 9px;
	box-sizing: border-box;
	color: var(--aif88-navy);
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 8px 18px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.aif88-filter-actions > a:hover {
	background: #eaf0f9;
	box-shadow: 0 5px 12px rgba(26, 62, 116, 0.12);
}

.aif88-game-dates {
	background: #fff;
	border: 1px solid #dce5f1;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(26, 62, 116, 0.06);
	margin: -8px 0 24px;
	padding: 14px 16px 16px;
}

.aif88-game-dates > strong {
	color: #24364d;
	display: block;
	font-size: 0.82rem;
	margin-bottom: 10px;
}

.aif88-game-date-scroller {
	align-items: stretch;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 38px;
	gap: 8px;
}

.aif88-game-date-list {
	-webkit-overflow-scrolling: touch;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 2px 2px 6px;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.aif88-game-date-nav {
	align-items: center;
	background: var(--aif88-navy);
	border: 1px solid var(--aif88-navy);
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 1.8rem;
	justify-content: center;
	min-width: 38px;
	padding: 0;
}

.aif88-game-date-nav:hover,
.aif88-game-date-nav:focus-visible {
	background: #153d7f;
}

.aif88-game-date-nav:disabled {
	background: #edf2f8;
	border-color: #d4deeb;
	color: #8b98aa;
	cursor: default;
	opacity: .55;
}

.aif88-game-date {
	align-items: center;
	background: #f4f7fb;
	border: 1px solid #d4deeb;
	border-radius: 10px;
	color: var(--aif88-navy);
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	font-size: 0.82rem;
	font-weight: 700;
	justify-content: center;
	min-height: 48px;
	min-width: 72px;
	padding: 7px 12px;
	text-decoration: none;
}

.aif88-game-date:first-child {
	min-width: 132px;
}

.aif88-game-date small {
	color: #75849a;
	font-size: 0.68rem;
	font-weight: 600;
	margin-top: 2px;
}

.aif88-game-date:hover,
.aif88-game-date:focus-visible,
.aif88-game-date.is-active {
	background: var(--aif88-navy);
	border-color: var(--aif88-navy);
	color: #fff;
}

.aif88-game-date.is-active small {
	color: #dce7f8;
}

/* Keep cached pre-2.3.6 form markup usable until page caches expire. */
.aif88-schedule-filters > button {
	align-self: end;
}

.aif88-schedule-filters > a {
	align-self: end;
	color: var(--aif88-navy);
	font-size: .85rem;
	font-weight: 700;
	padding: 12px 8px;
	text-align: center;
}

.aif88-card-matchup {
	align-items: stretch;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	margin: 14px 0 10px;
}

.aif88-game-meta {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.aif88-game-stage {
	background: #e8eef8;
	border-radius: 999px;
	color: var(--aif88-navy);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 8px;
}

.aif88-card-team {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	padding: 8px 4px;
	text-align: center;
	transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}

.aif88-card-team img,
.aif88-logo-placeholder {
	border-radius: 50%;
	height: 52px;
	object-fit: contain;
	width: 52px;
}

.aif88-logo-placeholder {
	align-items: center;
	background: #e8eef8;
	color: var(--aif88-navy);
	display: flex;
	font-size: 1.25rem;
	font-weight: 800;
	justify-content: center;
}

.aif88-card-team span,
.aif88-card-team strong {
	display: block;
}

.aif88-card-team span b {
	color: #718096;
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
}

.aif88-card-team strong {
	font-size: 1.45rem;
}

.aif88-card-team.is-winner {
	color: var(--aif88-navy);
	transform: scale(1.03);
}

.aif88-card-team.is-winner strong {
	color: var(--aif88-red);
}

.aif88-card-team.is-loser {
	filter: grayscale(0.75);
	opacity: 0.48;
}

.aif88-versus {
	align-self: center;
	color: #8a96a6;
	font-size: 0.72rem;
	font-weight: 800;
}

.aif88-team-card {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: center;
}

.aif88-team-logo {
	height: 72px;
	margin-bottom: 6px;
	object-fit: contain;
	width: 72px;
}

.aif88-team-card a,
.aif88-detail-link {
	color: var(--aif88-navy);
	font-weight: 700;
	text-decoration: none;
}

.aif88-detail-link {
	display: inline-block;
	margin-top: 12px;
}

.aif88-team-card a:hover,
.aif88-team-card a:focus,
.aif88-detail-link:hover,
.aif88-detail-link:focus {
	color: var(--aif88-red);
	text-decoration: underline;
}

.aif88-matchup {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr auto 1fr;
	margin: 24px 0;
	text-align: center;
}

.aif88-matchup strong {
	color: var(--aif88-navy);
	font-size: 2em;
}

.aif88-detail-score {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: center;
}

.aif88-detail-score small {
	color: #59636e;
	font-size: 0.75rem;
	font-weight: 700;
}

.aif88-matchup b {
	color: var(--aif88-red);
	font-weight: 400;
	padding: 0 8px;
}

.aif88-detail-team {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aif88-detail-team > b {
	color: #718096;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0;
}

.aif88-detail-team img {
	height: 84px;
	object-fit: contain;
	width: 84px;
}

.aif88-detail-logo-placeholder {
	align-items: center;
	background: #e8eef8;
	border-radius: 50%;
	color: var(--aif88-navy);
	display: flex;
	font-size: 2rem;
	font-weight: 800;
	height: 84px;
	justify-content: center;
	width: 84px;
}

.aif88-detail-team > strong {
	font-size: 1.15rem;
}

.aif88-detail-team > small {
	color: #718096;
	font-size: 0.75rem;
}

.aif88-detail-team.is-winner {
	color: var(--aif88-navy);
	font-weight: 800;
}

.aif88-detail-team.is-loser {
	filter: grayscale(0.75);
	opacity: 0.48;
}

.aif88-game-section {
	border-top: 1px solid #d9e2ef;
	margin-top: 24px;
	padding-top: 22px;
}

.aif88-game-section h3 {
	color: var(--aif88-navy);
	font-size: 1.1rem;
	margin: 0 0 14px;
}

.aif88-period-table {
	border-collapse: collapse;
	width: 100%;
}

.aif88-period-table th,
.aif88-period-table td {
	border-bottom: 1px solid #e5e9ef;
	padding: 10px 12px;
	text-align: center;
}

.aif88-period-table th:first-child {
	text-align: left;
}

.aif88-game-facts {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 0;
}

.aif88-game-facts > div {
	background: #f4f7fb;
	border-radius: 8px;
	padding: 12px 14px;
}

.aif88-game-facts dt {
	color: #718096;
	font-size: 0.72rem;
	font-weight: 800;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.aif88-game-facts dd {
	font-weight: 700;
	margin: 0;
}

.aif88-game-updated {
	color: #718096;
	font-size: 0.75rem;
	margin-top: 24px;
	text-align: right;
}

.aif88-game-faq {
	border-top: 1px solid #d9e2ef;
	margin-top: 24px;
	padding-top: 22px;
}

.aif88-game-faq dl {
	display: grid;
	gap: 10px;
	margin: 0;
}

.aif88-game-faq dl > div {
	background: #f4f7fb;
	border-radius: 8px;
	padding: 13px 15px;
}

.aif88-game-faq dt {
	color: var(--aif88-navy);
	font-weight: 800;
}

.aif88-game-faq dd {
	line-height: 1.6;
	margin: 5px 0 0;
}

.aif88-table-wrap {
	-webkit-overflow-scrolling: touch;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
}

.aif88-table-wrap table {
	border-collapse: collapse;
	min-width: 520px;
	width: 100%;
}

.aif88-table-wrap th,
.aif88-table-wrap td {
	border-bottom: 1px solid #d9dee5;
	padding: 12px;
	text-align: left;
}

.aif88-table-wrap thead th {
	background: var(--aif88-navy);
	color: #fff;
}

.aif88-empty {
	background: var(--aif88-bg);
	border-left: 4px solid var(--aif88-navy);
	padding: 18px;
}

.aif88-standings {
	background: var(--aif88-bg);
	border-radius: 12px;
	box-sizing: border-box;
	margin-left: 50%;
	padding: 24px;
	transform: translateX(-50%);
	width: min(1180px, calc(100vw - 32px));
}

.aif88-standings-header,
.aif88-standings-title {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.aif88-standings-header {
	border-bottom: 3px solid var(--aif88-red);
	gap: 24px;
	margin-bottom: 24px;
	padding-bottom: 16px;
}

.aif88-standings-header h2,
.aif88-standings-title h3 {
	margin: 0;
}

.aif88-standings-header p,
.aif88-standings-title span {
	color: #59636e;
	margin: 0;
}

.aif88-standings-kicker {
	color: var(--aif88-red);
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.aif88-standings-filter {
	align-items: end;
	background: #fff;
	border: 1px solid #d9e2ef;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
	padding: 14px;
}

.aif88-standings-filter label {
	font-weight: 700;
	padding-bottom: 10px;
}

.aif88-standings-filter select,
.aif88-standings-filter button {
	border: 1px solid #bdc9d9;
	border-radius: 6px;
	font: inherit;
	min-height: 42px;
	padding: 8px 12px;
}

.aif88-standings-filter button {
	background: var(--aif88-navy);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
}

.aif88-standings-conference + .aif88-standings-conference {
	margin-top: 28px;
}

.aif88-standings-title {
	margin-bottom: 10px;
}

.aif88-standings-table {
	background: #fff;
	font-size: clamp(0.75rem, 1vw, 0.875rem);
	min-width: 960px;
	table-layout: auto;
}

.aif88-standings-table tbody tr:hover {
	background: #f7f9fc;
}

.aif88-standings-table td:not(.aif88-standing-team),
.aif88-standings-table thead th:not(:nth-child(2)) {
	text-align: center;
}

.aif88-standing-rank {
	background: #fff;
	color: var(--aif88-navy);
	font-size: 1rem;
	font-weight: 700;
	min-width: 52px;
	width: 52px;
}

.aif88-standing-team {
	background: #fff;
	color: var(--aif88-navy);
	font-weight: 800;
	min-width: 160px;
	white-space: nowrap;
}

.aif88-standings-table thead th:first-child {
	min-width: 52px;
	width: 52px;
}

.aif88-standings-table thead th:nth-child(2) {
	min-width: 160px;
}

.aif88-standings-table th:not(:nth-child(2)),
.aif88-standings-table td {
	min-width: 52px;
	white-space: nowrap;
}

.aif88-standings-scroll-note {
	color: #59636e;
	font-size: 0.78rem;
	margin: 0 0 8px;
}

.aif88-standing-status {
	background: #e8eef8;
	border-radius: 999px;
	color: var(--aif88-navy);
	display: inline-block;
	font-weight: 600;
	padding: 3px 9px;
	white-space: nowrap;
}

@media (min-width: 960px) {
	.aif88-standings .aif88-table-wrap {
		overflow-x: visible;
	}

	.aif88-standings-table {
		min-width: 0;
	}

	.aif88-standings-table th,
	.aif88-standings-table td {
		padding: 10px 7px;
	}

	.aif88-standings-scroll-note {
		display: none;
	}
}

@media (max-width: 960px) {
	.aif88-schedule-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aif88-schedule-filters .aif88-date-filter {
		grid-column: 1 / -1;
	}

	.aif88-filter-actions {
		align-items: center;
		flex-direction: row;
		grid-column: 1 / -1;
		justify-content: flex-end;
		margin-top: 0;
	}

	.aif88-filter-actions button {
		width: auto;
	}
}

@media (max-width: 599px) {
	.aif88-game-date-scroller {
		grid-template-columns: 32px minmax(0, 1fr) 32px;
		gap: 5px;
	}

	.aif88-game-date-nav {
		min-width: 32px;
	}
	.aif88-game-list,
	.aif88-team-grid {
		grid-template-columns: 1fr;
	}

	.aif88-matchup {
		gap: 8px;
	}

	.aif88-matchup strong {
		font-size: 1.5em;
	}

	.aif88-game-detail-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.aif88-matchup {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	}

	.aif88-detail-team img,
	.aif88-detail-logo-placeholder {
		height: 60px;
		width: 60px;
	}

	.aif88-detail-team > strong {
		font-size: 0.9rem;
	}

	.aif88-detail-team > small {
		display: none;
	}

	.aif88-game-facts {
		grid-template-columns: 1fr;
	}

	.aif88-schedule-filters {
		gap: 16px;
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.aif88-schedule-filters label,
	.aif88-schedule-filters .aif88-date-filter,
	.aif88-filter-actions {
		grid-column: auto;
	}

	.aif88-schedule-filters input,
	.aif88-schedule-filters select {
		width: 100%;
	}

	.aif88-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.aif88-filter-actions button {
		width: 100%;
	}

	.aif88-filter-actions > a {
		width: 100%;
	}

	.aif88-standings {
		border-radius: 0;
		margin-left: 50%;
		padding: 16px;
		width: 100vw;
	}

	.aif88-standings-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.aif88-standings-filter label,
	.aif88-standings-filter select,
	.aif88-standings-filter button {
		width: 100%;
	}
}

.aif88-language-switcher {
	background: #f4f7fb;
	border: 1px solid #d9e2ef;
	border-radius: 999px;
	display: flex;
	gap: 4px;
	margin: 0 0 16px auto;
	padding: 4px;
	width: fit-content;
}

.aif88-language-switcher a {
	border-radius: 999px;
	color: var(--aif88-navy);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 9px 14px;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.aif88-language-switcher a:hover,
.aif88-language-switcher a:focus-visible {
	background: #e3eaf5;
}

.aif88-language-switcher a.is-active {
	background: var(--aif88-navy);
	box-shadow: 0 2px 5px rgba(23, 64, 139, .24);
	color: #fff;
}

@media (max-width: 599px) {
	.aif88-language-switcher {
		margin-left: 0;
		width: 100%;
	}

	.aif88-language-switcher a {
		flex: 1;
		padding-inline: 8px;
		text-align: center;
	}
}
.aif88-model-evidence { background:#f2f7ff; border:1px solid #cbd8f0; border-left:5px solid #2d63ed; border-radius:12px; margin:22px 0; padding:20px; }
.aif88-model-evidence h2 { margin-top:0; }
.aif88-model-evidence ul { display:grid; gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:0; padding-left:0; }
.aif88-model-evidence li { background:#fff; border-radius:8px; list-style:none; margin:0; padding:10px 12px; }
@media(max-width:720px){.aif88-model-evidence ul{grid-template-columns:1fr}}
