/* ============================================================
   homepage.css — front-page.php only.
   Section headers, rating boxes, buttons, cards and badges live
   in components.css and are not redefined here.

   Card containers are <div> elements — never links. Only the
   icon, name and action links are clickable; empty whitespace
   is not.
============================================================ */

/* ------------------------------------------------------------
   PERFORMANCE — below-the-fold render skipping
   `content-visibility: auto` lets the browser skip layout + paint
   work for off-screen sections until they're near the viewport,
   then promote them in. `contain-intrinsic-size: auto 800px`
   reserves a placeholder height so initial layout is stable; the
   `auto` keyword tells the browser to cache the real size after
   first render.

   Targets only sections that are reliably below the fold:
   - .td-section: Latest Updates (rendered by platform-tablist)
   - .site-main > section.section: the two direct-child sections
     in front-page.php (Browse by Category, Platforms CTA)

   Explicitly NOT included: .hero (above-fold, lives outside main),
   .top-section (Top Downloads — partial above-fold), .ad-slot-top.
   None of the targeted sections use position: sticky, so sticky
   behavior is unaffected.
------------------------------------------------------------ */
.td-section,
.site-main > section.section {
	content-visibility: auto;
	contain-intrinsic-size: auto 800px;
}

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
	padding: 60px 0 50px;
	background:
		radial-gradient(circle at 20% 30%, var(--primary-glow) 0%, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.08) 0%, transparent 40%);
}

.hero-content {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--r-full);
	font-size: 13px;
	font-weight: 600;
	color: var(--text-2);
	margin-bottom: 20px;
	box-shadow: var(--shadow-sm);
}

.hero-badge svg {
	color: var(--success);
}

.hero h1 {
	font-size: 54px;
	line-height: 1.1;
	margin-bottom: 20px;
	letter-spacing: -0.03em;
	font-weight: 800;
}

.hero h1 .gradient {
	background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--pink) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-subtitle {
	font-size: 19px;
	color: var(--text-2);
	margin: 0 auto 32px;
	max-width: 600px;
	line-height: 1.5;
}

.hero-search {
	position: relative;
	max-width: 600px;
	margin: 0 auto 24px;
}

.hero-search input {
	width: 100%;
	height: 60px;
	padding: 0 24px 0 60px;
	border: 2px solid var(--border);
	border-radius: var(--r-xl);
	background: #fff;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.2s;
	box-shadow: var(--shadow-md);
}

.hero-search input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-lg);
}

.hero-search svg {
	position: absolute;
	left: 22px;
	top: 20px;
	color: var(--text-3);
}

.hero-search-btn {
	position: absolute;
	right: 8px;
	top: 8px;
	height: 44px;
	padding: 0 24px;
	background: var(--text);
	color: #fff;
	border: none;
	border-radius: var(--r-md);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s;
}

.hero-search-btn:hover {
	background: var(--primary);
	transform: translateY(-1px);
}

/* Hero trust bar — one real number + three trust badges. */
.hero-trustbar {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-top: 24px;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.hero-tb-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-shrink: 0;
	padding-right: 24px;
	border-right: 1px solid var(--border);
}

.hero-tb-num {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	color: var(--primary);
}

.hero-tb-label {
	font-size: 12px;
	color: var(--text-3);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.hero-tb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hero-tb-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--text);
}

.hero-tb-list svg {
	color: var(--success);
	flex-shrink: 0;
}

@media (max-width: 700px) {
	.hero-trustbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.hero-tb-stat {
		width: 100%;
		padding-right: 0;
		padding-bottom: 12px;
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.hero-tb-list li {
		font-size: 13px;
	}
}

/* ------------------------------------------------------------
   SHARED — icon image fill + card link resets
------------------------------------------------------------ */
.fs-icon img,
.top-icon img,
.latest-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.fs-icon-link,
.fs-name-link,
.top-icon-link,
.top-name-link,
.latest-icon-link,
.latest-name-link,
.cat-card-icon-link,
.cat-card-name-link {
	text-decoration: none;
	color: inherit;
	display: inline-block;
}

/* ------------------------------------------------------------
   FEATURED THIS WEEK
------------------------------------------------------------ */
.featured-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}

