/**
 * APK Manager Public Styles
 *
 * @package APK_Manager
 * @since   1.0.7
 */

/* =============================================
   CSS VARIABLES (defaults, overridden by inline)
   ============================================= */

:root {
	--apkmng-primary: #2196F3;
	--apkmng-secondary: #FF9800;
	--apkmng-button: #4CAF50;
	--apkmng-star: #FFC107;
	--apkmng-columns-desktop: 4;
	--apkmng-columns-mobile: 2;
	--apkmng-gap: 20px;
	--apkmng-radius: 12px;
	--apkmng-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	--apkmng-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* =============================================
   GAME GRID
   ============================================= */

.apkmng-grid {
	display: grid;
	grid-template-columns: repeat(var(--apkmng-columns-desktop), 1fr);
	gap: var(--apkmng-gap);
	padding: 0;
	margin: 0;
	list-style: none;
}

/* Custom columns override */
.apkmng-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.apkmng-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.apkmng-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.apkmng-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.apkmng-grid.columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Mobile responsive */
@media screen and (max-width: 1023px) {
	.apkmng-grid {
		grid-template-columns: repeat(var(--apkmng-columns-mobile), 1fr);
		gap: 15px;
	}
	
	.apkmng-grid.columns-2,
	.apkmng-grid.columns-3,
	.apkmng-grid.columns-4,
	.apkmng-grid.columns-5,
	.apkmng-grid.columns-6 {
		grid-template-columns: repeat(var(--apkmng-columns-mobile), 1fr);
	}
	
	/* Mobile Card Adjustments */
	.apkmng-game-card__content {
		padding: 12px;
		gap: 6px;
	}
	
	.apkmng-game-card__title {
		font-size: 14px;
		min-height: 36px;
	}
	
	.apkmng-game-card__developer,
	.apkmng-game-card__version {
		font-size: 11px;
	}
	
	.apkmng-meta-item {
		font-size: 11px;
	}
	
	.apkmng-download-icon {
		font-size: 28px;
	}
}

/* =============================================
   PROFESSIONAL GAME CARD (v1.7.5 - Square Icon)
   ============================================= */

.apkmng-game-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
	height: 100%;
	border: 1px solid rgba(0,0,0,0.06);
}

.apkmng-game-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.apkmng-game-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Square Image Area */
.apkmng-game-card__image {
	position: relative;
	width: 100%;
	padding-top: 100%; /* 1:1 Square Ratio */
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	overflow: hidden;
}

.apkmng-game-card__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.apkmng-game-card:hover .apkmng-game-card__image img {
	transform: scale(1.08);
}

/* MOD Badge */
.apkmng-mod-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: linear-gradient(135deg, #FF6B6B, #FF5252);
	color: #fff;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 6px rgba(255, 82, 82, 0.4);
	z-index: 2;
}

/* Hover Overlay */
.apkmng-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.apkmng-game-card:hover .apkmng-card-overlay {
	opacity: 1;
}

.apkmng-download-icon {
	font-size: 36px;
	color: #fff;
	animation: bounce 1s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* Content Area */
.apkmng-game-card__content {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	flex-grow: 1;
}

/* Title */
.apkmng-game-card__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: #2c3e50;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 39px;
}

/* Developer */
.apkmng-game-card__developer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 12px;
	color: #7f8c8d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.apkmng-game-card__developer .apkmng-icon {
	font-size: 14px;
	flex-shrink: 0;
}

.apkmng-game-card__developer .apkmng-text {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Version */
.apkmng-game-card__version {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 12px;
	color: #95a5a6;
	font-weight: 600;
}

.apkmng-game-card__version .apkmng-icon {
	font-size: 14px;
}

/* Meta Info Row */
.apkmng-game-card__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #ecf0f1;
}

.apkmng-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
}

/* Rating */
.apkmng-meta-item.apkmng-rating {
	color: #f39c12;
}

.apkmng-meta-item.apkmng-rating .apkmng-icon {
	font-size: 15px;
}

.apkmng-meta-item.apkmng-rating .apkmng-value {
	color: #2c3e50;
}

