html {
	overflow-x: auto;
}

@media (max-width: 1104px) {
	body.g-detail {
		background-size: cover;
		background-position: center top;
	}
}

body.g-detail {
	height: auto;
	min-width: fit-content;
	/* overflow-x: auto; */
}

body.g-detail .header {
	width: auto;
	margin: 8px;
}

body.g-detail.is-desktop .header {
	position: relative;
	top: auto;
}

body.is-mobile.g-detail {
	min-width: 0;
}

/* FUNKCIONALITY - fullscreen, resize ... */

/* header hide fav icon */
@media (max-width: 839px) {
	.header__user-nav-favorite {
		display: none;
	}
}

html.fullscreen,
body.fullscreen {
	overflow: hidden !important;
	position: fixed !important;
	width: 100% !important;
	height: 100% !important;
	overscroll-behavior: none !important;
}

.gameWindow {
	transition: none;
	margin: 0 auto;
	display: block;
}

/* fullscreen */
.gameWindow.fullscreen {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	width: 100dvw !important;
	height: 100vh !important;
	height: 100dvh !important;
	z-index: 10000 !important;
	background: #000;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	-webkit-overflow-scrolling: touch; /* iOS */
	overscroll-behavior: none !important; /*  iOS */
	-webkit-overflow-scrolling: touch;
	touch-action: none !important; /* zakáže všechny touch gesta */
}

/* iOS touch action prevence */
.fullscreen * {
	touch-action: none !important;
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}

/* iOS touch action prevence */
.gameWindow.fullscreen * {
	touch-action: none !important;
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}

.gameWindow.fullscreen iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100dvw !important;
	height: 100dvh !important;
	border: none !important;
	touch-action: auto !important;
}

.gameWindow.fullscreen.fullscreen-ruffle-fit {
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #000;
}

.gameWindow.fullscreen.fullscreen-ruffle-fit::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	filter: blur(22px);
	transform: scale(1.08);
	z-index: 1;
	display: block !important;
}

.gameWindow.fullscreen.fullscreen-ruffle-fit #game,
.gameWindow.fullscreen.fullscreen-ruffle-fit ruffle-player,
.gameWindow.fullscreen.fullscreen-ruffle-fit #gameEmbed,
.gameWindow.fullscreen.fullscreen-ruffle-fit .gameEmbed {
	position: relative;
	z-index: 2;
	touch-action: auto !important;
}

.gameWindow.fullscreen.fullscreen-ruffle-fit #game {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.gameWindow.fullscreen.fullscreen-ruffle-fit ruffle-player,
.gameWindow.fullscreen.fullscreen-ruffle-fit ruffle-player canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

/* Safari fallback - pokud dvh není podporováno */
@supports not (height: 100dvh) {
	.gameWindow.fullscreen,
	.gameWindow.fullscreen iframe {
		height: -webkit-fill-available !important;
	}
}

/* Fullscreen overlay - tmavé pozadí */
.fullscreen-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999 !important;
}

/* Close button */
.fullscreen-close {
	position: fixed !important;
	top: 20px;
	left: 20px;
	z-index: 10001 !important;
	background: var(--clr-alpha-black-10);
	border: 1px solid var(--brdr-skeumo-gradient);
	padding: 8px;
	border-radius: 8px;
	cursor: grab;
	backdrop-filter: blur(20px);
	display: flex;
	gap: var(--gap4);
	justify-content: center;
	align-items: center;
	touch-action: auto !important;
	pointer-events: auto !important;
}

.fullscreen-close:active {
	cursor: grabbing;
}

/* Wrapper pro rozmazané pozadí (mimo fullscreen) */
.gameWindow.playing::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	filter: blur(10px);
	z-index: 1;
}

/* cinema mode */
.gameWindow.cinema {
	position: relative;
	display: block;
	max-width: 100vw;
	max-height: calc(100vh - 100px);
	margin: 30px auto;
	background: #000;
	z-index: 1000;
}
body.cinema-bg {
	background: rgba(0, 0, 0, 0.9);
}

/* Cinema mód */
.game-detail-layout.cinema-mode {
	grid-template-columns: 1fr; /* jen hlavní obsah */
}

.game-detail-layout.cinema-mode .game-detail-layout__sidebar {
	display: none; /* schovat sidebary */
}

.game-detail-layout.cinema-mode .game-main-detail {
	grid-column: 1 / -1; /* roztáhnout hlavní obsah */
}

/* UPDATOVANY SIDEBAR */

/* Sidebar mobilní chování vynucené i na desktopu */
body.mobile-sidebar-only .sidebar {
	position: fixed;
	top: 72px;
	left: 8px;
	/* height: auto; */
	width: 220px;
	max-width: calc(100vw - 16px);
	background: linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%), rgba(19, 22, 27, 0.25);
	border-radius: var(--br12);
	backdrop-filter: var(--bdb20);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transform: translateX(calc(-100% - 8px));
	transition: transform 0.3s ease;
	z-index: 1000;
	max-height: max-content;
}

body.mobile-sidebar-only .sidebar.sidebar--mobile-open {
	transform: translateX(0);
}

body.mobile-sidebar-only .sidebar-overlay {
	display: block;
}

/*****----- DETAIL HRY -----*****/

.game-detail-layout {
	display: flex;
	justify-content: center;
	justify-content: center;
	gap: var(--gap32);
	--game-side-ad-css-guard: 2px;
	--game-side-ad-track-width: calc(var(--game-side-ad-slot-width, 300px) - var(--game-side-ad-css-guard, 0px));
	/* max-width: 1920px; */
	margin: 0 auto;
	padding: 40px 8px 0;
	box-sizing: border-box;
}

body.is-desktop .game-detail-layout:not(.cinema-mode):not(.zoom-mode) {
	display: grid;
	grid-template-columns: var(
		--game-layout-grid-template,
		var(--game-side-ad-track-width) var(--game-layout-main-width, var(--game-shell-min-width, 728px)) var(--game-side-ad-track-width)
	);
	justify-content: center;
	align-items: start;
}

body.is-desktop .game-detail-layout:not(.cinema-mode):not(.zoom-mode) .game-detail-layout__sidebar--left {
	grid-column: var(--game-left-sidebar-grid-column, 1);
}

body.is-desktop .game-detail-layout:not(.cinema-mode):not(.zoom-mode) .game-main-detail {
	grid-column: var(--game-main-grid-column, 2);
}

body.is-desktop .game-detail-layout:not(.cinema-mode):not(.zoom-mode) .game-detail-layout__sidebar--right {
	grid-column: var(--game-right-sidebar-grid-column, 3);
}

@media (max-width: 891px) {
	.game-detail-layout {
		grid-template-columns: 1fr;
	}

	.game-detail-layout__sidebar--right {
		display: none;
	}
}

@media (max-width: 640px) {
	body.is-mobile .game-detail-layout {
		/* padding: 30px 8px 0 8px; */
		padding: 30px 16px 0 16px;
	}

	body.is-desktop .game-header__title {
		margin: 0px 0 !important;
	}

	body.is-mobile .game-header__title {
		margin: 16px 0 !important;
	}
}

@media (max-width: 375px) {
	.game-detail-layout {
		padding: 30px 8px 0 8px;
	}
}

.game-detail-layout__sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--gap24);
}

body.is-mobile .game-detail-layout__sidebar {
	display: none;
}

/*** FIX 22 new */
.game-detail-layout__sidebar--left {
	align-items: flex-end;
}

.game-detail-layout__sidebar-games {
	max-width: 300px;
}

/* The first 300 -> 160 sidebar tier is emitted from the game detail template.
   Its breakpoint depends on the current game's shell width. */

@media (max-width: 1290px) {
	.game-detail-layout__sidebar-games {
		max-width: 120px;
	}
}

@media (max-width: 1250px) {
	.game-detail-layout__sidebar-games {
		max-width: 160px;
	}
}

@media (max-width: 1104px) {
	.game-detail-layout__sidebar-games {
		max-width: 120px;
	}
}

.game-main-detail {
	width: var(--game-content-width, min-content);
	max-width: var(--game-content-width, fit-content);
	min-width: var(--game-content-min-width, var(--game-shell-min-width, 728px));
	display: flex;
	flex-direction: column;
	gap: var(--gap24);
	transform: translateY(-52px);
	/* margin: 0 auto; */
}

