/* RespawnNow IGDB - Compact game sheet card */
.igdb-ficha,
.respawnnow-igdb-sheet {
	max-width: 100%;
	margin: 0 0 1.1rem;
	padding: 0.9rem 1.1rem;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	font-size: inherit;
	line-height: inherit;
}

.igdb-ficha.post-section {
	margin-top: 1.1rem;
}

.igdb-ficha__title {
	margin: 0 0 0.75rem;
	font-size: 1.2em;
	line-height: 1.25;
	font-weight: 600;
}

/*
 * 3-column layout:
 * - Optional cover
 * - Main body (meta + chips)
 * - Scores column
 */
.igdb-ficha__grid {
	display: grid;
	gap: 0.9rem 1rem;
	align-items: start;
}

/* With cover + scores */
.igdb-ficha--has-cover.igdb-ficha--has-scores .igdb-ficha__grid {
	grid-template-columns: 92px 1fr 200px;
}

/* No cover + scores */
.igdb-ficha--no-cover.igdb-ficha--has-scores .igdb-ficha__grid {
	grid-template-columns: 1fr 200px;
}

/* No scores */
.igdb-ficha--has-cover.igdb-ficha--no-scores .igdb-ficha__grid {
	grid-template-columns: 92px 1fr;
}
.igdb-ficha--no-cover.igdb-ficha--no-scores .igdb-ficha__grid {
	grid-template-columns: 1fr;
}

/* Cover */
.igdb-ficha__cover img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

/* Main body */
.igdb-ficha__body {
	min-width: 0;
}

/* Meta becomes tile grid */
.igdb-ficha__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.55rem 0.75rem;
	align-items: start;
}

.igdb-ficha__meta-item {
	display: block;
	margin: 0;
	padding: 0.5rem 0.6rem;
	font-size: 0.92em;
	line-height: 1.35;
}

.igdb-ficha__meta-item--wide {
	grid-column: 1 / -1;
}

.igdb-ficha__label {
	display: block;
	margin: 0 0 0.22rem;
	font-weight: 600;
	opacity: 0.85;
}

.igdb-ficha__value {
	display: block;
	word-break: break-word;
	opacity: 0.95;
}

/* Chips */
.igdb-ficha__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.32rem;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
}

.igdb-ficha__chips li {
	margin: 0;
}

.igdb-ficha__chip {
	display: inline-block;
	padding: 0.2em 0.55em;
	font-size: 0.85em;
	line-height: 1.25;
	background: rgba(0, 0, 0, 0.07);
	border-radius: 999px;
	white-space: nowrap;
}

/* Scores column */
.igdb-ficha__scores {
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.6rem 0.65rem;
	border-radius: 8px;
}

.igdb-ficha__score {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.15rem;
}

.igdb-ficha__score-main {
	font-weight: 600;
	font-size: 1em;
}

.igdb-ficha__score-label {
	opacity: 0.9;
	font-size: 0.9em;
}

.igdb-ficha__score-value {
	font-size: 1.15em;
	line-height: 1.1;
}

.igdb-ficha__score-den {
	opacity: 0.7;
	font-size: 0.85em;
	margin-left: 0.15em;
}

.igdb-ficha__score-meta {
	opacity: 0.7;
	font-size: 0.9em;
}

/* Optional: make Respawn Now stand out slightly without breaking site style */
.igdb-ficha__score--respawn .igdb-ficha__score-label {
	opacity: 1;
}

/* Stores / Dónde comprar */
.igdb-ficha__stores {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.igdb-ficha__stores-title {
	margin: 0 0 0.4em;
	font-size: 1em;
	font-weight: 600;
}

.igdb-ficha__store-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 0.55em;
}

.igdb-ficha__store-link {
	display: inline-block;
	padding: 0.28em 0.62em;
	font-size: 0.9em;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	text-decoration: none;
}

.igdb-ficha__store-link:hover {
	background: rgba(0, 0, 0, 0.12);
}

/* Summary / Storyline */
.igdb-ficha__summary,
.igdb-ficha__storyline {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.igdb-ficha__summary-title,
.igdb-ficha__storyline-title {
	margin: 0 0 0.35em;
	font-size: 1em;
	font-weight: 600;
}

.igdb-ficha__summary-content,
.igdb-ficha__storyline-content {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.55;
}

.igdb-ficha__summary-content p,
.igdb-ficha__storyline-content p {
	margin: 0 0 0.5em;
}

.igdb-ficha__summary-content p:last-child,
.igdb-ficha__storyline-content p:last-child {
	margin-bottom: 0;
}

/* Responsive: stack scores under body */
@media (max-width: 860px) {
	.igdb-ficha--has-cover.igdb-ficha--has-scores .igdb-ficha__grid,
	.igdb-ficha--no-cover.igdb-ficha--has-scores .igdb-ficha__grid {
		grid-template-columns: 1fr;
	}

	.igdb-ficha__cover {
		max-width: 120px;
	}
}