/* Último jogo + Próximos jogos — homepage */
.fcf-matches {
	--fcf-matches-bg: var(--fcf-blue-900, #051e33);
	--fcf-matches-meta: #183e67;
	--fcf-matches-panel: #123357;
	--fcf-matches-ink: #fff;
	--fcf-matches-ink-soft: rgba(255, 255, 255, 0.88);
	--fcf-matches-meta-round: rgba(255, 255, 255, 0.58);
	--fcf-matches-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--fcf-matches-height: 50vh;
	position: relative;
	z-index: 2;
	width: 100%;
	min-height: var(--fcf-matches-height);
	height: var(--fcf-matches-height);
	display: flex;
	align-items: center;
	box-sizing: border-box;
	padding: clamp(40px, 5.5vh, 64px) 0;
	background: var(--fcf-matches-bg);
	color: var(--fcf-matches-ink);
	font-family: var(--fcf-font-body, "Poppins", sans-serif);
	overflow: hidden;
}

.fcf-matches__inner,
.fcf-matches__layout {
	width: var(--theme-container-width, min(100%, var(--theme-normal-container-max-width, min(1920px, calc(100vw - (var(--fcf-site-gutter, 0px) * 2))))));
	max-width: var(--theme-normal-container-max-width, min(1920px, calc(100vw - (var(--fcf-site-gutter, 0px) * 2))));
	margin: 0 auto;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(28px, 4vh, 40px);
}

.fcf-matches__column {
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 1.6vw, 18px);
	min-height: 0;
	flex: 1 1 auto;
}

.fcf-matches__upcoming-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	flex: 1 1 auto;
}

.fcf-matches__block-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.fcf-matches__block-title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--fcf-matches-ink) !important;
	background: none !important;
	line-height: 1 !important;
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif) !important;
	font-size: var(--fcf-h2-size) !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
}

.fcf-matches__block-link {
	color: var(--fcf-matches-ink);
}

.fcf-matches__block-link:hover,
.fcf-matches__block-link:focus-visible {
	color: var(--fcf-matches-ink);
	opacity: 0.78;
}

/* Card jogo */
.fcf-fixture {
	display: grid;
	grid-template-columns: minmax(118px, 34%) 1fr;
	position: relative;
	min-height: 0;
	flex: 1 1 auto;
	background: var(--fcf-matches-panel);
	color: var(--fcf-matches-ink);
	text-decoration: none !important;
	overflow: hidden;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition:
		transform 0.45s var(--fcf-matches-ease),
		box-shadow 0.45s var(--fcf-matches-ease);
}

.fcf-fixture::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	width: 0;
	height: 3px;
	background: #edca57;
	transition: width 0.45s var(--fcf-matches-ease);
}

@media (hover: hover) {
	a.fcf-fixture:hover,
	a.fcf-fixture:focus-visible,
	.fcf-fixture--upcoming:hover,
	.fcf-fixture--upcoming:focus-within {
		transform: translateY(-6px);
		box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
	}

	a.fcf-fixture:hover::before,
	a.fcf-fixture:focus-visible::before,
	.fcf-fixture--upcoming:hover::before,
	.fcf-fixture--upcoming:focus-within::before {
		width: 100%;
	}

	a.fcf-fixture:hover .fcf-fixture__meta,
	a.fcf-fixture:focus-visible .fcf-fixture__meta,
	.fcf-fixture--upcoming:hover .fcf-fixture__meta,
	.fcf-fixture--upcoming:focus-within .fcf-fixture__meta {
		background: #1f4d7d;
	}

	a.fcf-fixture:hover .fcf-fixture__main,
	a.fcf-fixture:focus-visible .fcf-fixture__main,
	.fcf-fixture--upcoming:hover .fcf-fixture__main,
	.fcf-fixture--upcoming:focus-within .fcf-fixture__main {
		background: #164872;
	}

	a.fcf-fixture:hover .fcf-fixture__score,
	a.fcf-fixture:focus-visible .fcf-fixture__score,
	.fcf-fixture--upcoming:hover .fcf-fixture__score,
	.fcf-fixture--upcoming:focus-within .fcf-fixture__score {
		transform: scale(1.05);
	}
}

a.fcf-fixture:hover,
a.fcf-fixture:focus-visible {
	color: var(--fcf-matches-ink);
	outline: none;
}

.fcf-fixture__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-height: 100%;
	padding: 22px 20px 20px;
	background: var(--fcf-matches-meta);
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-align: center;
	text-transform: uppercase;
	transition: background 0.45s var(--fcf-matches-ease);
}

.fcf-fixture__meta-top,
.fcf-fixture__meta-bottom {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.45em;
}