.game-main-detail > * {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.is-mobile .game-main-detail {
	width: 100%;
	min-width: 0;
	max-width: 1240px;
}

@media (max-width: 810px) {
	body.is-mobile .game-main-detail {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 640px) {
	body.is-mobile .game-main-detail {
		gap: var(--gap16);
	}
}

.game-main-detail.no-max-width {
	max-width: none !important;
	width: max-content;
}

.game-main-detail.no-max-width > *:not(.game-box):not(.game-header) {
	align-self: center;
	width: max(var(--game-content-width, 0px), var(--game-content-min-width, var(--game-shell-min-width, 728px)));
	max-width: max(var(--game-content-width, 0px), var(--game-content-min-width, var(--game-shell-min-width, 728px)));
}

.game-main-detail.no-max-width .game-header {
	align-self: stretch;
	width: 100%;
	max-width: none;
}

.game-main-detail.no-max-width .game-box {
	width: max-content;
	max-width: none;
}

/*** MAIN CONTENT ***/

.game-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	transform: translateY(16px);
}

@media (max-width: 640px) {
	body.is-mobile .game-header {
		padding-left: 8px;
	}
}

.game-header__left {
	display: flex;
	align-items: center;
	gap: var(--gap8);
	gap: var(--gap8);
	min-width: 0;
	max-width: 70%;
	flex-shrink: 1;
}

.game-header__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 28px;
	padding: 8px;
	border: 0;
	border-radius: var(--br8);
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.game-header__back img {
	width: 8px;
	height: 12px;
}

.game-header__back:hover,
.game-header__back:focus-visible {
	background: var(--clr-alpha-black-20);
}

.game-header__title {
	font-size: var(--fs20);
	font-weight: var(--fw500);
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: clip;
	max-width: 100%;
	white-space: nowrap;
	flex: 1 1 auto;
}

.game-header__title--fade {
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
}

@media (max-width: 640px) {
	body.is-mobile .game-header__back {
		width: 24px;
		height: 28px;
	}

	body.is-mobile .game-header__back img {
		width: 8px;
		height: 12px;
	}

	body.is-mobile .game-header__title {
		font-size: var(--fs16);
		font-weight: var(--fw500);
	}
}

.game-header__pretext {
	color: var(--text-secondary);
	font-size: var(--fs14);
	font-weight: var(--fw400);
}

@media (max-width: 480px) {
	.game-header__pretext {
		display: none;
	}
}

.game-header__plays {
	color: var(--text-primary);
	font-size: var(--fs14);
	font-weight: var(--fw400);
}

@media (max-width: 640px) {
	.game-header__plays {
		font-weight: var(--fw600);
	}
}

/* Game box */

.game-box {
	width: var(--game-content-width, max-content);
	max-width: 100%;
	align-self: center;
	min-width: var(--game-content-min-width, var(--game-shell-min-width, 728px));
}

body.is-mobile .game-box {
	width: 100%;
	min-width: 0;
}

@media (max-width: 640px) {
	.game-box {
		border-radius: 16px 16px 0 0;
	}
}

.game-box__embed {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	/* min-height: 500px; */
	/* min-width: 728px; */
	min-width: -webkit-fill-available;
	margin: 0 auto;
	overflow: hidden;
	max-width: 2560px;
}

.game-box__embed.game-box--direct-ruffle {
	display: block;
	background: transparent;
}

.game-box__embed.game-box--direct-ruffle .game-box__direct-ruffle-host {
	position: relative;
	z-index: 2;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	overflow: hidden;
	background: transparent;
}

.game-box__embed.game-box--direct-ruffle #container {
	display: none !important;
}

.game-box__embed.game-box--direct-ruffle ruffle-player,
.game-box__embed.game-box--direct-ruffle ruffle-player canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.game-box__embed.game-box--direct-ruffle .game-box__thumbnail-wrapper {
	z-index: 4;
}

body.is-mobile .game-box__embed {
	position: relative;
	width: 100% !important;
	height: 526px !important;
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 1024px) {
	body.is-mobile .game-main-detail {
		width: 100% !important;
	}

	body.is-mobile .game-box__embed {
		position: relative;
		width: 100% !important;
		height: 526px !important;
		min-width: 0;
		max-width: 100%;
	}
}

@media (max-width: 745px) {
	body.is-mobile .game-box__embed {
		min-width: 0;
	}
}

@media (max-width: 640px) {
	body.is-mobile .game-box__embed {
		/* height: 262px; */
		position: relative;
		width: 100% !important;
		height: 255px !important;
		min-width: auto;
		border-radius: 16px 16px 0 0;
	}
}

.game-box__embed.game-box__archive {
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
	flex-direction: column;
	gap: var(--gap24);
	padding: 48px 24px;
}

.game-box__archive-message,
.game-box__archive-title {
	max-width: 720px;
	margin: 0;
	text-align: center;
	color: var(--text-primary);
}

.game-box__archive-message {
	font-size: var(--fs18);
	line-height: 1.5;
}

.game-box__archive-title {
	font-size: var(--fs24);
	font-weight: var(--fw600);
}

.game-box__archive-card {
	width: min(340px, 100%);
}

.game-box__archive-card .game-card {
	width: 100%;
}

body.is-mobile .game-box__embed.game-box__archive {
	height: auto !important;
	min-height: 320px;
	padding: 32px 16px;
	border-radius: 16px 16px 0 0;
}

@media (max-width: 640px) {
	body.is-mobile .game-box__embed.game-box__archive {
		height: auto !important;
		min-height: 280px;
		padding: 24px 16px;
	}

	.game-box__archive-message {
		font-size: var(--fs16);
	}

	.game-box__archive-title {
		font-size: var(--fs20);
	}
}

/* iframe */

.gameWindow iframe {
	/* width: 100%; */
	/* min-width: 728px; */
	/* height: 100%; */
	border: none;
	background-size: cover;
	background-position: center;
	/* new added*/
	z-index: 3;
	position: relative;
}

@media (max-width: 640px) {
	body.is-mobile .gameWindow iframe {
		min-width: auto;
		/* new added */
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

/* NEEEW */

/* added – wrapper, který zůstane pod iframem jako rozmazané pozadí */
.gameWindow.playing::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: inherit; /* použije stejnou URL jako gameBox */
	background-size: cover;
	background-position: center;
	filter: blur(10px);
	z-index: 1; /* pod iframe */
}

/* iframe nad blur pozadím */
.gameWindow.playing iframe {
	position: relative;
	z-index: 2;
}

/* added – při hraní použij background z data-thumb */
.gameWindow.playing {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

body.is-mobile .gameWindow.playing {
	min-width: -webkit-fill-available;
}

.gameWindow.fullscreen.playing {
	position: fixed !important;
}

.gameWindow.fullscreen.playing::before {
	display: none; /* vypnuti blur na bg */
}

/* JS nastaví inline styl background-image: url(...) */

.game-box__thumbnail {
	display: flex;
	flex-direction: column;
	gap: var(--gap8);
	width: 170px;
	height: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.game-box__thumbnail img {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--br8);
}

.game-box__thumbnail-wrapper {
	position: absolute;
	inset: 0;
	/* background: rgba(0, 0, 0, 0.6); */
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	/* new */
	transition: opacity 0.4s ease; /*  fade-out efekt */
	overflow: hidden;
}

/* NEW */
.game-box__thumbnail-wrapper.hidden {
	/*  added */
	opacity: 0;
	pointer-events: none;
}

/* added – video/statický náhled */
.game-box__thumbnail-wrapper > .game-box__thumbnail-image,
.game-box__thumbnail-wrapper > .game-box__thumbnail-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	z-index: -1;
}

.game-box__thumbnail-wrapper > .game-box__thumbnail-image {
	filter: blur(8px);
	transform: scale(1.08);
}

/* NEW Rozmazané pozadí (před spuštěním hry) */
.game-box__preview {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(25px);
	transform: scale(1.1);
	z-index: -2;
	pointer-events: none;
}

/* overlay přes thumbnail */
.game-box__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.game-box__mobile-warning {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0 16px;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.game-box__mobile-warning strong {
	font-size: 1.125rem;
	line-height: 1.2;
}

.game-box__mobile-warning span {
	font-size: 0.875rem;
	line-height: 1.25;
}

/*  tlačítko „Hrát“  */
.game-box__play-button {
	width: 170px;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--gap6);
	border-radius: var(--br8);
	background: var(--bg-brand-solid);
	border: 2px solid var(--brdr-skeumo-gradient);
	padding: 12px 18px;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 500;
	transition: transform 0.2s ease;
}

.game-box__play-button:hover {
	/* added */
	transform: scale(1.05);
}

.game-box__play-button {
	width: 170px;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--gap6);
	border-radius: var(--br8);
	color: #000;
	background: var(--bg-brand-solid);
	border: 2px solid var(--brdr-skeumo-gradient);
	padding: 12px 18px;
	font-size: 1.1rem;
	font-weight: 500;
	transition: transform 0.2s ease;
	-webkit-appearance: none; /* odstraní iOS defaultní styling */
	appearance: none;
}

.game-box__play-text {
	color: #000;
}

.game-box__play-button--desktop-only {
	gap: 6px;
	border-color: #fff;
	background: rgba(0, 0, 0, 0.45);
	padding-inline: 8px;
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.1;
	white-space: nowrap;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}

.game-box__play-button--desktop-only .game-box__play-text {
	color: inherit;
}

.game-box__play-button--desktop-only .game-box__play-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	filter: brightness(0) invert(1);
	transition: filter 0.2s ease;
}

@media (hover: hover) {
	.game-box__play-button--desktop-only:hover {
		background: #fff;
		color: #000;
	}

	.game-box__play-button--desktop-only:hover .game-box__play-icon {
		filter: none;
	}
}

.game-box__play-button--desktop-only:active {
	background: #fff;
	color: #000;
}

.game-box__play-button--desktop-only:active .game-box__play-icon {
	filter: none;
}