/* Downloads */
.apkmng-meta-item.apkmng-downloads {
	color: #3498db;
}

.apkmng-meta-item.apkmng-downloads .apkmng-icon {
	font-size: 15px;
}

.apkmng-meta-item.apkmng-downloads .apkmng-value {
	color: #2c3e50;
}

/* Legacy Support (Old Card Classes) */
.apkmng-game-card__image {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: #f0f2f5;
	overflow: hidden;
}

.apkmng-game-card__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.apkmng-game-card:hover .apkmng-game-card__image img {
	transform: scale(1.05);
}

.apkmng-game-card__genre {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--apkmng-primary);
	color: #fff;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 1;
}

.apkmng-star {
	color: var(--apkmng-star);
	font-size: 14px;
}

.apkmng-rating-value {
	font-weight: 600;
	color: #333;
}

.apkmng-game-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
}

.apkmng-game-card__downloads {
	display: flex;
	align-items: center;
	gap: 4px;
}

.apkmng-download-icon {
	font-size: 12px;
	font-weight: bold;
}

.apkmng-game-card__version {
	font-size: 12px;
	color: #999;
	background: #f5f5f5;
	padding: 3px 8px;
	border-radius: 4px;
	display: inline-block;
}

/* =============================================
   NO GAMES MESSAGE
   ============================================= */

.apkmng-no-games {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 16px;
}

/* =============================================
   PAGINATION
   ============================================= */

.apkmng-pagination {
	margin-top: 30px;
	text-align: center;
}

.apkmng-pagination ul {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 5px;
}

.apkmng-pagination li {
	margin: 0;
}

.apkmng-pagination a,
.apkmng-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.apkmng-pagination a {
	background: #fff;
	color: #333;
	border: 1px solid #ddd;
}

.apkmng-pagination a:hover {
	background: var(--apkmng-primary);
	color: #fff;
	border-color: var(--apkmng-primary);
}

.apkmng-pagination .current {
	background: var(--apkmng-primary);
	color: #fff;
	border: 1px solid var(--apkmng-primary);
}

.apkmng-pagination .dots {
	border: none;
	background: none;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media screen and (max-width: 1023px) {
	.apkmng-game-card__content {
		padding: 12px;
	}
	
	.apkmng-game-card__title {
		font-size: 13px;
		min-height: 34px;
	}
	
	.apkmng-game-card__meta {
		gap: 10px;
		font-size: 12px;
	}
	
	.apkmng-game-card__genre {
		font-size: 10px;
		padding: 3px 8px;
	}
}

@media screen and (max-width: 480px) {
	.apkmng-grid {
		gap: 10px;
	}
	
	.apkmng-game-card__content {
		padding: 10px;
	}
	
	.apkmng-game-card__title {
		font-size: 12px;
		min-height: 32px;
	}
}

/* =============================================
   SINGLE GAME PAGE
   ============================================= */

.apkmng-single {
	max-width: 900px;
	margin: 0 auto;
}

/* Header */
.apkmng-single__header {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 30px;
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #eee;
}

@media screen and (max-width: 768px) {
	.apkmng-single__header {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

.apkmng-single__thumbnail {
	border-radius: var(--apkmng-radius);
	overflow: hidden;
	box-shadow: var(--apkmng-shadow);
}

.apkmng-single__thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.apkmng-single__title {
	margin: 0 0 10px 0;
	font-size: 28px;
	font-weight: 700;
	color: #333;
}

.apkmng-single__short-desc {
	margin: 0 0 15px 0;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

.apkmng-single__developer {
	margin-bottom: 15px;
	font-size: 14px;
	color: #666;
}

.apkmng-single__developer a {
	color: var(--apkmng-primary);
	text-decoration: none;
}

.apkmng-single__developer a:hover {
	text-decoration: underline;
}

/* Meta */
.apkmng-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 15px;
}

.apkmng-single__rating,
.apkmng-single__downloads,
.apkmng-single__version-badge {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
}

.apkmng-single__rating .apkmng-star {
	font-size: 18px;
}

.apkmng-single__rating .value {
	font-weight: 600;
	font-size: 16px;
}

/* Features/Tags */
.apkmng-single__features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 15px;
}

.apkmng-tag {
	display: inline-block;
	padding: 5px 12px;
	background: #f0f0f0;
	color: #333;
	font-size: 12px;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.apkmng-tag:hover {
	background: var(--apkmng-primary);
	color: #fff;
}

/* Section Title */
.apkmng-single__section-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--apkmng-primary);
	color: #333;
}

/* Download Box */
.apkmng-single__download-section {
	margin-bottom: 30px;
}

.apkmng-download-box {
	background: #f9f9f9;
	border-radius: var(--apkmng-radius);
	padding: 25px;
	border: 1px solid #eee;
}

.apkmng-download-box__version {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.apkmng-download-box__version label {
	font-weight: 600;
}

.apkmng-version-select {
	padding: 8px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	min-width: 120px;
}

.apkmng-download-box__size {
	color: #666;
	font-size: 14px;
}

/* Server Selection */
.apkmng-download-box__servers {
	margin-bottom: 20px;
}

.apkmng-download-box__servers > label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
}

.apkmng-server-options {
	display: flex;
	gap: 20px;
}

.apkmng-server-option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.apkmng-server-option input[type="radio"] {
	width: 18px;
	height: 18px;
}

/* Download Button */
.apkmng-download-box__button {
	margin-bottom: 15px;
}

.apkmng-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
}

