/* =========================================================
   FIXTURES SECTION
========================================================= */

.fixtures-section {
	position: relative;

	padding: 50px 15px 0px 0px;

	background: linear-gradient(180deg, #f7f8fa 0%, #f1f3f6 100%);

	overflow: hidden;

	font-family: "Outfit", sans-serif;
}

.fixtures-section-heading {
	display: flex;
	flex-direction: column;
	margin: 0px 10px 20px;
	justify-content: center;
	text-align: center;
}

.fixtures-section h2 {
	position: relative;
	z-index: 2;
	font-family: "Arial Black", "Montserrat", sans-serif;
	font-weight: 900;
	font-size: 32px;
	margin: 10px 20px 20px;
	color: #043a7d;
	line-height: 0.88;
	letter-spacing: -0.015em;
	text-transform: uppercase;
}

.fixtures-section-heading::after {
	position: relative;
	bottom: 0;
	left: 0;
	width: 56px;
	height: 10px;
	margin: 0 auto;
	background: linear-gradient(to right, #fff101 0 50%, #0d6efd 50% 100%);
	content: "";
}

.fixtures-section .fixtures-section-heading span {
	font-size: 16px;
}

.fixtures-row {
	width: 100%;
	max-width: 1500px;

	margin: 0 auto;

	display: grid;
	grid-template-columns: 1fr 1.12fr 1fr;
	align-items: stretch;

	gap: 18px;
}

/* =========================================================
   CARD
========================================================= */

.fixture-card {
	position: relative;
	z-index: 2;

	min-width: 0;
	min-height: 440px;

	padding: 64px 24px 24px;

	display: flex;
	flex-direction: column;

	background: #ffffff;

	border: 1px solid #e4e8ee;
	border-radius: 6px;

	overflow: hidden;

	box-shadow: 0 10px 30px rgba(7, 27, 58, 0.07);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.fixture-card:hover {
	transform: translateY(-3px);

	box-shadow: 0 16px 36px rgba(7, 27, 58, 0.11);
}

/* =========================================================
   FEATURED CARD
========================================================= */

.fixture-card--featured {
	background: linear-gradient(
		180deg,
		rgba(13, 110, 253, 0.045) 0%,
		#ffffff 72%
	);

	border: 1px solid rgba(13, 110, 253, 0.55);

	box-shadow:
		0 14px 36px rgba(0, 66, 160, 0.12),
		0 0 0 1px rgba(13, 110, 253, 0.03);
}

.fixture-card--featured::after {
	content: "";

	position: absolute;
	top: 0;
	left: 0;
	right: 0;

	height: 3px;

	background: linear-gradient(90deg, #02398b, #0d6efd);

	pointer-events: none;
}

/* =========================================================
   CARD LABEL
========================================================= */

.fixture-featured-bar {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 20px;

	background: linear-gradient(
		135deg,
		rgba(1, 110, 255, 0.96),
		rgba(0, 60, 153, 0.97)
	);

	color: #fff101;

	border-bottom: 1px solid #fff101;

	font-size: 14px;
	font-weight: 800;
	line-height: 1;

	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-align: center;
}

/* featured */

.fixture-card--featured .fixture-featured-bar {
	left: auto;
	right: 22px;

	padding: 7px 12px;

	border-radius: 999px;

	background: rgba(13, 110, 253, 0.09);

	color: #0755bd;

	font-size: 12px;
	letter-spacing: 0.1em;
}

.fixture-card--featured .fixture-featured-bar::before {
	content: "";

	display: inline-block;

	width: 6px;
	height: 6px;

	margin-right: 7px;

	border-radius: 50%;

	background: #fff101;

	box-shadow: 0 0 0 3px rgba(255, 241, 1, 0.18);
}

/* =========================================================
   TOP / LEAGUE META
========================================================= */

.fixture-top {
	position: relative;
	z-index: 2;

	width: 100%;
	max-width: none;

	margin: 0;
	padding: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	background: none;

	border: 0;
	border-radius: 0;

	box-shadow: none;

	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* =========================================================
   LEAGUE
========================================================= */

.fixture-league {
	width: 100%;
	transform: translateY(10px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	gap: 9px;

	text-align: center;
}

.fixture-league img {
	width: 36px;
	height: 36px;

	object-fit: contain;
	flex-shrink: 0;
}

.fixture-league > div {
	width: 100%;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.fixture-league span {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;

	gap: 5px;

	margin: 0;

	color: #65717f;

	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;

	text-align: center;
	text-transform: uppercase;

	letter-spacing: 0.1em;
}

/* =========================================================
   ROUND
========================================================= */

.fixture-league__round {
	display: inline !important;

	margin: 0 !important;

	color: #9aa3ae !important;

	font-size: 11px !important;
	font-weight: 700 !important;

	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* =========================================================
   DATE
========================================================= */

.fixture-league strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 8px;

	margin: 10px 0 0;
	padding: 0;

	background: none;

	border-radius: 0;

	box-shadow: none;

	color: #4f5d6c;

	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;

	text-align: center;
}

.fixture-date {
	display: flex;
	align-items: center;
	justify-content: center;

	gap: 8px;

	text-align: center;
}

.fixture-date i {
	color: #0d6efd;

	font-size: 13px;

	opacity: 1;
}

/* =========================================================
   FEATURED META
========================================================= */

.fixture-card--featured .fixture-top {
	max-width: none;

	margin: 0;
	padding: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	background: none;

	border: 0;
	border-radius: 0;

	box-shadow: none;
}

.fixture-card--featured .fixture-league {
	align-items: center;
	justify-content: center;

	text-align: center;
}

.fixture-card--featured .fixture-league img {
	width: 38px;
	height: 38px;
}

.fixture-card--featured .fixture-league span {
	justify-content: center;

	color: #0755bd;

	font-size: 12px;

	text-align: center;
}

.fixture-card--featured .fixture-league__round {
	color: #778595 !important;
}

.fixture-card--featured .fixture-league strong {
	justify-content: center;

	color: #071b3a;

	font-size: 14px;

	text-align: center;
}

.fixture-card--featured .fixture-date {
	justify-content: center;
}

.fixture-card--featured .fixture-date i {
	color: #0d6efd;
}

.fixture-card--featured .fixture-featured-bar {
	top: 18px;
	left: auto;
	right: 22px;

	width: auto;

	padding: 7px 12px;

	border-radius: 999px;

	background: rgba(13, 110, 253, 0.09);

	color: #0755bd;

	font-size: 10px;
	font-weight: 800;

	letter-spacing: 0.1em;
}

.fixture-card--featured .fixture-featured-bar::before {
	content: "";

	display: inline-block;

	width: 6px;
	height: 6px;

	margin-right: 7px;

	border-radius: 50%;

	background: #fff101;

	box-shadow: 0 0 0 3px rgba(255, 241, 1, 0.18);
}

/* =========================================================
   MATCH BASE
========================================================= */

.fixture-match {
	position: relative;
	z-index: 2;

	width: 100%;

	min-height: 180px;

	margin: 28px 0 20px;

	display: flex;
	align-items: center;
	justify-content: center;

	gap: 20px;

	border-top: 1px solid #edf0f4;
	border-bottom: 1px solid #edf0f4;
}

/* =========================================================
   NORMAL MATCH
========================================================= */

.fixture-match--hover-names {
	flex: 1;
}

/* =========================================================
   FEATURED MATCH
========================================================= */

.fixture-match--featured {
	grid-template-columns:
		minmax(0, 1fr)
		54px
		minmax(0, 1fr);

	display: grid;

	min-height: 180px;

	gap: 20px;

	margin: 28px 0 16px;

	border-color: rgba(13, 110, 253, 0.12);
}

/* =========================================================
   TEAM
========================================================= */

.team-block {
	min-width: 0;

	flex: 1;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	text-align: center;
}

/* =========================================================
   TEAM LOGO
========================================================= */

.team-logo {
	width: 58px;
	height: 58px;

	margin: 0 auto;

	display: flex;
	align-items: center;
	justify-content: center;

	background: transparent;

	border: 0;
	border-radius: 0;

	overflow: visible;
}

.team-logo img {
	display: block;

	max-width: 100%;
	max-height: 100%;

	width: auto;
	height: auto;

	object-fit: contain;
}

.fixture-card--featured .team-logo {
	width: 64px;
	height: 64px;
}

/* =========================================================
   TEAM NAME NORMAL
========================================================= */

.team-name-slot {
	width: 100%;
	min-height: 40px;

	margin-top: 13px;

	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.team-name-hover {
	width: 100%;
	max-width: 155px;

	margin: 0;

	color: #252b33;

	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;

	text-align: center;
	text-transform: uppercase;

	display: -webkit-box;

	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	line-clamp: 2;

	overflow: hidden;
}

/* =========================================================
   TEAM NAME FEATURED
========================================================= */

.fixture-match--featured h3 {
	width: 100%;
	max-width: 180px;

	min-height: 34px;

	margin: 12px auto 0;

	color: #071b3a;

	font-size: 14px;
	font-weight: 800;
	line-height: 1.08;

	text-align: center;
	text-transform: uppercase;

	white-space: normal;

	word-break: normal;
	overflow-wrap: normal;

	display: block;
	overflow: visible;

	-webkit-line-clamp: unset;
	line-clamp: unset;
}

/* =========================================================
   CENTER SCORE / VS
========================================================= */

.fixture-center {
	min-width: 0;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	flex-shrink: 0;
}

.fixture-score {
	margin: 0;

	color: #071b3a;

	font-size: 30px;
	font-weight: 900;
	line-height: 1;

	letter-spacing: -0.04em;
}

.fixture-score--vs {
	color: #a9b0ba;

	font-size: 32px;
	font-weight: 800;

	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* wyświetlamy X mocniej na featured */

.fixture-card--featured .fixture-score {
	color: #071b3a;

	font-size: 32px;
}

.fixture-card--featured .fixture-score--vs {
	color: #0d6efd;

	font-size: 32px;
}

/* =========================================================
   COUNTDOWN
========================================================= */

.fixture-countdown {
	position: relative;
	z-index: 2;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.fixture-countdown--below {
	width: 100%;

	max-width: none;

	margin: -1px auto 18px;
	padding: 13px 12px;

	background: linear-gradient(
		90deg,
		rgba(13, 110, 253, 0.035),
		rgba(13, 110, 253, 0.08),
		rgba(13, 110, 253, 0.035)
	);

	border-top: 1px solid rgba(13, 110, 253, 0.1);
	border-bottom: 1px solid rgba(13, 110, 253, 0.1);

	border-radius: 0;

	box-shadow: none;

	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.fixture-countdown__time {
	display: flex;
	align-items: center;
	justify-content: center;

	gap: 12px;
}

.fixture-countdown--below {
	flex: 0 0 auto;
	min-height: 68px;
}

.fixture-bottom {
	flex: 0 0 auto;
}

/* unit */

.fixture-countdown__unit {
	position: relative;

	min-width: 45px;

	padding: 0;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	background: none;

	border-radius: 0;

	box-shadow: none;
}

.fixture-countdown__unit strong {
	display: block;

	color: #0755bd;

	font-size: 22px;
	font-weight: 900;
	line-height: 1;

	letter-spacing: 0;
}

.fixture-countdown__unit span {
	display: block;

	margin-top: 5px;

	color: #8a96a5;

	font-size: 8px;
	font-weight: 800;
	line-height: 1;

	text-transform: uppercase;

	letter-spacing: 0.08em;
}

.fixture-countdown__separator {
	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0 0 12px;

	color: #c5cbd3;

	font-size: 18px;
	font-weight: 900;
	line-height: 1;
}

/* sekundy w żółtym RKS */

.fixture-countdown__unit:last-child strong {
	color: #071b3a;
}

/* =========================================================
   LIVE
========================================================= */

.fixture-countdown__live {
	display: inline-flex;
	align-items: center;

	margin-top: 8px;
	padding: 6px 10px;

	border-radius: 999px;

	background: #e22134;

	color: #fff;

	font-size: 9px;
	font-weight: 800;

	letter-spacing: 0.08em;
}

/* =========================================================
   BOTTOM
========================================================= */

.fixture-bottom {
	position: relative;
	z-index: 2;

	min-height: 52px;

	margin-top: auto;

	display: flex;
	align-items: flex-end;
	justify-content: center;

	gap: 10px;
}

.fixture-bottom--double {
	gap: 10px;
}

/* =========================================================
   BUTTON
========================================================= */

.fixture-btn {
	min-height: 40px;

	padding: 0 20px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	border: 1px solid #0d6efd;
	border-radius: 3px;

	background: #0d6efd;
	color: #ffffff;

	text-decoration: none;
	text-transform: uppercase;

	font-size: 11px;
	font-weight: 800;

	letter-spacing: 0.04em;

	box-shadow: none;

	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		border-color 0.2s ease;
}

.fixture-btn:hover {
	transform: translateY(-2px);

	background: #02398b;
	border-color: #02398b;

	color: #ffffff;
}

/* =========================================================
   PREVIEW BUTTON
========================================================= */

.fixture-btn--preview {
	background: #fff101 !important;

	border-color: #fff101 !important;

	color: #071b3a !important;
}

.fixture-btn--preview:hover {
	background: #e7da00 !important;

	border-color: #e7da00 !important;

	color: #071b3a !important;
}

/* =========================================================
   DISABLED BUTTON
========================================================= */

.fixture-btn--disabled {
	background: #edf1f6;

	border-color: #edf1f6;

	color: #8190a2;

	opacity: 1;

	cursor: default;
	pointer-events: none;
}

/* =========================================================
   FEATURED BUTTON
========================================================= */

.fixture-card--featured .fixture-btn:not(.fixture-btn--preview) {
	background: #02398b;
	border-color: #02398b;

	color: #ffffff;
}

.fixture-card--featured .fixture-btn:not(.fixture-btn--preview):hover {
	background: #0d6efd;
	border-color: #0d6efd;
}

/* =========================================================
   <= 1200
========================================================= */

@media (max-width: 1200px) {
	.fixtures-row {
		grid-template-columns: 1fr 1.1fr 1fr;

		gap: 14px;
	}

	.fixture-card {
		padding-left: 20px;
		padding-right: 20px;
	}

	.fixture-match {
		gap: 14px;
	}

	.fixture-match--featured {
		grid-template-columns:
			minmax(0, 1fr)
			44px
			minmax(0, 1fr);

		gap: 12px;
	}

	.team-name-hover {
		font-size: 13px;
	}

	.fixtures-section-heading {
	}
}

/* =========================================================
   <= 991
========================================================= */

@media (max-width: 991px) {
	.fixtures-section {
		padding: 50px 0;

		/*
         * Nie blokujemy poziomego przewijania kart.
         */
		overflow: hidden;
	}

	.fixtures-row {
		width: 100%;
		max-width: none;

		margin: 0;

		display: flex;
		align-items: stretch;

		gap: 16px;

		overflow-x: auto;
		overflow-y: hidden;

		padding: 0 20px 16px;

		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;

		-webkit-overflow-scrolling: touch;

		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.fixtures-row::-webkit-scrollbar {
		display: none;
	}

	.fixture-card {
		flex: 0 0 min(520px, calc(100vw - 40px));

		width: min(520px, calc(100vw - 40px));

		min-height: 420px;

		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	/*
     * Najbliższy mecz zawsze pierwszy
     * na mobile/tablecie.
     */
	.fixture-card--featured {
		order: -1;
	}

	.fixture-match--featured {
		grid-template-columns:
			minmax(0, 1fr)
			50px
			minmax(0, 1fr);
	}
}

/* =========================================================
   <= 575
========================================================= */

@media (max-width: 575px) {
	.fixtures-section {
		padding: 35px 0;
	}
	.fixtures-row {
		padding: 0 12px 14px;
		gap: 12px;

		scroll-padding-inline: 12px;
	}

	.fixture-card {
		flex: 0 0 calc(100vw - 52px);
		width: calc(100vw - 52px);

		scroll-snap-align: start;
	}

	/* Zwykłe karty — belka na całą szerokość */
	.fixture-featured-bar {
		top: 0;
		left: 0;
		right: 0;

		width: auto;
		max-width: none;
		box-sizing: border-box;
	}

	/* Karta główna — mała pastylka po prawej */
	.fixture-card--featured .fixture-featured-bar {
		top: 18px;
		left: auto;
		right: 16px;

		width: auto;
		max-width: calc(100% - 32px);
	}

	/* metadata */

	.fixture-league img {
		width: 32px;
		height: 32px;
	}

	.fixture-league span,
	.fixture-card--featured .fixture-league span {
		font-size: 11px;
	}

	.fixture-league strong,
	.fixture-card--featured .fixture-league strong {
		font-size: 13px;
	}

	/* match */

	.fixture-match {
		min-height: 160px;

		margin: 22px 0 16px;

		gap: 8px;
	}

	.fixture-match--featured {
		grid-template-columns:
			minmax(0, 1fr)
			32px
			minmax(0, 1fr);

		gap: 5px;
	}

	/* logo */

	.team-logo {
		width: 50px;
		height: 50px;
	}

	.fixture-card--featured .team-logo {
		width: 54px;
		height: 54px;
	}

	/* names */

	.team-name-hover {
		max-width: 125px;

		font-size: 11px;
	}

	.fixture-match--featured h3 {
		max-width: 135px;

		font-size: 11px;
	}

	/* score */

	.fixture-score {
		font-size: 26px;
	}

	.fixture-card--featured .fixture-score {
		font-size: 28px;
	}

	.fixture-score--vs,
	.fixture-card--featured .fixture-score--vs {
		font-size: 11px;
	}

	/* countdown */

	.fixture-countdown--below {
		margin-bottom: 16px;

		padding: 11px 4px;
	}

	.fixture-countdown__time {
		gap: 5px;
	}

	.fixture-countdown__unit {
		min-width: 37px;
	}

	.fixture-countdown__unit strong {
		font-size: 17px;
	}

	.fixture-countdown__unit span {
		font-size: 6px;
	}

	.fixture-countdown__separator {
		padding-bottom: 9px;

		font-size: 14px;
	}

	/* buttons */

	.fixture-bottom--double {
		flex-wrap: wrap;
	}

	.fixture-btn {
		min-height: 38px;

		padding: 0 15px;

		font-size: 10px;
	}
}
.match-cta {
	background: #101010;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px;
}

.match-cta .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 100px;
	min-height: 105px;
}

.match-cta__item {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 40px;
}

.match-cta__content h3 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 24px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.match-cta__content p {
	margin: 0;
	color: #c3c3c3;
	font-size: 14px;
	font-weight: 500;
}

.match-cta__divider {
	width: 1px;
	height: 40px;
	background: rgba(255, 255, 255, 0.15);
}

.match-cta__button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 28px;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
	transition: 0.25s;
	white-space: nowrap;
}

.match-cta__button i {
	font-size: 17px;
}

.match-cta__button--gold {
	background: linear-gradient(135deg, #fdef02 0%, #e6cf00 100%);
	color: #1b1b1b;
}

.match-cta__button--gold:hover {
	background: #0d6efd;
	color: #f4f4f4;
}

.match-cta__button--blue {
	background: linear-gradient(135deg, #0d6efd 0%, #0754c7 100%);
	color: #f4f4f4;
}

.match-cta__button--blue:hover {
	color: #fff101;
}

.match-cta__button--outline {
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
}

.match-cta__button--outline:hover {
	background: #fff;
	color: #111;
}

@media (max-width: 1100px) {
	.match-cta .container {
		flex-direction: column;
		padding: 25px 0;
		gap: 50px;
	}

	.match-cta__item {
		width: 100%;
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.match-cta__divider {
		width: 100%;
		height: 1px;
	}
}
