/* GTA 6 Database — детальная карточка элемента */

.g6-card-page {
	--g6-accent: #e6007e;
	--g6-accent-2: #00c2ff;
	--g6-bg: #11121a;
	--g6-card: #1a1b25;
	--g6-panel: #1f202b;
	--g6-text: #f2f3f7;
	--g6-muted: #9aa0ae;
	--g6-line: rgba(255, 255, 255, 0.08);
	--g6-radius: 14px;
}

/* Хлебные крошки */
.g6-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--g6-muted);
}

.g6-crumbs li + li::before {
	content: "›";
	margin-right: 6px;
	opacity: 0.6;
}

.g6-crumbs a {
	color: inherit;
	text-decoration: none;
}

.g6-crumbs a:hover {
	color: var(--g6-accent);
}

/* Раскладка: контент + сайдбар */
.g6-card-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}

@media (max-width: 1020px) {
	.g6-card-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Шапка карточки */
.g6-card-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
}

.g6-card-head__title {
	margin: 0;
	font-size: clamp(26px, 4vw, 42px);
	line-height: 1.1;
}

.g6-card-head__sub {
	margin: 6px 0 0;
	font-size: 15px;
	color: var(--g6-muted);
}

/* Поделиться */
.g6-share {
	display: flex;
	align-items: center;
	gap: 6px;
}

.g6-share__label {
	margin-right: 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--g6-muted);
}

.g6-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.07);
	color: inherit;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.g6-share__btn:hover {
	transform: translateY(-2px);
	color: #fff;
}

.g6-share__btn.is-vk:hover { background: #07f; }
.g6-share__btn.is-telegram:hover { background: #29a9eb; }
.g6-share__btn.is-facebook:hover { background: #1877f2; }
.g6-share__btn.is-x:hover { background: #000; }
.g6-share__btn.is-reddit:hover { background: #ff4500; }

/* Главное изображение */
.g6-hero {
	position: relative;
	margin: 0 0 18px;
	overflow: hidden;
	border: 1px solid var(--g6-line);
	border-radius: var(--g6-radius);
	background: linear-gradient(135deg, #22232f, #15161e);
}

.g6-hero img {
	display: block;
	width: 100%;
	height: auto;
}

.g6-hero__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.g6-hero__brand {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: flex;
	align-items: center;
	padding: 8px 12px;
	background: rgba(10, 11, 16, 0.78);
	border-radius: 10px;
	backdrop-filter: blur(4px);
}

.g6-brand-logo {
	display: block;
	width: auto;
	max-width: 120px;
	object-fit: contain;
}

/* Рейтинг и действия */
.g6-rate {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	padding: 14px 16px;
	margin-bottom: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--g6-line);
	border-radius: var(--g6-radius);
}

.g6-rate__stars {
	display: inline-flex;
	gap: 2px;
}

.g6-rate__star {
	display: inline-flex;
	padding: 2px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: color 0.12s ease, transform 0.12s ease;
}

.g6-rate__star:hover {
	transform: scale(1.14);
}

.g6-rate__star.is-on,
.g6-rate__star.is-hover {
	color: #ffc53d;
}

.g6-rate__value {
	margin: 0;
	font-size: 14px;
	color: var(--g6-muted);
}

.g6-rate__value strong {
	font-size: 19px;
	color: var(--g6-text);
}

.g6-rate__votes {
	white-space: nowrap;
}

.g6-rate__actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.g6-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.g6-action:hover {
	border-color: var(--g6-accent);
}

.g6-action.is-active {
	background: var(--g6-accent);
	border-color: var(--g6-accent);
	color: #fff;
}

/* Выпадающий список сравнения */
.g6-compare-pick {
	position: relative;
}

.g6-compare-pick__list {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 20;
	min-width: 220px;
	max-height: 280px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--g6-panel);
	border: 1px solid var(--g6-line);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.g6-compare-pick__list a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
}

.g6-compare-pick__list a:hover {
	background: rgba(255, 255, 255, 0.07);
}

/* Вводный текст и метки */
.g6-intro {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.6;
}

.g6-intro p {
	margin: 0;
}

.g6-alsoin {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--g6-muted);
}

.g6-alsoin a,
.g6-alsoin em {
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	font-style: normal;
	text-decoration: none;
	color: var(--g6-text);
}

.g6-alsoin a:hover {
	background: var(--g6-accent);
	color: #fff;
}

/* Общий блок карточки */
.g6-card-block {
	margin: 0 0 28px;
	padding: 18px;
	background: var(--g6-card);
	border: 1px solid var(--g6-line);
	border-radius: var(--g6-radius);
}

.g6-card-block__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 20px;
	line-height: 1.25;
}

.g6-card-block__title .g6-brand-logo {
	max-height: 28px;
}

/* Таблица характеристик */
.g6-info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
}

.g6-info--single {
	grid-template-columns: minmax(0, 1fr);
}

.g6-info__col {
	margin: 0;
}

.g6-info__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.g6-info__row dt {
	flex: 0 0 auto;
	font-size: 13px;
	color: var(--g6-muted);
}

.g6-info__row dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
	font-size: 15px;
}