.fcf-fixture__meta-top {
	font-size: 1rem;
}

.fcf-fixture__competition,
.fcf-fixture__round,
.fcf-fixture__date,
.fcf-fixture__time {
	display: block;
}

.fcf-fixture__round {
	color: var(--fcf-matches-meta-round);
}

.fcf-fixture__main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 100%;
	padding: 16px 20px 18px;
	background: var(--fcf-matches-panel);
	text-align: center;
	transition: background 0.45s var(--fcf-matches-ease);
}

.fcf-fixture__venue {
	margin: 0;
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fcf-matches-ink);
}

.fcf-fixture__scoreboard {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 3.5vw, 28px);
	width: 100%;
	max-width: 100%;
}

.fcf-fixture__logo {
	width: clamp(72px, 10vw, 96px);
	height: clamp(72px, 10vw, 96px);
	object-fit: contain;
	flex-shrink: 0;
	filter: none;
	opacity: 1;
	transition: none;
}

a.fcf-fixture:hover .fcf-fixture__logo,
a.fcf-fixture:focus-visible .fcf-fixture__logo,
.fcf-fixture:hover .fcf-fixture__logo,
.fcf-fixture:focus-within .fcf-fixture__logo {
	filter: none !important;
	opacity: 1 !important;
	transform: none !important;
}

.fcf-fixture__logo--placeholder {
	display: block;
	width: clamp(72px, 10vw, 96px);
	height: clamp(72px, 10vw, 96px);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.fcf-fixture__score {
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-size: clamp(2.75rem, 8vw, 3.75rem);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: 0.08em;
	white-space: nowrap;
	transition: transform 0.45s var(--fcf-matches-ease);
}

.fcf-fixture__matchup {
	margin: 0;
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--fcf-matches-ink);
}

