/* ESet hub — zakładki działów + Cover Flow (Swiper) + modal */

.eg-eset-hub-v3 {
	padding-bottom: 48px;
}

.eg-eset-hub-shell {
	position: relative;
	max-width: 100%;
	min-width: 0;
	overflow-x: hidden;
}

.eg-eset-hub-root {
	margin-top: 12px;
	position: relative;
	max-width: 100%;
	min-width: 0;
	overflow-x: visible;
}

.eg-eset-hub-tabs {
	display: block;
	margin-top: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 4px 0 8px;
	padding-left: max(2px, env(safe-area-inset-left, 0px));
	padding-right: max(2px, env(safe-area-inset-right, 0px));
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	overscroll-behavior-x: contain;
	overscroll-behavior-y: none;
	touch-action: pan-x;
	cursor: grab;
}

.eg-eset-hub-tabs-track {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 10px 12px;
	width: max-content;
	min-width: 100%;
	box-sizing: border-box;
}

.eg-eset-hub-tabs:active {
	cursor: grabbing;
}

.eg-eset-hub-tabs::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

@media (max-width: 720px) {
	.eg-eset-hub-stage {
		min-height: 260px;
	}
}

.eg-eset-hub-tab {
	appearance: none;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(12, 16, 20, 0.45);
	color: inherit;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 10px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.eg-eset-hub-tab:hover {
	border-color: rgba(152, 255, 217, 0.35);
	background: rgba(152, 255, 217, 0.08);
}

.eg-eset-hub-tab.is-active {
	border-color: rgba(152, 255, 217, 0.55);
	background: rgba(152, 255, 217, 0.14);
	box-shadow: 0 0 0 1px rgba(152, 255, 217, 0.12);
	color: var(--mint, #98ffd9);
}

#eg-main .eg-eset-hub-divider {
	margin: 20px 0 0;
	width: 100%;
}

.eg-eset-hub-stage {
	position: relative;
	min-height: 360px;
	padding: 8px 0 20px;
	background: transparent;
}

.eg-eset-hub-panel {
	position: relative;
	z-index: 1;
	background: transparent;
}

.eg-eset-hub-coverflow-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 8px 8px;
	background: transparent;
}

.swiper.eg-eset-coverflow {
	overflow: visible !important;
	padding: 22px 12px 6px;
}

.swiper.eg-eset-coverflow .swiper-slide {
	width: min(248px, 54vw);
	box-sizing: border-box;
	z-index: 1;
}

.swiper.eg-eset-coverflow .swiper-slide-active {
	z-index: 12;
}

.swiper.eg-eset-coverflow .swiper-slide-active .eg-eset-hub-card {
	box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
}

.eg-eset-coverflow__nav-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 28px;
	margin-top: 28px;
	padding: 8px 0 6px;
	background: transparent;
}

.eg-eset-coverflow__nav {
	position: static;
	margin: 0 !important;
	top: auto;
	left: auto;
	right: auto;
	width: 44px;
	height: 44px;
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(12, 16, 20, 0.55);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.eg-eset-coverflow__nav:hover {
	border-color: rgba(152, 255, 217, 0.4);
	color: var(--mint, #98ffd9);
}

.eg-eset-coverflow__nav::after {
	font-size: 1.15rem;
	font-weight: 700;
}

.eg-eset-coverflow__nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Pełne nadpisanie szkła #eg-page-wrap (background + backdrop) — inaczej zostaje blur i „mgła” na całej karcie. */
#eg-page-wrap .eg-eset-hub-card {
	background: #0c0e12;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.eg-eset-hub-card[data-eg-eset-card] {
	cursor: pointer;
}

.eg-eset-hub-card[data-eg-eset-card]:focus-visible {
	outline: 2px solid rgba(152, 255, 217, 0.65);
	outline-offset: 3px;
}

.eg-eset-hub-card {
	position: relative;
	aspect-ratio: 5 / 7;
	width: 100%;
	max-height: min(84vh, 520px);
	margin: 0 auto;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid var(--eg-glow-border, rgba(255, 255, 255, 0.14));
	background-color: #0c0e12;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.eg-eset-hub-card__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	overflow: hidden;
	pointer-events: none;
}

/* Wypełnienie jak object-fit: cover — brak pustych pasów, proporcje bez zniekształceń. */
.eg-eset-hub-card__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
	display: block;
}

.eg-eset-hub-card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(6, 10, 14, 0.05) 0%,
		rgba(6, 10, 14, 0.25) 42%,
		rgba(6, 10, 14, 0.82) 100%
	);
	pointer-events: none;
}

.eg-eset-hub-card__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	min-height: 100%;
	height: 100%;
	padding: 0;
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
}

.eg-eset-hub-card__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	margin: 0;
	padding: 0;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	border: none;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.eg-eset-hub-card__play-svg {
	display: block;
	width: clamp(2.35rem, 9vw, 3.25rem);
	height: auto;
	color: #fff;
	shape-rendering: geometricPrecision;
}

/* Jedna warstwa wypełnienia — bez obrysów (stroke dawał „mgłę” na krawędziach). */
.eg-eset-hub-card__play-svg path {
	fill: currentColor;
	fill-opacity: 0.9;
	stroke: none;
}

.eg-eset-hub-card__footer {
	position: relative;
	z-index: 1;
	padding: 12px 14px 14px;
}