/*  fallback obrázky */
.gameWindow img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* NEW mini thumbnail */
.game-box__thumbnail-mini {
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: var(--gap8);
	width: 170px;
	height: auto;
	aspect-ratio: 170 / 94;
}

.game-box__thumbnail-mini img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Game bar - ikonky */
.gamebar {
	max-width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap8);
	background: var(--clr-alpha-black-10);
	border: 1px solid var(--brdr-border-primary);
	padding: var(--pd12);
	border-radius: 0 0 16px 16px;
}

body.is-mobile .gamebar {
	flex-wrap: nowrap;
}

/* buttons */
.comments__submit,
.gamebar__button,
.game-description__mobile,
.game-description__more {
	display: flex;
	gap: var(--gap4);
	align-items: center;
	background: var(--clr-alpha-black-10);
	padding: var(--pdBtn);
	border: 1px solid var(--brdr-border-primary);
	border-radius: var(--br8);
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

/* btn - odeslat komentar */
.comments__submit {
	height: fit-content;
}

@media (max-width: 790px) {
	body.is-mobile .gamebar__icon-only--mobileHide {
		display: none;
	}
}

@media (max-width: 640px) {
	body.is-mobile .gamebar {
		gap: var(--gap8);
		padding: var(--pd12);
	}

	body.is-mobile .game-description__mobile {
		display: none;
	}

	body.is-mobile .gamebar__button-big {
		height: 40px;
		flex: 0 0 auto;
	}

	body.is-mobile .comments__submit,
	body.is-mobile .gamebar__button:not(.gamebar__button-big) {
		padding: 10px;
	}

	body.is-mobile .comments__submit {
		height: fit-content;
	}

	body.is-mobile .gamebar__button:not(.gamebar__button-big, .gamebar__button--likes, .gamebar__button--dislikes),
	body.is-mobile .gamebar__icon-only {
		width: 40px;
		height: 40px;
		flex: 0 0 auto;
	}
}

@media (max-width: 375px) {
	body.is-mobile .gamebar__icon {
		display: block;
		width: 16px;
		height: 16px;
		object-fit: contain;
	}
}

.gamebar__text {
	color: var(--text-secondary);
	font-weight: var(--fw600);
	font-size: var(--fs14);
}

@media (max-width: 698px) {
	body.is-mobile .gamebar__link .gamebar__text {
		display: flex;
	}

	body.is-mobile .game-description__more .gamebar__text {
		display: flex;
	}

	body.is-mobile .gamebar__text {
		display: none;
	}

	body.is-mobile .gamebar__text--mobileShow {
		display: flex;
	}

	body.is-mobile .gamebar__icon-only--mobileHide {
		display: none;
	}
}

.gamebar__button-big {
	display: flex;
	gap: 0;
}

.gamebar__button--likes {
	padding: 8px 16px 8px 14px;
	border-radius: 8px 0 0 8px;
	border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.gamebar__button--dislikes {
	padding: 8px 16px 8px 14px;
	border-radius: 0px 8px 8px 0px;
	border-left: 0px;
}

.gamebar__icon-only {
	background: var(--clr-alpha-black-10);
	padding: 10px;
	border: 1px solid var(--brdr-border-primary);
	border-radius: var(--br8);
	cursor: pointer;
}

/* NEW */

.gamebar__dropdown {
	position: relative;
}

.gamebar__menu {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 8px;
	background: var(--clr-bg-quaternary);
	border-radius: var(--br8);
	padding: 8px 0;
	list-style: none;
	display: none;
	min-width: 180px;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	/* box-shadow: var(--bds); */
	z-index: 1000;
}

.gamebar__dropdown--up .gamebar__menu {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: 8px;
}

/* hidden/show download button */

/* Výchozí styl tlačítka v toolbaru */
.gamebar__button--save {
	display: flex;
	gap: var(--gap4);
	align-items: center;
	background: var(--clr-alpha-black-10);
	padding: var(--pdBtn);
	border: 1px solid var(--brdr-border-primary);
	border-radius: var(--br8);
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

/* hide empty button pc */

body.is-desktop .gamebar__menu-item.menu-download-placeholder {
	display: none;
}

body.is-desktop .gamebar__menu-item.menu-favorite-placeholder {
	display: none;
}

body.is-desktop .gamebar__menu-item.menu-share-placeholder {
	display: none;
}

body.is-desktop .gamebar__menu-item.menu-comments-placeholder {
	display: none;
}

/* Když je v menu, reset na styl menu */
body.is-mobile .gamebar__menu-item .gamebar__button--save,
body.is-mobile .gamebar__menu-item .gamebar__button--favorite,
body.is-mobile .gamebar__menu-item .gamebar__button--share,
body.is-mobile .gamebar__menu-item .gamebar__button--msg {
	all: unset;
	box-sizing: border-box;
	display: flex;
	gap: var(--gap8);
	align-items: center;
	width: 100%;
	padding: 8px 16px;
	cursor: pointer;
	color: #fff;
	white-space: nowrap;
}

body.is-mobile .gamebar__menu-item.menu-download-placeholder,
body.is-mobile .gamebar__menu-item.menu-favorite-placeholder,
body.is-mobile .gamebar__menu-item.menu-share-placeholder,
body.is-mobile .gamebar__menu-item.menu-comments-placeholder {
	padding: 0;
}

html.is-pwa-standalone .gamebar__button--save,
html.is-pwa-standalone .gamebar__menu-item.menu-download-placeholder {
	display: none !important;
}

@media (display-mode: standalone) {
	.gamebar__button--save,
	.gamebar__menu-item.menu-download-placeholder {
		display: none !important;
	}
}

.menu-download-placeholder .gamebar__button--save .gamebar__text,
.menu-favorite-placeholder .gamebar__button--favorite .gamebar__text,
.menu-share-placeholder .gamebar__button--share .gamebar__text,
.menu-comments-placeholder .gamebar__button--msg .gamebar__text {
	display: flex;
}

.comments__reply:focus,
.comments__reply:active,
.comments__reply:focus-visible,
.comments__sorting:focus,
.comments__sorting:focus-visible,
.comments__sorting:active,
.gamebar__menu-toggle:focus,
.gamebar__menu-toggle:focus-visible,
.gamebar__menu-toggle:active {
	outline: 2px solid var(--bg-brand-solid);
	border-radius: var(--br8);
}

.gamebar__menu-item {
	padding: 8px 16px;
	cursor: pointer;
	color: #fff;
	white-space: nowrap;
}

.gamebar__link {
	display: flex;
	align-items: center;
	gap: var(--gap8);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.gamebar__menu-item:hover {
	background: rgba(255, 255, 255, 0.1);
}

.gamebar__dropdown--open .gamebar__menu {
	display: block;
}

.comments__submit:hover,
.game-description__mobile:hover,
.game-description__more:hover,
.gamebar__button:hover,
.gamebar__icon-only:hover {
	background: var(--clr-alpha-black-20);
}

.gamebar__button--active,
.gamebar__button:active,
.gamebar__icon-only:active {
	background: var(--clr-utility-brand-100);
	border: 1px solid var(--clr-utility-brand-200);
}

.gamebar__button--active .gamebar__text,
.gamebar__button:active .gamebar__text {
	color: var(--clr-utility-brand-700);
}

.gamebar__button--likes.gamebar__button--active .gamebar__icon,
.gamebar__button--likes:active .gamebar__icon,
.gamebar__button--dislikes.gamebar__button--active .gamebar__icon,
.gamebar__button--dislikes:active .gamebar__icon,
.gamebar__button--favorite.gamebar__button--active .gamebar__icon {
	filter: brightness(0) saturate(100%) invert(83%) sepia(39%) saturate(2251%) hue-rotate(151deg) brightness(101%) contrast(95%);
}

/* AD - banner horizontal */

.ad--banner {
	width: 100%;
	max-width: var(--banner-slot-width, 728px);
	height: var(--banner-slot-height, 90px);
	min-height: var(--banner-slot-height, 90px);
	max-height: var(--banner-slot-height, 90px);
	margin-inline: auto;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.ad__slot--bottom-banner {
	width: var(--banner-slot-width, 728px);
	height: var(--banner-slot-height, 90px);
	max-height: var(--banner-slot-height, 90px);
	flex: 0 0 auto;
	isolation: isolate;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	position: relative;
}

.ad__slot--bottom-banner::before {
	box-sizing: border-box;
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 8px;
	background-color: rgba(148, 163, 184, 0.035);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
		repeating-linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.055) 0,
			rgba(255, 255, 255, 0.055) 1px,
			transparent 1px,
			transparent 12px
		);
}

.ad__slot--bottom-banner::after {
	content: attr(data-ad-label);
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	z-index: 0;
	width: 100%;
	pointer-events: none;
	color: rgba(255, 255, 255, 0.34);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.ad__slot--bottom-banner > div,
.ad__slot--bottom-banner > iframe {
	display: block;
	margin-inline: auto;
	position: relative;
	z-index: 1;
}

/* Desktop GAME bottom anchor */
@media (max-width: 727px) {
	#btm-sticky {
		display: none !important;
	}
}

body.fullscreen #btm-sticky {
	display: none !important;
}

#btm-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	justify-content: center;
	align-items: flex-end;
	z-index: 80;
	max-height: 300px;
	overflow: visible;
	pointer-events: none;
}

#btm-sticky.is-mounted {
	display: flex;
}

