:root {
	--bg: #312f2e;
	--bg-soft: #42403f;
	--bg-raised: #2a2827;
	--bg-search: #42403f;
	--accent: #0080f4;
	--accent-2: #3da0ff;
	--rating-bg: rgba(0, 0, 0, 0.55);
	--text: #fff;
	--text-muted: #bdbdbd;
	--text-dim: #8a8887;
	--header-h: 70px;
	--sidebar-w: 56px;
	--sidebar-expanded: 240px;
	--gutter: 12px;
	--grid-gap: 10px;
	--line: rgba(255, 255, 255, 0.08);
	color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: clip; }
body.ph-body {
	background: var(--bg);
	color: var(--text);
	font-family: Inter, "Noto Kufi Arabic", "Noto Sans Devanagari", "Noto Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	min-height: 100vh;
}
.ph-body a { color: inherit; text-decoration: none; }
.ph-body button, .ph-body input, .ph-body textarea { font: inherit; color: inherit; }
.ph-body img { max-width: 100%; }
.ph-body button { cursor: pointer; }

/* Force site accent on content links; override custom HTML colors. */
.ph-body .ph-prose a,
.ph-body .ph-prose a:link,
.ph-body .ph-prose a:visited,
.ph-body .ph-prose a:hover,
.ph-body .ph-prose a:active,
.ph-body .rich-html a,
.ph-body .rich-html a:link,
.ph-body .rich-html a:visited,
.ph-body .rich-html a:hover,
.ph-body .rich-html a:active,
.ph-body .gd__about-body a,
.ph-body .gd__info a:not(.gd__tab):not(.gd__tag),
.ph-body .ph-panel a,
.ph-body .ph-article a,
.ph-body .tpl-comment-text a,
.ph-body .comment-content a,
.ph-body .ph-comment a,
.ph-body .widget a,
.ph-body .banner-ad-content a,
.ph-body .ph-footer__desc a,
.ph-body .ph-content a[style*="color"],
.ph-body .ph-content a[color],
.ph-body .ph-prose a[style],
.ph-body .rich-html a[style],
.ph-body a[style*="color" i],
.ph-body a[color] {
	color: var(--accent) !important;
}
.ph-body .ph-prose a *,
.ph-body .rich-html a *,
.ph-body .gd__about-body a *,
.ph-body .ph-panel a *,
.ph-body .ph-article a *,
.ph-body .tpl-comment-text a *,
.ph-body .widget a *,
.ph-body a[style*="color" i] *,
.ph-body a[color] * {
	color: inherit !important;
}
.ph-body .ph-prose font[color],
.ph-body .rich-html font[color],
.ph-body .gd__about-body font[color],
.ph-body .ph-panel font[color],
.ph-body .ph-article font[color],
.ph-body .ph-prose span[style*="color" i],
.ph-body .rich-html span[style*="color" i],
.ph-body .gd__about-body span[style*="color" i] {
	color: var(--accent) !important;
}

.ph-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 120;
	background: var(--bg);
}
.ph-header__bar {
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px 0 12px;
}
.ph-header__menu {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: var(--bg-soft);
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}
.ph-header__menu span {
	display: block;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}
.ph-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.ph-header__mascot, .ph-header__mascot img,
.ph-sidebar__brand-mark, .ph-sidebar__brand-mark img {
	width: 40px;
	height: 40px;
	border-radius: 9px;
	object-fit: contain;
	display: block;
}
.ph-header__name {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ph-header__search-desktop-wrap {
	display: none;
	flex: 1;
	min-width: 0;
	max-width: 520px;
	margin-inline: 8px 12px;
}
.ph-header__search-desktop,
.ph-header__search-mobile {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--bg-search);
}
.ph-header__search-desktop input,
.ph-header__search-mobile input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
}
.ph-header__search-desktop input::placeholder,
.ph-header__search-mobile input::placeholder { color: var(--text-dim); }
.ph-header__search-ico { color: var(--text-muted); display: grid; }
.ph-header__search-mobile-wrap { margin: 0 12px 12px; }
.ph-header__actions {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ph-header__energy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 10px;
	border-radius: 10px;
	background: var(--bg-soft);
	font-weight: 700;
}
.ph-header__login {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--accent);
	color: #121212;
	font-weight: 800;
	font-size: 0.9rem;
}
.ph-header__login:hover { background: var(--accent-2); }
button.ph-header__login { border: 0; cursor: pointer; font: inherit; }