.apkmng-btn--download {
	background: var(--apkmng-button);
	color: #fff;
	width: 100%;
	font-size: 18px;
}

.apkmng-btn--download:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	color: #fff;
}

.apkmng-btn__icon {
	font-size: 20px;
}

/* Play Store Link */
.apkmng-download-box__playstore {
	text-align: center;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.apkmng-playstore-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #666;
	text-decoration: none;
	font-size: 14px;
}

.apkmng-playstore-link:hover {
	color: var(--apkmng-primary);
}

/* Info Table */
.apkmng-single__details {
	margin-bottom: 30px;
}

.apkmng-info-table {
	width: 100%;
	border-collapse: collapse;
}

.apkmng-info-table th,
.apkmng-info-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.apkmng-info-table th {
	width: 150px;
	font-weight: 600;
	color: #333;
	background: #f9f9f9;
}

.apkmng-info-table td a {
	color: var(--apkmng-primary);
	text-decoration: none;
}

.apkmng-info-table td a:hover {
	text-decoration: underline;
}

/* MOD Features */
.apkmng-single__mod-features {
	margin-bottom: 30px;
}

.apkmng-mod-list {
	background: #fff8e1;
	border-left: 4px solid var(--apkmng-secondary);
	padding: 15px 20px;
	border-radius: 0 8px 8px 0;
	line-height: 1.8;
}

/* Description & Guide */
.apkmng-single__description,
.apkmng-single__guide {
	margin-bottom: 30px;
}

.apkmng-content {
	line-height: 1.8;
	color: #444;
}

.apkmng-content p {
	margin-bottom: 15px;
}

/* Screenshots - Horizontal Scroll */
.apkmng-single__screenshots {
	margin-bottom: 30px;
}

.apkmng-screenshots-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	margin: 0 -10px;
	padding: 10px;
	-webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* Scrollbar styling */
.apkmng-screenshots-scroll::-webkit-scrollbar {
	height: 8px;
}

.apkmng-screenshots-scroll::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.apkmng-screenshots-scroll::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.apkmng-screenshots-scroll::-webkit-scrollbar-thumb:hover {
	background: #aaa;
}

.apkmng-screenshots-track {
	display: flex;
	gap: 15px;
	width: max-content;
}

.apkmng-screenshot {
	flex-shrink: 0;
	width: 280px;
	height: 160px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--apkmng-shadow);
	transition: transform 0.3s ease;
}

.apkmng-screenshot:hover {
	transform: scale(1.03);
}

.apkmng-screenshot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Mobile adjustments for screenshots */
@media screen and (max-width: 768px) {
	.apkmng-screenshot {
		width: 240px;
		height: 135px;
	}
}

@media screen and (max-width: 480px) {
	.apkmng-screenshot {
		width: 200px;
		height: 112px;
	}
}