#btm-sticky-inner {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
}

#btm-sticky.is-visible.is-collapsed {
	transform: translateY(calc(100% - 8px));
	transition: transform 1s cubic-bezier(0.4, 0, 1, 1);
}

#btm-sticky-card {
	position: relative;
	width: 100%;
	max-width: 100vw;
	border-radius: 5px 5px 0 0;
	padding-top: 8px;
	background: transparent;
	box-shadow: none;
	pointer-events: none;
}

#btm-sticky.is-visible #btm-sticky-card {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	pointer-events: auto;
}

#btm-sticky.is-collapsed #btm-sticky-card {
	pointer-events: none;
}

#btm-sticky-slot {
	min-height: 90px;
	max-height: 250px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	background: transparent;
}

#btm-sticky-toggle {
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 24px;
	border: 0;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 5px 5px 0 0;
	box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.1);
	color: #5f6368;
	cursor: pointer;
	line-height: 26px;
	font-size: 14px;
	text-align: center;
	font-family: Arial, sans-serif;
	z-index: 10;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease-out, top 0.2s, height 0.2s, line-height 0.2s;
}

#btm-sticky.is-visible #btm-sticky-toggle {
	opacity: 1;
}

#btm-sticky.toggle-ready #btm-sticky-toggle {
	pointer-events: auto;
}

#btm-sticky-toggle:hover {
	top: -28px;
	height: 28px;
	line-height: 28px;
}

#btm-sticky-arrow {
	display: inline-block;
	transition: transform 0.3s ease-in-out;
}

#btm-sticky.is-collapsed #btm-sticky-arrow {
	transform: rotate(180deg);
}

.ad__slot-image {
	display: block;
	width: 100%;
	height: auto;
}

body.is-mobile .ad__slot-image {
	height: 100%;
}

@media (max-width: 640px) {
	body.is-mobile .game-detail-layout {
		width: 100%;
	}

	.ad--banner {
		min-width: 0;
	}
}

/* HIDDEN Carousel na desktopu */

.hidden-carousel {
	display: none;
}

body.is-desktop .hidden-carousel {
	display: none;
}

body.is-mobile .hidden-carousel {
	display: flex;
	flex-direction: column;
	gap: var(--gap8);
}

.hidden-carousel .carousel__wrapper .game-card {
	flex: 0 0 calc(25% - 12px);
	max-width: calc(25% - 12px);
	transition-property: transform, opacity, filter;
}

@media (max-width: 1024px) {
	.hidden-carousel,
	body.is-mobile .hidden-carousel {
		display: flex;
		flex-direction: column;
		gap: var(--gap8);
	}
}

@media (max-width: 640px) {
	body.is-mobile .hidden-carousel .carousel__wrapper .game-card {
		flex-basis: calc(43.478% - 9px);
		max-width: calc(43.478% - 9px);
	}
}

/* Game description box */

.game-description {
	display: flex;
	flex-direction: column;
	gap: var(--gap20);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background-color: var(--clr-alpha-black-10);
	border: 1px solid var(--brdr-skeumo-gradient);
	border-radius: var(--br16);
	padding: var(--pd24);
}

.game-description__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.game-description__heading {
	display: flex;
	flex-flow: column wrap;
	gap: var(--gap8);
}

.game-description__title {
	margin: 0;
}

@media (max-width: 640px) {
	body.is-mobile .game-description__title {
		font-size: var(--fs24);
	}
}

.game-description__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gap10);
}

.game-description__rating-main {
	display: inline-flex;
	align-items: center;
	gap: var(--gap10);
}

.game-description__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.game-description__rating-info {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: help;
}

.game-description__rating-info img {
	display: block;
	width: 14px;
	height: 14px;
}

.game-description__rating-info::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	top: calc(100% + 8px);
	transform: translateX(-50%);
	z-index: 3;
	width: max-content;
	max-width: min(280px, calc(100vw - 48px));
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(9, 14, 24, 0.96);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: var(--fs12);
	font-weight: var(--fw500);
	line-height: 1.35;
	text-align: left;
	white-space: normal;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.game-description__rating-info:hover::after,
.game-description__rating-info:focus-visible::after {
	opacity: 1;
	visibility: visible;
}

.game-description__rating-info:focus-visible {
	outline: 2px solid rgba(49, 192, 230, 0.9);
	outline-offset: 2px;
	border-radius: 50%;
}

.game-description__rating-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-secondary);
	font-size: var(--fs14);
	font-weight: var(--fw400);
	line-height: 1.35;
	white-space: nowrap;
}

.game-description__rating-meta-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.game-description__rating-recommend,
.game-description__rating-votes-group {
	white-space: nowrap;
}

.game-description__rating-votes-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.game-description__rating-votes,
.game-description__rating-separator,
.game-description__rating-dot {
	color: var(--text-secondary);
}

body.is-mobile .game-description__rating {
	flex-direction: column;
	align-items: flex-start;
	row-gap: 4px;
}

body.is-mobile .game-description__rating-main {
	gap: 8px;
}

body.is-mobile .game-description__rating-info::after {
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: min(170px, calc(100vw - 96px));
	font-size: var(--fs11);
	text-align: center;
}

body.is-mobile .game-description__rating-meta {
	display: flex;
	align-items: flex-start;
	gap: 0;
	font-size: var(--fs14);
	white-space: normal;
}

body.is-mobile .game-description__rating-meta-group {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 6px;
}

body.is-mobile .game-description__rating-separator {
	display: none;
}

body.is-mobile .game-description__rating-votes-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

body.is-mobile .game-description__rating-dot {
	display: inline;
}

.game-description__tags .categories__item__icon-preview {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.game-description__controls {
	font-size: var(--fs14);
	font-weight: var(--fw600);
}

.game-description__controls-value {
	color: var(--text-secondary);
	font-weight: var(--fw400);
	font-size: var(--fs14);
}

.game-description__content {
	display: flex;
	flex-direction: column;
	gap: var(--gap16);
}

.game-description__text {
	font-size: var(--fs16);
	font-weight: 400;
	line-height: 1.35;
}

.game-description__text--clamped {
	display: block;
	max-height: calc(1.35em * 4);
	overflow: hidden;
}

.game-description__text--clamped.game-description__text--needs-fade {
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}

.game-description__text--expanded {
	display: block;
}

.game-description__text[hidden] {
	display: none !important;
}

.game-description__extended[hidden] {
	display: none !important;
}

.game-description__extended {
	display: flex;
	flex-direction: column;
	gap: var(--gap16);
	font-size: var(--fs16);
	font-weight: 400;
	line-height: 1.35;
}

.game-description__extended p {
	margin: 0;
}

.game-description__extended b,
.game-description__extended strong {
	font-weight: var(--fw600);
}

.game-description__extended-store-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--text-primary);
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.game-description__extended-store-link:hover,
.game-description__extended-store-link:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(49, 192, 230, 0.4);
}

.game-description__extended-store-link-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

.game-description__extended-store-link-text {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.game-description__extended-video {
	position: relative;
	width: 100%;
	max-width: 680px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.game-description__extended-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.game-description__more {
	width: fit-content;
	margin-top: 16px;
}

.game-description__more[hidden] {
	display: none !important;
}

.gamebar__icon {
	display: block;
	flex: 0 0 auto;
	width: 21px;
	height: 21px;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.gamebar__icon.rotated {
	transform: rotate(180deg);
}

/* Galerie box */

.game-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--gap20);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: var(--br16);
	border: 1px solid var(--brdr-skeumo-gradient);
	background: var(--clr-alpha-black-10);
	padding: var(--pd24);
	overflow: hidden;
	/* height: 100%; */
}

@media (max-width: 640px) {
	.game-gallery {
		height: 100%;
	}
}

.game-gallery__title {
	font-size: var(--fs20);
	font-weight: var(--fw500);
	margin: 0;
}

/******------ GALLERY CAROUSEL - RESPONSIVE -----*****/

/* Gallery Carousel Container */
.gallery-carousel {
	position: relative;
	overflow: hidden;
	--gallery-carousel-gap: var(--gap16, 16px);
}

/* Na mobilu povolit overflow pro "peek" efekt */
@media (max-width: 640px) {
	.gallery-carousel {
		/* overflow: visible; */
		overflow: hidden;
	}
}

.gallery-carousel__wrapper {
	position: relative;
	display: flex;
	gap: var(--gallery-carousel-gap);
	padding: 8px 4px;
	transition: transform 0.3s ease;
}

.gallery-carousel__link {
	display: block;
	flex: 0 0 auto;
	max-width: 100%;
}

.gallery-carousel__wrapper .gallery-item {
	/* JavaScript nastavuje flex a width dynamicky */
	flex: 0 0 auto;
	min-width: 0;
	box-sizing: border-box;
	position: relative;
}

/* Responzivní obrázky */
.gallery-carousel__item {
	max-height: none;
	aspect-ratio: 1.8085/1;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
}

@media (min-width: 641px) {
	.gallery-carousel {
		width: 100%;
		max-width: 100%;
	}

	.gallery-carousel__link {
		display: flex;
		justify-content: center;
		width: 130px;
	}

	.gallery-carousel__item {
		width: 130px;
		height: 72px;
		aspect-ratio: auto;
	}
}

/* Gallery Carousel šipky */
.gallery-carousel__arrow {
	position: absolute;
	top: 0;
	background: transparent;
	color: white;
	border: none;
	width: 32px;
	height: 100%;
	cursor: pointer;
	font-size: 20px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.gallery-carousel__arrow:disabled {
	opacity: 0.3;
}

.gallery-carousel__arrow--prev {
	left: var(--gallery-carousel-prev-inset, 3px);
}

.gallery-carousel__arrow--prev svg {
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
}

.gallery-carousel__arrow--prev::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.35);
	width: 40px;
	height: 40px;
	border-radius: 50px;
	filter: blur(10px);
	z-index: -1;
}

