/**
 * Cinestar Child: event-recap.css
 * The Event Recap, the page of a Past Event (template-parts/event-recap.php)
 * and its click-to-play films (template-parts/film.php).
 *
 * Loaded on Past Event pages only, before first paint: it styles the hero,
 * so it must never be deferred (cinestar_deferred_styles() in functions.php).
 * Tokens come from main.css. Mobile first; checked at 375, 768, 1024, 1440px.
 *
 *   1. Section lockup
 *   2. A. Hero
 *   3. B. The Shows
 *   4. C. The Story
 *   5. D. Films and the thank-you block
 *   6. G. Share
 *   7. H. Around this Event, and the Next Event
 */

/* ── 1. Section lockup ─────────────────────────────────────────────── */
.ce-rc-section { padding-block: 3.5rem; position: relative; }
.ce-rc-section--tight { padding-top: 0; }
.ce-rc-section--raised { background: linear-gradient(180deg, #0d0b12 0%, var(--ce-bg) 100%); }

.ce-rc-eyebrow {
	font: 600 0.8rem/1.4 var(--ce-font-body);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ce-gold);
	margin: 0 0 0.6rem;
}

.ce-rc-heading {
	font: 800 clamp(1.6rem, 4vw, 2.6rem)/1.1 var(--ce-font-heading);
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--ce-text);
	margin: 0 0 0.75rem;
}

.ce-rc-sub { color: var(--ce-text-muted); margin: 0 0 2.25rem; max-width: 60ch; line-height: 1.6; }

.ce-rc-rule {
	height: 1px;
	border: 0;
	margin: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.45), rgba(255, 20, 147, 0.35), transparent);
}

.ce-rc-link {
	color: var(--ce-gold);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 215, 0, 0.4);
	padding-bottom: 2px;
}
.ce-rc-link:hover,
.ce-rc-link:focus-visible { border-bottom-color: var(--ce-gold); }

@media (min-width: 1024px) {
	.ce-rc-section { padding-block: 5.5rem; }
	.ce-rc-section--tight { padding-top: 0; }
}

/* ── 2. A. Hero ────────────────────────────────────────────────────── */
/* The height is reserved here, so nothing below moves while the photo loads. */
.ce-rc-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: 520px;
	padding: calc(var(--ce-header-h) + 3rem) 0 3rem;
	background: #0d0b12;
}

.ce-rc-hero--plain {
	background:
		radial-gradient(70% 90% at 80% 10%, rgba(123, 47, 190, 0.45), transparent 70%),
		radial-gradient(60% 80% at 10% 90%, rgba(255, 20, 147, 0.22), transparent 70%),
		#0d0b12;
}

.ce-rc-hero__photo { position: absolute; inset: 0; z-index: -2; }
.ce-rc-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.ce-rc-hero--soft .ce-rc-hero__photo img { filter: blur(26px) saturate(1.2); transform: scale(1.15); }

/* A tour poster is a wide composition with the artist off to one side. Each
   poster is positioned so the artist stays in the middle of a phone screen,
   the same rule the sales page uses (event-single.css). Sharp, never blurred. */
.ce-rc-hero--poster .ce-rc-hero__photo img { object-position: center top; }
.ce-rc-hero--poster-sonu .ce-rc-hero__photo img { object-position: min(0px, calc(30% + 20vw)) top; }

/* A poster carries its own lettering (tour dates, a title lock-up). The hero
   is taller so the page's title sits below the artist's face, and the scrim
   keeps a clear window on the artist while it quietens the poster's own words. */
/* Two classes, so this outranks the plain hero's own height further down. */
.ce-rc-hero.ce-rc-hero--poster { min-height: 700px; --ce-rc-focus-x: 52%; --ce-rc-focus-y: 30%; }
.ce-rc-hero--poster .ce-rc-hero__scrim {
	background:
		linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0) 36%, rgba(10, 10, 10, 0.92) 54%, var(--ce-bg) 100%),
		radial-gradient(ellipse 62% 30% at var(--ce-rc-focus-x) var(--ce-rc-focus-y), rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.86) 100%);
}

