/* Central de Downloads - tema Dracula */

:root {
	--bg: #14151c;
	--bg-soft: #1b1c25;
	--surface: #232530;
	--surface-hi: #2d2f3d;
	--line: #353748;
	--fg: #f8f8f2;
	--muted: #9aa3c7;
	--comment: #6272a4;
	--purple: #bd93f9;
	--pink: #ff79c6;
	--cyan: #8be9fd;
	--green: #50fa7b;
	--orange: #ffb86c;
	--red: #ff5555;
	--radius: 16px;
	--wrap: 1180px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--bg);
	background-image:
		radial-gradient(900px 500px at 12% -10%, rgba(189, 147, 249, 0.16), transparent 60%),
		radial-gradient(800px 480px at 95% 0%, rgba(255, 121, 198, 0.10), transparent 60%);
	background-repeat: no-repeat;
	color: var(--fg);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 3px;
}

/* Topbar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(20, 21, 28, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.topbar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--purple), var(--pink));
	color: #14151c;
	font-size: 17px;
}

.brand em {
	font-style: normal;
	color: var(--purple);
}

/* Botoes */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	flex: 1;
	background: linear-gradient(135deg, var(--purple), var(--pink));
	color: #14151c;
}

.btn-primary:hover {
	box-shadow: 0 8px 24px -8px rgba(255, 121, 198, 0.7);
}

.btn-ghost {
	width: 44px;
	padding: 0;
	background: var(--surface-hi);
	border-color: var(--line);
	color: var(--muted);
}

.btn-ghost:hover {
	border-color: var(--cyan);
	color: var(--cyan);
}

.btn-support {
	height: 40px;
	background: rgba(80, 250, 123, 0.12);
	border-color: rgba(80, 250, 123, 0.35);
	color: var(--green);
}

.btn-support:hover {
	background: var(--green);
	color: #14151c;
}

/* Hero */

.hero {
	padding: 56px 0 28px;
}

.hero .wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--cyan);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0 0 16px;
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.hero h1 span {
	background: linear-gradient(90deg, var(--purple), var(--pink));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero p.lead {
	margin: 0 0 28px;
	max-width: 46ch;
	color: var(--muted);
	font-size: 17px;
}

.search {
	position: relative;
	max-width: 460px;
}

.search i {
	position: absolute;
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
	color: var(--comment);
	pointer-events: none;
}

.search input {
	width: 100%;
	height: 54px;
	padding: 0 18px 0 48px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	color: var(--fg);
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search input::placeholder {
	color: var(--comment);
}

.search input:focus {
	outline: none;
	border-color: var(--purple);
	box-shadow: 0 0 0 4px rgba(189, 147, 249, 0.18);
}

.hero-art {
	position: relative;
}

.hero-art::before {
	content: "";
	position: absolute;
	inset: 8% 4% -6%;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--purple), var(--pink));
	filter: blur(48px);
	opacity: 0.35;
}

.hero-art img {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 900;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: 22px;
	box-shadow: 0 30px 60px -30px #000;
}

/* Filtros */

.filters {
	position: sticky;
	top: 64px;
	z-index: 10;
	padding: 14px 0;
	background: linear-gradient(var(--bg) 70%, transparent);
}

.chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.chips::-webkit-scrollbar {
	display: none;
}

.chip {
	flex: none;
	height: 38px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--muted);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.chip:hover {
	border-color: var(--comment);
	color: var(--fg);
}

.chip[aria-pressed="true"] {
	background: var(--purple);
	border-color: var(--purple);
	color: #14151c;
	font-weight: 600;
}

/* Secoes e cards */

.section {
	padding: 20px 0 28px;
}

.section-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 18px;
}

.section-head h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.section-head .count {
	color: var(--comment);
	font-size: 14px;
}

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

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: var(--purple);
	box-shadow: 0 20px 40px -24px rgba(189, 147, 249, 0.6);
}

.card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-hi);
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card-media img {
	transform: scale(1.05);
}

.badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(20, 21, 28, 0.85);
	color: var(--green);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.badge.exe {
	color: var(--cyan);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
}

.card-body h3 {
	flex: 1;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.card-actions {
	display: flex;
	gap: 8px;
}

.empty {
	margin: 40px 0;
	padding: 40px 20px;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
}

[hidden] {
	display: none !important;
}

/* Rodape */

.footer {
	margin-top: 40px;
	padding: 40px 0;
	border-top: 1px solid var(--line);
	background: var(--bg-soft);
}

.footer .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.footer h2 {
	margin: 0 0 4px;
	font-size: 18px;
}

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

.footer .btn-support {
	height: 48px;
	padding: 0 22px;
	font-size: 15px;
}

/* Toast */

.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 30;
	padding: 12px 18px;
	border: 1px solid var(--green);
	border-radius: 12px;
	background: var(--surface);
	color: var(--green);
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 16px 40px -16px #000;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Responsivo */

@media (max-width: 860px) {
	.hero {
		padding-top: 28px;
	}

	.hero .wrap {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hero-art {
		order: -1;
	}

	.search {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.wrap {
		padding: 0 16px;
	}

	.brand span.full {
		display: none;
	}

	.grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.card-body {
		gap: 10px;
		padding: 12px;
	}

	.card-body h3 {
		font-size: 14px;
	}

	.btn-primary {
		padding: 0 10px;
	}

	.footer .wrap {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* Capa sem imagem (players) */

.card-cover {
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%),
		var(--surface-hi);
	color: var(--accent);
	font-size: 56px;
}

.card-cover .size {
	position: absolute;
	right: 10px;
	bottom: 10px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}