.eg-eset-hub-card__title {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--eg-ref-accent, var(--mint, #98ffd9));
	text-shadow: none;
	-webkit-font-smoothing: antialiased;
	font-family: ui-sans-serif, system-ui, 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji',
		'Helvetica Neue', Arial, sans-serif;
}

.eg-eset-hub-card__meta {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: none;
	-webkit-font-smoothing: antialiased;
}

.eg-eset-hub-card__meta time,
.eg-eset-hub-card__meta-nodate,
.eg-eset-hub-card__dzial {
	opacity: 0.5;
	font-weight: 600;
}

.eg-eset-hub-card__meta-sep {
	opacity: 0.5;
	font-weight: 400;
}

/* Domyślnie dialog nie uczestniczy w layoucie; bez tego `display:flex` trzyma slot na stronie. */
.eg-eset-hub-dialog:not([open]) {
	display: none;
}

.eg-eset-hub-dialog[open] {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: min(20px, 4vw);
	box-sizing: border-box;
	border: none;
	background: transparent;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eg-eset-hub-dialog::backdrop {
	background: rgba(10, 12, 16, 0.78);
	backdrop-filter: grayscale(0.45) blur(4px);
}

.eg-eset-hub-dialog__video {
	position: relative;
	width: min(960px, 100%);
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	flex-shrink: 0;
	--eg-eset-accent: rgb(152, 255, 217);
	box-shadow:
		0 0 64px 10px color-mix(in srgb, var(--eg-eset-accent) 48%, transparent),
		0 20px 56px rgba(0, 0, 0, 0.58);
}

.eg-eset-hub-dialog__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 640px) {
	.swiper.eg-eset-coverflow {
		padding: 16px 8px 6px;
	}
}

@media (max-width: 1024px) {
	.eg-eset-hub-dialog[open] {
		align-items: center;
		justify-content: center;
	}

	.eg-eset-hub-dialog__video {
		transform: rotate(90deg);
		width: min(85vh, 92vw);
		max-width: none;
		aspect-ratio: 16 / 9;
	}
}

/* Nagłówek: treść + najnowszy ESet (kwadrat nie wyższy niż pas nagłówka) */
.eg-eset-hub-page-intro {
	margin-bottom: 4px;
}

#eg-main .eg-page-header--eset-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 40px;
	align-items: center;
	justify-items: center;
	max-width: none;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0;
}

#eg-main .eg-page-header--eset-split .eg-page-header__main {
	min-width: 0;
	width: 100%;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

#eg-main .eg-page-header--eset-split .eg-section-label,
#eg-main .eg-page-header--eset-split h1,
#eg-main .eg-page-header--eset-split .eg-page-header-lead {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

#eg-main .eg-page-header--eset-split .eg-page-header-lead {
	max-width: 100%;
}

#eg-main .eg-page-header--eset-split .eg-page-header__main .eg-header-divider {
	width: 100%;
	margin: 22px 0 0;
}

#eg-main .eg-page-header--eset-split .eg-page-header__aside.eg-eset-hub-header-aside {
	min-width: 0;
	width: 100%;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.eg-eset-hub-header-aside__label {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
	max-width: 100%;
	line-height: 1.25;
}

.eg-eset-hub-header-aside__tile {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

#eg-main .eg-page-header--eset-split .eg-eset-hub-header-aside__tile .eg-eset-hub-card--square {
	width: min(240px, 100%);
	max-width: min(240px, 36vw);
	height: auto;
	aspect-ratio: 1 / 1;
	max-height: min(240px, 36vw, 30dvh);
}

@media (max-width: 820px) {
	#eg-main .eg-page-header--eset-split {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

/* Kafel kwadratowy + podgląd „Wkrótce” */
.eg-eset-hub-card--square {
	aspect-ratio: 1 / 1;
	width: min(200px, 44vw);
	max-width: 100%;
	height: auto;
	max-height: min(200px, 44vw);
	margin-left: auto;
	margin-right: auto;
}

.eg-eset-hub-card--square .eg-eset-hub-card__title {
	font-size: clamp(0.72rem, 2.6vw, 0.95rem);
	line-height: 1.2;
	margin-bottom: 4px;
	word-break: break-word;
}

.eg-eset-hub-card--square .eg-eset-hub-card__meta {
	font-size: clamp(0.62rem, 2vw, 0.72rem);
	line-height: 1.3;
}

.eg-eset-hub-card--square .eg-eset-hub-card__footer {
	padding: 8px 10px 10px;
}

.eg-eset-hub-card--square .eg-eset-hub-card__play-svg {
	width: clamp(1.55rem, 6.5vw, 2.25rem);
}

#eg-page-wrap .eg-eset-hub-card--preview {
	cursor: default;
	pointer-events: none;
}

/* Sekcja Wkrótce pod karuzelą */
.eg-eset-hub-soon-divider {
	margin: 28px 0 18px;
	width: 100%;
}

.eg-eset-hub-soon {
	margin: 0 auto 12px;
	padding: 0 6px;
	max-width: 420px;
}

.eg-eset-hub-soon--standalone {
	margin-top: 20px;
}

.eg-eset-hub-soon__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	color: rgba(255, 255, 255, 0.9);
}

.eg-eset-hub-soon__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
	align-items: start;
}

.eg-eset-hub-soon__grid .eg-eset-hub-card--square {
	width: 100%;
	max-width: none;
	max-height: none;
}