.featured-main {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--r-2xl);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.featured-main-img {
	display: flex;
	align-items: flex-end;
	height: 340px;
	padding: 32px;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
	position: relative;
	overflow: hidden;
}

.featured-main-img:hover {
	color: #fff;
}

.featured-main-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.featured-badge {
	position: absolute;
	top: 24px;
	left: 24px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: linear-gradient(135deg, var(--gold) 0%, var(--accent-dark) 100%);
	color: #fff;
	border-radius: var(--r-full);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: var(--shadow-md);
}

.featured-main-content {
	position: relative;
	z-index: 1;
}

.featured-main-content h3 {
	color: #fff;
	font-size: 36px;
	margin-bottom: 8px;
}

.featured-main-content p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 16px;
	font-weight: 500;
}

.featured-main-info {
	padding: 24px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.featured-meta {
	display: flex;
	gap: 20px;
	font-size: 13px;
	color: var(--text-2);
	flex-wrap: wrap;
}

.featured-meta strong {
	color: var(--text);
}

.featured-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--gold);
	font-weight: 700;
}

.featured-download {
	padding: 12px 24px;
	background: var(--text);
	color: #fff;
	border-radius: var(--r-md);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s;
}

.featured-download:hover {
	background: var(--primary);
	color: #fff;
	transform: translateY(-1px);
}

.featured-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.featured-side-title {
	font-size: 13px;
	font-weight: 800;
	color: var(--text-3);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

.featured-side-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: all 0.2s;
}

.featured-side-card:hover {
	border-color: var(--primary);
	transform: translateX(2px);
	box-shadow: var(--shadow-md);
}

.fs-icon {
	width: 48px;
	height: 48px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	flex-shrink: 0;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.fs-info {
	flex: 1;
	min-width: 0;
}

.fs-name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 2px;
}

.fs-name-link:hover .fs-name {
	color: var(--primary);
}

.fs-meta {
	font-size: 12px;
	color: var(--text-3);
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.fs-rating {
	color: var(--gold);
	font-weight: 700;
}

/* ------------------------------------------------------------
   CATEGORIES GRID
   Styles moved to components.css (loaded site-wide) so the
   /categories/ page template renders the grid too.
------------------------------------------------------------ */

/* ------------------------------------------------------------
   TOP DOWNLOADS
------------------------------------------------------------ */
.top-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.top-card {
	background: #fff;
	border: 1.5px solid var(--border);
	border-radius: var(--r-xl);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	transition: all 0.2s;
}

.top-card:hover {
	border-color: var(--primary);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.top-rank {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
}

.top-rank.r1 { background: var(--gold); }
.top-rank.r2 { background: #c0c0c0; }
.top-rank.r3 { background: #cd7f32; }
.top-rank.rd { background: var(--text); font-size: 11px; }

.top-icon-link,
.top-name-link {
	/* Flex-column children: shrink to content so whitespace beside
	   the link is not clickable. */
	align-self: flex-start;
}

.top-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 28px;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.top-name {
	font-size: 17px;
	font-weight: 700;
	color: var(--text);
}

.top-name-link:hover .top-name {
	color: var(--primary);
}

.top-desc {
	font-size: 13px;
	color: var(--text-3);
	line-height: 1.4;
	flex: 1;
}

.top-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--border);
}

.top-bottom .meta {
	color: var(--text-2);
	font-weight: 500;
}

/* ------------------------------------------------------------
   LATEST UPDATES
------------------------------------------------------------ */
.latest-list {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
	overflow: hidden;
}

.latest-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	transition: background 0.15s;
}

.latest-item:last-child {
	border-bottom: 0;
}

.latest-item:hover {
	background: var(--bg-soft);
}

.latest-icon {
	width: 44px;
	height: 44px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	flex-shrink: 0;
	overflow: hidden;
}

.latest-info {
	flex: 1;
	min-width: 0;
}

.latest-name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 2px;
}