.gallery-carousel__arrow--next::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.35);
	width: 40px;
	height: 40px;
	border-radius: 50px;
	filter: blur(10px);
	z-index: -1;
}

@media (max-width: 768px) {
	.fancybox-game-gallery .f-carousel__nav,
	.fancybox-game-gallery .f-carousel__nav .f-button,
	.fancybox-game-gallery .f-button.is-prev,
	.fancybox-game-gallery .f-button.is-next,
	.fancybox-game-gallery [data-carousel-prev],
	.fancybox-game-gallery [data-carousel-next],
	.fancybox-game-gallery [data-fancybox-prev],
	.fancybox-game-gallery [data-fancybox-next] {
		display: none !important;
	}
}

.gallery-carousel__arrow--next {
	right: var(--gallery-carousel-next-inset, 3px);
	border-radius: 0 8px 8px 0;
}

@media (max-width: 640px) {
	.gallery-carousel__arrow {
		display: none !important;
	}
}

/* Komentáře */

.comments {
	display: flex;
	flex-flow: column wrap;
	gap: var(--gap20);
	border-radius: var(--br16);
	border: 1px solid var(--brdr-skeumo-gradient);
	background: var(--clr-alpha-black-10);
	padding: var(--pd24);
	--comments-form-avatar-size: 40px;
	--comments-form-avatar-offset: 50px;
	--comments-replies-indent: 0px;
}

.comments__mention {
	color: var(--bg-brand-solid);
	font-weight: bold;
}

.comments__header {
	display: flex;
	gap: var(--gap16);
	align-items: center;
}

.comments--empty .comments__title {
	font-size: var(--fs18);
	font-weight: var(--fw500);
	line-height: 1.25;
}

.comments--empty {
	gap: var(--gap12);
}

.comments--empty .comments__sorting-wrapper,
.comments--empty .comments__list,
.comments--empty .comments__load-more-wrapper {
	display: none;
}

.comments--empty .comments__form-feedback[hidden] {
	display: none;
}

.comments__sorting {
	display: flex;
	align-items: center;
	gap: var(--gap4);
	background: transparent;
	border: 0;
	padding: var(--pdBtnSearchDel);
	cursor: pointer;
	border-radius: var(--br8);
}

.comments__sorting-text {
	color: var(--text-tertiary);
}

.comments__submit-text {
	color: var(--text-primary);
	font-size: var(--fs14);
	font-weight: var(--fw600);
}

@media (max-width: 640px) {
	.comments__submit-text {
		display: none;
	}
}

/* sorting vyjížděcí menu */

.comments__sorting-wrapper {
	position: relative;
	display: inline-block;
}

.comments__menu {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 8px;
	background: var(--clr-bg-quaternary);
	border-radius: var(--br8);
	padding: 8px 0;
	list-style: none;
	display: none;
	min-width: 180px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	z-index: 1000;
}

.comments__menu--open {
	display: block;
}

.comments__menu-item {
	display: flex;
	align-items: center;
	padding: 8px 16px;
	cursor: pointer;
	color: #fff;
	white-space: nowrap;
	transition: background 0.2s;
}

.comments__menu-link {
	display: flex;
	align-items: center;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.comments__menu-button {
	display: flex;
	align-items: center;
	gap: var(--gap8);
	width: 100%;
	padding: 0;
	border: none;
	background: transparent;
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.comments__menu-item:hover {
	background: rgba(255, 255, 255, 0.1);
}

.comments__menu-item--active {
	background: rgba(255, 255, 255, 0.08);
}

.comments__menu-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-right: 0;
}

.comments__menu-text {
	color: #fff;
	font-size: var(--fs14);
	font-weight: var(--fw600);
	line-height: 1.2;
}

.comments__sorting-icon {
	transition: transform 0.3s ease;
}

.comments__sorting-icon.rotated {
	transform: rotate(180deg);
}

@media (max-width: 450px) {
	.comments__submit-text {
		display: none;
	}
}

.comments__form {
	display: flex;
	gap: var(--gap10);
	align-items: flex-start;
}

.comments__form--readonly .comments__input {
	pointer-events: none;
}

.comments__form--readonly .comments__submit {
	cursor: not-allowed;
	opacity: 0.55;
}

.comments__icon {
	width: var(--comments-form-avatar-size);
	height: var(--comments-form-avatar-size);
	border-radius: 50px;
	flex: 0 0 var(--comments-form-avatar-size);
}

.comments__icon-photo {
	width: var(--comments-form-avatar-size);
	height: var(--comments-form-avatar-size);
	border-radius: 50%;
	object-fit: cover;
}

.comments__form-fields {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: var(--gap10);
	row-gap: 8px;
	align-items: start;
	min-width: 0;
}

.comments__identity-row,
.comments__comment-row {
	display: contents;
}

.comments__identity-row .comments__nickname,
.comments__comment-row .comments__input {
	width: 100%;
	min-width: 0;
}

.comments__identity-row .comments__submit-spacer,
.comments__comment-row .comments__submit {
	align-self: start;
	justify-self: start;
}

.comments__comment-row .comments__submit {
	align-self: end;
}

.comments__submit-spacer {
	height: 1px;
	visibility: hidden;
	pointer-events: none;
}

.comments__nickname {
	width: 100%;
	padding: 10px 14px;
	border: none;
	border-radius: var(--br8);
	background: var(--clr-aplha-white-50);
	color: #fff;
	font-size: var(--fs14);
	font-weight: var(--fw500);
	font-family: inherit;
}

.comments__input {
	width: 100%;
	padding: 10px 14px;
	border: none;
	border-radius: var(--br8);
	background: var(--clr-aplha-white-50);
	color: #fff;
	font-size: var(--fs16);
	font-weight: var(--fw400);
	text-overflow: ellipsis;
	font-family: inherit;
	overflow-wrap: anywhere;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}

.comments__mention-prefix {
	color: var(--clr-utility-brand-700);
	font-weight: var(--fw600);
}

.comments__nickname::placeholder,
.comments__input::placeholder {
	color: #85888e;
}

.comments__input--textarea::placeholder {
	font-size: var(--fs14);
	font-weight: var(--fw500);
}

.comments__input--rich {
	display: block;
	cursor: text;
	white-space: pre-wrap;
}

.comments__input--rich:empty::before {
	font-size: var(--fs14);
	font-weight: var(--fw500);
}

.comments__nickname[aria-invalid="true"],
.comments__input[aria-invalid="true"] {
	outline: 2px solid rgba(255, 103, 103, 0.9);
}

.comments__nickname[aria-invalid="true"]:focus-visible,
.comments__input[aria-invalid="true"]:focus-visible {
	outline: 2px solid rgba(255, 103, 103, 0.9);
}

/* Special koment input s JS placeholderem */
.comments__input:empty::before {
	content: attr(data-placeholder);
	font-size: var(--fs16);
	font-weight: var(--fw400);
	color: #85888e;
	pointer-events: none;
}

/* Odstranění placeholderu při focusu */
.comments__input:focus:empty::before {
	content: none;
}

textarea.comments__input {
	height: 40px;
}

.comments__input--textarea {
	min-height: 68px;
	height: 68px;
	max-height: 68px;
	line-height: 1.45;
	overflow-y: auto;
	resize: none;
}

.comments__nickname:focus-visible,
.comments__input:focus-visible {
	outline: 2px solid var(--bg-brand-solid);
}

.comments__form-feedback {
	margin: 2px 0 0 var(--comments-form-avatar-offset);
	width: calc(100% - var(--comments-form-avatar-offset));
	max-width: calc(100% - var(--comments-form-avatar-offset));
	min-height: 16px;
	font-size: var(--fs14);
	line-height: 1.25;
	font-weight: 500;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	overflow-wrap: anywhere;
}

.comments__form-feedback[hidden] {
	display: block;
	visibility: hidden;
	padding: 0;
	border: 0;
	background: transparent;
	color: transparent;
}

.comments__form-feedback:not([hidden]) {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.comments__form-feedback--success {
	border-color: transparent;
	background: transparent;
	color: #b9f7d5;
}

.comments__form-feedback--error {
	border-color: transparent;
	background: transparent;
	color: #ffc6c6;
}

body[data-device-family="phone"] .comments {
	--comments-form-avatar-size: 32px;
	--comments-form-avatar-offset: 42px;
	--comments-replies-indent: 0px;
}

body[data-device-family="phone"] .comments__form {
	display: grid;
	grid-template-columns: var(--comments-form-avatar-size) minmax(0, 1fr);
	column-gap: var(--gap10);
	align-items: start;
}

body[data-device-family="phone"] .comments__form-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	width: 100%;
}

body[data-device-family="phone"] .comments__identity-row,
body[data-device-family="phone"] .comments__comment-row {
	min-width: 0;
	width: 100%;
}

body[data-device-family="phone"] .comments__identity-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 40px;
	column-gap: var(--gap10);
	align-items: start;
}

