/*
Theme Name:  GameHub Crazy
Theme URI:   https://github.com/naresh1290/Gamehub
Description: CrazyGames-style dark sidebar fork of GameHub 1.5.1 for the crazygames brand sites (no self-updater). A dynamic, white-label games-portal theme with a CrazyGames/Poki-style sidebar layout, instant search, category pages, single-game player, and an HTML sitemap — powered by the GameHub Engine plugin.
Version:     1.5.1-crazy.1
Author:      GameHub
License:     GPL-2.0-or-later
Text Domain: gamehub
Requires at least: 6.2
Requires PHP: 7.4
*/

:root {
	--gh-bg: #0f1115;
	--gh-surface: #181b21;
	--gh-surface-2: #21252d;
	--gh-text: #eef1f5;
	--gh-muted: #9aa4b2;
	--gh-border: #262b34;
	--gh-accent: #7c4dff;
	--gh-accent-contrast: #ffffff;
	--gh-like: #22c55e;
	--gh-dislike: #ef4444;
	--gh-star: #f59e0b;
	--gh-radius: 16px;
	--gh-radius-sm: 12px;
	--gh-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
	--gh-sidebar-w: 250px;
	--gh-rail-w: 72px;
	--gh-maxw: 1400px;

	/* Sidebar keeps a constant dark look in both themes (CrazyGames style). */
	--gh-side-bg: #12141a;
	--gh-side-text: #d6dbe4;
	--gh-side-muted: #8a93a3;
	--gh-side-hover: #1e222b;
	--gh-side-active: #2a2140;
}
/* The site is dark by default and ignores the browser's color-scheme. */
:root { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--gh-bg);
	color: var(--gh-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* App shell ------------------------------------------------------------ */
.gh-app { min-height: 100vh; }
.gh-shell { margin-left: var(--gh-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }

/* Sidebar -------------------------------------------------------------- */
.gh-sidebar {
	position: fixed; left: 0; top: 0; bottom: 0; width: var(--gh-sidebar-w);
	background: var(--gh-side-bg); color: var(--gh-side-text);
	overflow-y: auto; overflow-x: hidden; z-index: 60;
	border-right: 1px solid rgba(255,255,255,.05);
	scrollbar-width: thin;
}
.gh-sidebar::-webkit-scrollbar { width: 8px; }
.gh-sidebar::-webkit-scrollbar-thumb { background: #2a2f3a; border-radius: 8px; }
.gh-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; background: var(--gh-side-bg); z-index: 2; }
.gh-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.gh-logo img { height: 34px; width: auto; }
.gh-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gh-accent); display: grid; place-items: center; font-size: 19px; }
.gh-logo-icon { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.gh-sidebar-close { display: none; background: none; border: 0; color: var(--gh-side-muted); font-size: 20px; cursor: pointer; }

.gh-nav { padding: 6px 10px 24px; display: flex; flex-direction: column; }
.gh-nav-item {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
	color: var(--gh-side-text); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.gh-nav-item:hover { background: var(--gh-side-hover); }
.gh-nav-item.is-active { background: var(--gh-side-active); color: #fff; }
.gh-nav-ico { font-size: 17px; width: 22px; text-align: center; }
.gh-nav-sep { height: 1px; background: rgba(255,255,255,.07); margin: 12px 8px; }
.gh-nav-label { color: var(--gh-side-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px 8px; font-weight: 700; }
.gh-nav-cat { font-weight: 500; padding: 8px 12px; }
.gh-cat-ico { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--gh-accent), #4f46e5); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.gh-cat-ico svg { width: 15px; height: 15px; display: block; }
.gh-nav-cat-name { overflow: hidden; text-overflow: ellipsis; }
.gh-nav-foot { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.gh-nav-foot-link { color: var(--gh-side-muted); font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.gh-nav-foot-link:hover { color: #fff; background: var(--gh-side-hover); }

.gh-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }

/* Top bar -------------------------------------------------------------- */
.gh-topbar {
	position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 14px;
	padding: 0 20px; background: color-mix(in srgb, var(--gh-bg) 85%, transparent);
	backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--gh-border);
}
.gh-menu-btn, .gh-topbar-logo { display: none; background: none; border: 0; color: var(--gh-text); cursor: pointer; align-items: center; }
.gh-search { position: relative; flex: 1; max-width: 720px; margin: 0 auto; }
.gh-search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .55; }
.gh-search-input {
	width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--gh-border);
	background: var(--gh-surface); color: var(--gh-text); padding: 0 18px 0 46px; font-size: 15px; outline: none;
}
.gh-search-input:focus { border-color: var(--gh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gh-accent) 25%, transparent); }
.gh-search-panel {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--gh-surface);
	border: 1px solid var(--gh-border); border-radius: 14px; box-shadow: var(--gh-shadow);
	overflow: hidden; z-index: 60; max-height: 70vh; overflow-y: auto;
}
.gh-search-group-label { padding: 10px 16px 4px; color: var(--gh-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.gh-search-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; cursor: pointer; }
.gh-search-row:hover, .gh-search-row.is-active { background: var(--gh-surface-2); }
.gh-search-row img, .gh-search-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--gh-surface-2); flex: 0 0 auto; }
.gh-search-thumb { display: grid; place-items: center; font-weight: 800; color: var(--gh-accent); }
.gh-search-row-name { font-weight: 600; font-size: 15px; display: block; }
.gh-search-row-sub { color: var(--gh-muted); font-size: 12px; display: block; margin-top: 1px; }
.gh-search-empty { padding: 18px 16px; color: var(--gh-muted); }