/* =============================================
   SEARCH FORM
   ============================================= */

.apkmng-search-form {
	margin-bottom: 20px;
}

.apkmng-search {
	display: flex;
	max-width: 600px;
}

.apkmng-search__input-wrap {
	display: flex;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--apkmng-shadow);
}

.apkmng-search__input {
	flex: 1;
	padding: 12px 20px;
	border: 2px solid #eee;
	border-right: none;
	font-size: 16px;
	outline: none;
	border-radius: 8px 0 0 8px;
}

.apkmng-search__input:focus {
	border-color: var(--apkmng-primary);
}

.apkmng-search__button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 25px;
	background: var(--apkmng-primary);
	color: #fff;
	border: none;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	border-radius: 0 8px 8px 0;
}

.apkmng-search__button:hover {
	background: #1976D2;
}

.apkmng-search__icon {
	font-size: 18px;
}

@media screen and (max-width: 480px) {
	.apkmng-search__text {
		display: none;
	}
}

/* =============================================
   FILTER
   ============================================= */

.apkmng-filter {
	margin-bottom: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: var(--apkmng-radius);
	border: 1px solid #eee;
}

.apkmng-filter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
}

.apkmng-filter__group {
	flex: 1;
	min-width: 150px;
}

.apkmng-filter__group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.apkmng-filter__select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
}

.apkmng-filter__select:focus {
	border-color: var(--apkmng-primary);
	outline: none;
}

.apkmng-filter__group--buttons {
	display: flex;
	gap: 10px;
	flex: none;
}

.apkmng-btn--filter {
	background: var(--apkmng-primary);
	color: #fff;
	padding: 10px 20px;
	font-size: 14px;
}

.apkmng-btn--filter:hover {
	background: #1976D2;
	color: #fff;
}

.apkmng-btn--reset {
	background: #eee;
	color: #666;
	padding: 10px 20px;
	font-size: 14px;
}

.apkmng-btn--reset:hover {
	background: #ddd;
	color: #333;
}

@media screen and (max-width: 768px) {
	.apkmng-filter__form {
		flex-direction: column;
	}
	
	.apkmng-filter__group {
		width: 100%;
	}
	
	.apkmng-filter__group--buttons {
		width: 100%;
		justify-content: stretch;
	}
	
	.apkmng-filter__group--buttons .apkmng-btn {
		flex: 1;
		text-align: center;
	}
}

/* =============================================
   ERROR MESSAGE
   ============================================= */

.apkmng-error {
	padding: 20px;
	background: #ffebee;
	color: #c62828;
	border-radius: 8px;
	text-align: center;
}

/* =============================================
   RANKINGS
   ============================================= */

.apkmng-rankings {
	max-width: 900px;
	margin: 0 auto;
}

/* Tabs */
.apkmng-rankings__tabs {
	display: flex;
	gap: 5px;
	margin-bottom: 25px;
	padding: 5px;
	background: #f5f5f5;
	border-radius: 10px;
	overflow-x: auto;
}

