/* ==========================================================================
   LiAPK
   Colour tokens are overridden at runtime by the Customizer (see
   liapk_css_variables() in functions.php). The values below are the defaults.
   ========================================================================== */

:root {
	--c-primary: #3949AB;
	--c-primary-hover: #303F9F;
	--c-accent: #63AA1F;
	--c-header: #3949AB;
	--c-body-bg: #FFFFFF;
	--c-footer-bg: #F5F5F7;

	--c-surface: #FFFFFF;
	--c-text: #1D1D1F;
	--c-text-muted: #6E6E73;
	--c-border: #E8E8ED;
	--c-panel: #F5F5F7;

	--c-telegram: #29A9EB;
	--c-whatsapp: #25D366;
	--c-star: #F5A623;

	--radius-sm: 4px;
	--radius: 8px;
	--radius-lg: 12px;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
	--shadow: 0 4px 16px rgba(0, 0, 0, .1);

	--wrap: 1180px;
	--gap: 16px;
	--header-h: 50px;

	--font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* The source design is light-only, so the theme commits to one palette rather
   than following prefers-color-scheme. Colours are painted explicitly on body
   below so a dark-mode browser cannot bleed its own background through. */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-body-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

/* No underlines anywhere, including on hover. Links are distinguished by
   colour; underline is reserved for focus-visible, which needs to stay. */
a { color: var(--c-primary); text-decoration: none; }
a:hover,
a:focus,
a:active { text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gap);
}

.icon { flex: 0 0 auto; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100;
	width: auto; height: auto; clip: auto; clip-path: none;
	padding: 10px 16px; background: var(--c-surface);
	border-radius: var(--radius); box-shadow: var(--shadow);
}

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--c-header);
	color: #fff;
}

.header-inner {
	display: flex; align-items: center; gap: 20px;
	min-height: var(--header-h);
}

.site-brand { flex: 0 0 auto; }