@media (min-width: 768px) {
	.ce-rc-hero--poster-sonu .ce-rc-hero__photo img { object-position: center top; }
	.ce-rc-hero.ce-rc-hero--poster-sonu { --ce-rc-focus-x: 22%; --ce-rc-focus-y: 34%; }
	.ce-rc-hero--poster .ce-rc-hero__scrim {
		background:
			linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0) 34%, rgba(10, 10, 10, 0.92) 54%, var(--ce-bg) 100%),
			radial-gradient(ellipse 26% 34% at var(--ce-rc-focus-x) var(--ce-rc-focus-y), rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.86) 100%);
	}
}

@media (min-width: 1100px) {
	.ce-rc-hero.ce-rc-hero--poster { min-height: 760px; }
	.ce-rc-hero.ce-rc-hero--poster-sonu { --ce-rc-focus-x: 28%; }
}

.ce-rc-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.25) 38%, rgba(10, 10, 10, 0.82) 78%, var(--ce-bg) 100%),
		radial-gradient(80% 70% at 15% 75%, rgba(10, 10, 10, 0.75), transparent 70%);
}

/* main.css centres hero text for the page heroes; a recap reads from the left. */
.ce-rc-hero__content { width: 100%; text-align: left; }
.ce-rc-hero .ce-breadcrumb { justify-content: flex-start; }
.ce-rc-hero .ce-breadcrumb { margin-bottom: 1.25rem; }

.ce-rc-pill {
	display: inline-block;
	font: 700 0.68rem var(--ce-font-heading);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	padding: 0.35rem 0.85rem;
	margin-bottom: 1rem;
}

.ce-rc-hero__line {
	font: 700 0.85rem/1.4 var(--ce-font-heading);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ce-gold);
	margin: 0 0 0.6rem;
}

.ce-rc-hero__h1 { margin: 0; }

.ce-rc-hero__title {
	display: inline-block;
	max-width: 100%;
	font: 900 clamp(2.1rem, 8vw, 5rem)/0.98 var(--ce-font-heading);
	text-transform: uppercase;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
	/* Keeps descenders inside the clipped gradient. */
	padding-bottom: 0.12em;
	background: linear-gradient(92deg, #FFD700 0%, #FFB02E 28%, #FF1493 62%, #9B4DE0 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* A text-shadow would paint over the clipped gradient. */
	filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
}

.ce-rc-hero__artist {
	display: block;
	font: 700 clamp(1rem, 2.4vw, 1.5rem)/1.25 var(--ce-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	margin-top: 0.4rem;
}

.ce-rc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.5rem 0 0; }
.ce-rc-chips li {
	font: 600 0.82rem var(--ce-font-body);
	border: 1px solid var(--ce-border-gold);
	border-radius: 999px;
	padding: 0.45rem 0.95rem;
	background: rgba(10, 10, 10, 0.55);
	color: #fff;
}
/* Gold background takes dark text. */
.ce-rc-chips .is-gold { background: var(--ce-gold); color: #0A0A0A; border-color: var(--ce-gold); font-weight: 700; }

.ce-rc-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

@media (min-width: 1024px) {
	.ce-rc-hero { min-height: 640px; padding-bottom: 4.5rem; }
}

/* ── 3. B. The Shows ───────────────────────────────────────────────── */
.ce-rc-rail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
.ce-rc-rail::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: linear-gradient(180deg, var(--ce-gold), rgba(255, 20, 147, 0.6));
}

.ce-rc-show { position: relative; padding: 0 0 1.75rem 2.25rem; }
.ce-rc-show:last-child { padding-bottom: 0; }
.ce-rc-show::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ce-bg);
	border: 2px solid var(--ce-gold);
	box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.ce-rc-show__date {
	font: 800 0.8rem/1.3 var(--ce-font-heading);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ce-gold);
	margin: 0 0 0.3rem;
	font-variant-numeric: tabular-nums;
}
.ce-rc-show__city { font: 800 1.35rem/1.15 var(--ce-font-heading); text-transform: uppercase; color: var(--ce-text); margin: 0 0 0.3rem; }
.ce-rc-show__venue { color: var(--ce-text-muted); font-size: 0.92rem; line-height: 1.45; margin: 0; }
.ce-rc-show__flag {
	display: inline-block;
	margin-top: 0.6rem;
	font: 800 0.66rem var(--ce-font-heading);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: var(--ce-gold);
	color: #0A0A0A;
	border-radius: 4px;
	padding: 0.28rem 0.55rem;
}