.apkmng-rankings__tab {
	flex: 1;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	color: #666;
	font-weight: 500;
	font-size: 14px;
	border-radius: 8px;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.apkmng-rankings__tab:hover {
	color: var(--apkmng-primary);
	background: #fff;
}

.apkmng-rankings__tab.active {
	background: var(--apkmng-primary);
	color: #fff;
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Header */
.apkmng-rankings__header {
	margin-bottom: 20px;
}

.apkmng-rankings__title {
	font-size: 22px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

/* List */
.apkmng-rankings__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Ranking Item */
.apkmng-ranking-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--apkmng-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apkmng-ranking-item:hover {
	transform: translateX(5px);
	box-shadow: var(--apkmng-shadow-hover);
}

/* Top 3 Special Styles */
.apkmng-ranking-item.gold {
	background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
	border: 2px solid #ffc107;
}

.apkmng-ranking-item.gold .apkmng-ranking-item__rank {
	background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
	color: #fff;
	box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.apkmng-ranking-item.silver {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 2px solid #adb5bd;
}

.apkmng-ranking-item.silver .apkmng-ranking-item__rank {
	background: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
	color: #fff;
}

.apkmng-ranking-item.bronze {
	background: linear-gradient(135deg, #fff5f0 0%, #ffe8dd 100%);
	border: 2px solid #cd7f32;
}

.apkmng-ranking-item.bronze .apkmng-ranking-item__rank {
	background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
	color: #fff;
}

/* Rank Number */
.apkmng-ranking-item__rank {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #666;
}

/* Image */
.apkmng-ranking-item__image {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.apkmng-ranking-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Info */
.apkmng-ranking-item__info {
	flex: 1;
	min-width: 0;
}

.apkmng-ranking-item__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	margin-bottom: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.apkmng-ranking-item__title:hover {
	color: var(--apkmng-primary);
}

.apkmng-ranking-item__meta {
	display: flex;
	gap: 10px;
	font-size: 12px;
	color: #888;
}

.apkmng-ranking-item__genre {
	background: #f0f0f0;
	padding: 2px 8px;
	border-radius: 4px;
}

.apkmng-ranking-item__version {
	color: #999;
}

/* Stats */
.apkmng-ranking-item__stats {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
}

.apkmng-ranking-item__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.apkmng-ranking-item__rating .apkmng-star {
	color: var(--apkmng-star);
}

.apkmng-ranking-item__downloads {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #666;
}

.apkmng-ranking-item__downloads .icon {
	font-size: 12px;
}

/* Empty State */
.apkmng-rankings__empty {
	text-align: center;
	padding: 40px 20px;
	color: #888;
	background: #f9f9f9;
	border-radius: 12px;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.apkmng-rankings__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.apkmng-rankings__tab {
		flex: none;
		padding: 10px 15px;
		font-size: 13px;
	}
	
	.apkmng-ranking-item {
		padding: 12px;
		gap: 10px;
	}
	
	.apkmng-ranking-item__rank {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}
	
	.apkmng-ranking-item__image {
		width: 50px;
		height: 50px;
	}
	
	.apkmng-ranking-item__title {
		font-size: 14px;
	}
	
	.apkmng-ranking-item__meta {
		flex-wrap: wrap;
		gap: 5px;
	}
	
	.apkmng-ranking-item__stats {
		align-items: center;
	}
}

@media screen and (max-width: 480px) {
	.apkmng-ranking-item__meta {
		display: none;
	}
	
	.apkmng-ranking-item__image {
		width: 45px;
		height: 45px;
	}
}

/* =============================================
   RELATED GAMES
   ============================================= */
.apkmng-single__related {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}

/* =============================================
   COMMENTS
   ============================================= */
.apkmng-single__comments {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}

/* =============================================
   WIDGETS
   ============================================= */
.apkmng-widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.apkmng-widget-item {
	margin-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 15px;
}
.apkmng-widget-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.apkmng-widget-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}
.apkmng-widget-thumb {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0f0f0;
}
.apkmng-widget-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.apkmng-widget-info {
	flex: 1;
	min-width: 0;
}
.apkmng-widget-title {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
	line-height: 1.3;
}
.apkmng-widget-meta {
	font-size: 12px;
	color: #888;
}

/* =============================================
   READ MORE EXPANDER (v1.7.0)
   ============================================= */
.apkmng-content {
	position: relative;
	transition: max-height 0.5s ease;
}

.apkmng-content.collapsed {
	max-height: 250px;
	overflow: hidden;
	/* Fade out effect */
	mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.apkmng-content.expanded {
	max-height: none;
	mask-image: none;
	-webkit-mask-image: none;
}

.apkmng-readmore-wrap {
	text-align: center;
	margin-top: -20px; /* Move up to cover fade area slightly */
	position: relative;
	z-index: 10;
	padding-bottom: 20px;
}

.apkmng-btn-readmore {
	background: var(--apkmng-primary);
	color: #fff;
	border: none;
	padding: 8px 24px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	transition: background 0.3s ease, transform 0.2s ease;
}

.apkmng-btn-readmore:hover {
	background: #1976D2; /* Darker shade */
	transform: translateY(-2px);
}