/* Main / container ----------------------------------------------------- */
.gh-main { flex: 1; }
.gh-container { max-width: var(--gh-maxw); margin: 0 auto; padding: 0 24px; }

/* Hero ----------------------------------------------------------------- */
.gh-hero { padding: 28px 0 4px; }
.gh-hero h1 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.03em; }
.gh-hero p { margin: 0; color: var(--gh-muted); font-size: 16px; }

/* Sections + grid ------------------------------------------------------ */
.gh-section { padding: 22px 0; }
/* Homepage: tighter spacing between the category rows. */
body.home .gh-main { padding-top: 10px; }
body.home .gh-section { padding: 8px 0; }
body.home .gh-section-head { margin-bottom: 10px; }
.gh-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.gh-section-head h1, .gh-section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; font-weight: 800; }
.gh-section-head a { color: var(--gh-accent); font-weight: 600; font-size: 14px; }

.gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 18px; }

/* Horizontal scroller (Recently played) — small icons, single row. */
.gh-hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--gh-border) transparent; }
.gh-hscroll::-webkit-scrollbar { height: 8px; }
.gh-hscroll::-webkit-scrollbar-thumb { background: var(--gh-border); border-radius: 8px; }
.gh-hscroll .gh-card { flex: 0 0 104px; scroll-snap-align: start; }
.gh-hscroll .gh-card-body { padding: 6px 8px 8px; }
.gh-hscroll .gh-card-title { font-size: 12px; }
.gh-hscroll .gh-card-meta { display: none; }
@media (max-width: 640px) { .gh-hscroll .gh-card { flex-basis: 88px; } }

.gh-card { background: var(--gh-surface); border: 1px solid var(--gh-border); border-radius: var(--gh-radius); overflow: hidden; box-shadow: var(--gh-shadow); transition: transform .16s, box-shadow .16s; }
.gh-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.gh-card-thumb { aspect-ratio: 1 / 1; background: var(--gh-surface-2); position: relative; }
.gh-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gh-card-body { padding: 9px 11px 11px; }
.gh-card-title { font-size: 13.5px; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-card-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--gh-muted); font-size: 12px; }
.gh-card-meta .gh-star { color: var(--gh-star); }
.gh-badge { position: absolute; top: 8px; left: 8px; background: var(--gh-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* Breadcrumbs ---------------------------------------------------------- */
.gh-crumbs { margin: 22px 0 14px; }
.gh-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; margin: 0; font-size: 13px; }
.gh-crumbs li { display: flex; align-items: center; gap: 6px; }
.gh-crumbs li:not(:first-child)::before { content: "›"; color: var(--gh-muted); opacity: .6; }
.gh-crumbs a { color: var(--gh-muted); }
.gh-crumbs a:hover { color: var(--gh-accent); }
.gh-crumbs span { color: var(--gh-text); font-weight: 600; }

/* Player page ---------------------------------------------------------- */
.gh-player-wrap { padding: 22px 0 40px; }
/* Player surrounded by a single continuous list of game tiles.
   One dense grid: the player spans a block and tiles fill every cell around
   and below it — no separate sections, no blank space, fully responsive. */
.gh-play-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 12px; }
/* Every game tile is a 1:1 (square) icon. The player spans a block of the same
   square grid, so tiles surround it with no cropping anywhere. */