@media (min-width: 768px) {
	.ce-rc-rail { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
	.ce-rc-rail::before { display: none; }
	.ce-rc-show { padding: 1.9rem 1.25rem 0 0; border-top: 2px solid rgba(255, 215, 0, 0.55); }
	.ce-rc-show:last-child { padding-bottom: 0; }
	.ce-rc-show::before { top: -9px; }
	.ce-rc-rail--few { max-width: 820px; }
}

@media (min-width: 1100px) {
	.ce-rc-rail { grid-template-columns: repeat(6, 1fr); }
	.ce-rc-rail--few { grid-template-columns: repeat(3, 1fr); }
}

/* ── 4. C. The Story ───────────────────────────────────────────────── */
.ce-rc-story { display: grid; gap: 2rem; align-items: start; }
.ce-rc-story__body p { color: var(--ce-text-muted); line-height: 1.75; font-size: 1.05rem; margin: 0 0 1.1rem; max-width: 65ch; }
.ce-rc-story__body > p:first-child { color: #fff; font-size: 1.15rem; }
.ce-rc-story__body > :last-child { margin-bottom: 0; }

.ce-rc-story__frame {
	border-radius: var(--ce-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ce-border-gold);
	box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 44px rgba(255, 215, 0, 0.12);
	max-width: 360px;
}
.ce-rc-story__frame img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

@media (min-width: 900px) {
	.ce-rc-story { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; }
	.ce-rc-story--text { grid-template-columns: minmax(0, 1fr); }
	.ce-rc-story__frame { justify-self: end; }
}

/* ── 5. D. Films ───────────────────────────────────────────────────── */
.ce-film-wrap { margin: 0; }

.ce-film {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--ce-border-gold);
	border-radius: var(--ce-radius-lg);
	overflow: hidden;
	background: #000;
	cursor: pointer;
}
.ce-film--vertical { aspect-ratio: 9 / 16; }

.ce-film__poster { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: opacity var(--ce-transition), transform 0.4s ease; }
.ce-film:hover .ce-film__poster,
.ce-film:focus-visible .ce-film__poster { opacity: 1; transform: scale(1.03); }
.ce-film:focus-visible { outline: 3px solid var(--ce-gold); outline-offset: 3px; }

.ce-film__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--ce-gold);
	display: grid;
	place-items: center;
	box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.18), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.ce-film__play svg { width: 26px; height: 26px; fill: #0A0A0A; margin-left: 4px; }
.ce-film--small .ce-film__play { width: 48px; height: 48px; box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.18); }
.ce-film--small .ce-film__play svg { width: 18px; height: 18px; }

.ce-film__len {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font: 600 0.72rem var(--ce-font-body);
	padding: 0.2rem 0.45rem;
	border-radius: 4px;
}

.ce-film--playing { cursor: default; }
.ce-film__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ce-film-cap {
	margin: 0.7rem 0 0;
	font: 700 0.95rem/1.35 var(--ce-font-heading);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--ce-text);
}

.ce-rc-films { display: grid; gap: 1.75rem; }
.ce-rc-films--one { max-width: 960px; }
.ce-rc-films__more { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
/* A lone extra film takes the full row instead of half of it. */
.ce-rc-films__more > :only-child { grid-column: 1 / -1; }

.ce-rc-thanks {
	display: grid;
	gap: 1.75rem;
	align-items: center;
	padding: 1.5rem;
	border-radius: var(--ce-radius-lg);
	border: 1px solid var(--ce-border);
	background: linear-gradient(135deg, rgba(123, 47, 190, 0.18), rgba(255, 20, 147, 0.08) 55%, rgba(255, 215, 0, 0.06));
}
.ce-rc-thanks__film { max-width: 230px; width: 100%; margin-inline: auto; }
.ce-rc-thanks__film .ce-film-cap { display: none; }
.ce-rc-thanks__heading { font: 800 clamp(1.3rem, 3vw, 1.9rem)/1.15 var(--ce-font-heading); text-transform: uppercase; color: var(--ce-text); margin: 0 0 0.75rem; }
.ce-rc-thanks__text p { color: var(--ce-text-muted); line-height: 1.7; margin: 0 0 0.9rem; max-width: 56ch; }
.ce-rc-thanks__text .ce-rc-eyebrow { color: var(--ce-gold); }
.ce-rc-thanks__text .ce-rc-thanks__sign { color: var(--ce-gold); font-weight: 600; margin-bottom: 0; }

@media (min-width: 768px) {
	.ce-rc-thanks { grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; padding: 2.5rem; }
	.ce-rc-thanks__film { margin: 0; }
}

@media (min-width: 1024px) {
	.ce-rc-films { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; }
	.ce-rc-films--one { grid-template-columns: minmax(0, 1fr); }
	.ce-rc-films__more { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── 6. G. Share ───────────────────────────────────────────────────── */
.ce-rc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding-block: 1.5rem; border-block: 1px solid var(--ce-border); }
.ce-rc-share__label { font: 700 0.7rem var(--ce-font-heading); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ce-text-faint); margin-right: 0.5rem; }
.ce-rc-share a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	text-decoration: none;
	font: 600 0.82rem var(--ce-font-body);
	transition: border-color var(--ce-transition), color var(--ce-transition);
}
.ce-rc-share a:hover,
.ce-rc-share a:focus-visible { border-color: var(--ce-gold); color: var(--ce-gold); outline: none; }

