/* Classificação — dark / clean (+ compact) */

.fcf-standings,
.fcf-standings * {
	box-sizing: border-box;
	-webkit-user-drag: none;
	user-select: none;
}

.fcf-standings {
	--fcf-standings-ink: #fff;
	--fcf-standings-muted: rgba(255, 255, 255, 0.58);
	--fcf-standings-soft: rgba(255, 255, 255, 0.92);
	--fcf-standings-home-rgb: 18, 51, 87;
	--fcf-zone-cl: #1d4ed8;
	--fcf-zone-el: #d97706;
	--fcf-zone-uecl: #059669;
	--fcf-zone-playoff: #ca8a04;
	--fcf-zone-releg: #dc2626;
	--fcf-form-win-bg: rgba(34, 197, 94, 0.28);
	--fcf-form-win-ink: #bbf7d0;
	--fcf-form-draw-bg: rgba(255, 255, 255, 0.16);
	--fcf-form-draw-ink: #f1f5f9;
	--fcf-form-loss-bg: rgba(239, 68, 68, 0.28);
	--fcf-form-loss-ink: #fecaca;
	--fcf-standings-ease: cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	color: var(--fcf-standings-ink);
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	line-height: 1.3;
}

.fcf-standings__table-scroll,
.fcf-standings__table {
	touch-action: pan-y;
}