.g6-info__row dd a {
	color: var(--g6-accent-2);
	text-decoration: none;
}

.g6-info__row dd a:hover {
	text-decoration: underline;
}

.g6-info__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.g6-info__brand .g6-brand-logo {
	max-height: 22px;
}

.g6-info__tag {
	display: inline-block;
	margin: 0 0 4px 4px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(0, 194, 255, 0.14);
	color: var(--g6-accent-2);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

@media (max-width: 720px) {
	.g6-info {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Бейджи статуса */
.g6-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-style: normal;
}

.g6-badge.is-soon {
	background: rgba(255, 197, 61, 0.16);
	color: #ffc53d;
}

.g6-badge.is-ingame {
	background: rgba(74, 222, 128, 0.16);
	color: #4ade80;
}

.g6-badge.is-removed {
	background: rgba(248, 113, 113, 0.16);
	color: #f87171;
}

/* Полосы характеристик */
.g6-stats__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.g6-stats__header .g6-card-block__title {
	margin: 0;
}

.g6-stats__pending {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-left: 3px solid #ffc53d;
	background: rgba(255, 197, 61, 0.08);
	font-size: 14px;
	color: var(--g6-muted);
}

.g6-stats__list {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.g6-stats__item {
	display: grid;
	grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 76px;
	align-items: center;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.g6-stats__item:last-child {
	border-bottom: 0;
}

.g6-stats__label {
	font-size: 14px;
	color: var(--g6-muted);
}

.g6-stats__bar {
	position: relative;
	height: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.g6-stats__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--g6-accent), var(--g6-accent-2));
}

/* Пустая шкала — пунктир, пока данных нет */
.g6-stats__item.is-empty .g6-stats__bar {
	background: repeating-linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.16) 0 7px,
		transparent 7px 14px
	);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.g6-stats__value {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	text-align: right;
	font-size: 14px;
}

.g6-stats__item.is-empty .g6-stats__value {
	color: var(--g6-muted);
	font-weight: 500;
}

/* Лайки */
.g6-stats__item--vote {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--g6-line);
}

.g6-stats__thumbs {
	display: flex;
	gap: 8px;
}

.g6-thumb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.g6-thumb.is-up:hover,
.g6-thumb.is-up.is-voted {
	border-color: #4ade80;
	color: #4ade80;
}

.g6-thumb.is-down:hover,
.g6-thumb.is-down.is-voted {
	border-color: #f87171;
	color: #f87171;
}

@media (max-width: 620px) {
	.g6-stats__item {
		grid-template-columns: minmax(0, 1fr) 64px;
		gap: 6px 10px;
	}

	.g6-stats__bar {
		grid-column: 1 / -1;
		order: 3;
	}
}

/* Описание */
.g6-quote {
	margin: 0;
	padding: 14px 18px;
	border-left: 3px solid var(--g6-accent);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0 10px 10px 0;
	font-size: 16px;
	line-height: 1.65;
}

.g6-quote p:last-child {
	margin-bottom: 0;
}

.g6-card-prose {
	margin-top: 16px;
	line-height: 1.7;
}

.g6-card-prose h2,
.g6-card-prose h3 {
	margin: 24px 0 10px;
	font-size: 18px;
}

.g6-card-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

/* Скриншоты */
.g6-shots {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.g6-shots__item {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	aspect-ratio: 16 / 10;
	background: rgba(255, 255, 255, 0.05);
}

.g6-shots__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.g6-shots__item:hover img {
	transform: scale(1.06);
}

@media (max-width: 860px) {
	.g6-shots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Лайтбокс */
.g6-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(6, 7, 11, 0.93);
}

.g6-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
}

