/*
 * Pork Games - homepage.
 * Scoped to .pork-home so it never fights the theme on inner pages.
 */

.pork-home {
	--pork-ink: #3b2b2f;
	--pork-ink-soft: #7d6a6e;
	--pork-cream: #fff7f1;
	--pork-card: #ffffff;
	--pork-pink: #ef5f80;
	--pork-pink-soft: #ffe3ea;
	--pork-yellow: #ffc53d;
	--pork-line: #f2e2da;
	--pork-radius: 20px;
	--pork-shadow: 0 10px 24px rgba(90, 50, 40, 0.09);

	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 16px 48px;
	color: var(--pork-ink);
}

.pork-home a {
	text-decoration: none;
	color: inherit;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.pork-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	background: linear-gradient(135deg, #fff2e6 0%, #ffe6ec 100%);
	border: 2px solid var(--pork-line);
	border-radius: 28px;
	padding: 32px 34px;
	margin: 18px 0 34px;
}

.pork-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pork-pink);
}

.pork-hero__title {
	margin: 0 0 12px;
	font-size: clamp(30px, 4.4vw, 46px) !important;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pork-hero__text {
	margin: 0 0 20px;
	max-width: 46ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--pork-ink-soft);
}

.pork-search {
	display: flex;
	gap: 10px;
	max-width: 460px;
}

.pork-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 13px 18px;
	border: 2px solid var(--pork-line);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	color: var(--pork-ink);
}

.pork-search input[type="search"]:focus {
	outline: none;
	border-color: var(--pork-pink);
}

.pork-search button {
	flex: 0 0 auto;
	padding: 13px 24px;
	border: none;
	border-radius: 999px;
	background: var(--pork-pink);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.pork-search button:hover {
	background: #d94b6b;
	transform: translateY(-1px);
}

.pork-spotlight {
	position: relative;
	display: block;
	border-radius: var(--pork-radius);
	overflow: hidden;
	background: var(--pork-card);
	box-shadow: var(--pork-shadow);
	aspect-ratio: 16 / 10;
}

.pork-spotlight img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pork-spotlight:hover img {
	transform: scale(1.04);
}

.pork-spotlight__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--pork-yellow);
	color: #4a3410;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pork-spotlight__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 34px 18px 16px;
	background: linear-gradient(to top, rgba(35, 20, 22, 0.86), rgba(35, 20, 22, 0));
	color: #fff;
}

.pork-spotlight__title {
	font-size: 19px;
	font-weight: 700;
}

.pork-spotlight__plays {
	font-size: 13px;
	opacity: 0.85;
	white-space: nowrap;
}

/* ── Shelves ───────────────────────────────────────────────────────── */

.pork-shelf {
	margin-bottom: 38px;
}

.pork-shelf__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.pork-shelf__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	font-size: 22px !important;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pork-shelf__icon {
	font-size: 22px;
	line-height: 1;
}

.pork-shelf__subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--pork-ink-soft);
}

.pork-shelf__more {
	flex: 0 0 auto;
	padding: 9px 18px;
	border-radius: 999px;
	border: 2px solid var(--pork-line);
	font-size: 14px;
	font-weight: 700;
	color: var(--pork-ink);
	transition: border-color 0.15s ease, color 0.15s ease;
}

.pork-shelf__more:hover {
	border-color: var(--pork-pink);
	color: var(--pork-pink);
}

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

.pork-shelf--feature .pork-grid {
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

/* ── Card ──────────────────────────────────────────────────────────── */

.pork-card {
	display: block;
}

.pork-card__art {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: var(--pork-radius);
	overflow: hidden;
	background: var(--pork-pink-soft);
	box-shadow: var(--pork-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.pork-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 44px;
}

.pork-card:hover .pork-card__art {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(90, 50, 40, 0.18);
}

.pork-card__play {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 0;
	background: var(--pork-pink);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transform: translateY(100%);
	transition: transform 0.18s ease;
}

.pork-card:hover .pork-card__play,
.pork-card:focus-visible .pork-card__play {
	transform: translateY(0);
}

.pork-card__label {
	display: block;
	padding: 10px 4px 0;
}

.pork-card__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pork-card__plays {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--pork-ink-soft);
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.pork-hero {
		grid-template-columns: 1fr;
		padding: 26px 22px;
	}

	.pork-spotlight {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 600px) {
	.pork-home {
		padding: 4px 12px 36px;
	}

	.pork-grid,
	.pork-shelf--feature .pork-grid {
		grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
		gap: 12px;
	}

	.pork-shelf__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.pork-search {
		flex-direction: column;
	}

	.pork-search button {
		width: 100%;
	}
}