/* ── 7. H. Around this Event, and the Next Event ───────────────────── */
.ce-rc-around { display: grid; gap: 1rem; margin-top: 1.5rem; }
.ce-rc-around__all { margin: 1.5rem 0 0; }

.ce-rc-near {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	padding: 0.9rem;
	border: 1px solid var(--ce-border);
	border-radius: var(--ce-radius-lg);
	background: var(--ce-bg-raised);
	color: #fff;
	text-decoration: none;
	transition: border-color var(--ce-transition), transform var(--ce-transition);
}
.ce-rc-near:hover,
.ce-rc-near:focus-visible { border-color: var(--ce-gold); transform: translateY(-2px); outline: none; }
.ce-rc-near img,
.ce-rc-near__blank { display: block; width: 92px; height: 116px; object-fit: cover; border-radius: 10px; }
.ce-rc-near__blank { background: linear-gradient(135deg, #7B2FBE 0%, #3D1473 100%); }
.ce-rc-near__body { display: block; min-width: 0; }
.ce-rc-near__dir { display: block; font: 700 0.68rem var(--ce-font-heading); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ce-gold); margin-bottom: 0.35rem; }
.ce-rc-near__title { display: block; font: 800 1.05rem/1.2 var(--ce-font-heading); text-transform: uppercase; margin-bottom: 0.3rem; }
.ce-rc-near__line { display: block; color: var(--ce-text-faint); font-size: 0.85rem; line-height: 1.4; }
.ce-rc-near--all { grid-template-columns: 1fr; text-align: center; place-content: center; min-height: 116px; border-style: dashed; }

.ce-rc-next { display: grid; margin-top: 1.5rem; border: 1px solid var(--ce-border-gold); border-radius: var(--ce-radius-lg); overflow: hidden; background: linear-gradient(135deg, #17120a, #0f0d0b); }
.ce-rc-next__art { position: relative; min-height: 220px; }
.ce-rc-next__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ce-rc-next__body { padding: 1.75rem; }
.ce-rc-next__badge {
	display: inline-block;
	background: var(--ce-gold);
	color: #0A0A0A;
	font: 800 0.66rem var(--ce-font-heading);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 4px;
	padding: 0.3rem 0.6rem;
	margin-bottom: 0.9rem;
}
.ce-rc-next__title { font: 800 clamp(1.3rem, 3vw, 2rem)/1.15 var(--ce-font-heading); text-transform: uppercase; color: var(--ce-text); margin: 0 0 0.5rem; }
.ce-rc-next__line { color: var(--ce-gold); font-weight: 600; margin: 0 0 1.4rem; }
.ce-rc-next .ce-btn { white-space: nowrap; }

@media (max-width: 479px) {
	.ce-rc-next .ce-btn { width: 100%; padding-inline: 1rem; font-size: 0.82rem; }
}

@media (min-width: 768px) {
	.ce-rc-around { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (min-width: 900px) {
	.ce-rc-next { grid-template-columns: 2fr 3fr; }
	.ce-rc-next__art { min-height: 300px; }
	.ce-rc-next__body { padding: 3rem; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
	.ce-film__poster,
	.ce-rc-near,
	.ce-rc-share a { transition: none; }
	.ce-film:hover .ce-film__poster,
	.ce-film:focus-visible .ce-film__poster,
	.ce-rc-near:hover,
	.ce-rc-near:focus-visible { transform: none; }
}