body[data-device-family="phone"] .comments__comment-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 40px;
	column-gap: var(--gap10);
	align-items: end;
}

body[data-device-family="phone"] .comments__identity-row .comments__nickname,
body[data-device-family="phone"] .comments__comment-row .comments__input {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body[data-device-family="phone"] .comments__item {
	grid-template-columns: var(--comments-form-avatar-size) minmax(0, 1fr);
	gap: var(--gap10);
}

body[data-device-family="phone"] .comments__avatar-photo {
	width: var(--comments-form-avatar-size);
	height: var(--comments-form-avatar-size);
}

body[data-device-family="phone"] .comments__avatar--guest-smiley {
	width: var(--comments-form-avatar-size);
	height: var(--comments-form-avatar-size);
	padding: 6px;
}

body[data-device-family="phone"] .comments__avatar--guest-smiley .comments__avatar-photo {
	width: 16px;
	height: 16px;
}

body[data-device-family="phone"] .comments__body,
body[data-device-family="phone"] .comments__meta,
body[data-device-family="phone"] .comments__footer,
body[data-device-family="phone"] .comments__content,
body[data-device-family="phone"] .comments__reply-form-slot {
	min-width: 0;
}

body[data-device-family="phone"] .comments__identity-row .comments__submit-spacer {
	display: block;
	width: 40px;
	min-width: 40px;
	height: 1px;
	visibility: hidden;
	pointer-events: none;
}

body[data-device-family="phone"] .comments__comment-row .comments__submit {
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 10px;
	justify-content: center;
	align-self: end;
	justify-self: start;
}

body[data-device-family="phone"] .comments__comment-row .comments__submit .comments__submit-text {
	display: none;
}

body[data-device-family="phone"] .comments__comment-row .comments__input--textarea {
	min-height: 40px;
	height: 40px;
	max-height: none;
	overflow-y: hidden;
}

body[data-device-family="phone"] .comments__form-feedback {
	width: calc(100% - var(--comments-form-avatar-offset));
	max-width: calc(100% - var(--comments-form-avatar-offset));
	min-height: 16px;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

/* cmnts item */

.comments__list {
	display: flex;
	flex-direction: column;
	gap: var(--gap20);
	max-height: 600px;
	overflow-y: auto;
	padding-right: 8px;
}

body.is-mobile .comments__list {
	max-height: none;
	overflow: visible;
	padding-right: 0;
}

.comments__list::-webkit-scrollbar {
	width: 6px;
}
.comments__list::-webkit-scrollbar-thumb {
	background: #bbb;
	border-radius: 3px;
}
.comments__list::-webkit-scrollbar-track {
	background: transparent;
}

.comments__item {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: var(--gap12);
	margin-bottom: 16px;
}
@media (max-width: 325px) {
	.comments__item {
		display: flex;
		flex-direction: column;
	}
}

.comments__avatar-photo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.comments__avatar--guest-smiley {
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 8px;
	background-color: var(--clr-bg-quaternary);
	border: 1px solid var(--brdr-border-secondary);
	border-radius: 50px;
}

.comments__avatar--guest-smiley .comments__avatar-photo {
	width: 20px;
	height: 20px;
	border-radius: 0;
	object-fit: contain;
}

.comments__body {
	display: flex;
	flex-direction: column;
	gap: var(--gap6);
	min-width: 0;
}

.comments__meta {
	display: flex;
	gap: var(--gap8);
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
}

.comments__author {
	color: var(--text-secondary);
	font-weight: var(--fw500);
	font-size: var(--fs14);
}

.comments__author--link {
	text-decoration: none;
}

.comments__author--link:hover,
.comments__author--link:focus-visible {
	text-decoration: underline;
}

.comments__author-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-tertiary);
	font-size: var(--fs12);
	font-weight: var(--fw600);
	line-height: 1.2;
}

.comments__date {
	color: var(--text-tertiary);
	font-weight: var(--fw400);
	font-size: var(--fs12);
}

.comments__content {
	font-weight: var(--fw400);
	font-size: var(--fs16);
	line-height: 1.45;
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.is-mobile .comments__content--mobile-clamped:not(.comments__content--mobile-expanded) {
	max-height: calc(1.45em * 8);
	overflow: hidden;
}

.comments__content-toggle[hidden] {
	display: none;
}

.comments__content-toggle {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--bg-brand-solid);
	font-size: var(--fs14);
	font-weight: var(--fw600);
	font-family: inherit;
	cursor: pointer;
}

.comments__translation-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
	font-size: var(--fs12);
	line-height: 1.35;
	color: var(--clr-utility-gray-400);
}

.comments__translation-meta--pending {
	gap: 6px;
}

.comments__translation-toggle {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--bg-brand-solid);
	font-size: inherit;
	font-weight: var(--fw500);
	font-family: inherit;
	cursor: pointer;
}

.comments__translation-toggle:hover {
	color: var(--bg-brand-solid);
}

.comments__translation-toggle:focus,
.comments__translation-toggle:active,
.comments__translation-toggle:focus-visible {
	outline: none;
	box-shadow: none;
}

.comments__translation-dots {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.comments__translation-dot {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.2;
	animation: commentsTranslationDotPulse 1.2s infinite ease-in-out;
}

.comments__translation-dot:nth-child(2) {
	animation-delay: 0.16s;
}

.comments__translation-dot:nth-child(3) {
	animation-delay: 0.32s;
}

@keyframes commentsTranslationDotPulse {
	0%,
	80%,
	100% {
		opacity: 0.2;
		transform: translateY(0);
	}

	40% {
		opacity: 1;
		transform: translateY(-1px);
	}
}

body.is-mobile .comments__item--mobile-hidden {
	display: none;
}

.comments__item--sort-hidden {
	display: none;
}

.comments__load-more-wrapper {
	display: flex;
	justify-content: center;
	min-height: 44px;
	margin-top: 8px;
}

.comments__load-more-wrapper--placeholder {
	display: none;
}

.comments__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--gap4);
	padding: var(--pdBtn);
	border: 1px solid var(--brdr-border-primary);
	border-radius: var(--br8);
	background: var(--clr-alpha-black-10);
	color: var(--text-secondary);
	font-size: var(--fs14);
	font-weight: var(--fw600);
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

.comments__load-more--hidden {
	visibility: hidden;
	pointer-events: none;
}

.comments__load-more:hover {
	background: var(--clr-alpha-black-20);
}

.comments__load-more:active {
	background: var(--clr-utility-brand-100);
	border-color: var(--clr-utility-brand-200);
	color: var(--clr-utility-brand-700);
}

.comments__reply,
.comments__action {
	display: flex;
	align-items: center;
	gap: var(--gap4);
	background: transparent;
	padding: 8px;
	color: var(--clr-utility-gray-400);
	border: none;
	cursor: pointer;
}

.comments__sorting:active .comments__reply,
.comments__sorting:hover .comments__sorting-text,
.comments__reply:hover,
.comments__translation-toggle:hover {
	color: var(--bg-brand-solid);
}

.comments__footer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
}

@media (max-width: 325px) {
	.comments__footer {
		gap: var(--gap8);
	}
}

.comments__action--like:hover {
}

.comments__icon-like,
.comments__icon-dislike {
	stroke: #94979c;
}

.comments__icon-like:hover,
.comments__icon-like:active,
.comments__icon-dislike:hover,
.comments__icon-dislike:active {
	stroke: var(--bg-brand-solid);
}

.comments__replies {
	display: flex;
	align-items: center;
	gap: var(--gap4);
	margin-top: 8px;
	color: var(--clr-utility-brand-700);
	background: none;
	border: none;
	cursor: pointer;
}

.comments__action:disabled,
.comments__action--voted {
	cursor: default;
	opacity: 0.82;
}

.comments__action--voted-choice,
.comments__action--voted-choice .comments__count {
	color: var(--bg-brand-solid);
}

.comments__action--voted-choice .comments__icon-like,
.comments__action--voted-choice .comments__icon-dislike {
	stroke: var(--bg-brand-solid);
}

.comments__reply-form-slot:empty {
	display: none;
}

.comments__reply-form-slot {
	margin-top: 12px;
}

.comments__vote-feedback {
	margin-top: 4px;
	font-size: var(--fs12);
	line-height: 1.35;
	color: #ffc6c6;
	overflow-wrap: anywhere;
}

.comments__vote-feedback[hidden] {
	display: none;
}

.comments__item--reply .comments__reply-form-slot {
	margin-left: calc(-1 * (var(--comments-replies-indent) + var(--comments-form-avatar-offset)));
	width: calc(100% + var(--comments-replies-indent) + var(--comments-form-avatar-offset));
	max-width: calc(100% + var(--comments-replies-indent) + var(--comments-form-avatar-offset));
}

