/* laps4-psn /trofeos/ index and hubs (SEO-UX-SPEC §8, §15). Loaded only on the
   index and hub views, after front.css. Mobile first, no floats, AA contrast. */

.laps4-psn-index,
.laps4-psn-hub {
	--l4h-ink: #1d2230;
	--l4h-muted: #4f5869;
	--l4h-line: #e3e6ec;
	--l4h-soft: #f5f6f9;
	--l4h-accent: #1a49c9;
}

.laps4-psn-index a:focus-visible,
.laps4-psn-hub a:focus-visible,
.laps4-psn-index button:focus-visible,
.laps4-psn-index input:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

.laps4-psn-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--l4h-muted, #4f5869);
}

.laps4-psn-crumbs li + li::before {
	content: "›";
	margin: 0 6px;
}

.l4h-head { margin: 0 0 16px; }

.l4h-h1 {
	margin: 0 0 8px;
	font-size: 1.75rem;
	line-height: 1.2;
	color: var(--l4h-ink);
}

.l4h-pg { font-size: .7em; font-weight: 400; color: var(--l4h-muted); }

.l4h-intro { margin: 0 0 12px; color: var(--l4h-ink); font-size: 1rem; line-height: 1.5; }

.l4h-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.l4h-search label { width: 100%; font-weight: 700; color: var(--l4h-ink); }
.l4h-search input { flex: 1 1 200px; min-height: 40px; padding: 6px 10px; border: 1px solid #8a93a5; border-radius: 4px; }
.l4h-search button {
	min-height: 40px;
	padding: 6px 16px;
	border: 0;
	border-radius: 4px;
	background: var(--l4h-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.l4h-block { margin: 0 0 24px; }

.l4h-h {
	margin: 0 0 10px;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--l4h-line);
	font-size: 1.25rem;
	color: var(--l4h-ink);
}

.l4h-note { margin: 0 0 10px; color: var(--l4h-muted); font-size: .9375rem; }

.l4h-tiles,
.l4h-letters,
.l4h-more,
.l4h-list { margin: 0; padding: 0; list-style: none; }

/* One row of five on desktop, 3 + 2 on tablets, 2 per row on phones; equal heights. */
.l4h-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.l4h-tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 480px) {
	.l4h-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.l4h-tiles > li:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 720px) { .l4h-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.l4h-tiles > li { display: flex; margin: 0; }

.l4h-tile {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	min-height: 92px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #262b3a;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
	color: #fff !important;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.l4h-tile:hover,
.l4h-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 24, 40, .22); }
.l4h-tile[aria-current] { outline: 3px solid #f5b400; outline-offset: 2px; }

.l4h-tile-label { display: flex; flex-direction: column; font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.01em; }
.l4h-tile-pre { font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-bottom: 2px; }
.l4h-tile-count { font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .88); }
.l4h-tile-count::after { content: " \203A"; }

.l4h-plat-ps5 { background-color: #0a4fb5; }
.l4h-plat-ps4 { background-color: #003087; }
.l4h-plat-ps3 { background-color: #1b1b1b; }
.l4h-plat-psvita { background-color: #3d4452; }
.l4h-plat-pspc { background-color: #2b5a2b; }
@media (prefers-reduced-motion: reduce) { .l4h-tile { transition: none; } .l4h-tile:hover { transform: none; } }

.l4h-letters { display: flex; flex-wrap: wrap; gap: 4px; }

.l4h-letters a,
.l4h-letters span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 6px;
	border: 1px solid var(--l4h-line);
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
}

.l4h-letters a { color: var(--l4h-accent); background: #fff; }
.l4h-letters a[aria-current] { background: var(--l4h-accent); color: #fff; }
.l4h-letters span { color: #8a93a5; background: var(--l4h-soft); }

.l4h-more { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 24px; }
.l4h-more a { font-weight: 700; color: var(--l4h-accent); }

.l4h-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid var(--l4h-line);
}

.l4h-rank {
	flex: 0 0 auto;
	min-width: 28px;
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--l4h-muted);
	text-align: right;
}

.l4h-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	background: var(--l4h-soft);
	overflow: hidden;
}

.l4h-thumb img { display: block; width: 64px; height: 64px; object-fit: contain; }

.l4h-body { min-width: 0; flex: 1 1 auto; }

.l4h-title { margin: 0 0 4px; font-size: 1.0625rem; line-height: 1.3; }
.l4h-title a { color: var(--l4h-ink); }

.l4h-meta,
.l4h-counts,
.l4h-facts { margin: 0 0 2px; font-size: .875rem; line-height: 1.4; color: var(--l4h-muted); }

.l4h-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }

.l4h-plat {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 100px;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	background-color: #3d4452;
}

.l4h-t { white-space: nowrap; }
.l4h-t + .l4h-t::before { content: "· "; }
.l4h-facts { color: var(--l4h-ink); }

.l4h-morelink { margin: 8px 0 0; }
.l4h-morelink a { font-weight: 700; color: var(--l4h-accent); }

.l4h-empty { padding: 16px; margin: 0 0 24px; border-radius: 6px; background: var(--l4h-soft); }

.l4h-pages { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 24px; }

.l4h-pages a,
.l4h-pages span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 8px;
	border: 1px solid var(--l4h-line);
	border-radius: 4px;
	text-decoration: none;
}

.l4h-pages a { color: var(--l4h-accent); }
.l4h-pages .current { background: var(--l4h-accent); color: #fff; font-weight: 700; }
.l4h-pages .gap { border: 0; }

@media (min-width: 992px) {
	.l4h-h1 { font-size: 2rem; }
}

.l4h-thumb picture { display: block; }
