/**
 * Стили для детальных страниц приложений и игр
 * Минималистичный дизайн без градиентов
 * Вдохновлено: Perplexity, Google Finance, Yahoo
 *
 * @package GrandScreen
 * @since 1.0.0
 */



.app-single,
.game-single {
	background: #ffffff;
}



.app-breadcrumbs-wrapper,
.game-breadcrumbs-wrapper {
	padding: 16px 0 0;
	margin-bottom: 0;
}

.app-breadcrumbs,
.game-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.app-breadcrumbs a,
.game-breadcrumbs a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.2s;
}

.app-breadcrumbs a:hover,
.game-breadcrumbs a:hover {
	color: #0066cc;
	text-decoration: underline;
}

.app-breadcrumbs .separator,
.game-breadcrumbs .separator {
	color: #ccc;
}

.app-breadcrumbs .current,
.game-breadcrumbs .current {
	color: #333;
	font-weight: 500;
}



.app-header,
.game-header {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 16px 0 0 0; 
	border-bottom: none; 
	margin-bottom: 0; 
}

@media (max-width: 768px) {
	.app-header,
	.game-header {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 16px;
	}
}


.app-header__icon,
.game-header__icon {
	width: 120px;
	height: 120px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	background: #f8f8f8;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.app-header__icon,
	.game-header__icon {
		margin: 0 auto;
	}
}

.app-header__icon img,
.game-header__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}


.app-header__info,
.game-header__info {
	min-width: 0;
}

.app-header__title,
.game-header__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px 0;
	line-height: 1.2;
	color: #1a1a1a;
}

@media (max-width: 768px) {
	.app-header__title,
	.game-header__title {
		font-size: 24px;
	}
}

.app-header__meta,
.game-header__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	font-size: 14px;
	color: #666;
}

@media (max-width: 768px) {
	.app-header__meta,
	.game-header__meta {
		justify-content: center;
	}
}

.app-meta__platform,
.game-meta__platform {
	color: #0066cc;
	text-decoration: underline;
	font-weight: 500;
	transition: color 0.2s;
}

.app-meta__platform:hover,
.game-meta__platform:hover {
	color: #0066cc;
	text-decoration: underline;
}

.app-meta__category,
.game-meta__category {
	color: #0066cc;
	text-decoration: underline;
	font-weight: 500;
	transition: color 0.2s;
}

.app-meta__category:hover,
.game-meta__category:hover {
	color: #0066cc;
	text-decoration: underline;
}

.app-meta__separator,
.game-meta__separator {
	color: #ccc;
}

.app-meta__developer,
.game-meta__developer {
	color: #666;
}

.app-meta__developer a,
.game-meta__developer a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s;
}

.app-meta__developer a:hover,
.game-meta__developer a:hover {
	color: #0066cc;
	text-decoration: underline;
}


.app-header__ratings,
.game-header__ratings {
	display: flex;
	gap: 12px;
	align-items: center;
}

@media (max-width: 768px) {
	.app-header__ratings,
	.game-header__ratings {
		justify-content: center;
	}
}

.rating-compact {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #f8f8f8;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
}

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

.rating-compact--user {
	color: #FFB800;
}

.rating-compact--google {
	color: #34A853;
}

.rating-compact .rating-label {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.7;
	color: #666;
	margin: 0;
}


.app-header__actions,
.game-header__actions {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.app-header__actions,
	.game-header__actions {
		display: flex;
		justify-content: center;
	}
}

.btn-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #0066cc;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
	transition: all 0.2s;
}

.btn-download:hover {
	background: #0052a3;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-download svg {
	flex-shrink: 0;
}



.app-specs-brief,
.game-specs-brief {
	margin-bottom: 32px;
}

.app-specifications {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

.app-specifications__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #1a1a1a;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}


.specs-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 64px; 
}

.specs-grid__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.specs-grid__label {
	font-size: 14px;
	font-weight: 400;
	color: #0000008a; 
	line-height: 1.4;
}

