/* Listing Manager — front-end app page styles
   Structurally follows the reference site's class names; visual polish
   (exact colors/fonts) is left open until a theme is chosen. */

.container-min {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 15px;
	overflow-x: hidden; /* hard backstop: whatever else might still be slightly oversized inside here gets clipped rather than dragging the whole page sideways */
}

.section-sm {
	padding: 10px 0;
}

.box-shadow-commn {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba( 0, 0, 0, 0.08 );
	padding: 20px;
	margin-bottom: 20px;
}

/* Breadcrumbs */
.breadcrumbs-section #breadcrumbs {
	font-size: 13px;
	color: #666;
	margin: 0;
}

.breadcrumbs-section a {
	color: #046ed0;
	text-decoration: none;
}

/* Hero / download section */
.download-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.download-title-block {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 260px;
	min-width: 0; /* without this, a flex item won't shrink below its content's natural width -- exactly what was forcing the whole card wider than the phone screen */
}

.app_descripation {
	min-width: 0;
}

.app-img {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	object-fit: cover;
	flex-shrink: 0;
}

.entry-title {
	font-size: 22px;
	margin: 0 0 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	line-height: 1.2;
	overflow-wrap: break-word;
	min-width: 0;
}

.app-btn.app-apk {
	background: #046ed0;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
}

.appver {
	color: #666;
	font-size: 13px;
}

.developer-name {
	color: #888;
	font-size: 13px;
	margin: 2px 0 0;
}

.download-description-block {
	flex: 1 1 100%;
	min-width: 0;
}

.app-desc {
	font-size: 14px;
	font-weight: 400;
	color: #444;
	margin: 0;
	line-height: 1.5;
}

.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #046ed0;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	flex: 1 1 100%;
	justify-content: center;
	min-width: 0;
}

.download-btn:hover {
	background: #0357a8;
	color: #fff;
}

.dld-btn-text {
	min-width: 0;
}

.dld-btn-text p {
	margin: 0;
	line-height: 1.3;
	overflow-wrap: break-word;
}

.dld-btn-app-name {
	font-weight: 600;
}

/* Screenshots */
.screenshots-wrapper {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 10px;

	/* Visible scroll-position track, matching the reference site's
	   gallery rather than a bare invisible-until-you-drag strip. */
	scrollbar-width: thin;
	scrollbar-color: #b7b7c0 #eceef0;
}
.screenshots-wrapper::-webkit-scrollbar {
	height: 6px;
}
.screenshots-wrapper::-webkit-scrollbar-track {
	background: #eceef0;
	border-radius: 4px;
}
.screenshots-wrapper::-webkit-scrollbar-thumb {
	background: #b7b7c0;
	border-radius: 4px;
}

.screenshots-wrapper img {
	/*
	 * Fixed HEIGHT only, width follows each image's natural aspect
	 * ratio. A fixed width+height box (object-fit:cover) was tried
	 * here and caused bad cropping on any screenshot that isn't
	 * naturally portrait-shaped -- landscape screenshots got their
	 * sides sliced off. This never crops anything; the row just isn't
	 * perfectly uniform-width, which is the correct tradeoff.
	 */
	height: 220px;
	width: auto;
	max-width: 340px; /* guard against one unusually wide landscape screenshot dominating the row */
	object-fit: contain;
	border-radius: 8px;
	flex-shrink: 0;
}

/* App info table */
.font-sixteen {
	font-size: 16px;
	margin: 0 0 12px;
}

.app-info-main-block {
	width: 100%;
	table-layout: fixed; /* without this, table-layout:auto (the default) ignores width:100% and expands to fit unbroken content like package names, regardless of container width */
	border-collapse: collapse;
}

.app-info-grp th,
.app-info-grp td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
	overflow-wrap: break-word; /* lets long unbroken strings (package names, etc.) break instead of forcing the table wider */
}

.app-name-table-key {
	color: #666;
	width: 180px;
	font-weight: 600;
}

.cat-link-icon {
	color: #046ed0;
	text-decoration: none;
	margin-left: 4px;
}

/* Social share */
.social-share-wrapper {
	display: flex;
	gap: 12px;
}

.social-share-wrapper a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 20px;
	background: #f2f2f2;
	color: #333;
	text-decoration: none;
	font-size: 13px;
}

.social-share-wrapper a:hover {
	background: #e5e5e5;
}

/* Article */
.app-detailes-main-block {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
}

.app-detailes-main-block img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.app-detailes-main-block h3 {
	margin-top: 24px;
}

/* Download page */
.progress {
	background: #eee;
	border-radius: 6px;
	height: 8px;
	margin: 10px 0;
	overflow: hidden;
}

.progress-bar {
	background: #046ed0;
	height: 100%;
	width: 0%;
	transition: width 1.6s ease;
}

.dld-page-refresh-para {
	font-size: 13px;
	color: #777;
	margin-top: 14px;
	flex: 1 1 100%;
	text-align: center;
}

#download-loading {
	flex: 1 1 100%;
	text-align: center;
	font-size: 13px;
	color: #555;
}

@media ( max-width: 600px ) {
	.download-row {
		justify-content: center;
		text-align: center;
	}
	.download-title-block {
		flex-direction: column;
		text-align: center;
	}
}