.login-menu { position: fixed; z-index: 13000; top: calc(var(--header-h) - 5px); inset-inline-end: 18px; width: min(360px, calc(100vw - 24px)); }
.login-menu__backdrop { position: fixed; inset: 0; border: 0; padding: 0; background: transparent; cursor: default; }
.login-menu__panel {
	position: relative;
	width: 100%;
	padding: 14px 18px 18px;
	border-radius: 18px;
	background: #2a2928;
	box-shadow: 0 18px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2);
}
.login-menu__handle { width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: rgba(255,255,255,.18); }
.login-menu__title { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; }
.login-menu__form { display: grid; }
.login-menu__input {
	width: 100%;
	height: 46px;
	margin-top: 10px;
	padding: 0 14px;
	border: 0;
	border-radius: 12px;
	background: #3f3d3c;
	color: #fff;
	font: inherit;
	font-weight: 600;
}
.login-menu__input::placeholder { color: rgba(255,255,255,.45); }
.login-menu__alert { margin: 10px 0 0; color: #ff8d8d; text-align: center; font-size: 0.84rem; font-weight: 700; }
.login-menu__terms.is-pulse { animation: login-terms-pulse 0.65s ease; }
@keyframes login-terms-pulse {
	0%, 100% { color: #cfcfcf; }
	35% { color: #ff8d8d; }
}
.login-menu__quick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	margin-top: 16px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #111;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 800;
	cursor: pointer;
}
.login-menu__quick:hover { background: var(--accent-2); }
.login-menu__or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #cfcfcf; font-size: 0.85rem; }
.login-menu__or span { flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.login-menu__or em { font-style: normal; }
.login-menu__google-wrap { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.login-menu__google-wrap br { display: none; }
.login-menu__terms { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: #cfcfcf; font-size: 0.78rem; line-height: 1.45; }
.login-menu__check-wrap { display: grid; place-items: center; margin-top: 2px; }
.login-menu__terms input { width: 16px; height: 16px; accent-color: var(--accent); }
.login-menu__legal-link { color: var(--accent); font-weight: 700; }
@media (max-width: 699px) {
	.login-menu { top: auto; bottom: 92px; inset-inline-end: 12px; inset-inline-start: 12px; width: auto; }
}
.ph-header__avatar-btn {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
	background: var(--bg-soft);
}
.ph-header__avatar-btn img,
.ph-header__account-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-header__account { position: relative; }
.ph-header__account-menu {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	width: min(320px, calc(100vw - 24px));
	background: #2c2b2a;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 14px;
	display: grid;
	gap: 10px;
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
	z-index: 5;
}
.ph-header__account-card,
.ph-header__account-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #3f3e3d;
	color: #fff;
	text-decoration: none;
}
.ph-header__account-card { border-radius: 16px; padding: 12px 14px; }
.ph-header__account-group { background: #3f3e3d; border-radius: 16px; overflow: hidden; }
.ph-header__account-item { min-height: 48px; padding: 10px 14px; font-weight: 600; }
.ph-header__account-item + .ph-header__account-item { border-top: 1px solid var(--line); }
.ph-header__account-item:hover,
.ph-header__account-card:hover { background: #484746; }
.ph-header__account-card-avatar {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	overflow: hidden;
	flex-shrink: 0;
	background: #2a2928;
}
.ph-header__account-card-meta { display: grid; min-width: 0; }
.ph-header__account-card-meta span { color: rgba(255,255,255,.55); font-size: 0.75rem; }
.ph-header-spacer { height: calc(var(--header-h) + 56px); }

.ph-shell { display: flex; align-items: stretch; min-height: calc(100vh - var(--header-h)); }
.ph-column { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ph-content { flex: 1; padding: 8px 0 28px; }
.page-pad { padding-inline: var(--gutter); }

.ph-sidebar-backdrop { display: none; }
.ph-sidebar-rail {
	width: var(--sidebar-w);
	flex-shrink: 0;
	position: relative;
}
.ph-sidebar {
	position: fixed;
	top: var(--header-h);
	bottom: 0;
	inset-inline-start: 0;
	width: var(--sidebar-w);
	background: var(--bg);
	overflow: auto;
	z-index: 36;
	scrollbar-width: none;
	transition: width 0.18s ease, box-shadow 0.18s ease;
}
.ph-sidebar::-webkit-scrollbar { display: none; }
.ph-sidebar__top { display: none; }
.ph-sidebar__nav {
	width: var(--sidebar-expanded);
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 8px 8px 24px;
}
.ph-sidebar__link,
.ph-sidebar__info-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 38px;
	padding: 0 8px;
	border-radius: 12px;
	color: #d7d7d7;
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
}
.ph-sidebar__link:hover,
.ph-sidebar__info-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.ph-sidebar__link.is-active { background: rgba(255,255,255,.18); color: #fff; }
.ph-sidebar__ico {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.ph-sidebar__ico--action {
	background: rgba(255,255,255,.1);
	border-radius: 8px;
}
.ph-sidebar__ico--legal {
	background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
	border: 1px solid rgba(255,255,255,.06);
}
.ph-sidebar__action-svg { width: 18px; height: 18px; display: block; }
.ph-sidebar__emoji { font-size: 1.15rem; line-height: 1; }
.ph-sidebar__cat { width: 28px; height: 28px; object-fit: contain; display: block; }
.ph-sidebar__cat--dot { width: 20px; height: 20px; }
.ph-sidebar__info-link .ph-sidebar__cat { width: 22px; height: 22px; }
.ph-sidebar__label,
.ph-sidebar__info-text,
.ph-sidebar__copy,
.ph-sidebar__lang-menu { opacity: 0; pointer-events: none; }
.ph-sidebar__new-badge {
	display: none;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}
.ph-sidebar__divider {
	height: 1px;
	width: calc(var(--sidebar-w) - 20px);
	margin: 8px 10px;
	background: rgba(255,255,255,.1);
}
.ph-sidebar__lang-collapsed { display: flex; align-items: center; min-height: 38px; padding: 0 8px; }
.ph-sidebar__lang-select {
	display: flex;
	align-items: center;
	width: 176px;
	min-height: 34px;
	margin-inline-start: 44px;
	padding: 0 28px 0 10px;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,.14);
	background: #353230;
	color: #f2f2f2;
	position: relative;
}
.ph-sidebar__lang-caret {
	position: absolute;
	inset-inline-end: 10px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	border-inline-end: 1.5px solid rgba(255,255,255,.75);
	border-bottom: 1.5px solid rgba(255,255,255,.75);
	transform: rotate(45deg);
}
.ph-sidebar__lang-dropdown {
	list-style: none;
	margin: 6px 0 0 44px;
	padding: 4px;
	width: 176px;
	max-height: 220px;
	overflow: auto;
	background: #2a2827;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 10px;
}
.ph-sidebar__lang-option {
	display: flex;
	align-items: center;
	min-height: 34px;
	padding: 0 8px;
	border-radius: 8px;
	font-weight: 650;
}
.ph-sidebar__lang-option:hover,
.ph-sidebar__lang-option.is-active { background: rgba(255,255,255,.12); }
.ph-sidebar__info-text { position: relative; padding-inline-start: 8px; }
.ph-sidebar__social {
	display: none;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 12px 4px;
	padding-inline-start: 8px;
}
.ph-sidebar__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255,255,255,.06);
	transition: transform .2s ease, background .2s ease;
}
.ph-sidebar__social-link img { width: 18px; height: 18px; display: block; }
.ph-sidebar__social-link:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.ph-sidebar__copy {
	margin: 8px 12px 0;
	padding-inline-start: 44px;
	color: rgba(255,255,255,.42);
	font-size: 0.72rem;
}
.ph-sidebar-rail:hover .ph-sidebar,
.ph-sidebar-rail.is-open .ph-sidebar {
	width: var(--sidebar-expanded);
	background: #2e2c2b;
	box-shadow: 8px 0 28px rgba(0,0,0,.35);
}
.ph-sidebar-rail:hover .ph-sidebar__label,
.ph-sidebar-rail:hover .ph-sidebar__info-text,
.ph-sidebar-rail:hover .ph-sidebar__copy,
.ph-sidebar-rail:hover .ph-sidebar__lang-menu,
.ph-sidebar-rail:hover .ph-sidebar__social,
.ph-sidebar-rail.is-open .ph-sidebar__label,
.ph-sidebar-rail.is-open .ph-sidebar__info-text,
.ph-sidebar-rail.is-open .ph-sidebar__copy,
.ph-sidebar-rail.is-open .ph-sidebar__lang-menu,
.ph-sidebar-rail.is-open .ph-sidebar__social {
	opacity: 1;
	pointer-events: auto;
}
.ph-sidebar-rail:hover .ph-sidebar__social,
.ph-sidebar-rail.is-open .ph-sidebar__social {
	display: flex;
}
.ph-sidebar-rail:hover .ph-sidebar__lang-collapsed,
.ph-sidebar-rail.is-open .ph-sidebar__lang-collapsed { display: none; }
.ph-sidebar-rail:hover .ph-sidebar__new-badge,
.ph-sidebar-rail.is-open .ph-sidebar__new-badge { display: inline-block; }
.ph-sidebar-rail:hover .ph-sidebar__divider,
.ph-sidebar-rail.is-open .ph-sidebar__divider { width: calc(var(--sidebar-expanded) - 36px); }

.ph-block { margin: 6px 0 22px; }
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 12px;
}
.section-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.section-title .chevron { opacity: 0.45; font-weight: 400; }
.section-count { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.section-title-ico { width: 32px; height: 32px; display: block; flex: 0 0 32px; }
.section-sub { margin: 0 0 16px; color: #fff; font-size: 0.95rem; line-height: 1.55; }
.page-crumbs { margin: 0 0 10px; }
.page-crumbs__list { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: 0.86rem; font-weight: 600; }
.page-crumbs__list li:not(:last-child)::after { content: "/"; margin: 0 8px; opacity: 0.55; }
.page-crumbs a:hover { color: #fff; }

.games-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--grid-gap);
}
.ph-card { display: flex; flex-direction: column; gap: 7px; min-width: 0; position: relative; }
.ph-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 7px;
	overflow: hidden;
	background: var(--bg-soft);
}
.ph-card__hit { position: absolute; inset: 0; z-index: 3; }
.ph-card__media img,
.ph-card__media video.ph-card__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease, opacity 0.2s ease;
}
.ph-card__media video.ph-card__video {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0;
	pointer-events: none;
	background: #000;
}
.ph-card.is-video-playing .ph-card__media img {
	opacity: 0;
}
.ph-card.is-video-playing .ph-card__media video.ph-card__video {
	opacity: 1;
}
.ph-card__badge {
	position: absolute;
	top: 7px;
	inset-inline-start: 7px;
	z-index: 4;
	border-radius: 5px;
	padding: 3px 7px;
	font-size: 0.65rem;
	font-weight: 800;
	color: #121212;
	background: #6f6c6a;
}
.ph-card__badge.is-gold { background: #ffd84a; }
.ph-card__badge.is-silver { background: #e8e8e8; }
.ph-card__badge.is-bronze { background: #e7b07a; }
.ph-card__badge.is-top { background: #5e5b59; color: #fff; }
.ph-card__info {
	position: absolute;
	top: 6px;
	inset-inline-end: 6px;
	z-index: 5;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255,255,255,.92);
	box-shadow: 0 2px 12px rgba(0,0,0,.28);
	cursor: pointer;
	line-height: 1;
	text-decoration: none;
}
.ph-body button.ph-card__info,
.ph-body .ph-card__info,
.ph-card__info {
	color: #000 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-style: italic !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.ph-card__rating {
	position: absolute;
	bottom: 7px;
	inset-inline-start: 7px;
	z-index: 4;
	min-width: 26px;
	height: 22px;
	padding: 0 6px;
	border-radius: 6px;
	display: grid;
	place-items: center;
	background: var(--accent-2);
	color: #121212;
	font-size: 0.72rem;
	font-weight: 800;
}
.ph-card__hover-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	padding: 32px 10px 10px;
	color: #fff;
	font-weight: 700;
	font-size: 0.82rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transform: translateY(8px);
	background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55) 45%, rgba(0,0,0,.88));
	pointer-events: none;
}
.ph-card__title {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ph-card__title a { color: #f3f3f3; }
.ph-card__about {
	position: absolute;
	inset-inline: 8px;
	top: 40px;
	z-index: 6;
	background: #2c2b2a;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.ph-card__about p { margin: 8px 0; color: var(--text-muted); font-size: 0.82rem; }
.ph-card__about a { color: var(--accent); font-weight: 800; }
.ph-card.is-about .ph-card__about { display: block; }
.ph-ad {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 4px 0 8px;
}
.ph-ad--feed {
	padding: 14px 10px;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
	border: 1px solid var(--line);
}
.ph-ad__inner {
	width: 100%;
	max-width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 90px;
}
.ph-ad__inner > * { width: 100%; max-width: 100%; }
.ph-ad iframe,
.ph-ad ins,
.ph-ad__inner iframe,
.ph-ad__inner ins { max-width: 100%; }
/* Kill Google One Tap / empty white GSI boxes site-wide (keep login-menu button). */
iframe[src*="accounts.google.com"],
iframe[src*="gsi/"],
iframe[src*="accounts.google.com/gsi/iframe"],
iframe[name*="credential_picker"],
iframe[id*="credential_picker"],
div[id^="credential_picker"],
#credential_picker_container,
#g_a11y_announcement,
div[aria-modal="true"][id*="credential"],
body > div:has(> iframe[src*="accounts.google.com"]),
body > div:has(> iframe[src*="gsi/"]),
.g_id_signin:not(.login-menu__google-btn):not(.login-menu .g_id_signin) {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
	position: absolute !important;
	left: -9999px !important;
	border: 0 !important;
	background: transparent !important;
}
.ph-widget-slot:empty,
.ph-widget-slot.is-empty-slot,
.banner-ad-wrapper:has(.banner-ad-content:empty),
.banner-ad-wrapper.is-empty-slot,
.banner-ad-content:empty,
.banner-ad-content.is-empty-slot,
.widget.is-empty-slot,
.ph-ad:empty,
.ph-ad--feed:has(.ph-ad__inner:empty) {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}
/* Widget / ad cells match site dark background (no white boxes). */
.ph-widget-slot,
.banner-ad-wrapper,
.banner-ad-content,
.widget,
.widget-title,
.adsbygoogle,
ins.adsbygoogle,
.ph-ad,
.ph-ad__inner,
.ph-ad--feed,
.gd__sticky-ad,
.gd__sticky-ad-inner,
.gp__ad-rail,
.ph-footer__widgets,
.ph-footer .widget {
	background: var(--bg) !important;
	background-color: var(--bg) !important;
	color: var(--text) !important;
	border-color: var(--line) !important;
	box-shadow: none !important;
}
.banner-ad-content {
	padding: 0 !important;
}
.banner-ad-content:not(:empty) {
	padding: 12px 0 !important;
}
.ph-widget-slot iframe,
.banner-ad-wrapper iframe,
.widget iframe,
.ph-ad iframe,
.gd__sticky-ad iframe,
.gp__ad-rail iframe {
	background: var(--bg) !important;
}
.ph-feed__sentinel { grid-column: 1 / -1; height: 1px; }
.ph-feed__status {
	text-align: center;
	color: var(--text-dim);
	font-size: 0.85rem;
	min-height: 28px;
	margin: 8px 0 0;
}

.ph-page-head { margin: 8px 0 16px; }
.ph-page-head p { margin: 8px 0 0; color: var(--text-muted); max-width: 70ch; }
.ph-empty { color: var(--text-muted); padding: 24px 0; }

.cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.cat-card {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 12px;
	border-radius: 14px;
	background: #3a3837;
}
.cat-card:hover { background: #464443; }
.cat-card__ico {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(255,255,255,.08);
	font-size: 1.3rem;
	flex-shrink: 0;
}
.cat-card__img {
	width: 28px;
	height: 28px;
	display: block;
	object-fit: contain;
}
.cat-card strong { display: block; }
.cat-card span { color: var(--text-dim); font-size: 0.78rem; }

.ph-article,
.ph-game,
.ph-panel {
	background: #2a2827;
	border-radius: 18px;
	padding: 18px;
	margin-bottom: 16px;
}
.ph-article h1,
.ph-panel h1,
.ph-game h1 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -0.02em; }
.ph-prose { color: #e7e7e7; line-height: 1.7; }
.ph-prose--category { margin-top: 22px; }
.ph-prose a { color: var(--accent) !important; }
.ph-prose img { border-radius: 12px; height: auto; }
.ph-prose p { margin: 0 0 0.85em; }
.ph-prose ul, .ph-prose ol { margin: 0 0 0.85em; padding-inline-start: 1.2em; }
.ph-prose h2, .ph-prose h3, .ph-prose h4 { margin: 0.9em 0 0.45em; font-weight: 800; }
.ph-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}
.widget-title { margin: 0 0 12px; font-size: 1rem; }
.ph-crumbs { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 10px; }
.ph-crumbs a:hover { color: #fff; }

.gd__topbar { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 14px; }
.gd__back {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0;
	padding: 0 14px 0 10px; border: 0; border-radius: 10px; background: var(--accent);
	color: #121212; font-weight: 800; font-size: 0.92rem; flex-shrink: 0;
}
.gd__back:hover { background: var(--accent-2); }
[dir="rtl"] .gd__back svg { transform: scaleX(-1); }
.gd__crumbs { flex: 1; min-width: 0; margin: 0; }
.gd__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--text-dim); font-size: 0.82rem; }
.gd__crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.gd__crumbs li:not(:last-child)::after { content: "/"; color: rgba(255,255,255,.28); }
.gd__crumbs a { color: var(--text-muted); }
.gd__crumbs a:hover { color: var(--accent); }
.gd__crumbs [aria-current="page"] span { color: #fff; max-width: min(52vw, 280px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd__layout { display: flex; align-items: flex-start; gap: 16px; width: 100%; }
.gd__main { min-width: 0; flex: 1; }
.gd__stage {
	position: relative; isolation: isolate; width: 100%; overflow: hidden;
	aspect-ratio: 16 / 9; min-height: 360px; max-height: min(72vh, 640px);
	background: #1c1b1a; border-radius: 18px;
}
.gd__media { position: absolute; inset: 0; z-index: 0; }
.gd__media.is-playable,
.gd__media.has-video-backdrop,
.gd__media.is-playable:hover,
.gd__media.has-video-backdrop:hover {
	cursor: default;
}
.gd__backdrop {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	display: block;
	cursor: default;
}
video.gd__backdrop {
	background: #121110;
	pointer-events: none;
	cursor: default;
}
.gd__shade {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(rgba(18,17,16,.05) 0%, rgba(18,17,16,.25) 38%, rgba(18,17,16,.78) 68%, rgba(18,17,16,.96) 100%);
}
.gd__media-tools { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; display: flex; gap: 8px; }
.gd__media-info, .gd__media-share {
	position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
	display: grid; place-items: center;
	color: #000 !important;
	background: rgba(255,255,255,.92);
	box-shadow: 0 2px 12px rgba(0,0,0,.28); cursor: pointer;
}
.ph-body button.gd__media-share,
.ph-body a.gd__media-info,
.ph-body .gd__media-share,
.ph-body .gd__media-info,
.gd__media-share svg,
.gd__media-info svg {
	color: #000 !important;
	stroke: currentColor;
}
.gd__media-info { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; text-decoration: none; }
.gd__panel {
	position: absolute; inset-inline: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column;
	justify-content: flex-end; align-items: flex-start; gap: 14px; padding: 22px 20px; pointer-events: none;
}
.gd__panel a, .gd__panel button, .gd__panel .ge { pointer-events: auto; }
.gd__icon { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; background: var(--bg-soft); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.gd__panel-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; min-width: 0; }
.gd__title { margin: 0; font-size: clamp(1.35rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.gd__seo-lead { margin: 0 0 2px; max-width: 42rem; color: rgba(255,255,255,.78); font-size: 0.92rem; line-height: 1.45; }
.gd__stats, .gd__tags, .gd__rating-pill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gd__stats { gap: 12px; }
.gd__rating-score { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 7px; background: var(--accent); color: #121212; font-weight: 800; }
.gd__rating-label, .gd__plays { color: rgba(255,255,255,.88); font-size: 0.88rem; font-weight: 600; }
.gd__tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-size: 0.82rem; font-weight: 600; }
.gd__tag:hover { background: rgba(255,255,255,.16); }
.gd__tags--extra { margin-top: 14px; }
.gd__stage-wrap { width: 100%; }
.gd__engage--below-media { display: none; }
.gd__actions { display: flex; flex-direction: row; align-items: stretch; gap: 10px; width: 100%; margin-top: 4px; }
.gd__play {
	display: inline-flex; align-items: center; justify-content: center; flex: 1.45 1 0; width: auto; min-width: 0; height: 56px;
	border: 0; border-radius: 14px; background: var(--accent); color: #121212; font-size: 1.05rem; font-weight: 800; cursor: pointer;
}
.gd__play:hover { background: var(--accent-2); }
.gd__actions .ge { flex: 1.85 1 0; min-width: 0; margin: 0; }
.gd__actions .ge__row { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 8px; height: 100%; }
.gd__actions .ge__fav, .gd__actions .ge__react { min-height: 56px; }
.gd__actions .ge__fav { gap: 8px; padding: 8px 12px; }
.gd__actions .ge__fav-ico { width: 30px; height: 30px; border-radius: 9px; }
.gd__actions .ge__fav-copy strong { font-size: 0.82rem; }
.gd__actions .ge__react { gap: 8px; padding: 8px 10px; }
.gd__actions .ge__react-label { font-size: 0.66rem; }
.gd__actions .ge__react-count { font-size: 0.92rem; }
.ge__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
.ge__fav, .ge__react {
	display: flex; align-items: center; gap: 10px; min-height: 56px; border-radius: 14px;
	border: 1px solid rgba(255,255,255,.1); color: #fff; background: rgba(255,255,255,.04); cursor: pointer;
}
.ge__fav { gap: 12px; padding: 10px 16px; background: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.03)); text-decoration: none; }
.ge__fav.is-on { color: #ffd56a; border-color: rgba(247,171,7,.55); background: linear-gradient(rgba(247,171,7,.2), rgba(247,171,7,.08)); }
.ge__fav-ico, .ge__react-ico { display: grid; place-items: center; flex-shrink: 0; background: rgba(0,0,0,.28); }
.ge__fav-ico { width: 36px; height: 36px; border-radius: 11px; }
.ge__react { padding: 8px 12px; }
.ge__react-ico { width: 34px; height: 34px; border-radius: 999px; }
.ge__votes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ge__react-meta { display: grid; min-width: 0; text-align: start; }
.ge__react-label { color: rgba(255,255,255,.62); font-size: 0.72rem; font-weight: 650; text-transform: uppercase; }
.ge__react-count { font-size: 0.98rem; font-weight: 800; }
.ge__react-count.is-bump { animation: geCountBump .28s ease-out; }
@keyframes geCountBump {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); }
	100% { transform: scale(1); }
}
.ge__react--like.is-on { border-color: rgba(80,209,79,.5); background: linear-gradient(rgba(80,209,79,.18), rgba(80,209,79,.06)); }
.ge__react--dislike.is-on { border-color: rgba(255,90,90,.45); background: linear-gradient(rgba(255,90,90,.16), rgba(255,90,90,.05)); }
.ge__react:disabled { opacity: .78; cursor: default; }
.gd__info { margin-top: 18px; padding: 16px 18px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; }
.gd__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 4px;
	border-radius: 12px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.06);
}
.gd__tab {
	appearance: none;
	border: 0;
	margin: 0;
	padding: 10px 16px;
	border-radius: 10px;
	background: transparent;
	color: rgba(255,255,255,.72);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	cursor: pointer;
}
.gd__tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.gd__tab.is-on {
	color: #121212;
	background: var(--accent);
}
.gd__tab-panel[hidden] { display: none !important; }
.gd__info-solo-title { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.rich-html__body { line-height: 1.6; }
.rich-html__body.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.rich-html__body p { margin: 0 0 0.85em; }
.rich-html__more { margin-top: 8px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.72); font-weight: 800; cursor: pointer; text-decoration: underline; }
.gd__sticky-ad { display: none; }
.gd__sticky-ad-inner {
	width: 100%;
	max-width: 300px;
	position: sticky;
	top: calc(var(--header-h) + 16px);
}
.gp__ad-rail {
	display: none;
	background: var(--bg) !important;
	color: var(--text);
}
html.gp-open, html.gp-open body { overflow: hidden; }
.gp {
	position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column;
	background: var(--bg); color: #fff;
}
.gp__header {
	display: none; height: 44px; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0 10px; background: #111; border-bottom: 1px solid rgba(255,255,255,.06);
}
.gp__header-left, .gp__header-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gp__brand-name { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp__header-btn, .gp__chrome-btn {
	width: 34px; height: 34px; border: 0; border-radius: 999px; display: grid; place-items: center;
	background: transparent; color: #fff; cursor: pointer;
}
.gp__header-btn:hover, .gp__chrome-btn:hover { background: rgba(255,255,255,.14); }
.gp__chrome-btn.is-on, .gp__header-btn.is-on { color: #b8ffb4; }
.gp__body, .gp__stage, .gp__world { position: relative; flex: 1; min-height: 0; min-width: 0; background: #000; }
.gp__stage, .gp__world { height: 100%; }
.gp__iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.gp__chrome {
	position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); inset-inline-end: max(8px, env(safe-area-inset-right, 0px));
	z-index: 30; display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px;
	background: rgba(8,10,12,.42); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.gp__chrome-btn--close:hover { background: rgba(255,90,90,.22); }
@media (max-width: 899px) {
	.gd__stage { aspect-ratio: 3 / 4; min-height: 420px; max-height: 78vh; border-radius: 14px; }
	.gd__icon { width: 72px; height: 72px; border-radius: 14px; }
	.gd__actions { gap: 0; }
	.gd__play {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
		height: 48px;
		font-size: 0.95rem;
	}
	.gd__engage--below-media {
		display: block;
		width: 100%;
		margin-top: 10px;
		padding: 0 2px;
	}
	.gd__engage--below-media .ge { max-width: none; margin: 0; }
	.gd__engage--below-media .ge__row {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 8px;
	}
	.gd__engage--below-media .ge__fav,
	.gd__engage--below-media .ge__react { min-height: 48px; }
	.gd__engage--below-media .ge__fav { gap: 8px; padding: 8px 10px; }
	.gd__engage--below-media .ge__fav-ico { width: 30px; height: 30px; }
	.gd__engage--below-media .ge__fav-copy strong { font-size: 0.8rem; }
	.gd__engage--below-media .ge__react {
		justify-content: center;
		gap: 6px;
		padding: 6px 8px;
	}
	.gd__engage--below-media .ge__react-ico { width: 30px; height: 30px; }
	.gd__engage--below-media .ge__react-label { display: none; }
	.gd__engage--below-media .ge__react-meta { display: block; }
	.gd__engage--below-media .ge__react-count { font-size: 0.9rem; }
	.ge__fav, .ge__react { min-height: 48px; }
}
@media (min-width: 1000px) {
	.gd__stage { min-height: 480px; max-height: min(78vh, 680px); }
	.gd__icon { width: 104px; height: 104px; border-radius: 18px; }
	.gd__panel { padding: 28px; }
}
@media (min-width: 900px) {
	.gp__header { display: flex; }
	.gp__chrome { display: none; }
	.gp:not(.gp--no-ads) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		grid-template-rows: 44px minmax(0, 1fr);
	}
	.gp:not(.gp--no-ads) .gp__header { grid-column: 1; grid-row: 1; }
	.gp:not(.gp--no-ads) .gp__body { display: contents; }
	.gp:not(.gp--no-ads) .gp__stage { grid-column: 1; grid-row: 2; height: auto; }
	.gp:not(.gp--no-ads) .gp__ad-rail {
		display: flex;
		grid-column: 2;
		grid-row: 1 / span 2;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		width: 300px;
		padding: 12px 10px;
		min-height: 0;
		overflow: hidden;
		scrollbar-width: none;
		-ms-overflow-style: none;
		background: var(--bg) !important;
		border-inline-start: 1px solid var(--line);
	}
	.gp:not(.gp--no-ads) .gp__ad-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
	.gp__ad-rail > * { width: 100%; max-width: 300px; overflow: hidden; }
}
/* Keep sidebar ad visible beside the player during play mode (not browser fullscreen). */
.gp:fullscreen,
.gp:-webkit-full-screen { display: flex !important; flex-direction: column; }
.gp:fullscreen .gp__ad-rail,
.gp:-webkit-full-screen .gp__ad-rail { display: none !important; }
.gp:fullscreen .gp__body,
.gp:-webkit-full-screen .gp__body { display: flex; flex: 1; }
@media (min-width: 1280px) {
	.gd__layout--with-ad .gd__main { max-width: calc(100% - 320px); }
	.gd__sticky-ad {
		display: block;
		position: relative;
		flex: 0 0 300px;
		align-self: stretch;
		width: 300px;
		min-height: 600px;
	}
}
.ph-icon-btn, .ph-btn {
	border: 0;
	border-radius: 12px;
	background: var(--accent);
	color: #121212;
	font-weight: 800;
	min-height: 40px;
	padding: 0 14px;
}
.ph-btn--ghost, .ph-icon-btn {
	background: var(--bg-soft);
	color: #fff;
}
.ph-icon-btn.is-on { color: var(--accent); }
.ph-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-tags a {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	font-size: 0.85rem;
}
.ph-tags a:hover { background: rgba(16,255,19,.16); }

.ph-comments { display: grid; gap: 14px; width: 100%; }
.ph-comment-form, .ph-comment-login, .ph-comment-row { display: flex; gap: 12px; width: 100%; align-items: flex-start; }
.ph-comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
#tpl-comment-form {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	display: grid;
	gap: 10px;
}
.ph-comment-input {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 84px;
	height: 84px;
	border: 0;
	border-radius: 12px;
	background: #1c1b1a;
	padding: 12px 14px;
	resize: none;
	color: #fff;
	font: inherit;
	line-height: 1.45;
}
.ph-comment-form .tpl-comment-input.ph-comment-input {
	width: 100%;
}
.post-comment-btn-wrapper { display: flex; justify-content: flex-end; }
.ph-comment { padding-top: 8px; }
.ph-comment-meta { display: flex; gap: 8px; align-items: baseline; }
.ph-comment-meta span, .ph-comment-alert { color: var(--text-dim); font-size: 0.8rem; }
.ph-comment-actions { display: flex; gap: 10px; margin-top: 6px; }
.ph-comment-actions button, .ph-reply-actions button {
	background: none;
	border: 0;
	color: var(--accent-2);
	padding: 0;
	font-weight: 700;
}
.ph-reply-form { margin: 8px 0 8px 52px; display: grid; gap: 8px; }
.ph-reply-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tpl-comment-children { margin-inline-start: 52px; }

.ph-footer { background: #2a2827; border-top: 1px solid var(--line); margin-top: auto; max-width: 100%; overflow-x: clip; }
.ph-footer__inner { display: flex; flex-direction: column; gap: 22px; padding-block: 28px 20px; min-width: 0; max-width: 100%; }
.ph-footer__widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.ph-footer__widgets > *,
.ph-footer .widget,
.ph-ad,
.gd__sticky-ad { min-width: 0; max-width: 100%; }
.ph-footer iframe,
.ph-footer ins,
.ph-footer img,
.ph-footer .adsbygoogle,
.ph-ad iframe,
.ph-ad ins,
.widget iframe,
.widget ins,
.gd__sticky-ad iframe,
.gd__sticky-ad ins,
.gp__ad-rail iframe,
.gp__ad-rail ins {
	max-width: 100%;
}
.ph-footer__brand { float: inline-start; margin-inline-end: 16px; }
.ph-footer__logo img { width: 88px; height: 88px; object-fit: contain; border-radius: 18px; display: block; }
.ph-footer__desc { color: var(--text-muted); line-height: 1.65; }
.ph-footer__desc p { margin: 0 0 0.7em; }
.ph-footer__desc::after { content: ""; display: block; clear: both; }
.ph-footer__toolbar { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: space-between; align-items: center; }
.ph-footer__social, .ph-footer__links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ph-footer__links { gap: 10px 16px; }
.ph-footer-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	font-size: 0.82rem;
	font-weight: 700;
	transition: transform .2s ease, background .2s ease;
}
.ph-footer-social img { width: 22px; height: 22px; display: block; }
.ph-footer-social:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.ph-footer__links a { color: rgba(255,255,255,.78); font-weight: 650; }
.ph-footer__links a:hover { color: #fff; }
.ph-footer__legal { color: rgba(255,255,255,.45); font-size: 0.82rem; }
.ph-footer__legal p { margin: 0; }

.mbn {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 80;
	display: flex;
	justify-content: center;
	pointer-events: none;
}
.mbn__sheet {
	pointer-events: auto;
	display: flex;
	gap: 6px;
	padding: 8px;
	border-radius: 22px;
	background: #2c2a29ee;
	box-shadow: 0 12px 30px rgba(0,0,0,.45);
	backdrop-filter: blur(8px);
}
.mbn__btn {
	width: 74px;
	height: 58px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 2px;
	color: #d7d7d7;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
}
.mbn__btn.is-on { background: var(--accent); color: #0f1a24; }
.mbn__ico { width: 22px; height: 22px; display: grid; place-items: center; }
.mbn__ico svg { width: 20px; height: 20px; }
.mbn__ico img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ph-column { padding-bottom: 92px; }

/* Hide CMS cookie-consent plugin; theme #ph-cookie is the only consent UI. */
#cookieConsentBanner,
#cookieConsentBanner *,
.cookie-consent-msg,
.cookie-consent-actions,
.btn-cookie-accept,
.btn-cookie-decline {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.ph-cookie {
	position: fixed;
	left: 50%;
	bottom: 92px;
	transform: translateX(-50%);
	z-index: 12000;
	width: min(440px, calc(100% - 24px));
	background: #3a3837;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 18px 40px rgba(0,0,0,.45);
	text-align: center;
}
.ph-cookie p { margin: 0 0 12px; color: #eee; }
.ph-cookie a { color: var(--accent); font-weight: 700; }
.ph-cookie__actions { display: flex; justify-content: center; gap: 8px; }
.ph-cookie__btn {
	min-height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	border: 0;
	background: transparent;
	color: #fff;
	font-weight: 700;
}
.ph-cookie__btn--primary { background: var(--accent); color: #121212; }

/* PlayMoki SPA-style 404 (no background GIF). */
.nf { padding-bottom: 32px; position: relative; }
.nf--ready { animation: nf-fade-in .4s both; }
@keyframes nf-fade-in {
	0% { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}
.nf__hero {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(36px, 8vh, 72px) 12px 28px;
	position: relative;
	overflow: hidden;
}
.nf__code {
	letter-spacing: -.06em;
	color: rgba(255,255,255,.045);
	pointer-events: none;
	user-select: none;
	margin: 0;
	font-size: clamp(7rem, 22vw, 14rem);
	font-weight: 800;
	line-height: .85;
	position: absolute;
	top: 8%;
	left: 50%;
	transform: translateX(-50%);
}
.nf__title {
	letter-spacing: -.03em;
	max-width: 18ch;
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 4.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	position: relative;
}
.nf__sub {
	max-width: 34rem;
	color: var(--text-muted);
	margin: 0 0 28px;
	font-size: clamp(.95rem, 2vw, 1.1rem);
	line-height: 1.45;
	position: relative;
}
.nf__actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	position: relative;
}
.nf__random {
	appearance: none;
	cursor: pointer;
	border-radius: 999px;
	background: var(--accent);
	color: #111 !important;
	letter-spacing: -.01em;
	border: 0;
	min-height: 48px;
	padding: .85rem 1.7rem;
	font-size: 1.05rem;
	font-weight: 700;
	transition: transform .18s, box-shadow .18s, filter .18s;
	box-shadow: 0 8px 28px rgba(0,128,244,.35);
}
.nf__random:hover:not(:disabled) {
	filter: brightness(1.05);
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 10px 32px rgba(0,128,244,.42);
}
.nf__random:active:not(:disabled),
.nf__random.is-spinning { transform: scale(.97); }
.nf__random:disabled { opacity: .55; cursor: wait; }
.nf__home {
	color: var(--text-muted);
	text-underline-offset: 3px;
	font-size: .95rem;
	font-weight: 600;
	text-decoration: underline;
	transition: color .15s;
}
.nf__home:hover { color: var(--text); }
.nf__hint {
	color: var(--text-dim);
	margin: 0;
	font-size: .9rem;
	position: relative;
}
.nf__picks { margin-top: 8px; }
.nf__picks-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
}
.nf__picks-title {
	letter-spacing: -.02em;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
}
.nf__reshuffle {
	appearance: none;
	color: var(--accent);
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 4px 0;
	font-size: .9rem;
	font-weight: 600;
}
.nf__reshuffle:hover {
	text-underline-offset: 3px;
	text-decoration: underline;
}
.nf__card-wrap {
	opacity: 0;
	animation: nf-card-in .4s forwards;
	transform: translateY(8px);
	min-width: 0;
}
@keyframes nf-card-in {
	to { opacity: 1; transform: none; }
}
.nf__error {
	color: var(--text-muted);
	margin: 0;
	padding: 18px 0;
	font-size: .95rem;
}
.nf__error-link { color: var(--accent) !important; font-weight: 600; }
@media (max-width: 599px) {
	.nf__hero { padding-top: 28px; padding-bottom: 20px; }
	.nf__random { width: min(100%, 320px); }
	.nf__actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.nf--ready, .nf__random, .nf__card-wrap {
		transition: none;
		animation: none;
		opacity: 1;
		transform: none;
	}
}

@media (hover: hover) and (pointer: fine) {
	.ph-card:hover .ph-card__media img { transform: scale(1.04); }
	.ph-card:hover .ph-card__hover-name { opacity: 1; transform: none; }
	.ph-card:hover .ph-card__rating { opacity: 0; }
	.ph-card.is-video-playing:hover .ph-card__media img { transform: none; }
}
@media (hover: none), (pointer: coarse) {
	.ph-card__hover-name { display: none; }
	.ph-card__video { display: none !important; }
}

@media (max-width: 899px) {
	.ph-header__menu { display: flex; }
	.ph-sidebar-rail {
		position: fixed;
		inset: 0;
		width: auto;
		z-index: 140;
		pointer-events: none;
	}
	.ph-sidebar-rail.is-open { pointer-events: auto; }
	.ph-sidebar {
		width: min(86vw, 320px);
		transform: translateX(-105%);
		transition: transform 0.2s ease;
		top: 0;
		z-index: 141;
		background: #2e2c2b;
		padding-top: 8px;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}
	[dir="rtl"] .ph-sidebar { transform: translateX(105%); }
	.ph-sidebar-rail.is-open .ph-sidebar { transform: none; box-shadow: none; width: min(86vw, 320px); }
	.ph-sidebar__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		padding: 10px 12px 4px;
		flex-shrink: 0;
		position: sticky;
		top: 0;
		z-index: 2;
		background: #2e2c2b;
	}
	.ph-sidebar__brand {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-width: 0;
		flex: 1 1 auto;
	}
	.ph-sidebar__brand-mark {
		display: inline-flex;
		flex-shrink: 0;
	}
	.ph-sidebar__brand-mark, .ph-sidebar__brand-mark img { width: 32px; height: 32px; }
	.ph-sidebar__brand-name {
		font-size: 1rem;
		font-weight: 800;
		letter-spacing: -0.02em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		line-height: 1.2;
	}
	.ph-sidebar__close {
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 10px;
		background: rgba(255,255,255,.08);
		color: #fff;
	}
	.ph-sidebar__label,
	.ph-sidebar__info-text,
	.ph-sidebar__copy,
	.ph-sidebar__lang-menu,
	.ph-sidebar__new-badge { opacity: 1; pointer-events: auto; display: inline; }
	.ph-sidebar__new-badge { display: inline-block; }
	.ph-sidebar__social { display: flex; opacity: 1; pointer-events: auto; }
	.ph-sidebar__lang-collapsed { display: none; }
	.ph-sidebar__nav {
		width: auto;
		flex: 1 1 auto;
		min-height: 0;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.ph-sidebar__nav::-webkit-scrollbar { display: none; }
	.ph-sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 139; }
	.ph-sidebar-backdrop.is-open { display: block; }
	.ph-header__search-mobile-wrap {
		overflow: hidden;
		max-height: 72px;
		opacity: 1;
		margin: 0 12px 12px;
		transition: max-height .18s ease, opacity .15s ease, margin .18s ease;
	}
	.ph-header.is-search-hidden .ph-header__search-mobile-wrap {
		max-height: 0;
		opacity: 0;
		margin: 0 12px 0;
		pointer-events: none;
	}
	.ph-header.is-search-hidden + .ph-header-spacer,
	.ph-header-spacer.is-search-hidden { height: var(--header-h); }
}

@media (min-width: 700px) {
	:root { --gutter: 16px; --grid-gap: 12px; }
	.games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ph-card__media { aspect-ratio: 16 / 9; }
	.ph-card__title { display: none; }
	.ph-card__rating { color: #fff; background: var(--rating-bg); }
	.section-title { font-size: 1.35rem; }
	.cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.ph-header__search-desktop-wrap { display: block; }
	.ph-header__search-mobile-wrap { display: none; }
	.ph-header-spacer { height: var(--header-h); }
	.ph-column { padding-bottom: 0; }
	.mbn { display: none; }
	.ph-cookie { bottom: 24px; }
	.ph-layout.has-side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
	.ph-side { position: sticky; top: calc(var(--header-h) + 16px); }
	.ph-footer__widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	:root { --gutter: 20px; --grid-gap: 14px; }
	.games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	.games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
	.games-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
	.ph-header__name { display: none; }
	.ph-header__login { padding: 0 10px; font-size: 0.78rem; }
}
