.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-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-card time,
.aif88-game-card small,
.aif88-team-card span {
	color: #59636e;
	display: block;
	font-size: 0.875em;
}

.aif88-game-card div {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin: 10px 0;
}

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

.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-matchup b {
	color: var(--aif88-red);
	font-weight: 400;
	padding: 0 8px;
}

.aif88-table-wrap {
	overflow-x: auto;
}

.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 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;
	padding: 24px;
}

.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-conference + .aif88-standings-conference {
	margin-top: 28px;
}

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

.aif88-standings-table {
	background: #fff;
	font-size: 0.875rem;
	min-width: 1180px;
}

.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;
	left: 0;
	min-width: 42px;
	position: sticky;
	z-index: 2;
}

.aif88-standing-team {
	left: 66px;
	min-width: 180px;
	position: sticky;
	z-index: 2;
}

.aif88-standings-table thead th:first-child,
.aif88-standings-table thead th:nth-child(2) {
	position: sticky;
	z-index: 3;
}

.aif88-standings-table thead th:first-child {
	left: 0;
}

.aif88-standings-table thead th:nth-child(2) {
	left: 66px;
}

.aif88-standings-table tbody .aif88-standing-team,
.aif88-standings-table tbody .aif88-standing-rank {
	background: #fff;
}

.aif88-standings-table tbody tr:hover .aif88-standing-team,
.aif88-standings-table tbody tr:hover .aif88-standing-rank {
	background: #f7f9fc;
}

.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 (max-width: 599px) {
	.aif88-game-list,
	.aif88-team-grid {
		grid-template-columns: 1fr;
	}

	.aif88-matchup {
		gap: 8px;
	}

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

	.aif88-standings {
		border-radius: 0;
		margin-left: -16px;
		margin-right: -16px;
		padding: 16px;
	}

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