body {
	margin: 0;
	background: #f2f2f2;
	color: #28282b;
	font-family: "Bebas Neue", sans-serif;
	letter-spacing: 2px;
	height: 100vh;
}

.match-page-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #111;
}

.match-page-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}

.match-page-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #0b0d12 92%);
}

.match-page-hero__content {
	position: relative;
	z-index: 2;
	max-width: 1250px;
	width: 100%;
	margin: 0 auto;
	padding: 80px 24px;
}

.match-page-hero__content p {
}

.match-page-eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	padding: 14px 24px;
	border-radius: 4px;
	background: #fff101;
	color: #111;
	font-weight: 800;
	text-transform: uppercase;
}

.match-page-hero h1 {
	max-width: 900px;
	margin: 40px 20px;
	color: #f2f2f2;
	font-size: clamp(38px, 6vw, 82px);
	line-height: 0.95;
	text-transform: uppercase;
}

/* =========================================================
   PODSUMOWANIE MECZU
   ========================================================= */

.match-page-summary {
	margin-top: -70px;
	position: relative;
	z-index: 4;
	padding: 0 24px;
}

.match-page-summary__inner {
	max-width: 1200px;
	margin: 0 auto;
	background: linear-gradient(180deg, #0d6efd 0%, #03469d 100%);
	border-radius: 26px;
	border-top: 5px solid #fdef02;
	border-bottom: 5px solid #3891ff;
	padding: 34px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 28px;
	align-items: center;
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.14),
		0 0 0 1px rgba(0, 47, 117, 0.16),
		0 0 28px rgba(21, 64, 255, 0.52);
}

.match-page-team__logo {
	width: 120px;
	height: 120px;
	flex: 0 0 120px;
	margin: 0 auto 16px;
	background: #fff;
	border-radius: 50%;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.match-page-team__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.match-page-team h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 76px;
	margin: 0;
	color: #f4f4f4;
	font-size: 32px;
	text-transform: uppercase;
}

.match-page-team {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: start;
	min-width: 0;
}

.match-page-team-scorers {
	margin-top: 10px;
	min-height: 24px;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.match-page-team-scorer--empty {
	visibility: hidden;
}

.match-page-center {
	text-align: center;
}

.match-page-type {
	color: #fff101;
	font-weight: 800;
	text-transform: uppercase;
}

.match-page-score {
	margin: 10px 0;
	background: #fff101;
	padding: 20px;
	border-radius: 10px;
	font-size: 64px;
	font-weight: 900;
	line-height: 1;
}

.match-page-team-scorer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
}

.match-page-scorer-name {
	color: #fdef02;
}

.match-page-scorer-minute {
	color: #f4f4f4;
	font-weight: 800;
}

.match-page-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;

	background: linear-gradient(180deg, #ffffff 0%, #b1b3b5 100%);
	padding: 14px 20px;

	border: 2px solid #5fa4ff;
	border-radius: 16px;

	gap: 10px 18px;

	color: #28282b;
	font-weight: 600;

	grid-column: 1 / -1;
	justify-self: center;

	width: fit-content;
	font-size: 18px;
}

.match-page-meta__competition,
.match-page-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.match-page-meta__logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex: 0 0 24px;
}

.match-page-meta__item svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	color: #0d6efd;
	opacity: 0.9;
}

/* =========================================================
   TREŚĆ STRONY MECZOWEJ
   ========================================================= */

.match-page-info,
.match-page-content {
	position: relative;
	z-index: 4;
	margin-top: -50px;
	padding: 40px 24px;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
}

.match-page-info-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.match-page-info-grid > div {
	background: #fff101;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 20px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.match-page-info-grid strong {
	display: block;
	color: #016eff;
	font-weight: 700;
	text-align: center;
	margin-bottom: 8px;
}

.match-page-info-grid span {
	display: block;
	color: #28282b;
	font-weight: 700;
	text-align: center;
	margin-bottom: 8px;
}

.match-page-lead {
	font-size: 24px;
	line-height: 1.45;
	color: #28282b;
	margin-bottom: 34px;
}

.match-page-article {
	font-size: 18px;
	font-family: "Outfit", sans-serif;
	line-height: 1.75;
	color: #28282b;
	background: #fff;
	border-radius: 4px;
	padding: clamp(28px, 4vw, 56px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.match-page-article--spaced {
	margin-top: 34px;
}

.match-page-article img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

/* Główny obraz zapowiedzi */
.match-preview-main-image {
	width: 100%;
	margin: 100px 0 34px;
	border-radius: 18px;
	overflow: hidden;
	background: #0b0d12;
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.14),
		0 0 0 1px rgba(0, 47, 117, 0.12);
}

.match-preview-main-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 760px;
	object-fit: cover;
}

