/*
 * CineFetch SEO — front-end styles.
 *
 * These pages land inside an unknown host theme, so the rules below inherit
 * the theme's own font stack and text colour and define structure only. Every
 * colour derives from currentColor or a CSS variable the site owner can
 * override, which keeps the block readable on light and dark themes alike.
 *
 * To match your brand, set one variable in the customiser or your child theme:
 *   :root { --cfseo-brand: #0ea5e9; }
 */

.cfseo-box,
.cfseo-related {
	--cfseo-radius: 10px;
	--cfseo-gap: 1.25rem;
	--cfseo-line: rgba(128, 128, 128, 0.28);
	--cfseo-soft: rgba(128, 128, 128, 0.08);
	--cfseo-accent: var(--cfseo-brand, #e11d48);
}

/* ---------- Info box ---------- */

.cfseo-box {
	display: grid;
	grid-template-columns: minmax(140px, 220px) 1fr;
	gap: var(--cfseo-gap);
	align-items: start;
	margin: 0 0 2rem;
	padding: var(--cfseo-gap);
	border: 1px solid var(--cfseo-line);
	border-radius: var(--cfseo-radius);
	background: var(--cfseo-soft);
}

.cfseo-box-poster img,
.cfseo-poster-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: calc(var(--cfseo-radius) - 4px);
	background: var(--cfseo-soft);
}

.cfseo-box-title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.cfseo-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 0.6rem 1rem;
	margin-bottom: 1.1rem;
}

.cfseo-fact {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.cfseo-fact-label {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.6;
}

.cfseo-fact-value {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.cfseo-box-note {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	opacity: 0.7;
}

/* ---------- Watch button ---------- */

.cfseo-watch-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.4rem;
	border-radius: 999px;
	background: var(--cfseo-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.cfseo-watch-button:hover,
.cfseo-watch-button:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.cfseo-watch-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.cfseo-cta {
	margin: 1.5rem 0;
}

/* ---------- Article furniture ---------- */

.cfseo-details table {
	width: 100%;
	border-collapse: collapse;
}

.cfseo-details th,
.cfseo-details td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--cfseo-line);
	text-align: left;
	vertical-align: top;
}

.cfseo-details th {
	width: 34%;
	font-weight: 600;
	opacity: 0.75;
}

.cfseo-cast-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.cfseo-cast-list li {
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--cfseo-line);
	border-radius: 999px;
	font-size: 0.9rem;
}

.cfseo-faq h3 {
	margin-bottom: 0.35rem;
	font-size: 1.05rem;
}

.cfseo-faq p {
	margin-top: 0;
}

/* ---------- Related grid ---------- */

.cfseo-related {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cfseo-line);
}

.cfseo-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cfseo-related-item a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.cfseo-related-item img {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 8px;
	background: var(--cfseo-soft);
}

.cfseo-related-title {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.cfseo-related-year {
	display: block;
	font-size: 0.78rem;
	opacity: 0.6;
}

/* ---------- Responsive ---------- */

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

	.cfseo-box-poster {
		max-width: 200px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfseo-watch-button {
		transition: none;
	}

	.cfseo-watch-button:hover {
		transform: none;
	}
}