.gh-play-top {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 14px;
	grid-auto-flow: dense;
}
.gh-play-top > .gh-card { display: block; height: auto; }
.gh-play-top > .gh-card .gh-card-thumb { aspect-ratio: 1 / 1; height: auto; flex: none; }
.gh-play-top > .gh-card .gh-card-body { display: none; }
.gh-play-center { grid-column: 1 / -1; aspect-ratio: 16 / 9; min-width: 0; }
.gh-play-center .gh-player { height: 100%; aspect-ratio: auto; }
@media (min-width: 1025px) {
	.gh-play-top { grid-template-columns: repeat(9, 1fr); }
	/* Keep the player a true 16:9 regardless of how many surrounding tiles the
	   grid has — align-self:start stops it stretching to fill collapsed rows
	   when there are few related games (which otherwise letterboxes it). */
	.gh-play-center { grid-column: 2 / span 7; grid-row: 1 / span 4; aspect-ratio: 16 / 9; align-self: start; }
}
@media (min-width: 1300px) {
	.gh-play-top { grid-template-columns: repeat(11, 1fr); }
	.gh-play-center { grid-column: 3 / span 7; grid-row: 1 / span 4; aspect-ratio: 16 / 9; align-self: start; }
}
.gh-game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.gh-game-head img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.gh-game-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.gh-game-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.gh-game-cats a { font-size: 13px; color: var(--gh-muted); background: var(--gh-surface-2); padding: 3px 10px; border-radius: 999px; }
.gh-player { position: relative; display: flex; flex-direction: column; background: #000; border-radius: var(--gh-radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--gh-shadow); }
.gh-player-stage { position: relative; flex: 1; min-height: 0; }
.gh-player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gh-player-loader { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #0b0d12; }
.gh-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gh-loader-icon { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; box-shadow: 0 10px 34px rgba(0,0,0,.55); }
.gh-spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255,255,255,.16); border-top-color: var(--gh-accent); animation: gh-spin .8s linear infinite; }
@keyframes gh-spin { to { transform: rotate(360deg); } }
.gh-player-launch { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: center; cursor: pointer; }
.gh-player-launch::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8,10,15,.55); backdrop-filter: blur(12px); }
/* The crisp game image is shown 1:1 (never cropped), over a blurred backdrop. */
.gh-launch-icon { grid-area: 1 / 1; z-index: 2; height: min(64%, 220px); width: auto; max-width: 80%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.gh-play-btn { grid-area: 1 / 1; position: relative; z-index: 3; width: 72px; height: 72px; border-radius: 50%; background: var(--gh-accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: transform .15s; }
.gh-player-launch:hover .gh-play-btn { transform: scale(1.06); }

.gh-player-bar { flex: 0 0 46px; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 12px; background: #14161d; color: #fff; }
.gh-pb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gh-pb-left img { border-radius: 7px; object-fit: cover; }
.gh-pb-name { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-pb-right { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.gh-pb-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.09); border: 0; color: #fff; border-radius: 9px; padding: 8px 11px; cursor: pointer; font-weight: 700; font-size: 13px; line-height: 1; }
.gh-pb-btn:hover { background: rgba(255,255,255,.18); }
.gh-pb-btn.is-active.gh-like { color: var(--gh-like); }
.gh-pb-btn.is-active.gh-dislike { color: var(--gh-dislike); }

.gh-fs-bar { display: none; flex: 0 0 40px; height: 40px; align-items: center; gap: 12px; background: #000; color: #fff; padding: 0 12px; }
.gh-fs-close { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 13px; flex: 0 0 auto; }
.gh-fs-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-player.is-immersive { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
.gh-player.is-immersive .gh-fs-bar { display: flex; }
.gh-player.is-immersive .gh-player-bar { display: none; }
.gh-player.is-immersive .gh-player-launch { display: none; }
body.gh-noscroll { overflow: hidden; }

/* Confirm-before-close dialog (shown over the fullscreen game). */
.gh-confirm { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); padding: 20px; }
.gh-confirm-box { background: var(--gh-surface); border: 1px solid var(--gh-border); border-radius: 16px; padding: 22px 24px; max-width: 340px; width: 100%; text-align: center; box-shadow: var(--gh-shadow); }
.gh-confirm-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--gh-text); }
.gh-confirm-sub { margin: 0 0 18px; color: var(--gh-muted); font-size: 14px; }
.gh-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.gh-confirm-actions button { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: 14px; }
.gh-confirm-keep { background: var(--gh-surface-2); color: var(--gh-text); }
.gh-confirm-close { background: var(--gh-dislike); color: #fff; }

.gh-player-meta { display: flex; align-items: center; gap: 16px; margin: 14px 0; flex-wrap: wrap; }
.gh-rating-static { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-star); font-weight: 700; }
.gh-rating-note { color: var(--gh-muted); font-weight: 500; font-size: 13px; }
.gh-game-desc { max-width: 820px; color: var(--gh-text); }
.gh-game-desc p { color: var(--gh-muted); }

/* Content / SEO section ------------------------------------------------ */
.gh-content { padding: 10px 0 34px; }
.gh-content-inner { max-width: 860px; color: var(--gh-muted); }
.gh-page { max-width: 860px; margin: 0 auto; padding: 10px 0 30px; }
.gh-page .gh-section-head h1 { font-size: clamp(24px, 3vw, 32px); }
.gh-content-inner h1 { color: var(--gh-text); letter-spacing: -.02em; font-size: 26px; margin: 8px 0 12px; }
.gh-content-inner h2 { color: var(--gh-text); letter-spacing: -.02em; font-size: 21px; margin: 24px 0 10px; }
.gh-content-inner h3 { color: var(--gh-text); letter-spacing: -.01em; font-size: 17px; margin: 18px 0 8px; }
.gh-content-inner p { margin: 0 0 12px; }
.gh-content-inner a { color: var(--gh-accent); }
.gh-content-inner a:hover { text-decoration: underline; }
.gh-content-inner ul, .gh-content-inner ol { margin: 0 0 14px; padding-left: 20px; }
.gh-content-inner li { margin: 5px 0; }
.gh-content-inner ul { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gh-content-inner ol { list-style: decimal; }
.gh-content-inner ul li { background: var(--gh-surface); border: 1px solid var(--gh-border); border-radius: 999px; padding: 6px 14px; margin: 0; }
.gh-content-inner ul li a { color: var(--gh-text); font-weight: 600; }

/* Sitemap -------------------------------------------------------------- */
.gh-sitemap h2 { font-size: 19px; margin: 26px 0 10px; }
.gh-sitemap ul { columns: 3; column-gap: 30px; list-style: none; padding: 0; }
.gh-sitemap li { margin: 0 0 6px; break-inside: avoid; }
.gh-sitemap a:hover { color: var(--gh-accent); }
@media (max-width: 860px){ .gh-sitemap ul { columns: 2; } }
@media (max-width: 560px){ .gh-sitemap ul { columns: 1; } }

/* Footer --------------------------------------------------------------- */
.gh-footer { border-top: 1px solid var(--gh-border); background: var(--gh-surface); margin-top: auto; }
.gh-footer-inner { max-width: var(--gh-maxw); margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--gh-muted); font-size: 14px; }
.gh-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.gh-footer-links a:hover { color: var(--gh-accent); }

/* Pagination ----------------------------------------------------------- */
.gh-pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.gh-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gh-border); background: var(--gh-surface); font-weight: 600; }
.gh-pagination .page-numbers.current { background: var(--gh-accent); color: #fff; border-color: transparent; }
.gh-loadmore-wrap { display: flex; justify-content: center; margin: 30px 0; }
.gh-loadmore { padding: 12px 30px; border-radius: 12px; border: 1px solid var(--gh-border); background: var(--gh-surface); color: var(--gh-text); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s; }
.gh-loadmore:hover { background: var(--gh-surface-2); border-color: var(--gh-accent); }
.gh-loadmore.is-loading { opacity: .55; pointer-events: none; }

.gh-empty { text-align: center; color: var(--gh-muted); padding: 56px 20px; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
	.gh-shell { margin-left: 0; }
	.gh-sidebar { transform: translateX(-100%); transition: transform .22s ease; }
	.gh-app.gh-sidebar-open .gh-sidebar { transform: translateX(0); }
	.gh-app.gh-sidebar-open .gh-sidebar-overlay { display: block; }
	.gh-sidebar-close { display: block; }
	.gh-menu-btn, .gh-topbar-logo { display: inline-flex; }
	.gh-search { margin: 0; }
}
@media (max-width: 640px) {
	.gh-container { padding: 0 14px; }
}

/* Tablet and below: compact icon-only tiles so more games fit per screen. */
@media (max-width: 1024px) {
	.gh-grid { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 14px; }
	.gh-card-body { display: none; }
	.gh-hscroll .gh-card { flex-basis: 104px; }
}
@media (max-width: 600px) {
	.gh-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
	.gh-play-top { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
}
/* Mobile actions row (below the poster) — like / dislike / share only. */
.gh-mobile-actions { display: none; }
.gh-mb-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gh-surface); border: 1px solid var(--gh-border); color: var(--gh-text); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; }
.gh-mb-btn:hover { background: var(--gh-surface-2); }
.gh-mb-btn.is-active.gh-like { color: var(--gh-like); border-color: var(--gh-like); }
.gh-mb-btn.is-active.gh-dislike { color: var(--gh-dislike); border-color: var(--gh-dislike); }

/* Phones (below 16:9): square poster + separate actions row, no in-frame bar. */
@media (max-width: 767px) {
	.gh-play-center { aspect-ratio: 5 / 4; width: min(100%, 440px); justify-self: center; }
	.gh-player-bar { display: none; }
	.gh-mobile-actions { display: flex; grid-column: 1 / -1; justify-content: center; gap: 10px; padding: 8px 0 4px; }
}
/* Desktop: collapsed icon rail that expands on hover, overlaying content. */
@media (min-width: 1001px) {
	.gh-sidebar { width: var(--gh-rail-w); white-space: nowrap; transition: width .18s ease; }
	.gh-shell { margin-left: var(--gh-rail-w); }
	.gh-sidebar:hover { width: var(--gh-sidebar-w); box-shadow: 8px 0 34px rgba(0,0,0,.5); }
	.gh-sidebar:not(:hover) .gh-nav-txt,
	.gh-sidebar:not(:hover) .gh-nav-cat-name,
	.gh-sidebar:not(:hover) .gh-logo-text,
	.gh-sidebar:not(:hover) .gh-nav-label,
	.gh-sidebar:not(:hover) .gh-nav-foot { display: none; }
	.gh-sidebar:not(:hover) .gh-nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
	.gh-sidebar:not(:hover) .gh-sidebar-head { justify-content: center; padding-left: 0; padding-right: 0; }
	.gh-sidebar:not(:hover) .gh-nav-sep { margin: 10px 16px; }
}

/* Crazy collections chips (footer) + all-games link */
.gh-footer .gh-collections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid var(--gh-border); }
.gh-footer .gh-collections-label { font-weight: 800; font-size: 12px; color: var(--gh-muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .06em; }
.gh-footer .gh-collections a { padding: 7px 12px; border-radius: 999px; background: var(--gh-surface-2); font-size: 13px; font-weight: 700; color: var(--gh-text); text-decoration: none; }
.gh-footer .gh-collections a:hover { background: var(--gh-accent); color: var(--gh-accent-contrast); }
.gh-all-link { margin: 18px 0 0; font-weight: 700; }