.site-title {
	margin: 0;
	font-size: 1.375rem; font-weight: 800;
	letter-spacing: -.01em; text-transform: uppercase;
}
.site-title a,
.site-header .custom-logo-link { color: #fff; }
.site-title a:hover { text-decoration: none; opacity: .92; }

.custom-logo { max-height: 34px; width: auto; }

.primary-nav { flex: 1 1 auto; }

.nav-list {
	display: flex; align-items: center; gap: 2px;
	margin: 0; padding: 0; list-style: none;
}

.nav-list a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px;
	color: #fff;
	font-weight: 700; font-size: .875rem;
	letter-spacing: .03em; text-transform: uppercase;
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a {
	background: rgba(255, 255, 255, .15);
	text-decoration: none;
}

.nav-list li { position: relative; }

.nav-list .sub-menu {
	display: none;
	position: absolute; top: 100%; left: 0; z-index: 5;
	min-width: 190px; margin: 0; padding: 6px;
	list-style: none;
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a { color: var(--c-text); text-transform: none; letter-spacing: 0; font-weight: 500; }
.nav-list .sub-menu a:hover { background: var(--c-panel); }

.search-toggle {
	display: grid; place-items: center;
	width: 38px; height: 38px; flex: 0 0 38px;
	margin-left: auto;
	background: none; border: 0; border-radius: 50%;
	color: #fff; cursor: pointer;
}
.search-toggle:hover { background: rgba(255, 255, 255, .15); }

.header-search {
	position: absolute; top: var(--header-h); right: var(--gap); z-index: 20;
	width: min(340px, calc(100vw - var(--gap) * 2));
}
.header-search[hidden] { display: none; }

/* Scoped to the header. get_search_form() also renders .search-form on 404 and
   empty-results pages, and these styles are wrong there. */
.header-search .search-form {
	display: flex; align-items: center; gap: 4px;
	padding: 6px 6px 6px 14px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 999px;
	box-shadow: var(--shadow);
}

.header-search .search-form input[type="search"] {
	flex: 1 1 auto; min-width: 0;
	background: none; border: 0; outline: 0;
	color: var(--c-text); font: inherit; font-size: .9375rem;
}

.header-search .search-form button {
	display: grid; place-items: center;
	width: 32px; height: 32px; flex: 0 0 32px;
	background: var(--c-primary); border: 0; border-radius: 50%;
	color: #fff; cursor: pointer;
}
.header-search .search-form button:hover { background: var(--c-primary-hover); }

/* Standalone search form: 404, empty search results */
.no-results .search-form {
	display: flex; gap: 8px; justify-content: center;
	max-width: 460px; margin: 18px auto 0;
}

.no-results .search-form label { flex: 1 1 auto; margin: 0; }

.no-results .search-form input[type="search"] {
	width: 100%; padding: 11px 14px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font: inherit; font-size: .9375rem;
	color: var(--c-text);
}

.no-results .search-form input[type="submit"],
.no-results .search-form button {
	flex: 0 0 auto;
	padding: 11px 22px;
	background: var(--c-primary); color: #fff;
	border: 0; border-radius: var(--radius-sm);
	font: inherit; font-size: .9375rem; font-weight: 600;
	cursor: pointer;
}
.no-results .search-form input[type="submit"]:hover,
.no-results .search-form button:hover { background: var(--c-primary-hover); }

.nav-toggle {
	display: none;
	width: 38px; height: 38px; flex: 0 0 38px;
	background: none; border: 0; border-radius: var(--radius-sm);
	color: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	position: absolute; left: 9px;
	width: 20px; height: 2px;
	background: currentColor; border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 18px; }
.nav-toggle-bar::before { content: ""; top: -6px; left: 0; }
.nav-toggle-bar::after { content: ""; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.site-main { padding: 22px 0 40px; }

.section { margin-bottom: 34px; }

.section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 14px;
}

.section-title {
	margin: 0;
	font-size: 1.125rem; font-weight: 700;
	letter-spacing: .01em; text-transform: uppercase;
}

.section-more {
	flex: 0 0 auto;
	padding: 6px 13px;
	background: var(--c-primary);
	color: #fff;
	border-radius: var(--radius-sm);
	font-size: .75rem; font-weight: 700;
	letter-spacing: .05em; text-transform: uppercase;
}
.section-more:hover { background: var(--c-primary-hover); text-decoration: none; }

/* App grid ---------------------------------------------------------------- */

.app-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.app-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	transition: box-shadow .15s ease, border-color .15s ease;
}
.app-card:hover { border-color: transparent; box-shadow: var(--shadow); }

.app-card-link {
	display: flex; align-items: center; gap: 12px;
	height: 100%;
	padding: 11px 12px;
	color: inherit;
}
.app-card-link:hover { text-decoration: none; }

.app-card-icon {
	flex: 0 0 auto;
	width: 48px; height: 48px;
	border-radius: 11px;
	object-fit: cover;
	background: var(--c-panel);
}

.app-card-body {
	min-width: 0;
	display: flex; flex-direction: column; justify-content: center;
	min-height: 48px;
}

.app-card-name {
	font-weight: 600; font-size: .9375rem; line-height: 1.35;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.app-card-version,
.app-card-mod {
	font-size: .8125rem; line-height: 1.45;
	color: var(--c-text-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* News grid --------------------------------------------------------------- */

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.news-card {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-panel);
}

.news-card-link { display: block; position: relative; color: #fff; }
.news-card-link:hover { text-decoration: none; }

.news-card-img {
	display: block; width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.news-card-img--empty {
	background: linear-gradient(135deg, var(--c-primary), #1E88E5);
}

.news-card-link::after {
	content: "";
	position: absolute; inset: auto 0 0 0; height: 60%;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
}

.news-card-title {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: 14px 16px;
	font-size: .9375rem; font-weight: 700; line-height: 1.35;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* Home panels ------------------------------------------------------------- */

.home-intro,
.tg-banner {
	border-radius: var(--radius-lg);
	margin-bottom: 20px;
}

.home-intro {
	background: var(--c-panel);
	padding: 22px 24px;
}

.home-intro-title {
	margin: 0 0 8px;
	font-size: 1rem; font-weight: 700; text-transform: uppercase;
}

.home-intro-text { color: var(--c-text-muted); font-size: .9375rem; }
.home-intro-text p { margin: 0 0 .7em; }
.home-intro-text p:last-child { margin-bottom: 0; }

.home-intro-more { display: inline-block; margin-top: 8px; font-size: .9375rem; }

.tg-banner {
	position: relative; overflow: hidden;
	display: flex; align-items: center; gap: 20px;
	padding: 22px 24px;
	background: linear-gradient(90deg, #EAF4FD, #DCEEFB);
	color: #1D1D1F;
}

.tg-banner-text { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; z-index: 1; }
.tg-banner-title { font-size: 1.05rem; font-weight: 700; }
.tg-banner-sub { color: #5A6672; font-size: .9375rem; }

.tg-banner-btn {
	z-index: 1; flex: 0 0 auto; margin-left: auto;
	padding: 7px 16px;
	background: var(--c-primary); color: #fff;
	border-radius: var(--radius-sm);
	font-size: .75rem; font-weight: 700;
}
.tg-banner-btn:hover { background: var(--c-primary-hover); text-decoration: none; }

.tg-banner-mark {
	position: absolute; right: 90px; top: 50%;
	width: 150px; height: 150px;
	transform: translateY(-50%) rotate(-12deg);
	color: rgba(41, 169, 235, .18);
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Single app page
   -------------------------------------------------------------------------- */

/* Full wrap width, matching the source design -- no narrower reading column. */
.layout-single { max-width: var(--wrap); }

.entry {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 14px;
}

.breadcrumbs {
	margin-bottom: 14px; padding: 11px 16px;
	background: var(--c-panel);
	border-radius: var(--radius);
	font-size: .875rem; color: var(--c-text-muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; opacity: .5; }
.breadcrumbs a { color: var(--c-primary); }

.app-header { display: flex; gap: 16px; align-items: center; }

.app-header-icon {
	flex: 0 0 auto;
	width: 72px; height: 72px;
	border-radius: 16px;
	object-fit: cover;
	background: var(--c-panel);
}

.app-header-meta { min-width: 0; }

.entry-title { margin: 0 0 5px; font-size: 1.25rem; font-weight: 700; }

.app-publisher { margin: 0 0 4px; font-size: .9375rem; }

.app-rating { display: flex; align-items: center; gap: 8px; margin: 0; }

/* Two layers of real star shapes: a grey row, and a gold row clipped to the
   average. A 4.3 shows four gold stars and a third of the fifth. */
.stars {
	--rating: 0%;
	position: relative;
	display: inline-flex;
	line-height: 0;
}

.stars-base,
.stars-fill { display: inline-flex; gap: 1px; }
.stars-base { color: var(--c-border); }

.stars-fill {
	position: absolute; inset: 0;
	width: var(--rating);
	overflow: hidden;
	color: var(--c-star);
	pointer-events: none;
}

/* Vote buttons sit invisibly over the stars */
.stars-vote { position: absolute; inset: 0; display: flex; }

.star-btn {
	flex: 1 1 0;
	padding: 0; margin: 0;
	background: none; border: 0;
	cursor: pointer;
}

.app-rating[data-voted] .stars-vote { display: none; }

/* Preview the score being hovered, without touching the stored average */
.stars-vote:hover ~ .stars-fill,
.stars:has(.star-btn:hover) .stars-fill { color: var(--c-star); }

.stars-vote:hover { --hover: 1; }

.rating-msg { font-size: .8125rem; color: var(--c-text-muted); }

.rating-text { font-size: .875rem; color: var(--c-text-muted); }

/* Spec table -------------------------------------------------------------- */

.entry-specs { padding: 6px 20px; }

.app-specs { width: 100%; border-collapse: collapse; font-size: .9375rem; }

/* No row dividers -- the source design separates rows by spacing alone. */
.app-specs th,
.app-specs td {
	padding: 15px 4px;
	text-align: left;
	vertical-align: middle;
	border: 0;
}

.app-specs th {
	width: 46%;
	font-weight: 500;
	color: var(--c-text);
}
.app-specs th .icon { color: var(--c-primary); margin-right: 14px; }
.app-specs th span { vertical-align: middle; }

.app-specs td { color: var(--c-text); }

/* The badge is an inline SVG now, so the anchor only has to sit out of the way. */
.play-badge { display: inline-block; line-height: 0; }
.play-badge:hover { opacity: .85; }
.play-badge-svg { display: block; height: 40px; width: auto; }

/* Download ---------------------------------------------------------------- */

.download-wrap { margin-bottom: 14px; }

.download-notice {
	margin-bottom: 8px; padding: 10px 14px;
	background: var(--c-panel);
	border-radius: var(--radius);
	font-size: .875rem; color: var(--c-text-muted);
}
.download-notice p { margin: 0; }

.btn-download {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	width: 100%; padding: 13px 20px; margin: 0;
	background: var(--c-primary); color: #fff;
	border: 0; border-radius: var(--radius-sm);
	font-size: 1rem; font-weight: 600;
}
.btn-download:hover { background: var(--c-primary-hover); text-decoration: none; }

.btn-download--mirror {
	margin-top: 8px;
	background: transparent;
	color: var(--c-primary);
	border: 1px solid var(--c-primary);
}
.btn-download--mirror:hover { background: var(--c-panel); }

/* Empty slot: visibly inert, never mistakable for a working button */
.btn-download.is-disabled {
	background: transparent;
	color: var(--c-text-muted);
	border: 1px dashed var(--c-border);
	cursor: not-allowed;
}

.download-hint { margin: 8px 0 0; font-size: .875rem; text-align: center; }

/* Version list ------------------------------------------------------------ */

.versions { margin-bottom: 14px; }

.version-list { margin: 0; padding: 0; list-style: none; }

.version-row {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 16px; margin-bottom: 8px;
	background: var(--c-panel);
	border-radius: var(--radius);
}

.version-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }

.version-meta { min-width: 0; flex: 1 1 auto; }

.version-name { display: block; font-size: .9375rem; font-weight: 600; color: var(--c-text-muted); }

.version-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }

.tag {
	padding: 2px 8px;
	border-radius: 4px;
	font-size: .75rem; font-weight: 700;
	white-space: nowrap;
}
.tag--size { background: #FFF3CD; color: #8A6100; }
.tag--type { background: #D9F2E3; color: #1B7A46; }
.tag--device {
	background: transparent; color: var(--c-text-muted);
	padding-inline: 2px; text-transform: uppercase; letter-spacing: .03em;
}

.version-dl {
	flex: 0 0 auto;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: var(--radius-sm);
	color: var(--c-text);
}
.version-dl:hover { background: rgba(0, 0, 0, .06); text-decoration: none; }
.version-dl.is-disabled { color: var(--c-border); cursor: not-allowed; }

/* Screenshots ------------------------------------------------------------- */

.shots { position: relative; margin: 0 0 18px; }

.shots-track {
	display: flex; gap: 10px;
	margin: 0; padding: 0; list-style: none;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.shots-track::-webkit-scrollbar { display: none; }

.shots-track li { flex: 0 0 auto; }

.shot-btn {
	display: block; padding: 0; margin: 0;
	background: none; border: 0; cursor: zoom-in;
	line-height: 0;
}

.shots-track img {
	height: 210px; width: auto;
	border-radius: var(--radius);
	border: 1px solid var(--c-border);
	transition: transform .15s ease;
}
.shot-btn:hover img { transform: translateY(-2px); }

.shots-nav {
	position: absolute; top: 50%; z-index: 2;
	display: grid; place-items: center;
	width: 34px; height: 34px;
	transform: translateY(-50%);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 50%;
	color: var(--c-text);
	cursor: pointer;
	box-shadow: var(--shadow-sm);
}
.shots-nav[hidden] { display: none; }
.shots-prev { left: -6px; }
.shots-next { right: -6px; }

/* Body -------------------------------------------------------------------- */

.entry-body { padding: 18px; }

.entry-content { font-size: .9375rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.7em; font-size: 1.05rem; text-transform: uppercase; }
.entry-content h3 { margin-top: 1.4em; font-size: .95rem; text-transform: uppercase; }
.entry-content p { margin: 0 0 1em; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; font-style: italic; color: var(--c-text-muted); }
.entry-content blockquote {
	margin: 1.2em 0; padding: 10px 16px;
	border-left: 3px solid var(--c-primary);
	background: var(--c-panel);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table th,
.entry-content table td { padding: 8px 10px; border: 1px solid var(--c-border); }

.entry-meta { margin: 0 0 12px; font-size: .875rem; color: var(--c-text-muted); }
.entry-thumb { margin: 0 0 18px; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }

/* Social CTA + share ------------------------------------------------------ */

.social-cta {
	display: flex; flex-wrap: wrap; gap: 12px;
	justify-content: center;
	margin: 20px 0;
}

.btn-social {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 22px;
	border-radius: 999px;
	color: #fff;
	font-size: .9375rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: .02em;
}
.btn-social:hover { text-decoration: none; filter: brightness(1.07); }
.btn-social--tg { background: var(--c-telegram); }
.btn-social--wa { background: var(--c-whatsapp); }

.share-row {
	display: flex; justify-content: center; gap: 10px;
	margin: 0 0 24px; padding: 0; list-style: none;
}

.share-btn {
	display: grid; place-items: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	color: #fff;
}
.share-btn:hover { text-decoration: none; filter: brightness(1.1); }
.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #1DA1F2; }
.share-btn--pinterest { background: #E60023; }
.share-btn--linkedin { background: #0A66C2; }

/* Data safety ------------------------------------------------------------- */

.data-safety { margin-bottom: 28px; }

.data-safety-box {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 18px 20px;
}

.data-safety-intro {
	margin: 0 0 14px;
	font-size: .875rem; color: var(--c-text-muted);
}

.data-safety-list { margin: 0; padding: 0; list-style: none; }

.data-safety-list li {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 10px 0;
	font-size: .9375rem;
}
.data-safety-list .icon { color: var(--c-text-muted); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Archives
   -------------------------------------------------------------------------- */

.archive-header { margin-bottom: 18px; }
.archive-title { margin: 0 0 4px; font-size: 1.3rem; text-transform: uppercase; }
.archive-description { color: var(--c-text-muted); font-size: .9375rem; }

.term-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 999px;
	font-size: .875rem; font-weight: 500;
	color: var(--c-text);
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }
.chip-count { font-size: .75rem; color: var(--c-text-muted); }

.no-results {
	background: var(--c-panel);
	border-radius: var(--radius-lg);
	padding: 34px 20px;
	text-align: center;
}

.pagination { margin-top: 26px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: grid; place-items: center;
	min-width: 36px; height: 36px; padding: 0 12px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font-size: .9375rem; font-weight: 600;
	color: var(--c-text);
}
.pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.comments-area { margin-top: 10px; }

.comment-list { margin: 0 0 20px; padding: 0; list-style: none; }
.comment-list ol.children { list-style: none; padding-left: 20px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8125rem; color: var(--c-text-muted); margin-bottom: 6px; }
.comment-notes { font-size: .875rem; color: var(--c-text-muted); }

.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 4px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form-standalone input[type="search"] {
	width: 100%;
	padding: 11px 13px;
	background: var(--c-panel);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font: inherit; font-size: .9375rem;
	color: var(--c-text);
}
.comment-form textarea { min-height: 110px; resize: vertical; }

/* Name and email sit side by side, as on the source design */
.comment-form .comment-form-author,
.comment-form .comment-form-email { display: inline-block; width: calc(50% - 6px); margin: 0; }
.comment-form .comment-form-author { margin-right: 8px; }

.comment-form .form-submit { margin: 0; text-align: right; }
.comment-form input[type="submit"] {
	padding: 10px 22px;
	background: var(--c-primary); color: #fff;
	border: 0; border-radius: var(--radius-sm);
	font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--c-primary-hover); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--c-footer-bg);
	margin-top: 30px;
	text-align: center;
}

.footer-inner { padding-block: 30px; }

.footer-social {
	display: flex; justify-content: center; gap: 12px;
	margin: 0 0 18px; padding: 0; list-style: none;
}

.footer-social-btn {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	background: var(--c-surface);
	border-radius: 50%;
	color: var(--c-text);
	box-shadow: var(--shadow-sm);
}
.footer-social-btn:hover { color: var(--c-primary); text-decoration: none; }

.footer-list {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
	margin: 0 0 14px; padding: 0; list-style: none;
}
.footer-list a {
	color: var(--c-text);
	font-size: .875rem; font-weight: 500;
	letter-spacing: .04em; text-transform: uppercase;
}
.footer-list a:hover { color: var(--c-primary); }

.footer-copy { margin: 0; font-size: .8125rem; color: var(--c-text-muted); text-transform: uppercase; }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	background: #1D1D1F; color: #fff;
	border: 0; border-radius: 50%;
	cursor: pointer;
	box-shadow: var(--shadow);
}
.to-top[hidden] { display: none; }
.to-top:hover { background: #000; }

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */

.search-panel { position: fixed; inset: 0; z-index: 120; }
.search-panel[hidden] { display: none; }

.search-backdrop {
	position: absolute; inset: 0;
	background: rgba(17, 17, 20, .55);
}

.search-inner {
	position: relative;
	max-width: 680px;
	margin: 0 auto;
	padding: 0 var(--gap);
	top: 10vh;
}

.search-bar {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px;
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.search-bar-icon { display: grid; place-items: center; color: var(--c-text-muted); }

.search-bar input[type="search"] {
	flex: 1 1 auto; min-width: 0;
	background: none; border: 0; outline: 0;
	font: inherit; font-size: 1rem;
	color: var(--c-text);
}
.search-bar input[type="search"]::-webkit-search-cancel-button { display: none; }

.search-clear {
	flex: 0 0 auto;
	width: 26px; height: 26px;
	background: var(--c-panel); border: 0; border-radius: 50%;
	color: var(--c-text-muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.search-clear[hidden] { display: none; }

.search-close {
	flex: 0 0 auto;
	padding: 7px 14px;
	background: var(--c-panel); border: 0; border-radius: var(--radius-sm);
	font: inherit; font-size: .875rem; font-weight: 600;
	color: var(--c-text); cursor: pointer;
}
.search-close:hover { background: var(--c-border); }

.search-results {
	margin-top: 10px;
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	max-height: 60vh; overflow-y: auto;
}
.search-results:empty { display: none; }

.search-hint,
.search-empty { margin: 0; padding: 18px; text-align: center; color: var(--c-text-muted); font-size: .875rem; }

.search-list { margin: 0; padding: 6px; list-style: none; }

.result-item {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 10px;
	border-radius: var(--radius-sm);
	color: inherit;
}
.result-item:hover { background: var(--c-panel); }

.result-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--c-panel); }

.result-info { min-width: 0; display: flex; flex-direction: column; }
.result-title { font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { font-size: .8125rem; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-all {
	display: block; padding: 12px;
	text-align: center;
	font-size: .875rem; font-weight: 600;
	border-top: 1px solid var(--c-border);
}

.search-loading { display: flex; justify-content: center; gap: 6px; padding: 16px; }
.search-loading[hidden] { display: none; }

.spinner-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--c-surface);
	animation: liapk-bounce 1.2s infinite ease-in-out;
}
.spinner-dot:nth-child(2) { animation-delay: .15s; }
.spinner-dot:nth-child(3) { animation-delay: .3s; }

@keyframes liapk-bounce {
	0%, 80%, 100% { transform: scale(.6); opacity: .5; }
	40% { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Modals (report, rating confirmation)
   -------------------------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; }
.modal[hidden] { display: none; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 20, .55); }

.modal-box {
	position: relative;
	width: min(460px, calc(100vw - 32px));
	padding: 24px;
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}
.modal-box--narrow { width: min(360px, calc(100vw - 32px)); text-align: center; }

.modal-close {
	position: absolute; top: 10px; right: 12px;
	width: 30px; height: 30px;
	background: none; border: 0; border-radius: 50%;
	font-size: 22px; line-height: 1; color: var(--c-text-muted); cursor: pointer;
}
.modal-close:hover { background: var(--c-panel); }

.modal-title { margin: 0 0 6px; font-size: 1.125rem; }
.modal-text { margin: 0 0 16px; font-size: .875rem; color: var(--c-text-muted); }

.modal-label { display: block; margin-bottom: 5px; font-size: .8125rem; font-weight: 600; }

.modal-body select,
.modal-body textarea {
	width: 100%; margin-bottom: 14px; padding: 10px 12px;
	background: var(--c-panel);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font: inherit; font-size: .9375rem; color: var(--c-text);
}
.modal-body textarea { resize: vertical; }

.modal-msg { margin: 0 0 12px; font-size: .875rem; min-height: 1.2em; }
.modal-msg.is-error { color: #C62828; }
.modal-msg.is-ok { color: #1B7A46; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions--center { justify-content: center; }

.btn-modal {
	padding: 10px 20px;
	border: 0; border-radius: var(--radius-sm);
	font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.btn-modal--primary { background: var(--c-primary); color: #fff; }
.btn-modal--primary:hover { background: var(--c-primary-hover); }
.btn-modal--ghost { background: var(--c-panel); color: var(--c-text); }
.btn-modal--ghost:hover { background: var(--c-border); }

.rating-popup-star { display: block; margin-bottom: 8px; color: var(--c-star); }
.rating-popup-stats { margin: 0 0 18px; font-size: 1.125rem; }
.rating-popup-stats span { font-size: .875rem; color: var(--c-text-muted); }

.report-line { margin: 0 0 14px; text-align: center; }

.report-btn {
	padding: 6px 12px;
	background: none; border: 0;
	font: inherit; font-size: .8125rem;
	color: var(--c-text-muted); cursor: pointer;
	border-bottom: 1px dashed var(--c-border);
}
.report-btn:hover { color: var(--c-primary); }

/* --------------------------------------------------------------------------
   Ad slots
   -------------------------------------------------------------------------- */

.ad-slot { margin: 0 0 14px; text-align: center; }
.ad-slot:empty { display: none; }
.ad-slot img { max-width: 100%; height: auto; }

.sticky-ad {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
	display: flex; align-items: center; justify-content: center;
	padding: 8px 40px 8px 8px;
	background: var(--c-surface);
	border-top: 1px solid var(--c-border);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
}
.sticky-ad[hidden] { display: none; }

.sticky-ad-close {
	position: absolute; top: 6px; right: 8px;
	width: 26px; height: 26px;
	background: var(--c-panel); border: 0; border-radius: 50%;
	font-size: 16px; line-height: 1; color: var(--c-text); cursor: pointer;
}

/* Keep the back-to-top button clear of the sticky bar */
body.has-sticky-ad .to-top { bottom: 84px; }

/* --------------------------------------------------------------------------
   Screenshot lightbox
   -------------------------------------------------------------------------- */

.lightbox {
	position: fixed; inset: 0; z-index: 140;
	display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, .92); }

.lightbox-figure {
	position: relative;
	margin: 0; padding: 0 60px;
	max-width: 100%; max-height: 90vh;
	text-align: center;
}

.lightbox-figure img {
	max-width: 100%; max-height: 82vh;
	width: auto; height: auto;
	border-radius: var(--radius);
}

.lightbox-count { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: .8125rem; }

.lightbox-close {
	position: absolute; top: 16px; right: 20px; z-index: 2;
	width: 42px; height: 42px;
	background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%;
	color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

.lightbox-nav {
	position: absolute; top: 50%; z-index: 2;
	display: grid; place-items: center;
	width: 46px; height: 46px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%;
	color: #fff; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 575px) {
	.lightbox-figure { padding: 0 12px; }
	.lightbox-nav { width: 38px; height: 38px; }
	.lightbox-prev { left: 6px; }
	.lightbox-next { right: 6px; }
}

/* --------------------------------------------------------------------------
   VirusTotal card
   -------------------------------------------------------------------------- */

.vt-card {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 16px 18px; margin-bottom: 14px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-left: 4px solid var(--c-border);
	border-radius: var(--radius);
}
.vt-card.is-clean { border-left-color: #1B7A46; }
.vt-card.is-flagged { border-left-color: #C62828; }

.vt-icon { flex: 0 0 auto; margin-top: 2px; }
.vt-card.is-clean .vt-icon { color: #1B7A46; }
.vt-card.is-flagged .vt-icon { color: #C62828; }

.vt-body { min-width: 0; flex: 1 1 auto; }
.vt-title { margin: 0 0 4px; font-size: 1rem; }
.vt-meta { margin: 0 0 10px; font-size: .8125rem; color: var(--c-text-muted); }

.vt-bar {
	height: 6px; margin-bottom: 10px;
	background: #F0DADA; border-radius: 3px; overflow: hidden;
}
.vt-bar-fill { display: block; height: 100%; background: #1B7A46; }
.vt-card.is-flagged .vt-bar-fill { background: #E8A33D; }

.vt-link { font-size: .8125rem; font-weight: 600; }

@media (max-width: 575px) {
	.vt-card { padding: 14px; gap: 12px; }
	.vt-title { font-size: .9375rem; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
	.app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
	.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-banner-mark { display: none; }
	.tg-banner { flex-wrap: wrap; }
	.tg-banner-btn { margin-left: 0; }
}

@media (max-width: 767px) {
	.nav-toggle { display: block; order: -1; }

	.primary-nav {
		display: none;
		position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 10;
		background: var(--c-header);
		padding: 8px var(--gap) 14px;
		box-shadow: var(--shadow);
	}
	.primary-nav.is-open { display: block; }

	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-list a { padding: 11px 12px; }
	.nav-list .sub-menu { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
	.nav-list .sub-menu a { color: rgba(255, 255, 255, .85); }

	.site-brand { margin-right: auto; }
	.search-toggle { margin-left: 0; }

	.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
	.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.app-card-icon { width: 42px; height: 42px; border-radius: 10px; }
	.app-card-link { padding: 9px 10px; gap: 10px; }
	.app-card-name { font-size: .9375rem; }
	.app-card-version, .app-card-mod { font-size: .75rem; }

	.news-grid { grid-template-columns: 1fr; }

	.entry { padding: 14px; }
	.app-header { gap: 12px; }
	.app-header-icon { width: 60px; height: 60px; border-radius: 14px; }
	.entry-title { font-size: 1.05rem; }

	.app-specs th { width: 45%; }
	.shots-track img { height: 150px; }
	.shots-nav { display: none; }

	.comment-form .comment-form-author,
	.comment-form .comment-form-email { display: block; width: 100%; margin-right: 0; }

	.home-intro, .tg-banner { padding: 18px; }
	.footer-list { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