/* Page shell */
body.has-fcf-standings {
	background: var(--fcf-blue-900, #051e33);
	overflow-x: clip;
}

body.has-fcf-standings #main-container,
body.has-fcf-standings main.site-main {
	background: var(--fcf-blue-900, #051e33);
	padding-top: 0 !important;
}

body.has-fcf-standings .hero-section,
body.has-fcf-standings .entry-header,
body.has-fcf-standings .page-title:not(.fcf-match-page__title),
body.has-fcf-standings .ct-breadcrumbs,
body.has-fcf-standings main.site-main > .ct-container > .entry-header {
	display: none !important;
}

.fcf-standings-page.fcf-match-page {
	padding: 0 0 var(--fcf-page-section-padding-bottom);
	color: var(--fcf-standings-ink);
}

.fcf-standings-page .fcf-standings {
	padding-top: 0;
}

/* Intro animation */
@keyframes fcf-standings-fade-up {
	from {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes fcf-standings-row-in {
	from {
		opacity: 0;
		transform: translate3d(0, 14px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.fcf-standings:not(.is-standings-entered) .fcf-standings__meta-item,
.fcf-standings-page:not(.is-standings-entered) .fcf-match-page__title,
.fcf-standings:not(.is-standings-entered) .fcf-standings__table thead,
.fcf-standings:not(.is-standings-entered) .fcf-standings__row {
	opacity: 0;
}

.fcf-standings.is-standings-entered .fcf-standings__meta-item {
	animation: fcf-standings-fade-up 0.82s var(--fcf-standings-ease) both;
}

.fcf-standings.is-standings-entered .fcf-standings__meta-item:nth-child(1) {
	animation-delay: 0.04s;
}

.fcf-standings.is-standings-entered .fcf-standings__meta-item:nth-child(2) {
	animation-delay: 0.08s;
}

.fcf-standings-page.is-standings-entered .fcf-match-page__title {
	animation: fcf-standings-fade-up 0.85s var(--fcf-standings-ease) 0.05s both;
}

.fcf-standings.is-standings-entered .fcf-standings__table thead {
	animation: fcf-standings-fade-up 0.78s var(--fcf-standings-ease) 0.18s both;
}

.fcf-standings.is-standings-entered .fcf-standings__row {
	animation: fcf-standings-row-in 0.55s var(--fcf-standings-ease) both;
	animation-delay: calc(0.22s + (var(--fcf-standings-row-index, 0) * 0.038s));
}

@media (prefers-reduced-motion: reduce) {
	.fcf-standings:not(.is-standings-entered) .fcf-standings__meta-item,
	.fcf-standings-page:not(.is-standings-entered) .fcf-match-page__title,
	.fcf-standings:not(.is-standings-entered) .fcf-standings__table thead,
	.fcf-standings:not(.is-standings-entered) .fcf-standings__row,
	.fcf-standings.is-standings-entered .fcf-standings__meta-item,
	.fcf-standings-page.is-standings-entered .fcf-match-page__title,
	.fcf-standings.is-standings-entered .fcf-standings__table thead,
	.fcf-standings.is-standings-entered .fcf-standings__row {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* Table */
.fcf-standings__table-wrap {
	width: 100%;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	padding: 0;
}

.fcf-standings-page .fcf-standings__table-wrap {
	margin-top: 0;
}

.fcf-standings__table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fcf-standings__table {
	width: 100%;
	max-width: 100%;
	border: none !important;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	font-size: clamp(1.1875rem, 1.45vw, 1.375rem);
}

.fcf-standings__table,
.fcf-standings__table thead,
.fcf-standings__table tbody,
.fcf-standings__table tr,
.fcf-standings__table th,
.fcf-standings__table td {
	border: none !important;
	border-width: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

.fcf-standings__col-pos {
	width: 4%;
}

.fcf-standings__col-team {
	width: 30%;
}

.fcf-standings__col-stat {
	width: 6%;
}

.fcf-standings__col-form {
	width: 18%;
}

.fcf-standings__table thead th {
	padding: 0 0 1rem;
	border: 0;
	background: transparent;
	color: var(--fcf-standings-muted);
	font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.fcf-standings__table thead th.fcf-standings__col-pos,
.fcf-standings__table thead th.fcf-standings__col-team {
	text-align: left;
}

.fcf-standings__table thead th.fcf-standings__col-form {
	text-align: right;
}

.fcf-standings__table tbody td {
	padding: clamp(0.95rem, 1.5vw, 1.25rem) 0;
	border: 0;
	background: transparent;
	color: var(--fcf-standings-soft);
	font-size: clamp(1.1875rem, 1.45vw, 1.375rem);
	font-weight: 500;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

.fcf-standings__pos,
.fcf-standings__team {
	text-align: left;
}

.fcf-standings__table tbody td.fcf-standings__pos {
	position: relative;
	overflow: visible;
	padding-left: 1.45rem;
}

.fcf-standings__pos-cell {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 1.75rem;
}

.fcf-standings__pos-num,
.fcf-standings__team-name,
.fcf-standings__pts {
	color: var(--fcf-standings-ink);
}

.fcf-standings__pos-num {
	display: block;
	min-width: 1.5ch;
	font-size: clamp(1.3125rem, 1.55vw, 1.5rem);
	font-weight: 700;
	line-height: 1;
	text-align: left;
}

.fcf-standings__team-inner {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
	min-width: 0;
	text-align: left;
}

.fcf-standings__logo-slot {
	display: flex;
	flex: 0 0 2.75rem;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
}

.fcf-standings__logo {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.fcf-standings__team-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: left;
	text-overflow: ellipsis;
	text-transform: uppercase;
}

.fcf-standings__pts {
	font-weight: 700;
}

.fcf-standings__table tbody tr {
	position: relative;
}

/* Zones + home highlight */
.fcf-standings__row.zone-cl,
.fcf-standings__row.zone-el,
.fcf-standings__row.zone-uecl,
.fcf-standings__row.zone-playoff,
.fcf-standings__row.zone-releg,
.fcf-standings__row.is-home-team {
	--fcf-zone-bar: transparent;
}

.fcf-standings__row.zone-cl {
	--fcf-zone-bar: var(--fcf-zone-cl);
}

.fcf-standings__row.zone-el {
	--fcf-zone-bar: var(--fcf-zone-el);
}

.fcf-standings__row.zone-uecl {
	--fcf-zone-bar: var(--fcf-zone-uecl);
}

.fcf-standings__row.zone-playoff {
	--fcf-zone-bar: var(--fcf-zone-playoff);
}

.fcf-standings__row.zone-releg {
	--fcf-zone-bar: var(--fcf-zone-releg);
}

.fcf-standings__row.is-home-team {
	--fcf-zone-bar: var(--fcf-blue-500, #2f6fb5);
}

.fcf-standings__row.zone-cl > .fcf-standings__pos::before,
.fcf-standings__row.zone-el > .fcf-standings__pos::before,
.fcf-standings__row.zone-uecl > .fcf-standings__pos::before,
.fcf-standings__row.zone-playoff > .fcf-standings__pos::before,
.fcf-standings__row.zone-releg > .fcf-standings__pos::before,
.fcf-standings__row.is-home-team > .fcf-standings__pos::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	background: var(--fcf-zone-bar);
	pointer-events: none;
}

.fcf-standings__table tbody tr.fcf-standings__row.is-home-team::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(var(--fcf-standings-home-rgb), 1) 0%,
		rgba(var(--fcf-standings-home-rgb), 0.72) 38%,
		rgba(var(--fcf-standings-home-rgb), 0.28) 68%,
		rgba(var(--fcf-standings-home-rgb), 0) 100%
	);
}

.fcf-standings__row.is-home-team > td {
	position: relative;
	z-index: 1;
	color: #fff;
}

/* Form (desktop) */
.fcf-standings__form-cell {
	text-align: right;
}

.fcf-standings__form {
	display: inline-flex;
	justify-content: flex-end;
	gap: 0.5rem;
	width: 100%;
}

.fcf-standings__form-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(32px, 2.25vw, 38px);
	height: clamp(32px, 2.25vw, 38px);
	border: 0;
	border-radius: 0;
	font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
	font-weight: 800;
	line-height: 1;
}

.fcf-standings__form-item.is-win {
	background: var(--fcf-form-win-bg);
	color: var(--fcf-form-win-ink);
}

.fcf-standings__form-item.is-draw {
	background: var(--fcf-form-draw-bg);
	color: var(--fcf-form-draw-ink);
}

.fcf-standings__form-item.is-loss {
	background: var(--fcf-form-loss-bg);
	color: var(--fcf-form-loss-ink);
}

/* Compact toolbar */
.fcf-standings__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.fcf-standings__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.fcf-standings__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.85rem;
	background: rgba(255, 255, 255, 0.06);
}

.fcf-standings__meta-label {
	color: var(--fcf-standings-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fcf-standings__meta-value {
	color: var(--fcf-standings-ink);
	font-size: 0.875rem;
	font-weight: 700;
}

.fcf-standings__meta-value--league {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fcf-standings__league-logo {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.fcf-standings--compact .fcf-standings__col-team {
	width: 50%;
}

.fcf-standings--compact .fcf-standings__table tbody td {
	padding: 0.9rem 0;
}

.fcf-standings--compact .fcf-standings__team-inner {
	gap: 0.65rem;
}

.fcf-standings--compact .fcf-standings__logo-slot,
.fcf-standings--compact .fcf-standings__logo {
	flex-basis: 2rem;
	width: 2rem;
	height: 2rem;
}

.fcf-standings--compact .fcf-standings__team-name {
	font-size: 1rem;
}

/* Notices */
.fcf-scouting-notice {
	margin: 1.25rem 0;
	padding: 1rem 1.125rem;
	font-family: var(--fcf-font-body, "Poppins", sans-serif);
}

.fcf-scouting-notice--error {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.fcf-scouting-notice--warning {
	color: #c2410c;
	background: #fff7ed;
	border: 1px solid #fed7aa;
}

/* Mobile */
@media (max-width: 768px) {
	.fcf-standings__hide-mobile {
		display: none !important;
	}

	.fcf-standings__table-wrap {
		margin-top: 0;
	}

	.fcf-standings__table-scroll {
		overflow: visible;
	}

	.fcf-standings__table,
	.fcf-standings__table thead,
	.fcf-standings__table tbody,
	.fcf-standings__table tr {
		display: block;
		width: 100%;
	}

	.fcf-standings__table colgroup {
		display: none;
	}

	.fcf-standings__table {
		border-spacing: 0;
		table-layout: auto;
	}

	.fcf-standings:not(.fcf-standings--compact) .fcf-standings__table thead tr,
	.fcf-standings:not(.fcf-standings--compact) .fcf-standings__table tbody tr {
		display: grid;
		grid-template-columns: 2.25rem minmax(0, 1fr) 2.5rem 2.25rem;
		align-items: center;
		column-gap: 0.75rem;
		padding: 0.95rem 0;
		background: transparent;
	}

	.fcf-standings--compact .fcf-standings__table thead tr,
	.fcf-standings--compact .fcf-standings__table tbody tr {
		display: grid;
		grid-template-columns: 2rem minmax(0, 1fr) 2rem 2.5rem;
		align-items: center;
		column-gap: 0.65rem;
		padding: 0.8rem 0;
	}

	.fcf-standings__table thead tr {
		padding-top: 0;
		padding-bottom: 0.55rem;
		margin-bottom: 0.35rem;
	}

	.fcf-standings__table tbody tr {
		margin-bottom: 0.35rem;
	}

	.fcf-standings__table thead th,
	.fcf-standings__table tbody td {
		display: block;
		width: auto;
		min-width: 0;
		padding: 0;
		margin: 0;
		border: 0;
		overflow: hidden;
		text-align: right;
		text-overflow: ellipsis;
	}

	.fcf-standings__table tbody td.fcf-standings__pos,
	.fcf-standings__table thead th.fcf-standings__col-pos {
		grid-column: 1;
		align-self: stretch;
		display: flex;
		align-items: center;
		overflow: visible;
		padding-left: 1.25rem;
		text-align: left;
	}

	.fcf-standings__col-team,
	.fcf-standings__team {
		grid-column: 2;
		text-align: left;
	}

	.fcf-standings__table thead th {
		font-size: 0.9375rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		color: #fff;
	}

	/* Barra de zona na linha inteira (altura total do container) */
	.fcf-standings__row.zone-cl > .fcf-standings__pos::before,
	.fcf-standings__row.zone-el > .fcf-standings__pos::before,
	.fcf-standings__row.zone-uecl > .fcf-standings__pos::before,
	.fcf-standings__row.zone-playoff > .fcf-standings__pos::before,
	.fcf-standings__row.zone-releg > .fcf-standings__pos::before,
	.fcf-standings__row.is-home-team > .fcf-standings__pos::before {
		content: none;
	}

	.fcf-standings__row.zone-cl::before,
	.fcf-standings__row.zone-el::before,
	.fcf-standings__row.zone-uecl::before,
	.fcf-standings__row.zone-playoff::before,
	.fcf-standings__row.zone-releg::before,
	.fcf-standings__row.is-home-team::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 2;
		width: 3px;
		background: var(--fcf-zone-bar);
		pointer-events: none;
	}

	.fcf-standings:not(.fcf-standings--compact) .fcf-standings__table thead th:nth-child(3),
	.fcf-standings:not(.fcf-standings--compact) .fcf-standings__table tbody td:nth-child(3),
	.fcf-standings--compact .fcf-standings__table thead th:nth-child(3),
	.fcf-standings--compact .fcf-standings__table tbody td:nth-child(3) {
		grid-column: 3;
	}

	.fcf-standings:not(.fcf-standings--compact) .fcf-standings__table thead th:nth-child(4),
	.fcf-standings:not(.fcf-standings--compact) .fcf-standings__table tbody td:nth-child(4),
	.fcf-standings--compact .fcf-standings__table thead th:nth-child(4),
	.fcf-standings--compact .fcf-standings__table tbody td:nth-child(4) {
		grid-column: 4;
	}

	.fcf-standings__pos-num {
		font-size: 1.375rem;
		text-align: left;
	}

	.fcf-standings__logo-slot,
	.fcf-standings__logo {
		flex-basis: 2.25rem;
		width: 2.25rem;
		height: 2.25rem;
	}

	.fcf-standings__team-inner {
		gap: 0.7rem;
	}

	.fcf-standings__team-name {
		font-size: 1.0625rem;
		letter-spacing: 0.06em;
		text-align: left;
	}

	.fcf-standings__table tbody td {
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.fcf-standings__pts {
		font-weight: 700;
	}

	.fcf-standings__toolbar {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 1rem;
	}

	.fcf-standings__meta {
		flex-direction: column;
		width: 100%;
	}

	.fcf-standings__table tbody tr.fcf-standings__row.is-home-team::after {
		top: 0;
		bottom: 0;
		left: 50%;
		right: auto;
		width: 100vw;
		transform: translateX(-50%);
		background: linear-gradient(
			90deg,
			rgba(var(--fcf-standings-home-rgb), 0.72) 0%,
			rgba(var(--fcf-standings-home-rgb), 0.15) 100%
		);
	}
}