.specs-grid__value {
	font-size: 14px;
	font-weight: 400;
	color: #000000;
	line-height: 1.4;
}


.specs-grid__value--links a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.2s;
}

.specs-grid__value--links a:hover {
	color: #0066cc;
	text-decoration: underline;
}


.package-name {
	font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
	font-size: 13px;
	color: #000000;
	background: transparent;
	padding: 0;
	border-radius: 0;
}


@media (max-width: 768px) {
	.specs-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}



.app-ratings-detailed,
.game-ratings-detailed {
	margin-bottom: 40px;
}

.app-ratings-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px; 
	margin-bottom: 32px;
}

.app-rating {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px; 
	padding: 18px; 
	transition: all 0.2s ease;
}

.app-rating:hover {
	border-color: #d1d5db;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.app-rating__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.app-rating__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #666;
}

.app-rating__icon {
	flex-shrink: 0;
}

.app-rating__value {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
}

.app-rating__value--google {
	color: #34A853;
}

.app-rating__value--user {
	color: #FFB800;
}

.app-rating__max {
	font-size: 18px;
	color: #999;
	font-weight: 400;
}


.app-rating__chart {
	margin: 16px 0;
}

.rating-chart--linear {
	width: 100%;
}

.rating-chart__track {
	position: relative;
	height: 8px;
	background: #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.rating-chart__fill {
	position: relative;
	height: 100%;
	background: #34A853;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.rating-chart__marker {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	background: #fff;
	border: 2px solid #34A853;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-chart__scale {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #999;
	padding: 0 2px;
}


.app-rating__stars {
	margin: 16px 0;
}

.rating-stars--10 {
	display: flex;
	gap: 4px;
	justify-content: space-between;
}

.rating-star {
	flex: 1;
	color: #e5e5e5;
	transition: color 0.2s;
}

.rating-star--filled {
	color: #FFB800;
}

.rating-star svg {
	display: block;
	width: 100%;
	height: auto;
}

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

.app-rating__meta strong {
	color: #1a1a1a;
	font-weight: 600;
}

.app-rating__meta--empty {
	color: #999;
	font-style: italic;
}



.section-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #1a1a1a;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}



.content-screenshots {
	margin: 32px 0 40px 0;
	padding: 24px;
	background: #f8f9fa;
	border-radius: 12px;
}

.content-screenshots__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #1a1a1a;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}


.screenshots-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

@media (max-width: 1024px) {
	.screenshots-gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 14px;
	}
}

@media (max-width: 768px) {
	.screenshots-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.screenshots-gallery-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}


.screenshot-card {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.screenshot-card__link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
	cursor: zoom-in;
}

.screenshot-card__image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.screenshot-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover .screenshot-card__image {
	transform: scale(1.05);
}


.screenshot-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.screenshot-card:hover .screenshot-card__overlay {
	opacity: 1;
	background: rgba(0, 0, 0, 0.4);
}

.screenshot-card__icon {
	color: #fff;
	stroke-width: 2.5;
	transform: scale(0.8);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-card:hover .screenshot-card__icon {
	transform: scale(1);
}


.screenshots-gallery-note {
	font-size: 13px;
	color: #666;
	text-align: center;
	margin: 16px 0 0 0;
	font-style: italic;
}



.app-screenshots,
.game-screenshots {
	margin: 40px 0;
}

.screenshots-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

@media (max-width: 768px) {
	.screenshots-gallery {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}
}

.screenshot-item {
	aspect-ratio: 9 / 16;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s;
}

.screenshot-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}




.app-video,
.game-video {
	margin: 40px 0;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


.app-description,
.game-description {
	margin: 40px 0;
	padding: 0; 
}

.entry-content {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	padding-left: 0 !important; 
	padding-right: 0 !important; 
	margin-left: 0; 
	margin-right: 0; 
}

.entry-content p {
	margin-bottom: 16px;
}

.entry-content h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 32px 0 16px 0;
	color: #1a1a1a;
}