@media (max-width: 768px) {
	.match-preview-main-image {
		margin-bottom: 24px;
		border-radius: 12px;
	}
}

/* =========================================================
   TRANSMISJA I SPONSOR MECZU
   ========================================================= */

.match-live-text {
	background: #ffffff;
	border-radius: 14px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 25px;
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.1),
		0 0 0 1px rgba(0, 47, 117, 0.1);
}

.match-sponsor-box,
.match-live-video {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
}

.match-sponsor-box {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 100%;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;

	padding: clamp(30px, 3vw, 46px);

	border-radius: 16px;
	background: linear-gradient(135deg, #171a21 0%, #07090d 100%);

	box-shadow:
		0 18px 46px rgba(3, 20, 50, 0.18),
		0 0 0 1px rgba(13, 110, 253, 0.08),
		0 0 26px rgba(21, 64, 255, 0.18);
}

/*
 * Tło pochodzi z bazy jako zwykły element <img>.
 * Całe jego kadrowanie, przyciemnienie i kolejność warstw kontroluje CSS.
 */
.match-sponsor-box__background {
	position: absolute;
	inset: 0;
	z-index: 0;

	display: block;
	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;

	filter: saturate(0.85) contrast(1.05);
	opacity: 0.72;

	pointer-events: none;
	user-select: none;
}

.match-sponsor-box::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;

	background:
		radial-gradient(
			circle at 18% 12%,
			rgba(30, 111, 255, 0.16),
			transparent 38%
		),
		linear-gradient(135deg, rgba(8, 10, 15, 0.8), rgba(8, 10, 15, 0.93));

	pointer-events: none;
}

.match-sponsor-box:not(.has-background)::before {
	background: linear-gradient(
		135deg,
		rgba(28, 28, 28, 0.25),
		rgba(0, 0, 0, 0.45)
	);
}

.match-sponsor-box > :not(.match-sponsor-box__background) {
	position: relative;
	z-index: 2;
}

.match-top-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(22px, 2.2vw, 32px);
	align-items: stretch;
	margin: 80px 20px;
}

.match-sponsor-box-logo {
	max-width: min(260px, 70%);
	max-height: 170px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.match-sponsor-box-name {
	color: #fff;
	font-size: 2rem;
	font-weight: 900;
	text-align: center;
}

.match-sponsor-box-description {
	max-width: 720px;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(15px, 1.15vw, 18px);
	font-family: "Outfit", Arial, sans-serif;
	line-height: 1.6;
	letter-spacing: 0.01em;
	text-align: center;
}

/* LINKI SPONSORA */

.match-sponsor-box .match-sponsor-contact {
	width: 100%;
	margin-top: 4px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 4px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.035);
}

.match-sponsor-box .match-sponsor-contact-website {
	min-height: 54px;
	padding: 0 18px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;

	color: #fff;
	text-decoration: none;
	font-size: 1.3rem;
	font-weight: 700;

	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.match-sponsor-box .match-sponsor-contact-website:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff101;
}

.match-sponsor-box .match-sponsor-contact-website svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

/* SOCIAL MEDIA */

