/* =========================================================================
   FinalExplicado - Pagina de estrenos de cine en Espana.
   ========================================================================= */

:root {
	--fe-bg: #070a10;
	--fe-bg-2: #0a0e16;
	--fe-surface: #10141c;
	--fe-surface-2: #121722;
	--fe-border: #252b36;
	--fe-text: #f5f5f7;
	--fe-muted: #a6abb8;
	--fe-primary: #a970ff;
	--fe-accent: #ff8aa8;
	--fe-radius: 16px;
	--fe-radius-sm: 10px;
	--fe-maxw: 1240px;
	--fe-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

body.page-template-template-estrenos-php {
	background: var(--fe-bg);
	color: var(--fe-text);
	font-family: var(--fe-font);
}

body.page-template-template-estrenos-php #page,
body.page-template-template-estrenos-php .site-content,
body.page-template-template-estrenos-php .ast-container {
	background: transparent;
	max-width: none;
	padding: 0;
	margin: 0;
}

.fe-estrenos-page {
	width: 100%;
	padding-bottom: 64px;
}

.fe-estrenos-hero {
	margin-bottom: 24px;
}

.fe-estrenos-intro {
	margin-bottom: 28px;
}

.fe-estrenos-intro__body {
	max-width: 820px;
	color: var(--fe-muted);
	line-height: 1.7;
	font-size: 1.02rem;
}

.fe-estrenos-intro__body p:last-child {
	margin-bottom: 0;
}

.fe-estrenos-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(7, 10, 16, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--fe-border);
	margin-bottom: 36px;
}

.fe-estrenos-nav__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 0;
}

.fe-estrenos-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--fe-border);
	color: var(--fe-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.fe-estrenos-nav__link:hover,
.fe-estrenos-nav__link:focus-visible {
	border-color: var(--fe-primary);
	background: rgba(169, 112, 255, 0.08);
}

.fe-estrenos-nav__count {
	display: inline-flex;
	min-width: 1.6rem;
	justify-content: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(169, 112, 255, 0.16);
	color: var(--fe-primary);
	font-size: 0.82rem;
}

.fe-estrenos-section {
	margin-bottom: 48px;
	scroll-margin-top: 88px;
}

.fe-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.fe-section__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.fe-grid--4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 1100px) {
	.fe-grid--4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.fe-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

.fe-estrenos-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--fe-surface);
	border: 1px solid var(--fe-border);
	border-radius: var(--fe-radius);
	overflow: hidden;
}

.fe-estrenos-card__media {
	position: relative;
	aspect-ratio: 2 / 3;
	background: var(--fe-surface-2);
	overflow: hidden;
}

.fe-estrenos-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fe-estrenos-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1b1030 0%, #2a1550 45%, #a970ff 160%);
}

.fe-estrenos-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	flex: 1;
}

.fe-estrenos-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.fe-estrenos-card__date {
	margin: 0;
	color: var(--fe-muted);
	font-size: 0.88rem;
}

.fe-estrenos-card__footer {
	margin-top: auto;
}

.fe-estrenos-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fe-estrenos-card__badge--ok {
	background: rgba(16, 185, 129, 0.14);
	color: #6ee7b7;
}

.fe-estrenos-card__badge--pending {
	background: rgba(166, 171, 184, 0.12);
	color: var(--fe-muted);
}

.fe-estrenos-card__link {
	display: inline-flex;
	margin-top: 10px;
	color: var(--fe-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}

.fe-estrenos-card__link:hover,
.fe-estrenos-card__link:focus-visible {
	text-decoration: underline;
}

.fe-estrenos-empty {
	padding: 28px 0;
}

.fe-container {
	width: min(100% - 32px, var(--fe-maxw));
	margin-inline: auto;
}

.fe-author-hero {
	position: relative;
	padding: 56px 0 40px;
	overflow: hidden;
}

.fe-author-hero__inner--center {
	text-align: center;
}

.fe-author-hero__title {
	margin: 12px 0;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.fe-author-hero__bio {
	max-width: 760px;
	margin: 0 auto;
	color: var(--fe-muted);
	line-height: 1.7;
}

.fe-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(169, 112, 255, 0.14);
	color: var(--fe-primary);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fe-arc-hero__glow {
	position: absolute;
	inset: auto 0 0 0;
	height: 180px;
	background: radial-gradient(circle at 50% 100%, rgba(169, 112, 255, 0.22), transparent 70%);
	pointer-events: none;
}

.fe-empty__title {
	margin: 0;
	color: var(--fe-muted);
}