.fcf-fixture__tickets {
	grid-column: 1 / -1;
	display: block;
	padding: 16px 18px;
	background: #e8edf2;
	color: var(--fcf-blue-900, #051e33);
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.45s var(--fcf-matches-ease);
}

.fcf-fixture__tickets strong {
	font-weight: 800;
}

.fcf-fixture__tickets span {
	font-weight: 500;
}

.fcf-fixture__tickets:hover,
.fcf-fixture__tickets:focus-visible {
	background: #dce4ec;
	color: var(--fcf-blue-900, #051e33);
	transform: translateY(-1px);
}

.fcf-fixture--upcoming {
	grid-template-rows: auto auto;
}

.fcf-fixture:not(.fcf-fixture--upcoming) .fcf-fixture__main {
	min-height: 0;
}

@media (min-width: 1000px) {
	.fcf-matches {
		height: auto;
		min-height: 0;
		padding: clamp(72px, 7.5vh, 100px) 0;
		overflow: visible;
	}

	.fcf-matches__layout {
		gap: clamp(20px, 2.5vw, 28px);
	}

	.fcf-matches__layout--duo {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		align-items: start;
	}

	.fcf-matches__column--last .fcf-fixture {
		flex: 0 0 auto;
		width: 100%;
		align-self: stretch;
	}

	.fcf-matches__column--last,
	.fcf-matches__column--upcoming {
		min-width: 0;
	}

	.fcf-matches__column--upcoming {
		gap: clamp(14px, 1.6vw, 18px);
	}

	.fcf-matches__upcoming-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(16px, 2vw, 24px);
		flex: 1;
	}

	.fcf-matches__upcoming-grid .fcf-fixture:only-child {
		grid-column: 1 / -1;
		max-width: calc(50% - (clamp(16px, 2vw, 24px) / 2));
	}

	.fcf-matches__layout--duo .fcf-matches__column--last .fcf-matches__block-link {
		display: none;
	}

	.fcf-matches__block-head--upcoming .fcf-matches__block-link {
		max-width: var(--fcf-section-link-max-width);
		font-size: var(--fcf-section-link-size);
	}

	.fcf-fixture {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.fcf-fixture--upcoming {
		grid-template-rows: auto 1fr auto;
		min-height: clamp(220px, 24vw, 280px);
	}

	.fcf-fixture:not(.fcf-fixture--upcoming) {
		grid-template-rows: auto auto;
		height: auto;
	}

	.fcf-fixture__meta {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: clamp(1.25rem, 2.5vw, 2rem);
		min-height: auto;
		padding: 14px 18px;
		text-align: center;
	}

	.fcf-fixture__meta-top,
	.fcf-fixture__meta-bottom {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: center;
		gap: 0.45em;
	}

	.fcf-fixture__meta-top {
		font-size: clamp(0.875rem, 1vw, 1rem);
	}

	.fcf-fixture__meta-bottom {
		font-size: clamp(0.875rem, 1vw, 1rem);
	}

	.fcf-fixture__round {
		color: var(--fcf-matches-meta-round);
	}

	.fcf-fixture__date,
	.fcf-fixture__time {
		display: inline;
	}

	.fcf-fixture__time::before {
		content: " ";
	}

	.fcf-fixture__main {
		padding: clamp(18px, 2.2vh, 28px) clamp(18px, 2vw, 24px);
		gap: 12px;
	}

	.fcf-fixture__venue {
		font-size: clamp(0.75rem, 0.9vw, 0.875rem);
	}

	.fcf-fixture__logo,
	.fcf-fixture__logo--placeholder {
		width: clamp(80px, 7vw, 108px);
		height: clamp(80px, 7vw, 108px);
	}

	.fcf-fixture__score {
		font-size: clamp(2.5rem, 3.2vw, 3.25rem);
	}

	.fcf-fixture__matchup {
		font-size: clamp(0.75rem, 0.85vw, 0.875rem);
	}

	.fcf-fixture__tickets {
		padding: 15px 18px;
		font-size: clamp(0.875rem, 1vw, 1rem);
	}
}

@media (max-width: 999px) {
	.fcf-matches {
		height: auto;
		min-height: 0;
		overflow: visible;
		align-items: stretch;
		padding: clamp(48px, 8vw, 64px) 0;
	}

	.fcf-matches__layout {
		flex: none;
		min-height: auto;
		justify-content: flex-start;
		gap: clamp(28px, 6vw, 40px);
	}

	.fcf-matches__column--last,
	.fcf-matches__column--upcoming {
		flex: none;
		min-height: auto;
	}

	.fcf-matches__column--last .fcf-fixture {
		flex: 0 0 auto;
	}

	.fcf-matches__upcoming-grid .fcf-fixture:nth-child(n + 2) {
		display: none;
	}
}

@media (max-width: 768px) {
	.fcf-matches {
		height: auto;
		min-height: 0;
		overflow: visible;
		align-items: stretch;
		padding: 56px 0;
	}

	.fcf-matches__layout {
		flex: none;
		min-height: auto;
		justify-content: flex-start;
		gap: 36px;
		padding-top: 12px;
	}

	.fcf-matches__column,
	.fcf-matches__upcoming-grid {
		flex: none;
		min-height: auto;
		gap: 12px;
	}

	.fcf-fixture {
		grid-template-columns: minmax(112px, 34%) 1fr;
		min-height: 148px;
	}

	.fcf-matches__block-link {
		max-width: 50%;
		font-size: var(--fcf-section-link-size-mobile);
	}

	.fcf-fixture__meta {
		padding: 18px 16px 16px;
		font-size: 0.8125rem;
		gap: 16px;
	}

	.fcf-fixture__meta-top {
		font-size: 0.9375rem;
	}

	.fcf-fixture__main {
		padding: 14px 12px 16px;
		gap: 8px;
	}

	.fcf-fixture__scoreboard {
		gap: 12px;
	}

	.fcf-fixture__logo,
	.fcf-fixture__logo--placeholder {
		width: clamp(56px, 14vw, 76px);
		height: clamp(56px, 14vw, 76px);
	}

	.fcf-fixture__score {
		font-size: clamp(2.25rem, 11vw, 3rem);
		font-weight: 400;
		letter-spacing: 0.1em;
	}

	.fcf-fixture__matchup {
		font-size: 0.6875rem;
	}

	.fcf-fixture__venue {
		font-size: 0.6875rem;
	}

	.fcf-fixture__tickets {
		padding: 15px 16px;
		font-size: 0.8125rem;
	}
}

@media (max-width: 640px) {
	.fcf-matches__block-head {
		align-items: flex-end;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fcf-matches__block-link,
	.fcf-fixture,
	.fcf-fixture::before,
	.fcf-fixture__meta,
	.fcf-fixture__main,
	.fcf-fixture__score,
	.fcf-fixture__tickets {
		transition: none;
	}

	a.fcf-fixture:hover,
	a.fcf-fixture:focus-visible,
	.fcf-fixture--upcoming:hover,
	.fcf-fixture--upcoming:focus-within {
		transform: none;
	}

	a.fcf-fixture:hover .fcf-fixture__score,
	a.fcf-fixture:focus-visible .fcf-fixture__score,
	.fcf-fixture--upcoming:hover .fcf-fixture__score,
	.fcf-fixture--upcoming:focus-within .fcf-fixture__score {
		transform: none;
	}
}