.entry-content h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 24px 0 12px 0;
	color: #333;
}

.entry-content ul,
.entry-content ol {
	margin: 16px 0;
	padding-left: 24px;
}

.entry-content li {
	margin-bottom: 8px;
}


.app-updates,
.game-updates {
	margin: 40px 0;
}

.update-notes {
	background: #f8f8f8;
	padding: 20px;
	border-radius: 12px;
	border-left: 4px solid #0066cc;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

.update-notes p:last-child {
	margin-bottom: 0;
}



.same-developer-section {
	margin: 48px 0;
}

.same-developer__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 24px 0;
	color: #1a1a1a;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}

.same-developer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

@media (max-width: 768px) {
	.same-developer-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 16px;
	}
}

.dev-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s;
}

.dev-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #0066cc;
}

.dev-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	padding: 16px;
	gap: 12px;
}

.dev-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	background: #f8f8f8;
	margin: 0 auto;
}

.dev-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dev-card__icon-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

.dev-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
}

.dev-card__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dev-card__category {
	font-size: 12px;
	color: #666;
}

.dev-card__ratings {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	font-size: 12px;
}

.dev-card__rating {
	display: flex;
	align-items: center;
	gap: 3px;
}

.dev-card__rating--user {
	color: #FFB800;
}

.dev-card__rating--google {
	color: #34A853;
}

.dev-card__rating span {
	font-weight: 600;
	color: #333;
}



.app-similar-section,
.game-similar-section {
	margin: 48px 0;
}

.app-similar__title,
.game-similar__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 24px 0;
	color: #1a1a1a;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}

.app-similar-grid,
.game-similar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

@media (max-width: 768px) {
	.app-similar-grid,
	.game-similar-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 16px;
	}
}

.app-card,
.game-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s;
}

.app-card:hover,
.game-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #0066cc;
}

.app-card__link,
.game-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	padding: 16px;
	gap: 12px;
}

.app-card__icon,
.game-card__icon {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	background: #f8f8f8;
	margin: 0 auto;
}

.app-card__icon img,
.game-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.app-card__icon-placeholder,
.game-card__icon-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

.app-card__body,
.game-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
}

.app-card__title,
.game-card__title {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.app-card__category,
.game-card__category {
	font-size: 13px;
	color: #666;
}

.app-card__ratings,
.game-card__ratings {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	font-size: 13px;
}

.app-card__rating,
.game-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
}

.app-card__rating--user,
.game-card__rating--user {
	color: #FFB800;
}

.app-card__rating--google,
.game-card__rating--google {
	color: #34A853;
}

.app-card__rating span,
.game-card__rating span {
	font-weight: 600;
	color: #333;
}

.app-card__downloads,
.game-card__downloads {
	display: flex;
	align-items: center;
	gap: 4px;
	justify-content: center;
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}



@media (max-width: 768px) {

	.app-header,
	.game-header {
		padding: 20px 0 0 0;
		margin-bottom: 12px;
	}

	.app-specs-brief,
	.game-specs-brief,
	.app-ratings-detailed,
	.game-ratings-detailed {
		margin-bottom: 24px;
	}

	.section-title {
		font-size: 20px;
	}

	.entry-content {
		font-size: 15px;
	}

	.app-ratings-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}



.app-short-description,
.game-short-description {
	margin: 20px 0 24px 0;
	padding: 0;
}

.app-short-description p,
.game-short-description p {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

@media (max-width: 768px) {
	.app-short-description,
	.game-short-description {
		margin: 16px 0 20px 0;
	}

	.app-short-description p,
	.game-short-description p {
		font-size: 15px;
		text-align: center;
	}
}



@media print {
	.btn-download,
	.app-similar-section,
	.game-similar-section,
	.same-developer-section {
		display: none !important;
	}
}