.comments__reply-form-block {
	width: 100%;
}

.comments__form-feedback--reply-success {
	margin: 0;
	width: 100%;
	max-width: 100%;
	min-height: 0;
}

.comments__replies-panel[hidden] {
	display: none;
}

.comments__replies-list {
	display: flex;
	flex-direction: column;
	gap: var(--gap20);
	margin-top: 16px;
	padding-left: var(--comments-replies-indent);
}

.comments__item--reply {
	margin-bottom: 0;
}

.comments__load-more-replies {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 0;
	background: none;
	border: none;
	color: var(--clr-utility-brand-700);
	font-size: var(--fs14);
	font-weight: var(--fw500);
	cursor: pointer;
}

.comments__load-more-replies[hidden] {
	display: none !important;
}

.comments__load-more-replies:hover {
	color: var(--bg-brand-solid);
}

/* odpovědi hidden */

.comments__item--reply-hidden {
	display: none;
	padding-left: 50px;
	transition: all 0.3s ease;
}

.comments__item--reply-hidden.visible {
	display: flex;
}

.comments__icon-replies {
	transition: transform 0.3s ease;
}

.comments__icon-replies.rotated {
	transform: rotate(180deg);
}

@media (max-width: 325px) {
	.comments__item--reply-hidden {
		padding-left: 24px;
	}
}

body[data-device-family="phone"] .comments__replies-list {
	padding-left: var(--comments-replies-indent);
}

body[data-device-family="phone"] .comments__reply-form-slot {
	margin-left: calc(-1 * var(--comments-form-avatar-offset));
	width: calc(100% + var(--comments-form-avatar-offset));
	max-width: calc(100% + var(--comments-form-avatar-offset));
}

body[data-device-family="phone"] .comments__item--reply .comments__reply-form-slot {
	margin-left: calc(-1 * (var(--comments-form-avatar-offset) + var(--comments-form-avatar-offset)));
	width: calc(100% + var(--comments-form-avatar-offset) + var(--comments-form-avatar-offset));
	max-width: calc(100% + var(--comments-form-avatar-offset) + var(--comments-form-avatar-offset));
}

/* -- šablona no-cmnt */

.comments__icon--smileyface {
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	padding: 8px;
	background-color: var(--clr-bg-quaternary);
	border: 1px solid var(--brdr-border-secondary);
	border-radius: 50px;
}

.comments__icon-photo--smileyface {
	width: 20px;
	height: 20px;
	border-radius: 0;
	object-fit: contain;
}

/* Similar games - section */

.similar-games {
	display: grid;
	container: game-detail-similar / inline-size;
	grid-column: -1 / 1;
	padding: 0 32px;
	max-width: 1920px;
	width: min(1920px, calc(100% - 24px));
	min-width: 0;
	margin: 0 auto;
	box-sizing: border-box;
}

body.is-mobile .similar-games {
	width: 100%;
	max-width: 1240px;
	padding: 0 8px;
}

@media (max-width: 640px) {
	body.is-mobile .similar-games {
		padding: 0 16px;
	}
}

.similar-games__sections {
	display: flex;
	flex-direction: column;
	gap: var(--gap32);
	min-width: 0;
}

body.is-desktop .game-detail-discovery__device--mobile,
body.is-mobile .game-detail-discovery__device--desktop {
	display: none;
}

.content-section {
	display: flex;
	flex-direction: column;
	gap: var(--gap24);
}

.similar-games__sections .games-grid--standard .games-grid__primary .game-card {
	margin-bottom: 0px;
	min-width: 0;
}

.g-detail .game-card--standard-large .game-card__image--standard {
	aspect-ratio: 1.5345 / 1;
	width: 100%;
}

.g-detail .game-card--standard-small .game-card__image--standard {
	aspect-ratio: 1.8085 / 1;
	width: 100%;
}