.match-sponsor-box .match-sponsor-contact-socials {
	min-height: 52px;
	padding: 0 18px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;

	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.match-sponsor-box .match-sponsor-contact-socials > span {
	color: rgba(255, 255, 255, 0.55);
	font-size: 1.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.match-sponsor-box .match-sponsor-social-icons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.match-sponsor-box .match-sponsor-social-icons a {
	width: 36px;
	height: 36px;

	display: flex;
	align-items: center;
	justify-content: center;

	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 4px;

	color: #fff;
	text-decoration: none;

	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.match-sponsor-box .match-sponsor-social-icons a:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff101;
	transform: translateY(-1px);
}

.match-sponsor-box .match-sponsor-social-icons svg {
	width: 17px;
	height: 17px;
}

/* =========================================================
   STRZELCY I NAWIGACJA
   ========================================================= */

.match-page-scorers {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 15px;
	font-weight: 700;
}

.match-page-scorer {
	color: #28282b;
}

.match-page-scorer span {
	margin-left: 5px;
	color: #016eff;
}

.match-page-back {
	position: absolute;
	top: 28px;
	left: 32px;
	z-index: 5;

	display: inline-flex;
	align-items: center;
	gap: 9px;

	padding: 10px 16px;

	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 8px;

	color: #fff;
	text-decoration: none;

	font-size: 14px;
	font-weight: 700;

	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.match-page-back:hover {
	background: #016eff;
	border-color: #016eff;
	transform: translateX(-3px);
	color: #fff;
}

.match-page-back__arrow {
	font-size: 20px;
	line-height: 1;
}

@media (max-width: 768px) {
	.match-page-back {
		top: 18px;
		left: 18px;
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* =========================================================
   SKŁADY
========================================================= */

.match-lineups {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 10px 0 !important;
	padding: 10px !important;
}

.match-tab-content h3 {
	margin: 0 40px clamp(32px, 3.5vh, 48px);
	text-align: center;
	color: #043a7d;
	font-family: "Arial Black", "Montserrat", sans-serif;
	font-size: clamp(44px, 5vw, 66px);
	font-weight: 900;
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.match-tab-content h3:after {
	position: relative;
	display: block;
	margin: 0 auto;
	bottom: 0;
	left: 0;
	text-align: center;
	width: 56px;
	height: 10px;
	margin-top: 10px;
	background: linear-gradient(to right, #fff101 0 50%, #0d6efd 50% 100%);
	content: "";
}

.match-lineup {
	position: relative;
	overflow: hidden;

	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.98) 0%,
		rgba(248, 250, 253, 0.98) 100%
	);

	border: 1px solid rgba(13, 110, 253, 0.12);
	border-radius: 20px;

	padding: 28px 24px 24px;

	box-shadow:
		0 14px 38px rgba(5, 32, 72, 0.08),
		0 1px 0 rgba(255, 255, 255, 0.8) inset;

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.match-lineup:hover {
	transform: translateY(-2px);

	border-color: rgba(13, 110, 253, 0.22);

	box-shadow:
		0 18px 44px rgba(5, 32, 72, 0.11),
		0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* delikatny pasek klubowy na górze */
.match-lineup::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;

	height: 3px;

	background: linear-gradient(90deg, #02398b, #0d6efd);
}

.match-lineup h2 {
	margin: 2px 0 18px;

	color: #016eff;

	text-align: center;

	font-size: 22px;
	font-weight: 800;

	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   PODSTAWOWI / REZERWOWI
--------------------------------------------------------- */

.match-lineup-section {
	margin-top: 4px;
}

.match-lineup-section--bench {
	margin-top: 22px;
	padding-top: 18px;

	border-top: 1px solid rgba(20, 50, 90, 0.1);
}

.match-lineup-section__label {
	margin-bottom: 5px;

	color: #667386;

	font-size: 12px;
	font-weight: 800;

	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------
   WIERSZ ZAWODNIKA
--------------------------------------------------------- */

.match-lineup-player {
	position: relative;

	display: flex;
	align-items: center;
	gap: 12px;

	min-height: 48px;
	font-family: "Montserrat", sans-serif !important;

	padding: 7px 4px;

	border-bottom: 1px solid rgba(20, 50, 90, 0.09);

	transition:
		background 0.2s ease,
		padding-left 0.2s ease;
}

.match-lineup-player:hover {
	padding-left: 7px;

	background: linear-gradient(90deg, rgba(1, 110, 255, 0.045), transparent);
}

.match-lineup-player:last-child {
	border-bottom: 0;
}

/* rezerwowi odrobinę spokojniejsi */
.match-lineup-player--bench {
	opacity: 0.88;
}

.match-lineup-player-link {
	color: inherit;
	text-decoration: none;
	font-weight: inherit;

	transition:
		color 0.2s ease,
		opacity 0.2s ease;
}

.match-lineup-player-link:hover {
	color: #0d6efd;
}

.match-lineup-player-link::after {
	content: " →";

	display: inline-block;

	margin-left: 5px;

	font-size: 0.85em;

	opacity: 0.45;

	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

.match-lineup-player-link:hover::after {
	transform: translateX(3px);
	opacity: 1;
}

/* ---------------------------------------------------------
   NUMER ZAWODNIKA
--------------------------------------------------------- */

.match-lineup-number {
	position: relative;

	flex: 0 0 36px;

	width: 36px;
	height: 36px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	border-radius: 50%;

	background: linear-gradient(145deg, #1382ff 0%, #016eff 52%, #0056c9 100%);

	border: 2px solid rgba(255, 255, 255, 0.92);

	color: #fff;

	font-size: 13px;
	font-weight: 900;

	line-height: 1;

	letter-spacing: 0;

	box-shadow:
		0 5px 12px rgba(1, 110, 255, 0.2),
		0 0 0 1px rgba(1, 72, 160, 0.1);

	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* subtelne światło w kółku */
.match-lineup-number::after {
	content: "";

	position: absolute;

	top: 3px;
	left: 7px;

	width: 13px;
	height: 7px;

	border-radius: 50%;

	background: rgba(255, 255, 255, 0.22);

	transform: rotate(-14deg);

	pointer-events: none;
}

/* ---------------------------------------------------------
   NAZWA
--------------------------------------------------------- */

.match-lineup-name {
	color: #182233;

	font-size: 16px;
	font-weight: 800;

	line-height: 1.25;

	letter-spacing: 0.035em;
}

/* ---------------------------------------------------------
   TRENER
--------------------------------------------------------- */

.match-lineup-coach {
	margin-top: 22px;

	padding: 18px 18px 16px;

	border: 1px solid rgba(1, 110, 255, 0.11);
	border-radius: 12px;

	background: linear-gradient(
		135deg,
		rgba(1, 110, 255, 0.055),
		rgba(1, 110, 255, 0.015)
	);
}

.match-lineup-coach span {
	display: block;

	margin-bottom: 5px;

	color: #016eff;

	font-size: 11px;
	font-weight: 900;

	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.match-lineup-coach strong {
	color: #182233;

	font-size: 16px;
	font-weight: 800;

	letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 768px) {
	.match-lineups {
		grid-template-columns: 1fr;
		gap: 18px;
		margin: 28px 0;
	}

	.match-lineup {
		padding: 24px 18px 20px;
		border-radius: 16px;
	}

	.match-lineup h2 {
		font-size: 20px;
	}

	.match-lineup-player {
		min-height: 46px;
	}

	.match-lineup-number {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}

	.match-lineup-name {
		font-size: 15px;
	}
}

/* Tablet */
@media (max-width: 991px) {
	.match-top-grid {
		grid-template-columns: 1fr;
	}
}

.match-sponsor-box h2,
.match-sponsor-box strong,
.match-sponsor-box p {
	color: #ffff;
}

.match-live-text h2 {
	margin-top: 0;
	color: #016eff;
	text-align: center;
	text-transform: uppercase;
}

.match-live-entry {
	background: #f4f7ff;
	border-left: 5px solid #016eff;
	padding: 16px 18px;
	margin-bottom: 12px;
	border-radius: 8px;
	font-family: "Outfit", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	letter-spacing: 0;
	white-space: pre-wrap;
	transition:
		background 0.35s ease,
		border-color 0.35s ease;
}

.match-live-feed {
	width: 100%;
	box-sizing: border-box;
	align-items: stretch;
	margin-top: 34px;
}

.match-live-feed[hidden] {
	display: none !important;
}

.match-live-feed__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.match-live-feed__header h2 {
	margin: 0;
	text-align: left;
}

.match-live-feed__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 8px 12px;
	border: 1px solid rgba(1, 110, 255, 0.18);
	border-radius: 999px;
	background: rgba(1, 110, 255, 0.08);
	color: #075dcc;
	font-family: "Outfit", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.match-live-feed__dot {
	width: 9px;
	height: 9px;
	flex: 0 0 9px;
	border-radius: 50%;
	background: #7d8795;
}

.match-live-feed[data-match-status="live"] .match-live-feed__status {
	border-color: rgba(229, 23, 55, 0.22);
	background: rgba(229, 23, 55, 0.09);
	color: #c41230;
}

.match-live-feed[data-match-status="live"] .match-live-feed__dot {
	background: #ed1739;
	box-shadow: 0 0 0 0 rgba(237, 23, 57, 0.5);
	animation: matchLiveStatusPulse 1.5s infinite;
}

.match-live-feed[data-match-status="rozegrany"] .match-live-feed__status {
	border-color: rgba(34, 139, 82, 0.2);
	background: rgba(34, 139, 82, 0.08);
	color: #187541;
}

.match-live-feed[data-match-status="rozegrany"] .match-live-feed__dot {
	background: #228b52;
}

.match-live-feed__entries {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.match-live-feed__entries .match-live-entry {
	margin-bottom: 0;
}

.match-live-entry.is-new {
	background: #fffbd6;
	border-left-color: #f2cf00;
	animation: matchLiveEntryIn 0.45s ease both;
}

.match-live-feed__empty,
.match-live-feed__connection {
	margin: 0;
	padding: 14px 16px;
	border-radius: 8px;
	font-family: "Outfit", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	letter-spacing: 0;
}

.match-live-feed__empty {
	background: #f4f7ff;
	color: #5f6b7a;
}

.match-live-feed__connection {
	border: 1px solid rgba(196, 18, 48, 0.14);
	background: #fff1f3;
	color: #a3112a;
}

@keyframes matchLiveStatusPulse {
	70% {
		box-shadow: 0 0 0 8px rgba(237, 23, 57, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(237, 23, 57, 0);
	}
}

@keyframes matchLiveEntryIn {
	from {
		opacity: 0;
		transform: translateY(-7px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.match-live-feed[data-match-status="live"] .match-live-feed__dot,
	.match-live-entry.is-new {
		animation: none;
	}
}

@media (max-width: 768px) {
	.match-page-summary__inner {
		grid-template-columns: 1fr;
		display: flex;
		flex-direction: column;
	}

	.match-page-info-grid {
		grid-template-columns: 1fr 1fr;
	}

	.match-page-team__logo {
		width: 90px;
		height: 90px;
		flex-basis: 90px;
	}

	.match-page-team {
		align-self: center;
	}

	.match-page-team h2 {
		min-height: auto;
	}
}

@media (max-width: 520px) {
	.match-page-info-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   TRANSMISJA / ZAPIS MECZU — PRO UX
   ========================================================= */

.match-live-video {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	display: flex;
	flex-direction: column;

	padding: clamp(28px, 2.6vw, 42px);

	border-radius: 16px;

	background:
		radial-gradient(
			circle at 12% 10%,
			rgba(25, 112, 255, 0.19) 0%,
			transparent 36%
		),
		linear-gradient(145deg, #06162f 0%, #092655 56%, #0c3778 100%);

	color: #fff;

	box-shadow:
		0 18px 46px rgba(3, 20, 50, 0.2),
		0 0 0 1px rgba(13, 110, 253, 0.1),
		0 0 26px rgba(21, 64, 255, 0.18);
}

.match-live-video::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;

	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.035),
		transparent 42%
	);

	pointer-events: none;
}

.match-live-video::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -110px;
	z-index: 0;

	width: 280px;
	height: 280px;

	border-radius: 50%;
	background: rgba(13, 110, 253, 0.1);
	filter: blur(2px);

	pointer-events: none;
}

.match-live-video__top,
.match-live-video__embed,
.match-live-video__fallback {
	position: relative;
	z-index: 2;
}

.match-live-video__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;

	margin-bottom: 28px;
}

.match-live-video__top > div {
	min-width: 0;
}

.match-live-video__eyebrow {
	display: block;
	margin-bottom: 7px;

	color: #fff101;

	font-size: 12px;
	font-weight: 900;
	line-height: 1;

	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.match-live-video h2 {
	margin: 0;

	color: #fff;

	font-family: "Bebas Neue", "Outfit", Arial, sans-serif;
	font-size: clamp(34px, 3vw, 50px);
	font-weight: 400;
	line-height: 0.92;

	letter-spacing: 0.035em;
	text-align: left;
	text-transform: uppercase;
}

.match-live-video__external {
	position: relative;
	flex: 0 0 auto;

	display: inline-flex;
	align-items: center;
	gap: 8px;

	padding: 8px 0;

	color: rgba(255, 255, 255, 0.72);

	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;

	letter-spacing: 0.06em;
	text-transform: uppercase;

	text-decoration: none;

	transition:
		color 0.2s ease,
		transform 0.2s ease;
}

.match-live-video__external::after {
	content: "↗";
	font-size: 16px;
	line-height: 1;
}

.match-live-video__external:hover {
	color: #fff101;
	transform: translateY(-1px);
}

/* PLAYER */

.match-live-video__embed {
	position: relative;

	width: 100%;
	aspect-ratio: 16 / 9;

	margin-top: auto;

	overflow: hidden;

	border: 0;
	outline: 0;
	border-radius: 12px;

	background: #000;

	box-shadow:
		0 18px 38px rgba(0, 0, 0, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.06);

	isolation: isolate;
	transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.match-live-video__embed iframe {
	display: block;

	width: calc(100% + 2px);
	height: calc(100% + 2px);

	margin: -1px;
	padding: 0;

	border: 0 !important;
	outline: 0 !important;

	background: #000;

	box-shadow: none !important;

	vertical-align: top;
}

/* FALLBACK */

.match-live-video__fallback {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;

	min-height: 240px;

	gap: 18px;

	padding: 8px 0 4px;
}

.match-live-video__fallback p {
	max-width: 560px;
	margin: 0;

	color: rgba(255, 255, 255, 0.78);

	font-family: "Outfit", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: 0;
}

.match-live-video__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;

	min-height: 48px;

	padding: 0 22px;

	border-radius: 8px;

	background: #fff101;

	color: #07142b;

	font-family: "Bebas Neue", "Outfit", Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;

	box-shadow: 0 10px 24px rgba(255, 241, 1, 0.16);

	transition:
		transform 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.match-live-video__btn::before {
	content: "";
	width: 9px;
	height: 9px;
	flex: 0 0 9px;

	border-radius: 50%;
	background: #0d6efd;
}

.match-live-video__btn:hover {
	transform: translateY(-2px);
	background: #fff;
	box-shadow: 0 14px 30px rgba(255, 241, 1, 0.22);
}

/* TABLET */

@media (max-width: 991px) {
	.match-top-grid {
		grid-template-columns: 1fr;
		gap: 24px;
		margin: 46px 0;
	}

	.match-sponsor-box,
	.match-live-video {
		min-height: auto;
	}

	.match-live-video {
		padding: 30px;
	}
}

/* MOBILE */

@media (max-width: 640px) {
	.match-top-grid {
		gap: 18px;
		margin: 30px 0;
	}

	.match-live-video {
		padding: 22px 16px 16px;
		border-radius: 14px;
	}

	.match-live-video__top {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		margin-bottom: 18px;
	}

	.match-live-video h2 {
		font-size: clamp(34px, 11vw, 44px);
	}

	.match-live-video__external {
		padding: 2px 0;
		font-size: 11px;
	}

	.match-live-video__embed {
		border-radius: 9px;
	}

	.match-live-video__fallback {
		min-height: 180px;
	}

	.match-live-video__btn {
		min-height: 46px;
		padding: 0 18px;
		font-size: 17px;
	}
}

/* =========================================================
   ZMIANY
   ========================================================= */

.match-substitutions {
	margin: 38px 0;
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.1),
		0 0 0 1px rgba(0, 47, 117, 0.12);
}

.match-substitutions h2 {
	margin: 0 0 20px;
	color: #016eff;
	font-size: 26px;
	text-transform: uppercase;
}

.match-substitution {
	display: grid;
	grid-template-columns: 70px 1fr 1fr;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #e8e8e8;
}

.match-substitution:last-child {
	border-bottom: 0;
}

.match-substitution__minute {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	border-radius: 8px;
	background: #016eff;
	color: #fff;
	font-weight: 800;
}

.match-substitution__player {
	font-size: 16px;
	font-weight: 700;
}

.match-substitution__player--in {
	color: #168447;
}

.match-substitution__player--out {
	color: #c83a3a;
}

.match-substitution__team {
	display: block;
	margin-bottom: 5px;
	color: #7a8491;
	font-size: 12px;
	text-transform: uppercase;
}

@media (max-width: 680px) {
	.match-substitution {
		grid-template-columns: 56px 1fr;
	}

	.match-substitution__player--out {
		grid-column: 2;
	}
}

.match-substitutions-team {
	margin-bottom: 28px;
	overflow: hidden;
	border: 1px solid #dfe5ed;
	border-radius: 14px;
}

.match-substitutions-team:last-child {
	margin-bottom: 0;
}

.match-substitutions-team__header {
	padding: 14px 18px;
	background: linear-gradient(135deg, #0878ff 0%, #075dcc 100%);
	color: #fff;
	font-size: 19px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.match-substitutions-team .match-substitution {
	padding-left: 18px;
	padding-right: 18px;
}

.match-substitutions-team .match-substitution:last-child {
	border-bottom: 0;
}

/* ===============================
   TABS STRONY MECZU
   =============================== */

.match-tabs-wrap {
	position: relative;
	z-index: 6;
	max-width: 1400px;
	margin: 38px auto 0;
	padding: 0 24px;
}

.match-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 8px;
	letter-spacing: 10px;
	border-radius: 16px;
}

.match-tab {
	appearance: none;
	border: 0;
	border-radius: 11px;
	padding: 15px 20px;
	background: #fff;
	color: #1e2838;
	font: inherit;
	letter-spacing: 4px;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}

.match-tab:hover {
	transform: translateY(-1px);
	background: #fdef02;
}

.match-tab.is-active {
	background: linear-gradient(135deg, #0f7bff 0%, #1f5fe0 100%);
	color: #fff;
	box-shadow: 0 8px 18px rgba(1, 110, 255, 0.25);
}

.match-tab-panel {
	display: none;
}

.match-tab-panel.is-active {
	display: block;
}

.match-tab-panel {
	position: relative;
	z-index: 0;
	overflow: hidden;
	background-color: #f2f2f2;
	isolation: isolate;
}

/* piłkarz w tle */
.match-tab-panel::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -75px;
	left: 50%;
	width: min(700px, 55vw);
	height: 800px;
	transform: translateX(-50%);

	background-image: url("/img/pilkarze.webp");
	background-repeat: no-repeat;
	background-position: top center;
	background-size: contain;

	filter: grayscale(100%);
	opacity: 0.225;
	pointer-events: none;
}

/* treść zawsze ponad piłkarzem */
.match-tab-panel > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	.match-tab-panel::before {
		top: -40px;
		left: 65%;
		width: 150vw;
		height: 650px;
	}
}

.match-tab-content {
	padding: 50px 24px 70px;
}

.match-tab-content .container {
	max-width: 1400px;
}

.match-coming-soon {
	background: #fff;
	border-radius: 18px;
	padding: 42px 28px;
	text-align: center;
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.08),
		0 0 0 1px rgba(0, 47, 117, 0.08);
}

.match-coming-soon h2 {
	margin: 0 0 10px;
	color: #016eff;
	text-transform: uppercase;
}

.match-coming-soon p {
	margin: 0;
	color: #646d7a;
	font-size: 17px;
}

.match-stage-heading {
	margin: 0 0 26px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1;
	text-transform: uppercase;
	color: #28282b;
	text-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

@media (max-width: 680px) {
	.match-tabs {
		grid-template-columns: 1fr;
	}

	.match-tab {
		width: 100%;
	}

	.match-tab-content {
		padding: 34px 18px 50px;
	}
}

/* =========================================================
   MOBILE — KOMPAKTOWY WIDOK STRONY MECZU
   ========================================================= */

@media (max-width: 768px) {
	body {
		height: auto;
		min-height: 100vh;
		letter-spacing: 0.5px;
		overflow-x: hidden;
	}

	/* HERO */
	.match-page-hero {
		min-height: 310px;
	}

	.match-page-hero__content {
		padding: 82px 16px 42px;
	}

	.match-page-hero h1 {
		max-width: none;
		margin: 0;
		font-size: clamp(30px, 10vw, 42px);
		line-height: 0.98;
		letter-spacing: 1px;
	}

	.match-page-eyebrow {
		margin-bottom: 12px;
		padding: 9px 14px;
		font-size: 12px;
	}

	/* WYNIK — obie drużyny pozostają obok siebie */
	.match-page-summary {
		margin-top: -34px;
		padding: 0 10px;
	}

	.match-page-summary__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 10px 8px;
		padding: 18px 10px 14px;
		border-top-width: 3px;
		border-bottom-width: 3px;
		border-radius: 18px;
	}

	.match-page-team {
		align-self: start;
		min-width: 0;
	}

	.match-page-team__logo {
		width: 64px;
		height: 64px;
		flex: 0 0 64px;
		margin: 0 auto 8px;
		padding: 8px;
	}

	.match-page-team h2 {
		min-height: 38px;
		font-size: 16px;
		line-height: 1.05;
		letter-spacing: 0.5px;
		overflow-wrap: anywhere;
	}

	.match-page-center {
		align-self: start;
		padding-top: 18px;
	}

	.match-page-score {
		margin: 0;
		padding: 10px 12px;
		border-radius: 8px;
		font-size: 34px;
	}

	.match-page-team-scorers {
		min-height: 18px;
		margin-top: 6px;
		gap: 2px;
	}

	.match-page-team-scorer {
		gap: 4px;
		font-size: 12px;
		line-height: 1.2;
	}

	.match-page-meta {
		grid-column: 1 / -1;
		width: 100%;
		box-sizing: border-box;
		margin-top: 4px;
		padding: 9px 10px;
		gap: 7px 12px;
		border-width: 1px;
		border-radius: 11px;
		font-size: 12px;
		line-height: 1.2;
		letter-spacing: 0;
	}

	.match-page-meta__logo {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}

	.match-page-meta__item svg {
		width: 14px;
		height: 14px;
		flex-basis: 14px;
	}

	/* ZAKŁADKI */
	.match-tabs-wrap {
		margin-top: 22px;
		padding: 0 10px;
	}

	.match-tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 5px;
		padding: 4px;
		border-radius: 12px;
		letter-spacing: 0;
	}

	.match-tab {
		width: auto;
		min-width: 0;
		min-height: 42px;
		padding: 8px 5px;
		border-radius: 8px;
		font-size: 11px;
		line-height: 1.1;
		letter-spacing: 0.25px;
		white-space: normal;
	}

	.match-tab-content {
		padding: 28px 12px 44px;
	}

	.match-stage-heading {
		margin-bottom: 18px;
		font-size: 27px;
		letter-spacing: 0.5px;
	}

	.match-page-lead {
		margin-bottom: 22px;
		font-family: "Outfit", Arial, sans-serif;
		font-size: 18px;
		line-height: 1.5;
		letter-spacing: 0;
	}

	.match-page-article {
		padding: 20px 16px;
		border-radius: 12px;
		font-size: 16px;
		line-height: 1.65;
		letter-spacing: 0;
	}

	.match-page-article--spaced {
		margin-top: 24px;
	}

	.match-page-article img {
		border-radius: 10px;
	}

	.match-preview-main-image {
		margin: 32px 0 22px;
		border-radius: 12px;
	}

	/* SPONSOR I TRANSMISJA */
	.match-top-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		margin: 30px 0;
	}

	.match-live-text,
	.match-sponsor-box {
		box-sizing: border-box;
		margin-top: 0;
		padding: 20px 16px;
		gap: 14px;
	}

	.match-live-video {
		box-sizing: border-box;
		margin-top: 0;
	}

	.match-sponsor-box h2,
	.match-live-text h2 {
		margin: 0;
		font-size: 23px;
		line-height: 1.05;
		letter-spacing: 0.8px;
		text-align: center;
	}

	.match-sponsor-box-logo {
		max-width: 160px;
		max-height: 105px;
	}

	.match-sponsor-box__background {
		object-position: center;
		opacity: 0.62;
	}

	.match-sponsor-box::before {
		background: linear-gradient(
			180deg,
			rgba(8, 10, 15, 0.78),
			rgba(8, 10, 15, 0.94)
		);
	}

	.match-sponsor-box-name {
		font-family: "Outfit", Arial, sans-serif;
		font-size: 23px;
		line-height: 1.1;
		letter-spacing: 0;
	}

	.match-sponsor-box-description {
		font-family: "Outfit", Arial, sans-serif;
		font-size: 15px;
		font-weight: 400;
		line-height: 1.6;
		letter-spacing: 0;
	}

	.match-sponsor-box .match-sponsor-contact {
		margin-top: 2px;
	}

	.match-sponsor-box .match-sponsor-contact-website {
		min-height: 48px;
		padding: 0 13px;
		font-family: "Outfit", Arial, sans-serif;
		font-size: 14px;
		letter-spacing: 0;
	}

	.match-sponsor-box .match-sponsor-contact-socials {
		min-height: 48px;
		padding: 6px 13px;
	}

	.match-sponsor-box .match-sponsor-contact-socials > span {
		font-size: 13px;
		letter-spacing: 0.08em;
	}

	.match-sponsor-box .match-sponsor-social-icons a {
		width: 34px;
		height: 34px;
	}

	.match-live-video__btn {
		padding-left: 18px;
		padding-right: 18px;
	}

	.match-live-entry {
		padding: 13px 14px;
		font-family: "Outfit", Arial, sans-serif;
		font-size: 15px;
		line-height: 1.45;
		letter-spacing: 0;
	}

	.match-live-feed {
		margin-top: 24px;
	}

	.match-live-feed__header {
		align-items: flex-start;
		gap: 10px;
	}

	.match-live-feed__header h2 {
		font-size: 22px;
		text-align: left;
	}

	.match-live-feed__status {
		padding: 7px 9px;
		font-size: 11px;
	}

	.match-live-feed__entries {
		gap: 9px;
	}

	.match-live-feed__empty,
	.match-live-feed__connection {
		padding: 12px 13px;
		font-size: 14px;
	}

	/* INFORMACJE, SKŁADY I ZMIANY */
	.match-page-info,
	.match-page-content {
		margin-top: -24px;
		padding: 28px 12px;
	}

	.match-page-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.match-page-info-grid > div {
		padding: 13px 10px;
		border-radius: 11px;
	}

	.match-lineups {
		gap: 14px;
		margin: 24px 0;
	}

	.match-lineup {
		padding: 20px 14px 16px;
		border-radius: 13px;
	}

	.match-lineup h2 {
		margin-bottom: 13px;
		font-size: 18px;
		letter-spacing: 0.05em;
	}

	.match-lineup-player {
		min-height: 42px;
		gap: 9px;
		padding: 5px 2px;
	}

	.match-lineup-number {
		flex-basis: 31px;
		width: 31px;
		height: 31px;
		font-size: 12px;
	}

	.match-lineup-name,
	.match-lineup-coach strong {
		font-size: 14px;
		letter-spacing: 0.02em;
	}

	.match-lineup-coach {
		margin-top: 16px;
		padding: 13px;
	}

	.match-substitutions {
		margin: 24px 0;
		padding: 18px 12px;
		border-radius: 13px;
	}

	.match-substitutions h2 {
		margin-bottom: 14px;
		font-size: 22px;
	}

	.match-substitutions-team__header {
		padding: 11px 13px;
		font-size: 16px;
		letter-spacing: 1px;
	}

	.match-substitutions-team .match-substitution {
		padding: 11px 10px;
	}

	.match-substitution {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 9px;
		padding: 11px 0;
	}

	.match-substitution__minute {
		min-height: 34px;
	}

	.match-substitution__player {
		font-size: 14px;
	}

	.match-coming-soon {
		padding: 28px 18px;
		border-radius: 13px;
	}

	.match-coming-soon p {
		font-family: "Outfit", Arial, sans-serif;
		font-size: 15px;
		line-height: 1.5;
		letter-spacing: 0;
	}

	.match-tab-panel::before {
		top: -20px;
		left: 70%;
		width: 125vw;
		height: 520px;
		opacity: 0.14;
	}
}

@media (max-width: 390px) {
	.match-page-team__logo {
		width: 56px;
		height: 56px;
		flex-basis: 56px;
	}

	.match-page-team h2 {
		font-size: 14px;
	}

	.match-page-center {
		padding-top: 14px;
	}

	.match-page-score {
		padding: 9px 10px;
		font-size: 30px;
	}

	.match-tab {
		font-size: 10px;
	}

	.match-page-meta {
		font-size: 11px;
	}
}