.latest-name-link:hover .latest-name {
	color: var(--primary);
}

.latest-desc {
	font-size: 12.5px;
	color: var(--text-3);
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.latest-desc .dot {
	color: var(--text-muted);
}

.latest-tag {
	padding: 4px 10px;
	background: var(--bg-soft);
	border-radius: var(--r-full);
	font-size: 11px;
	font-weight: 700;
	color: var(--text-2);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.latest-version {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-3);
	font-weight: 600;
}

.latest-download {
	width: 36px;
	height: 36px;
	border-radius: var(--r-md);
	background: var(--primary-light);
	color: var(--primary);
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: all 0.15s;
}

.latest-item:hover .latest-download,
.latest-download:hover {
	background: var(--primary);
	color: #fff;
}

/* ------------------------------------------------------------
   PLATFORMS CTA
------------------------------------------------------------ */
.platforms-cta {
	background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
	border-radius: var(--r-2xl);
	padding: 48px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.platforms-cta::before {
	content: '';
	position: absolute;
	top: -100px;
	right: -100px;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.platforms-cta-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	position: relative;
}

.platforms-cta h2 {
	color: #fff;
	font-size: 36px;
	margin-bottom: 14px;
	line-height: 1.2;
}

.platforms-cta p {
	font-size: 16px;
	opacity: 0.9;
	line-height: 1.5;
}

.platforms-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.plat-link {
	background: rgba(255, 255, 255, 0.15);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--r-lg);
	padding: 20px 14px;
	text-align: center;
	color: #fff;
	transition: all 0.2s;
}

.plat-link:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

.plat-link-icon-link,
.plat-link-name-link {
	display: block;
	text-decoration: none;
	color: #fff;
}

.plat-link-name-link:hover .plat-link-name {
	text-decoration: underline;
}

.plat-link-icon {
	margin-bottom: 8px;
	display: block;
}

.plat-link-icon svg {
	width: 30px;
	height: 30px;
	display: block;
}

.plat-link-name {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 2px;
}

.plat-link-count {
	font-size: 11px;
	opacity: 0.8;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1024px) {
	.featured-grid {
		grid-template-columns: 1fr;
	}

	.top-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.platforms-cta-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.hero h1 {
		font-size: 42px;
	}
}

@media (max-width: 700px) {
	.hero {
		padding: 40px 0 30px;
	}

	.hero h1 {
		font-size: 32px;
	}

	.hero-subtitle {
		font-size: 16px;
	}

	.hero-search input {
		height: 52px;
		font-size: 14px;
	}

	.hero-search svg {
		top: 18px;
	}

	.hero-search-btn {
		display: none;
	}

	.hero-tb-num {
		font-size: 26px;
	}

	.featured-main-img {
		height: 220px;
		padding: 20px;
	}

	.featured-main-content h3 {
		font-size: 26px;
	}

	.featured-main-info {
		padding: 16px 20px;
	}

	.top-grid {
		grid-template-columns: 1fr 1fr;
	}

	.platforms-cta {
		padding: 32px 24px;
	}

	.platforms-cta h2 {
		font-size: 26px;
	}

	.platforms-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.latest-item {
		flex-wrap: wrap;
	}
}

/* ========== TOP DOWNLOADS / LATEST UPDATES (tabbed sections) ========== */
.td-section {
	margin: 40px 0;
}

.td-header {
	margin-bottom: 16px;
}

.td-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
}

.td-tabs {
	display: flex;
	border-bottom: 1px solid var(--border);
	overflow-x: auto;
	scrollbar-width: none;
}

.td-tabs::-webkit-scrollbar {
	display: none;
}

.td-tab {
	background: transparent;
	border: 0;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-2);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.td-tab:hover {
	color: var(--text);
}

.td-tab.is-active {
	color: var(--text);
	border-bottom-color: var(--text);
	font-weight: 800;
}

.td-panels {
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 0;
	border-radius: 0 0 12px 12px;
}

.td-panel.is-active {
	display: block;
}

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

