/**
 * Homepage / single swipers — Aktualności, Mecze, Tabela.
 * Shared section chrome + three card types.
 */

/* ========== SHARED SECTION SHELL ========== */

.row-swiper-news,
.row-swiper-matches,
.row-swiper-standings {
	width: 100%;
	max-width: 1280px;
	margin: 2.25rem auto 2.75rem;
	padding: 1.35rem 1rem 0;
	box-sizing: border-box;
}

.single-row-swiper-news {
	width: 100%;
	max-width: 1280px;
	margin: 2.25rem auto 2.75rem;
	padding: 1.35rem 1rem 0;
	box-sizing: border-box;
}

.swiper-bar,
.swiper-matches-bar,
.swiper-standings-bar {
	width: 100%;
	background: transparent;
}

.swiper-news-header,
.swiper-matches-header,
.swiper-standings-header,
.swiper-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	width: 100%;
	padding: 0 0 0.85rem;
	margin-bottom: 1.15rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

.swiper-news,
.swiper-matches,
.swiper-standings,
.swiper-section-title {
	font-family: "Saira Condensed", sans-serif;
	font-size: clamp(1.5rem, 2.4vw, 1.85rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.03em;
	color: #1a1a1a;
	text-transform: uppercase;
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.swiper-section-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	flex-shrink: 0;
}

.swiper-section-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.swiper-news-header .swiper-button-prev,
.swiper-news-header .swiper-button-next,
.swiper-matches-header .swiper-button-prev,
.swiper-matches-header .swiper-button-next,
.swiper-standings-header .swiper-button-prev,
.swiper-standings-header .swiper-button-next {
	position: static;
	top: auto;
	width: 2rem;
	height: 2rem;
	margin: 0;
	z-index: auto;
	border: none;
	color: #ffffff;
	font-size: 0;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e40001;
	transition: background 0.25s ease, color 0.25s ease;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
	opacity: 1;
	cursor: auto;
	background: rgba(228, 0, 1, 0.4);
	pointer-events: none;
}

.swiper-news-header .swiper-button-prev:hover,
.swiper-news-header .swiper-button-next:hover,
.swiper-matches-header .swiper-button-prev:hover,
.swiper-matches-header .swiper-button-next:hover,
.swiper-standings-header .swiper-button-prev:hover,
.swiper-standings-header .swiper-button-next:hover {
	background: #b30001;
	color: #ffffff;
}

.swiper-news-header .swiper-button-prev::after,
.swiper-news-header .swiper-button-next::after,
.swiper-matches-header .swiper-button-prev::after,
.swiper-matches-header .swiper-button-next::after,
.swiper-standings-header .swiper-button-prev::after,
.swiper-standings-header .swiper-button-next::after {
	content: '';
	font-size: 0;
}

.swiper-news-header .swiper-button-prev i,
.swiper-news-header .swiper-button-next i,
.swiper-matches-header .swiper-button-prev i,
.swiper-matches-header .swiper-button-next i,
.swiper-standings-header .swiper-button-prev i,
.swiper-standings-header .swiper-button-next i {
	font-size: 1rem;
}

.row-swiper-news .swiper,
.row-swiper-matches .swiper,
.row-swiper-standings .swiper,
.single-row-swiper-news .swiper {
	width: 100%;
	height: auto;
	padding: 0 0 0.35rem;
	overflow: hidden;
}

.row-swiper-news .swiper-wrapper .swiper-slide,
.row-swiper-matches .swiper-wrapper .swiper-slide,
.row-swiper-standings .swiper-wrapper .swiper-slide,
.single-row-swiper-news .swiper-wrapper .swiper-slide {
	height: auto !important;
	min-height: 0;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.swiper-slide a {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* ========== AKTUALNOŚCI — media-first ========== */

.row-swiper-news .swiper-wrapper .swiper-slide,
.single-row-swiper-news .swiper-wrapper .swiper-slide {
	width: min(17.5rem, 78vw) !important;
}

.row-swiper-news .swiper-slide::before,
.single-row-swiper-news .swiper-slide::before {
	display: none;
}

.row-swiper-news .news-slide-media,
.single-row-swiper-news .news-slide-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8e8e8;
}

.row-swiper-news .news-slide-background-image,
.single-row-swiper-news .news-slide-background-image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.row-swiper-news .swiper-slide:hover .news-slide-background-image,
.single-row-swiper-news .swiper-slide:hover .news-slide-background-image {
	transform: scale(1.04);
}

.row-swiper-news .news-slide-body,
.single-row-swiper-news .news-slide-body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.85rem 0.9rem 1rem;
	flex: 1 1 auto;
	min-height: 8.5rem;
}

.row-swiper-news .news-slide-category,
.single-row-swiper-news .news-slide-category {
	margin: 0;
	padding: 0;
	border: none;
	width: auto;
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: #888;
	text-transform: uppercase;
	text-align: left;
}

.row-swiper-news .news-slide-title,
.single-row-swiper-news .news-slide-title,
.row-swiper-news .swiper-slide p,
.single-row-swiper-news .swiper-slide p {
	margin: 0;
	font-family: "Saira Condensed", sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.2;
	color: #1a1a1a;
	text-align: left;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	transition: color 0.3s ease;
}

.row-swiper-news .news-swiper-button,
.single-row-swiper-news .news-swiper-button {
	margin-top: auto !important;
	margin-bottom: 0 !important;
	align-self: flex-start !important;
	width: max-content;
	height: 1.75rem;
	padding: 0 0.85rem;
	line-height: 1.7rem;
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #e40001;
	background: transparent;
	border: 1px solid rgba(228, 0, 1, 0.55);
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
}

.row-swiper-news .swiper-slide:hover .news-swiper-button,
.single-row-swiper-news .swiper-slide:hover .news-swiper-button {
	background: #e40001;
	border-color: #e40001;
	color: #fff;
}

.row-swiper-news .news-slide-stripe-animation,
.single-row-swiper-news .news-slide-stripe-animation {
	display: none;
}

/* ========== MECZE — scoreboard ========== */

.row-swiper-matches .swiper-wrapper .swiper-slide {
	width: min(15.5rem, 78vw) !important;
}

.row-swiper-matches .swiper-slide::before {
	display: none;
}

.match-slide-bg {
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
}

.match-slide-content {
	width: 100%;
	margin: 0;
	padding: 0.75rem 0.8rem 0.85rem;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	height: auto;
	min-height: 0;
}

.match-league-round {
	margin: 0;
	width: 100%;
	height: auto;
	min-height: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.league-round-text {
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.1rem;
}

.match-league-name,
.match-round {
	display: block;
	height: auto;
	line-height: 1.15;
	text-align: left;
	text-transform: uppercase;
}

.match-league-name {
	font-family: "Saira Condensed", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.match-round {
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.65rem;
	color: #777;
}

.match-league-logo {
	width: 1.75rem;
	height: 1.75rem;
	flex-shrink: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.match-league-logo img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.match-teams {
	width: 100%;
	height: auto;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.match-team-row {
	width: 100%;
	height: auto;
	min-height: 2rem;
	display: grid;
	grid-template-columns: 1.75rem 1fr 1.65rem;
	align-items: center;
	gap: 0.45rem;
}

.match-team-row:first-child {
	margin-bottom: 0;
}

.match-team-logo {
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.match-team-logo img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.match-team-name {
	width: auto;
	height: auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}

.match-team-name span:first-child {
	font-family: "Saira Condensed", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.05;
	margin-bottom: 0.1rem;
	text-transform: uppercase;
}

.match-team-name span:last-child {
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.58rem;
	line-height: 1.1;
	text-transform: uppercase;
	color: #666;
}

.match-team-score {
	width: 1.65rem;
	height: 1.65rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: "Saira Condensed", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	background: #1a1a1a;
	color: #fff;
}

.match-team-score.no-score {
	background: #d8d8d8;
	color: transparent;
}

.match-date-time {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #666;
	text-transform: uppercase;
	margin: 0;
}

.team-resovia {
	color: #e40001;
}

.team-resovia span:last-child {
	color: #e40001;
}

.buttons-match-center {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 0.35rem;
	row-gap: 0.35rem;
	width: 100%;
	margin-top: 0.15rem;
}

.button-match-center {
	font-family: "Saira Condensed", sans-serif;
	color: #fff;
	font-size: 0.72rem;
	background: #e40001;
	padding: 0 0.35rem;
	width: 100%;
	white-space: nowrap;
	text-transform: uppercase;
	transition: background-color 0.25s ease;
	height: 1.45rem;
	line-height: 1.45rem;
	border: none;
	text-align: center;
	box-sizing: border-box;
	cursor: pointer;
}

.button-match-center-unactive {
	background: #ddd;
	color: #888;
	cursor: default;
}

.button-match-center:hover {
	background: #b30001;
}

.button-match-center-unactive:hover {
	background: #ddd;
}

.match-stripe-animation {
	display: none;
}

/* ========== TABELA — vertical rank card ========== */

.row-swiper-standings .swiper-wrapper .swiper-slide {
	width: min(11.25rem, 70vw) !important;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	padding: 0.85rem 0.9rem 1.15rem;
	min-height: 0;
	position: relative;
	overflow: hidden;
}

.row-swiper-standings .swiper-slide::before {
	display: none;
}

/* Zone colors: left accent + bottom bar (awans / baraże / spadek) */
.row-swiper-standings .standings-zone-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 0.35rem;
	pointer-events: none;
}

.row-swiper-standings .swiper-slide.pozycja-awans,
.row-swiper-standings .swiper-slide.standings-slide--awans {
	box-shadow: inset 3px 0 0 var(--cwks-standings-awans, #e40001);
}

.row-swiper-standings .swiper-slide.pozycja-awans .standings-zone-bar,
.row-swiper-standings .swiper-slide.standings-slide--awans .standings-zone-bar {
	background: var(--cwks-standings-awans, #e40001);
}

.row-swiper-standings .swiper-slide.pozycja-awans-baraze,
.row-swiper-standings .swiper-slide.standings-slide--awans-baraze {
	box-shadow: inset 3px 0 0 var(--cwks-standings-awans-baraze, #000000);
}

.row-swiper-standings .swiper-slide.pozycja-awans-baraze .standings-zone-bar,
.row-swiper-standings .swiper-slide.standings-slide--awans-baraze .standings-zone-bar {
	background: var(--cwks-standings-awans-baraze, #000000);
}

.row-swiper-standings .swiper-slide.pozycja-baraze-spadek,
.row-swiper-standings .swiper-slide.standings-slide--baraze-spadek {
	box-shadow: inset 3px 0 0 var(--cwks-standings-baraze-spadek, #bbbbbb);
}

.row-swiper-standings .swiper-slide.pozycja-baraze-spadek .standings-zone-bar,
.row-swiper-standings .swiper-slide.standings-slide--baraze-spadek .standings-zone-bar {
	background: var(--cwks-standings-baraze-spadek, #bbbbbb);
}

.row-swiper-standings .swiper-slide.pozycja-spadek,
.row-swiper-standings .swiper-slide.standings-slide--spadek {
	box-shadow: inset 3px 0 0 var(--cwks-standings-spadek, #000000);
}

.row-swiper-standings .swiper-slide.pozycja-spadek .standings-zone-bar,
.row-swiper-standings .swiper-slide.standings-slide--spadek .standings-zone-bar {
	background: var(--cwks-standings-spadek, #000000);
}

.row-swiper-standings .standings-team-resovia {
	background: rgba(228, 0, 1, 0.05);
	border-color: rgba(228, 0, 1, 0.22);
}

.row-swiper-standings .standings-place-logo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
}

.row-swiper-standings .standings-place {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	color: #1a1a1a;
	line-height: 1;
	min-width: 0;
}

.row-swiper-standings .standings-place-line-one {
	font-family: "Saira Condensed", sans-serif;
	font-size: 1.85rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.row-swiper-standings .standings-place-line-two {
	display: block;
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888;
	margin-top: 0.15rem;
}

.row-swiper-standings .standings-logo {
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.row-swiper-standings .standings-logo img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.row-swiper-standings .standings-team {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.12rem;
	color: #1a1a1a;
	text-align: left;
	min-height: 2.4rem;
}

.row-swiper-standings .standings-team-line-one {
	font-family: "Saira Condensed", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	word-break: break-word;
	hyphens: auto;
}

.row-swiper-standings .standings-team-line-two {
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.68rem;
	line-height: 1.2;
	text-transform: uppercase;
	color: #777;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	word-break: break-word;
}

.row-swiper-standings .standings-team-resovia .standings-team,
.row-swiper-standings .standings-team-resovia .standings-team-line-one,
.row-swiper-standings .standings-team-resovia .standings-team-line-two {
	color: #e40001;
}

.row-swiper-standings .standings-matches-points {
	width: 100%;
	margin-top: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem;
	padding-top: 0.55rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.row-swiper-standings .standings-matches-count,
.row-swiper-standings .standings-points {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
	color: #1a1a1a;
}

.row-swiper-standings .standings-points {
	align-items: flex-end;
	text-align: right;
}

.row-swiper-standings .standings-matches-line-one,
.row-swiper-standings .standings-points-line-one {
	font-family: "Saira Condensed", sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
}

.row-swiper-standings .standings-matches-line-two,
.row-swiper-standings .standings-points-line-two {
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.55rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
	margin-top: 0.2rem;
}

.row-swiper-standings .standings-slide-stripe-animation {
	display: none;
}

/* Legenda pod swiperem tabeli — rotator jak CTA (menu / baner / pasek) */
.standings-swiper-legend {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 1.75rem;
	margin-top: 1rem;
	padding: 0 0.15rem;
	box-sizing: border-box;
	overflow: hidden;
}

.standings-swiper-legend-rotator {
	position: relative;
	display: grid;
	place-items: start center;
	width: 100%;
	min-height: 1.35rem;
}

.standings-swiper-legend-rotator-track {
	position: relative;
	display: grid;
	place-items: start center;
	width: 100%;
}

.standings-swiper-legend-slide {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	opacity: 0;
	transform: translateX(22px) scale(0.97);
	transition:
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.32s ease,
		filter 0.2s ease;
	pointer-events: none;
}

.standings-swiper-legend-slide.is-active {
	opacity: 1;
	transform: translateX(0) scale(1);
	pointer-events: auto;
}

.standings-swiper-legend-slide.is-flashing {
	filter: brightness(1.2);
}

.standings-swiper-legend-slide.is-leaving {
	opacity: 0;
	transform: translateX(-22px) scale(0.97);
}

.standings-swiper-legend-color {
	flex: 0 0 1rem;
	width: 1rem;
	height: 1rem;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.standings-swiper-legend-text {
	font-family: "Kumbh Sans", sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.25;
	color: #444;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
	.standings-swiper-legend-slide {
		transition: none !important;
		transform: none !important;
	}

	.standings-swiper-legend-slide:not(.is-active) {
		opacity: 0 !important;
	}

	.standings-swiper-legend-slide.is-active {
		opacity: 1 !important;
	}
}

/* ========== MOBILE ========== */

@media (max-width: 1000px) {
	.row-swiper-news,
	.row-swiper-matches,
	.row-swiper-standings,
	.single-row-swiper-news {
		margin-top: 1.75rem;
		margin-bottom: 2rem;
		padding: 1rem 0.75rem 0;
	}

	.swiper-news-header,
	.swiper-matches-header,
	.swiper-standings-header,
	.swiper-section-header {
		flex-wrap: nowrap;
		gap: 0.45rem;
		padding-bottom: 0.7rem;
		margin-bottom: 0.9rem;
	}

	.swiper-news,
	.swiper-matches,
	.swiper-standings,
	.swiper-section-title {
		font-size: 1.25rem;
		flex: 0 1 auto;
		min-width: 0;
		white-space: nowrap;
	}

	.swiper-section-actions {
		flex-shrink: 0;
		justify-content: flex-end;
		gap: 0.3rem;
	}

	.swiper-news-header .swiper-button-prev,
	.swiper-news-header .swiper-button-next,
	.swiper-matches-header .swiper-button-prev,
	.swiper-matches-header .swiper-button-next,
	.swiper-standings-header .swiper-button-prev,
	.swiper-standings-header .swiper-button-next {
		width: 2.15rem;
		height: 2.15rem;
	}

	.swiper-news-header .swiper-button-prev i,
	.swiper-news-header .swiper-button-next i,
	.swiper-matches-header .swiper-button-prev i,
	.swiper-matches-header .swiper-button-next i,
	.swiper-standings-header .swiper-button-prev i,
	.swiper-standings-header .swiper-button-next i {
		font-size: 1.05rem;
	}

	.row-swiper-news .news-slide-body,
	.single-row-swiper-news .news-slide-body {
		min-height: 7.5rem;
		padding: 0.75rem;
	}

	.row-swiper-news .news-slide-title,
	.single-row-swiper-news .news-slide-title,
	.row-swiper-news .swiper-slide p,
	.single-row-swiper-news .swiper-slide p {
		font-size: 1rem;
		-webkit-line-clamp: 3;
	}

	.row-swiper-standings .swiper-wrapper .swiper-slide {
		width: min(11.5rem, 72vw) !important;
		padding: 0.75rem 0.8rem 0.85rem;
	}

	.row-swiper-matches .match-team-name span:first-child {
		font-size: 0.88rem;
	}

	.row-swiper-matches .button-match-center {
		font-size: 0.68rem;
		height: 1.4rem;
		line-height: 1.4rem;
	}

	.swiper-section-actions .small-red-button {
		font-size: 0.7rem;
		padding-left: 0.65rem;
		padding-right: 0.65rem;
	}
}