.g6-lightbox__close,
.g6-lightbox__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.g6-lightbox__close {
	top: 18px;
	right: 18px;
}

.g6-lightbox__nav.is-prev { left: 18px; }
.g6-lightbox__nav.is-next { right: 18px; }

.g6-lightbox__close:hover,
.g6-lightbox__nav:hover {
	background: var(--g6-accent, #e6007e);
}

/* Переход между элементами */
.g6-cardnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0 0 28px;
}

.g6-cardnav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--g6-card);
	border: 1px solid var(--g6-line);
	border-radius: var(--g6-radius);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.g6-cardnav__item:hover {
	border-color: var(--g6-accent);
	transform: translateY(-2px);
}

.g6-cardnav__item.is-next {
	justify-content: flex-end;
	text-align: right;
}

.g6-cardnav__arrow {
	font-size: 20px;
	color: var(--g6-muted);
}

.g6-cardnav__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.g6-cardnav__text small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--g6-muted);
}

.g6-cardnav__text strong {
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Появления в играх */
.g6-appear {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.g6-appear__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--g6-line);
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

a.g6-appear__card:hover {
	border-color: var(--g6-accent);
	transform: translateY(-2px);
}

.g6-appear__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: rgba(255, 255, 255, 0.05);
}

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

.g6-appear__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	padding: 12px 14px;
}

.g6-appear__body strong {
	font-size: 16px;
}

.g6-appear__body span {
	font-size: 13px;
	color: var(--g6-muted);
}

/* Сайдбар */
.g6-aside__block {
	padding: 16px;
	background: var(--g6-card);
	border: 1px solid var(--g6-line);
	border-radius: var(--g6-radius);
}

.g6-aside__title {
	margin: 0 0 12px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--g6-muted);
}

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

.g6-aside__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: inherit;
	text-decoration: none;
}

.g6-aside__item:hover .g6-aside__text strong {
	color: var(--g6-accent);
}

.g6-aside__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 42px;
	overflow: hidden;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.06);
}

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

.g6-aside__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.g6-aside__text small {
	font-size: 11px;
	color: var(--g6-muted);
}

.g6-aside__text strong {
	font-size: 14px;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.g6-aside__all {
	display: block;
	margin-top: 12px;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	text-align: center;
	font-size: 13px;
	text-decoration: none;
	color: inherit;
}

.g6-aside__all:hover {
	border-color: var(--g6-accent);
}

@media (min-width: 1021px) {
	.g6-aside {
		position: sticky;
		top: 20px;
	}
}

/* Светлая тема */
@media (prefers-color-scheme: light) {
	.g6-card-page:not(.g6-force-dark) {
		--g6-card: #fff;
		--g6-panel: #fff;
		--g6-text: #16171f;
		--g6-muted: #5c6270;
		--g6-bg: #fff;
		--g6-line: rgba(0, 0, 0, 0.1);
	}

	.g6-card-page:not(.g6-force-dark) .g6-rate,
	.g6-card-page:not(.g6-force-dark) .g6-quote {
		background: rgba(0, 0, 0, 0.03);
	}

	.g6-card-page:not(.g6-force-dark) .g6-info__row {
		border-bottom-color: rgba(0, 0, 0, 0.12);
	}

	.g6-card-page:not(.g6-force-dark) .g6-stats__bar,
	.g6-card-page:not(.g6-force-dark) .g6-aside__thumb,
	.g6-card-page:not(.g6-force-dark) .g6-shots__item {
		background: rgba(0, 0, 0, 0.07);
	}

	.g6-card-page:not(.g6-force-dark) .g6-stats__item.is-empty .g6-stats__bar {
		background: repeating-linear-gradient(
			90deg,
			rgba(0, 0, 0, 0.18) 0 7px,
			transparent 7px 14px
		);
	}

	.g6-card-page:not(.g6-force-dark) .g6-share__btn,
	.g6-card-page:not(.g6-force-dark) .g6-alsoin a,
	.g6-card-page:not(.g6-force-dark) .g6-alsoin em {
		background: rgba(0, 0, 0, 0.06);
	}

	.g6-card-page:not(.g6-force-dark) .g6-rate__star {
		color: rgba(0, 0, 0, 0.18);
	}
}