.td-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.td-row {
	display: grid;
	grid-template-columns: 32px 56px 1fr 80px 80px 70px 110px 48px;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border);
	transition: background 0.15s ease;
}

.td-row:last-child {
	border-bottom: 0;
}

.td-row:hover {
	background: var(--bg-tint);
}

.td-rank {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-3);
	text-align: center;
}

.td-icon-link {
	line-height: 0;
}

.td-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	display: block;
}

.td-icon-placeholder {
	background: var(--bg-soft);
	color: var(--text-3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
}

.td-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.td-name:hover {
	color: var(--primary);
}

.td-license {
	font-size: 13px;
	font-weight: 600;
}

.td-license-free,
.td-license-freeware,
.td-license-open-source {
	color: var(--success);
}

.td-license-paid,
.td-license-premium,
.td-license-commercial {
	color: var(--text-3);
}

.td-license-trial,
.td-license-shareware {
	color: var(--gold);
}

.td-size {
	font-size: 13px;
	color: var(--text-2);
}

.td-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--gold);
	font-size: 14px;
	font-weight: 700;
}

.td-rating svg {
	flex-shrink: 0;
}

.td-downloads {
	font-size: 13px;
	color: var(--text);
}

.td-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--success);
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.td-download-btn:hover {
	background: var(--success-dark);
}

.td-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--text-2);
}

@media (max-width: 900px) {
	.td-row {
		grid-template-columns: 28px 44px 1fr auto 44px;
		gap: 10px;
		padding: 12px 14px;
	}

	.td-license,
	.td-size,
	.td-downloads {
		display: none;
	}

	.td-icon {
		width: 36px;
		height: 36px;
	}

	.td-name {
		font-size: 14px;
	}

	.td-rating {
		font-size: 13px;
	}

	.td-download-btn {
		width: 36px;
		height: 36px;
	}
}

/* ========== TOP DOWNLOADS — card grid + tabs ========== */
.top-section {
	margin: 40px 0;
}

.top-tabs {
	display: flex;
	border-bottom: 1px solid var(--border);
	margin: 16px 0 20px;
	overflow-x: auto;
	scrollbar-width: none;
}

.top-tabs::-webkit-scrollbar {
	display: none;
}

.top-tab {
	padding: 12px 20px;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-2);
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.top-tab:hover {
	color: var(--text);
}

.top-tab.is-active {
	color: var(--text);
	border-bottom-color: var(--primary);
	font-weight: 800;
}

.top-panel.is-active {
	display: block;
}

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

.top-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.top-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	position: relative;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.top-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary);
}

.top-rank {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
}

.top-rank.r1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.top-rank.r2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.top-rank.r3 { background: linear-gradient(135deg, #f97316, #c2410c); }
.top-rank.rd { background: var(--bg-soft); color: var(--text-2); }

.top-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.top-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.top-icon-letter {
	font-weight: 800;
	font-size: 22px;
	color: var(--text-3);
}

.top-name {
	font-weight: 700;
	font-size: 16px;
	color: var(--text);
	margin-bottom: 4px;
	line-height: 1.3;
}

.top-desc {
	font-size: 13px;
	color: var(--text-2);
	line-height: 1.45;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.top-bottom {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px;
}

.top-bottom .meta {
	font-size: 12px;
	color: var(--text-2);
}

.app-rating-box {
	text-align: right;
	flex-shrink: 0;
}

.app-rating-num {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: var(--text);
	line-height: 1;
}

.app-rating-stars {
	display: block;
	line-height: 0;
	margin: 3px 0;
}

.app-rating-stars svg.is-on {
	color: var(--gold);
}

.app-rating-stars svg.is-off {
	color: var(--border-2);
}

.app-rating-votes {
	display: block;
	font-size: 11px;
	color: var(--text-3);
}

.top-empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--text-2);
}

@media (max-width: 1024px) {
	.top-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.top-grid {
		grid-template-columns: 1fr;
	}

	.top-tab {
		padding: 10px 14px;
		font-size: 14px;
	}
}