.g-detail .game-card__image--standard > .game-card__image-big,
.g-detail .game-card__image--standard > .game-card__image-static {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.similar-games__sections .content-section,
.similar-games__sections .main__section,
.similar-games__sections .games-grid--standard {
	min-width: 0;
}

.similar-games__sections .games-grid--standard .games-grid__primary {
	grid-template-columns: repeat(8, minmax(0, 1fr));
	min-width: 0;
}

/* @respo */
@media (max-width: 1280px) and (min-width: 1100px) {
	.similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

@media (max-width: 1099px) and (min-width: 900px) {
	.similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 899px) and (min-width: 641px) {
	.similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.is-mobile .similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.is-desktop .similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body.is-desktop .game-card--standard-large {
		grid-column: span 2;
	}
}

@container game-detail-similar (max-width: 1280px) and (min-width: 1100px) {
	.similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

@container game-detail-similar (max-width: 1099px) and (min-width: 900px) {
	.similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@container game-detail-similar (max-width: 899px) and (min-width: 641px) {
	.similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@container game-detail-similar (max-width: 640px) {
	body.is-mobile .similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.is-desktop .similar-games__sections .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.is-mobile .game-detail-discovery__device--mobile .games-grid--standard .games-grid__primary {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.is-mobile .game-detail-discovery__device--mobile .game-card--standard-large {
	grid-column: span 2;
}

@media (max-width: 900px) {
	body.is-mobile .game-detail-discovery__device--mobile .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 576px) {
	body.is-mobile .game-detail-discovery__device--mobile .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.is-mobile .game-detail-discovery__device--mobile .game-card--standard-large {
		grid-column: 1 / -1;
	}
}

@container game-detail-similar (max-width: 884px) {
	body.is-mobile .game-detail-discovery__device--mobile .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container game-detail-similar (max-width: 544px) {
	body.is-mobile .game-detail-discovery__device--mobile .games-grid--standard .games-grid__primary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.is-mobile .game-detail-discovery__device--mobile .game-card--standard-large {
		grid-column: 1 / -1;
	}
}

.main__section-title__heading {
	display: flex;
	align-items: center;
	gap: var(--gap12);
}

.game-detail-discovery__heading-link {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gap12);
	color: inherit;
	text-decoration: none;
}

.game-detail-discovery__heading-link:hover,
.game-detail-discovery__heading-link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.game-detail-discovery__heading-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	transition: border-color 0.3s ease;
}

.game-detail-discovery__heading-link:hover .game-detail-discovery__heading-icon,
.game-detail-discovery__heading-link:focus-visible .game-detail-discovery__heading-icon {
	border-color: rgba(34, 204, 238, 0.5);
}

.game-detail-discovery__heading-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-detail-discovery__heading-icon--category {
	flex-basis: 52px;
	width: 52px;
	height: 52px;
	overflow: visible;
	border: none;
	border-radius: 0;
	background: none;
}

.game-detail-discovery__heading-icon--category img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.45));
}

.game-detail-discovery__heading-link:hover .game-detail-discovery__heading-icon--category,
.game-detail-discovery__heading-link:focus-visible .game-detail-discovery__heading-icon--category {
	border-color: transparent;
}

.game-detail-discovery__more-link {
	display: inline-flex;
	flex: 0 0 auto;
}

.game-detail-discovery__device .separator__button--placeholder {
	pointer-events: none;
}

.game-detail-discovery__device .separator--placeholder {
	min-height: 42px;
}

/* SIDEBAR GAMES / ADS */

.ad {
}

.ad--right,
.ad--left {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	isolation: isolate;
	min-height: var(--game-side-ad-height, 600px);
	max-width: calc(var(--game-side-ad-slot-width, 300px) - var(--game-side-ad-css-guard, 0px));
	overflow: hidden;
	position: relative;
	width: calc(var(--game-side-ad-slot-width, 300px) - var(--game-side-ad-css-guard, 0px));
}

.ad--left {
	justify-content: flex-end;
}

.ad--right {
	justify-content: flex-start;
}

.ad--left::before,
.ad--right::before {
	box-sizing: border-box;
	content: "";
	position: absolute;
	top: 0;
	z-index: 0;
	width: min(300px, 100%);
	height: var(--game-side-ad-height, 600px);
	pointer-events: none;
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 8px;
	background-color: rgba(148, 163, 184, 0.035);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
		repeating-linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.055) 0,
			rgba(255, 255, 255, 0.055) 1px,
			transparent 1px,
			transparent 12px
		);
}

.ad--left::after,
.ad--right::after {
	content: attr(data-ad-label);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 0;
	width: min(300px, 100%);
	pointer-events: none;
	color: rgba(255, 255, 255, 0.34);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	text-transform: uppercase;
}

.ad--left::before,
.ad--left::after {
	right: 0;
}

.ad--right::before,
.ad--right::after {
	left: 0;
}

.ad--left > *,
.ad--right > * {
	flex: 0 0 auto;
	position: relative;
	z-index: 1;
}

.ad--left .ad__placeholder-image,
.ad--right .ad__placeholder-image {
	display: block;
	flex: 0 0 auto;
	height: auto;
	max-height: var(--game-side-ad-height, 600px);
	max-width: none;
	object-fit: contain;
	width: auto;
}

/* The first 300 -> 160 ad tier is emitted from the game detail template.
   Its breakpoint depends on the current game's shell width. */

@media (max-width: 1190px) {
	.ad--right,
	.ad--left {
		max-width: 120px;
		width: 120px;
	}

	.ad--right img,
	.ad--left img {
		max-width: 120px;
		width: 120px;
		height: 600px;
		object-fit: contain;
		background-color: green;
	}

	/* .game-detail-layout__sidebar.game-detail-layout__sidebar--left {
		display: none;
	} */
}

.game-detail-layout__sidebar.game-detail-layout__sidebar--left .games-grid__primary,
.game-detail-layout__sidebar.game-detail-layout__sidebar--right .games-grid__primary {
	grid-template-columns: repeat(2, 1fr);
}

/* First sidebar card grid tier is emitted from the game detail template. */
/* @respo 1290px */
@media (max-width: 1290px) {
	.game-detail-layout__sidebar.game-detail-layout__sidebar--left .games-grid__primary,
	.game-detail-layout__sidebar.game-detail-layout__sidebar--right .games-grid__primary {
		/* grid-template-columns: repeat(2, 1fr); */
		grid-template-columns: 1fr;
	}

	.game-detail-layout__sidebar.game-detail-layout__sidebar--left .games-grid__primary .game-card--standard-large,
	.game-detail-layout__sidebar.game-detail-layout__sidebar--right .games-grid__primary .game-card--standard-large {
		grid-column: span 1;
	}
}

@media (max-width: 1104px) {
	.game-detail-layout__sidebar--left {
		display: none;
	}

	.ad--right,
	.ad--left {
		max-width: 120px;
		width: 120px;
	}

	.ad--right img,
	.ad--left img {
		max-width: 120px;
		width: 120px;
		height: 600px;
		object-fit: contain;
		background-color: green;
	}
}

@media (max-width: 1250px) {
	.game-detail-layout__sidebar.game-detail-layout__sidebar--left .games-grid__primary,
	.game-detail-layout__sidebar.game-detail-layout__sidebar--right .games-grid__primary {
		grid-template-columns: 1fr;
	}

	.game-detail-layout__sidebar.game-detail-layout__sidebar--left .games-grid__primary .game-card--standard-large,
	.game-detail-layout__sidebar.game-detail-layout__sidebar--right .games-grid__primary .game-card--standard-large {
		grid-column: span 1;
	}
}

@media (max-width: 1290px) {
	.ad--right,
	.ad--left {
		max-width: 120px;
		width: 120px;
	}

	.ad--right img,
	.ad--left img {
		max-width: 120px;
		width: 120px;
		height: 600px;
		object-fit: contain;
		background-color: green;
	}
}

@media (max-width: 1250px) {
	.game-detail-layout__sidebar--left {
		display: none;
	}

	.ad--right,
	.ad--left {
		max-width: 160px;
		width: 160px;
	}

	.ad--right img,
	.ad--left img {
		max-width: 160px;
		width: 160px;
		height: 600px;
		object-fit: contain;
		background-color: green;
	}
}

@media (max-width: 1104px) {
	.game-detail-layout__sidebar--left {
		display: none;
	}

	.ad--right,
	.ad--left {
		max-width: 120px;
		width: 120px;
	}

	.ad--right img,
	.ad--left img {
		max-width: 120px;
		width: 120px;
		height: 600px;
		object-fit: contain;
		background-color: green;
	}
}

@media (max-width: 1064px) {
	.game-detail-layout__sidebar--right {
		display: none;
	}
}

.ad--left .ad__placeholder-image[data-side-ad-selected-width="352"],
.ad--right .ad__placeholder-image[data-side-ad-selected-width="352"],
.ad--left .ad__placeholder-image[data-side-ad-selected-width="336"],
.ad--right .ad__placeholder-image[data-side-ad-selected-width="336"],
.ad--left .ad__placeholder-image[data-side-ad-selected-width="320"],
.ad--right .ad__placeholder-image[data-side-ad-selected-width="320"],
.ad--left .ad__placeholder-image[width="352"],
.ad--right .ad__placeholder-image[width="352"] {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* Cinema layout tiers */
.game-detail-layout.cinema-mode {
	justify-content: center;
}

.game-detail-layout.cinema-mode .game-main-detail {
	max-width: none;
}

.game-detail-layout.cinema-mode .game-detail-layout__sidebar {
	display: none;
	gap: 0;
	align-items: stretch;
	flex: 0 0 auto;
}

.game-detail-layout.cinema-mode .game-detail-layout__sidebar-games {
	display: none;
}

.game-detail-layout.cinema-mode.cinema-hide-bottom-banner .ad--banner {
	display: none;
}

.game-detail-layout.cinema-mode .ad--left,
.game-detail-layout.cinema-mode .ad--right {
	width: 100%;
}

.game-detail-layout.cinema-mode .ad--left img,
.game-detail-layout.cinema-mode .ad--right img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 600px;
	object-fit: contain;
}

.game-detail-layout.cinema-mode.cinema-ads-2x300 .game-detail-layout__sidebar--left,
.game-detail-layout.cinema-mode.cinema-ads-2x300 .game-detail-layout__sidebar--right {
	display: flex;
	flex-basis: 300px;
}

.game-detail-layout.cinema-mode.cinema-ads-2x160 .game-detail-layout__sidebar--left,
.game-detail-layout.cinema-mode.cinema-ads-2x160 .game-detail-layout__sidebar--right {
	display: flex;
	flex-basis: 160px;
}

.game-detail-layout.cinema-mode.cinema-ads-right-160 {
	justify-content: flex-start;
}

.game-detail-layout.cinema-mode.cinema-ads-right-160 .game-detail-layout__sidebar--right {
	display: flex;
	flex-basis: 160px;
}

.game-detail-layout.cinema-mode.cinema-ads-right-160 .game-detail-layout__sidebar--left,
.game-detail-layout.cinema-mode.cinema-ads-none .game-detail-layout__sidebar--left,
.game-detail-layout.cinema-mode.cinema-ads-none .game-detail-layout__sidebar--right {
	display: none;
}

.g-detail .bottom-line {
	display: grid;
	grid-column: -1 / 1;
	max-width: 1240px;
	margin: 0 auto;
	margin-top: 32px;
	padding: 0 32px;
}

@media (max-width: 640px) {
	.g-detail .bottom-line {
		padding: 0 16px;
	}
}

.g-detail .footer {
	max-width: 100vw;
	overflow-x: clip;
	width: 100%;
}

.g-detail .footer__container {
	max-width: 1320px;
	min-width: 0;
	transform: none;
	width: 100%;
}

.g-detail .footer__bottom {
	min-width: 0;
	width: 100%;
}

/* MODALS - share, likes ... */

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	display: none; /* defaultně skryté */
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-overlay.is-active {
	display: flex;
}

/* NEW COMM feature */

#gameNegVotes {
    display: none;
}

/* Copy tlačítko – kurzor jako na odkazu */
.share-link__copy {
    cursor: pointer;
}

/* --- Share modal: embed toggle --- */

.share-embed {
    margin-top: 12px;
}

/* --- Share modal: embed toggle (jako label, ale klikací) --- */
.registration--share .share-embed__toggle {
    appearance: none;
    -webkit-appearance: none;

    border: 0;
    background: none;
    padding: 0;
    margin: 0;

    display: inline-block;
    text-align: left;

    font-size: var(--fs14);
    font-weight: var(--fw500);
    line-height: 1.4;
    color: var(--text-secondary);

    text-decoration: underline;
    text-underline-position: from-font;

    cursor: pointer;
}

.registration--share .share-embed__toggle:hover,
.registration--share .share-embed__toggle:focus-visible {
    text-decoration: none;
}

.share-embed__body {
    margin-top: 8px;
}

.share-embed__textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-family: monospace;
    font-size: 12px;
    padding: 10px 12px;
    box-sizing: border-box;

    white-space: pre;       /* respektuje \n z PHP */
    white-space: pre-wrap;  /* a zároveň zalomí dlouhé řádky */
    word-break: break-all;
}


/* Share modal – sjednocení fontu pro form prvky (jinak padají na systémový/Arial) */
.registration--share .share-link__input,
.registration--share .share-link__copy,
.registration--share .share-embed__toggle {
    font-family: 'Open Sauce Two', sans-serif;
}

/* Embed textarea: nechávám monospace pro kód (pokud chceš Open Sauce i tady, řádek přepiš) */
.registration--share .share-embed__textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 1. Kontejner (obaluje obrázek i text) */
.share-embed__preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    margin-top: 16px;     /* Větší vzduch NAHOŘE nad obrázkem */
    margin-bottom: 6px;   /* Malá mezera DOLE pod textem (nalepení na textareu) */
}

/* 2. Samotný odkaz s obrázkem uvnitř */
.share-embed__preview a {
    display: inline-block;
    transition: opacity 0.2s;
    
    margin-bottom: 20px;  /* Tady je ta VELKÁ MEZERA mezi obrázkem a textem */
}

.share-embed__preview a:hover {
    opacity: 0.8;
}

.share-embed__preview img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
}

/* 3. Text instrukcí */
.share-embed__preview-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    /* Tady nemusíme dávat margin, řeší to rodič (bod 1) */
}
