/* ==========================================================================
   Rise of the Footsoldier Fan Site
   Gritty Essex Underworld | Cinematic Poster Aesthetic
   ========================================================================== */

:root {
	/* Core palette */
	--rotf-black: #0a0a0a;
	--rotf-asphalt: #141414;
	--rotf-coal: #1c1c1c;
	--rotf-iron: #2a2a2a;
	--rotf-ash: #3d3d3d;
	--rotf-smoke: #6b6b6b;
	--rotf-bone: #e8e3d8;
	--rotf-paper: #f4f0e6;

	/* Accents */
	--rotf-blood: #b8121a;
	--rotf-blood-deep: #7a0a10;
	--rotf-blood-bright: #e63d45;
	--rotf-gold: #c9a55a;
	--rotf-gold-deep: #8b7035;
	--rotf-claret: #6b1d2c;
	--rotf-union: #1a3a8a;

	/* Spacing */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;

	/* Type */
	--font-display: 'Oswald', 'Bebas Neue', 'Impact', sans-serif;
	--font-typewriter: 'Special Elite', 'Courier New', monospace;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

	/* Effects */
	--shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.7);
	--shadow-poster: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 165, 90, 0.1);
	--shadow-blood: 0 0 30px rgba(184, 18, 26, 0.4);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--rotf-black);
	color: var(--rotf-bone);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Grain overlay across the entire site */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: 0.08;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

a {
	color: var(--rotf-gold);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover { color: var(--rotf-blood-bright); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.05;
	margin: 0 0 var(--space-md);
	color: var(--rotf-paper);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-md); }

::selection {
	background: var(--rotf-blood);
	color: var(--rotf-paper);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.rotf-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--space-md);
}

.rotf-container-narrow {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 var(--space-md);
}

main { min-height: 60vh; }

.rotf-screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.rotf-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(201, 165, 90, 0.15);
}

.rotf-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-sm) var(--space-md);
	max-width: 1400px;
	margin: 0 auto;
}

.rotf-site-brand {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.rotf-site-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rotf-paper);
	margin: 0;
}

.rotf-site-title a { color: inherit; }

.rotf-site-title .accent {
	color: var(--rotf-blood);
}

.rotf-site-tagline {
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-smoke);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-top: 4px;
}

/* Primary nav */
.rotf-primary-nav ul {
	list-style: none;
	display: flex;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	align-items: center;
}

.rotf-primary-nav a {
	font-family: var(--font-display);
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rotf-bone);
	padding: 0.5rem 0;
	position: relative;
}

.rotf-primary-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--rotf-blood);
	transition: width 0.3s ease;
}

.rotf-primary-nav a:hover::after,
.rotf-primary-nav .current-menu-item > a::after {
	width: 100%;
}

.rotf-primary-nav .rotf-login a,
.rotf-primary-nav .rotf-register a {
	border: 1px solid var(--rotf-gold);
	padding: 0.4rem 1rem;
	color: var(--rotf-gold);
}

.rotf-primary-nav .rotf-login a::after,
.rotf-primary-nav .rotf-register a::after { display: none; }

.rotf-primary-nav .rotf-login a:hover,
.rotf-primary-nav .rotf-register a:hover {
	background: var(--rotf-gold);
	color: var(--rotf-black);
}

/* Mobile toggle */
.rotf-menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--rotf-gold);
	color: var(--rotf-gold);
	padding: 0.5rem 0.75rem;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
}

@media (max-width: 900px) {
	.rotf-menu-toggle { display: block; }
	.rotf-primary-nav {
		position: fixed;
		inset: 60px 0 0 0;
		background: var(--rotf-black);
		transform: translateX(100%);
		transition: transform 0.3s ease;
		padding: var(--space-lg);
	}
	.rotf-primary-nav.is-open { transform: translateX(0); }
	.rotf-primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-md);
	}
	.rotf-primary-nav a { font-size: 1.25rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.rotf-hero {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 20% 30%, rgba(184, 18, 26, 0.15), transparent 60%),
		radial-gradient(ellipse at 80% 70%, rgba(107, 29, 44, 0.2), transparent 60%),
		linear-gradient(180deg, var(--rotf-black) 0%, var(--rotf-asphalt) 100%);
}

.rotf-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 40px,
			rgba(255, 255, 255, 0.01) 40px,
			rgba(255, 255, 255, 0.01) 41px
		);
	pointer-events: none;
}

/* Diagonal red slash */
.rotf-hero::after {
	content: '';
	position: absolute;
	bottom: -50px;
	left: -50px;
	right: -50px;
	height: 100px;
	background: var(--rotf-blood);
	transform: rotate(-2deg);
	z-index: 2;
	box-shadow: 0 0 40px rgba(184, 18, 26, 0.5);
}

.rotf-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-2xl) var(--space-md);
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
}

.rotf-hero-eyebrow {
	font-family: var(--font-typewriter);
	font-size: 0.95rem;
	color: var(--rotf-gold);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin-bottom: var(--space-sm);
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.rotf-hero-eyebrow::before {
	content: '';
	width: 40px;
	height: 1px;
	background: var(--rotf-gold);
}

.rotf-hero-title {
	font-size: clamp(3rem, 9vw, 7rem);
	line-height: 0.9;
	margin: 0 0 var(--space-md);
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.rotf-hero-title .accent {
	color: var(--rotf-blood);
	font-style: italic;
}

.rotf-hero-subtitle {
	font-size: 1.125rem;
	max-width: 600px;
	color: var(--rotf-bone);
	opacity: 0.9;
}

.rotf-hero-cta {
	display: flex;
	gap: var(--space-md);
	flex-wrap: wrap;
	margin-top: var(--space-md);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.rotf-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 1rem 2rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.rotf-btn-primary {
	background: var(--rotf-blood);
	color: var(--rotf-paper);
	border-color: var(--rotf-blood);
}

.rotf-btn-primary:hover {
	background: var(--rotf-blood-bright);
	border-color: var(--rotf-blood-bright);
	color: var(--rotf-paper);
	transform: translateY(-2px);
	box-shadow: var(--shadow-blood);
}

.rotf-btn-secondary {
	background: transparent;
	color: var(--rotf-gold);
	border-color: var(--rotf-gold);
}

.rotf-btn-secondary:hover {
	background: var(--rotf-gold);
	color: var(--rotf-black);
}

/* ==========================================================================
   Section
   ========================================================================== */

.rotf-section {
	padding: var(--space-2xl) 0;
	position: relative;
}

.rotf-section-header {
	margin-bottom: var(--space-xl);
	text-align: left;
}

.rotf-section-eyebrow {
	font-family: var(--font-typewriter);
	font-size: 0.85rem;
	color: var(--rotf-gold);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin-bottom: var(--space-sm);
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.rotf-section-eyebrow::before {
	content: '';
	width: 30px;
	height: 1px;
	background: var(--rotf-gold);
}

.rotf-section-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	margin-bottom: var(--space-sm);
}

.rotf-section-intro {
	max-width: 700px;
	color: var(--rotf-bone);
	opacity: 0.85;
}

.rotf-section-alt {
	background: var(--rotf-asphalt);
}

/* ==========================================================================
   Film grid (poster style)
   ========================================================================== */

.rotf-film-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--space-lg);
}

.rotf-film-card {
	position: relative;
	background: var(--rotf-coal);
	border: 1px solid rgba(201, 165, 90, 0.1);
	transition: transform 0.3s ease, border-color 0.3s ease;
	overflow: hidden;
}

.rotf-film-card:hover {
	transform: translateY(-6px);
	border-color: var(--rotf-blood);
}

.rotf-film-poster {
	display: block;
	aspect-ratio: 2 / 3;
	background: linear-gradient(135deg, var(--rotf-iron), var(--rotf-coal));
	position: relative;
	overflow: hidden;
}

.rotf-film-poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
}

.rotf-film-card:hover .rotf-film-poster img {
	transform: scale(1.05);
}

.rotf-film-poster::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.9));
}

.rotf-film-poster-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 3rem;
	color: rgba(201, 165, 90, 0.2);
	background:
		repeating-linear-gradient(
			135deg,
			var(--rotf-iron) 0,
			var(--rotf-iron) 2px,
			var(--rotf-coal) 2px,
			var(--rotf-coal) 4px
		);
}

.rotf-film-info {
	padding: var(--space-md);
}

.rotf-film-year {
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-gold);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.rotf-film-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.rotf-film-title a { color: var(--rotf-paper); }
.rotf-film-title a:hover { color: var(--rotf-blood-bright); }

.rotf-film-excerpt {
	font-size: 0.9rem;
	color: var(--rotf-smoke);
	margin: 0;
}

/* ==========================================================================
   Character grid (mugshot style)
   ========================================================================== */

.rotf-character-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--space-md);
}

.rotf-character-card {
	position: relative;
	background: var(--rotf-coal);
	overflow: hidden;
	transition: transform 0.3s ease;
}

.rotf-character-card:hover { transform: translateY(-4px); }

.rotf-character-image {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	position: relative;
	background: var(--rotf-iron);
	filter: grayscale(0.6) contrast(1.1);
	transition: filter 0.3s ease;
}

.rotf-character-card:hover .rotf-character-image {
	filter: grayscale(0) contrast(1.1);
}

.rotf-character-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.rotf-character-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(201, 165, 90, 0.2);
	font-family: var(--font-display);
	font-size: 4rem;
	background:
		repeating-linear-gradient(
			0deg,
			var(--rotf-iron) 0,
			var(--rotf-iron) 1px,
			transparent 1px,
			transparent 8px
		);
}

/* Mugshot height ticks */
.rotf-character-image::before {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 20px;
	background: linear-gradient(
		180deg,
		transparent 0,
		transparent 19%,
		rgba(232, 227, 216, 0.4) 20%,
		transparent 21%
	);
	background-size: 100% 20%;
	z-index: 2;
}

.rotf-character-info {
	padding: var(--space-md);
	border-top: 2px solid var(--rotf-blood);
}

.rotf-character-name {
	font-size: 1.1rem;
	margin: 0 0 0.25rem;
}

.rotf-character-name a { color: var(--rotf-paper); }
.rotf-character-name a:hover { color: var(--rotf-blood-bright); }

.rotf-character-alias {
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-gold);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* ==========================================================================
   Single film page
   ========================================================================== */

.rotf-film-header {
	position: relative;
	padding: var(--space-2xl) 0 var(--space-xl);
	background: linear-gradient(180deg, var(--rotf-asphalt) 0%, var(--rotf-black) 100%);
	overflow: hidden;
}

.rotf-film-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	align-items: start;
}

@media (min-width: 768px) {
	.rotf-film-layout { grid-template-columns: 350px 1fr; }
}

.rotf-film-poster-large {
	aspect-ratio: 2 / 3;
	box-shadow: var(--shadow-poster);
	background: var(--rotf-iron);
	overflow: hidden;
}

.rotf-film-poster-large img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.rotf-film-tagline {
	font-family: var(--font-typewriter);
	font-size: 1.125rem;
	color: var(--rotf-gold);
	letter-spacing: 0.05em;
	margin-bottom: var(--space-md);
	font-style: italic;
}

/* Meta block */
.rotf-meta-block {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: var(--space-md);
	margin: var(--space-lg) 0;
	padding: var(--space-md) 0;
	border-top: 1px solid rgba(201, 165, 90, 0.2);
	border-bottom: 1px solid rgba(201, 165, 90, 0.2);
}

.rotf-meta-item dt {
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-smoke);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.rotf-meta-item dd {
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: var(--rotf-paper);
	margin: 0;
}

/* Where to Watch */
.rotf-watch-buttons {
	background: var(--rotf-coal);
	border: 1px solid rgba(201, 165, 90, 0.2);
	padding: var(--space-md);
	margin: var(--space-lg) 0;
}

.rotf-watch-title {
	font-size: 1rem;
	margin: 0 0 var(--space-sm);
	color: var(--rotf-gold);
}

.rotf-watch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: var(--space-sm);
}

.rotf-watch-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--rotf-iron);
	color: var(--rotf-paper);
	font-family: var(--font-display);
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.rotf-watch-btn:hover {
	background: var(--rotf-blood);
	color: var(--rotf-paper);
	border-color: var(--rotf-blood);
}

.rotf-watch-icon {
	background: var(--rotf-gold);
	color: var(--rotf-black);
	padding: 0.2rem 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
}

.rotf-affiliate-notice {
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-smoke);
	margin-top: var(--space-sm);
	margin-bottom: 0;
}

/* ==========================================================================
   Quote block
   ========================================================================== */

.rotf-quote {
	position: relative;
	background: var(--rotf-coal);
	border-left: 4px solid var(--rotf-blood);
	padding: var(--space-lg);
	margin: var(--space-lg) 0;
	font-family: var(--font-typewriter);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--rotf-paper);
}

.rotf-quote::before {
	content: '"';
	position: absolute;
	top: -10px;
	left: var(--space-md);
	font-family: var(--font-display);
	font-size: 5rem;
	color: var(--rotf-blood);
	line-height: 1;
	opacity: 0.4;
}

.rotf-quote-attr {
	display: block;
	margin-top: var(--space-md);
	font-family: var(--font-display);
	font-style: normal;
	font-size: 0.9rem;
	color: var(--rotf-gold);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.rotf-quote-attr::before {
	content: '— ';
}

/* ==========================================================================
   Blog / News
   ========================================================================== */

.rotf-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: var(--space-lg);
}

.rotf-post-card {
	background: var(--rotf-coal);
	border: 1px solid rgba(201, 165, 90, 0.1);
	transition: border-color 0.3s ease;
}

.rotf-post-card:hover { border-color: var(--rotf-gold); }

.rotf-post-thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rotf-iron);
}

.rotf-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rotf-post-content {
	padding: var(--space-md);
}

.rotf-post-meta {
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-smoke);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: var(--space-sm);
}

.rotf-post-title {
	font-size: 1.25rem;
	margin-bottom: var(--space-sm);
}

.rotf-post-title a { color: var(--rotf-paper); }
.rotf-post-title a:hover { color: var(--rotf-blood-bright); }

/* ==========================================================================
   Single post / page
   ========================================================================== */

.rotf-single {
	padding: var(--space-2xl) 0;
}

.rotf-single-header {
	margin-bottom: var(--space-xl);
}

.rotf-entry-content {
	font-size: 1.05rem;
	line-height: 1.85;
}

.rotf-entry-content h2,
.rotf-entry-content h3 {
	margin-top: var(--space-lg);
}

.rotf-entry-content blockquote {
	border-left: 4px solid var(--rotf-blood);
	background: var(--rotf-coal);
	padding: var(--space-md) var(--space-lg);
	margin: var(--space-lg) 0;
	font-family: var(--font-typewriter);
	font-style: italic;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.rotf-newsletter {
	padding: var(--space-2xl) 0;
	background:
		linear-gradient(135deg, var(--rotf-claret) 0%, var(--rotf-blood-deep) 50%, var(--rotf-coal) 100%);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.rotf-newsletter::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 60px,
			rgba(0, 0, 0, 0.1) 60px,
			rgba(0, 0, 0, 0.1) 61px
		);
}

.rotf-newsletter-inner {
	position: relative;
	z-index: 1;
}

.rotf-newsletter h2 {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

.rotf-newsletter-form {
	max-width: 500px;
	margin: var(--space-lg) auto 0;
	display: flex;
	gap: var(--space-sm);
}

.rotf-newsletter-form input[type="email"] {
	flex: 1;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(232, 227, 216, 0.3);
	color: var(--rotf-paper);
	font-family: var(--font-body);
}

.rotf-newsletter-form input[type="email"]::placeholder {
	color: rgba(232, 227, 216, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.rotf-site-footer {
	background: var(--rotf-black);
	border-top: 1px solid rgba(201, 165, 90, 0.15);
	padding: var(--space-2xl) 0 var(--space-md);
	margin-top: var(--space-2xl);
}

.rotf-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
	.rotf-footer-grid {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

.rotf-footer-brand h3 {
	margin-bottom: var(--space-sm);
}

.rotf-footer-brand p {
	color: var(--rotf-smoke);
	font-size: 0.9rem;
}

.rotf-footer .widget-title {
	font-size: 0.9rem;
	color: var(--rotf-gold);
	letter-spacing: 0.2em;
	margin-bottom: var(--space-md);
}

.rotf-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rotf-footer li { margin-bottom: 0.5rem; }

.rotf-footer a {
	color: var(--rotf-bone);
	font-size: 0.9rem;
}

.rotf-footer a:hover { color: var(--rotf-blood-bright); }

.rotf-social-list {
	display: flex;
	gap: var(--space-sm);
	list-style: none;
	padding: 0;
	margin: var(--space-md) 0;
}

.rotf-social-list a {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--rotf-ash);
	color: var(--rotf-bone);
}

.rotf-social-list a:hover {
	background: var(--rotf-blood);
	border-color: var(--rotf-blood);
	color: var(--rotf-paper);
}

.rotf-site-info {
	padding-top: var(--space-md);
	border-top: 1px solid rgba(201, 165, 90, 0.1);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--space-sm);
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-smoke);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.rotf-disclaimer {
	padding-top: var(--space-md);
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-ash);
	max-width: 800px;
	margin: var(--space-md) auto 0;
	text-align: center;
	line-height: 1.6;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.rotf-form input[type="text"],
.rotf-form input[type="email"],
.rotf-form input[type="url"],
.rotf-form select,
.rotf-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--rotf-coal);
	border: 1px solid var(--rotf-ash);
	color: var(--rotf-paper);
	font-family: var(--font-body);
	font-size: 1rem;
}

.rotf-form input:focus,
.rotf-form select:focus,
.rotf-form textarea:focus {
	outline: none;
	border-color: var(--rotf-gold);
}

.rotf-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--font-display);
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rotf-gold);
}

.rotf-form-note {
	font-family: var(--font-typewriter);
	font-size: 0.85rem;
	color: var(--rotf-smoke);
}

.rotf-notice {
	background: var(--rotf-coal);
	border-left: 3px solid var(--rotf-gold);
	padding: var(--space-md);
	margin: var(--space-md) 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.rotf-pagination {
	margin-top: var(--space-xl);
	display: flex;
	justify-content: center;
	gap: var(--space-xs);
}

.rotf-pagination .page-numbers {
	padding: 0.5rem 1rem;
	background: var(--rotf-coal);
	color: var(--rotf-bone);
	font-family: var(--font-display);
	letter-spacing: 0.1em;
	border: 1px solid var(--rotf-ash);
}

.rotf-pagination .page-numbers.current,
.rotf-pagination .page-numbers:hover {
	background: var(--rotf-blood);
	border-color: var(--rotf-blood);
	color: var(--rotf-paper);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.rotf-text-center { text-align: center; }
.rotf-mt-lg { margin-top: var(--space-lg); }

/* ==========================================================================
   YouTube Clips Grid (single film page)
   ========================================================================== */

.rotf-clips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: var(--space-lg);
}

.rotf-clip {
	background: var(--rotf-coal);
	border: 1px solid var(--rotf-ash);
	overflow: hidden;
}

.rotf-clip-title {
	font-family: var(--font-display);
	letter-spacing: 0.06em;
	color: var(--rotf-bone);
	padding: var(--space-sm) var(--space-md);
	margin: 0;
	font-size: 1rem;
	text-transform: uppercase;
	background: var(--rotf-coal);
	border-top: 2px solid var(--rotf-blood);
}

.rotf-video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.rotf-video-wrap iframe,
.rotf-video-wrap embed,
.rotf-video-wrap object,
.rotf-video-wrap video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* ==========================================================================
   Events: Archive cards
   ========================================================================== */

.rotf-events-list {
	display: grid;
	gap: var(--space-md);
}

.rotf-event-card {
	background: var(--rotf-coal);
	border: 1px solid var(--rotf-ash);
	border-left: 4px solid var(--rotf-blood);
	transition: transform 0.2s ease, border-left-color 0.2s ease;
}

.rotf-event-card:hover {
	transform: translateX(4px);
	border-left-color: var(--rotf-gold);
}

.rotf-event-card-inner {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: var(--space-md);
	padding: var(--space-md);
	text-decoration: none !important;
	color: inherit;
}

.rotf-event-card-date {
	background: var(--rotf-black);
	color: var(--rotf-bone);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--space-sm);
	text-align: center;
	border: 1px solid var(--rotf-ash);
}

.rotf-event-card-day {
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--rotf-gold);
}

.rotf-event-card-month {
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-top: 4px;
	color: var(--rotf-paper);
}

.rotf-event-card-year {
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-smoke);
	margin-top: 2px;
}

.rotf-event-card-type {
	display: inline-block;
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--rotf-blood-bright);
	background: rgba(184, 18, 26, 0.1);
	padding: 2px 8px;
	margin-bottom: 6px;
}

.rotf-event-card-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	letter-spacing: 0.04em;
	color: var(--rotf-paper);
	margin: 0 0 6px;
	text-transform: uppercase;
}

.rotf-event-card-meta {
	font-family: var(--font-typewriter);
	font-size: 0.8rem;
	color: var(--rotf-gold);
	margin: 0 0 8px;
}

.rotf-event-card-excerpt {
	font-size: 0.9rem;
	color: var(--rotf-smoke);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Events: Single page
   ========================================================================== */

.rotf-event-header {
	padding: var(--space-xl) 0;
	background: var(--rotf-coal);
	border-bottom: 1px solid var(--rotf-ash);
}

.rotf-event-layout {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: var(--space-xl);
}

@media (max-width: 768px) {
	.rotf-event-layout {
		grid-template-columns: 1fr;
	}
}

.rotf-event-image img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--rotf-ash);
}

.rotf-event-image-placeholder {
	aspect-ratio: 4 / 3;
	background: var(--rotf-black);
	border: 2px solid var(--rotf-blood);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--rotf-gold);
	font-family: var(--font-display);
}

.rotf-event-day-big {
	font-size: 4rem;
	font-weight: 700;
	line-height: 1;
}

.rotf-event-month-big {
	font-size: 1.25rem;
	letter-spacing: 0.2em;
	color: var(--rotf-paper);
	margin-top: 8px;
}

/* ==========================================================================
   Events Widget
   ========================================================================== */

.rotf-events-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rotf-event-widget-item {
	border-bottom: 1px solid var(--rotf-ash);
}

.rotf-event-widget-item:last-child {
	border-bottom: 0;
}

.rotf-event-widget-item a {
	display: grid;
	grid-template-columns: 50px 1fr;
	gap: 12px;
	padding: 12px 0;
	text-decoration: none !important;
	color: inherit;
	transition: padding 0.2s ease;
}

.rotf-event-widget-item a:hover {
	padding-left: 4px;
}

.rotf-event-widget-date {
	background: var(--rotf-black);
	border: 1px solid var(--rotf-ash);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6px 4px;
	text-align: center;
}

.rotf-event-widget-day {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--rotf-gold);
}

.rotf-event-widget-month {
	font-family: var(--font-display);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	margin-top: 2px;
	color: var(--rotf-paper);
}

.rotf-event-widget-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rotf-event-widget-title {
	font-family: var(--font-display);
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	color: var(--rotf-paper);
	line-height: 1.2;
	text-transform: uppercase;
}

.rotf-event-widget-venue {
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-smoke);
	margin-top: 4px;
}

.rotf-event-widget-footer {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--rotf-ash);
	font-family: var(--font-typewriter);
	font-size: 0.8rem;
}

.rotf-event-widget-footer a {
	color: var(--rotf-gold);
	text-decoration: none;
}

.rotf-event-widget-footer a:hover {
	color: var(--rotf-blood-bright);
}

/* ==========================================================================
   Calendar (full month grid)
   ========================================================================== */

.rotf-calendar-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-md);
	margin: var(--space-lg) 0;
	flex-wrap: wrap;
}

.rotf-calendar-heading {
	font-family: var(--font-display);
	font-size: 2rem;
	letter-spacing: 0.05em;
	color: var(--rotf-bone);
	margin: 0;
	text-transform: uppercase;
	text-align: center;
}

.rotf-calendar-wrap {
	overflow-x: auto;
	margin-bottom: var(--space-lg);
}

.rotf-calendar {
	width: 100%;
	min-width: 700px;
	border-collapse: collapse;
	background: var(--rotf-coal);
	border: 1px solid var(--rotf-ash);
}

.rotf-calendar th {
	background: var(--rotf-black);
	color: var(--rotf-gold);
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 12px 8px;
	border-bottom: 2px solid var(--rotf-blood);
	text-align: center;
}

.rotf-calendar td {
	border: 1px solid var(--rotf-ash);
	padding: 8px;
	vertical-align: top;
	height: 110px;
	width: 14.28%;
	position: relative;
}

.rotf-cal-empty {
	background: rgba(0, 0, 0, 0.3);
}

.rotf-cal-day.is-today {
	background: rgba(184, 18, 26, 0.15);
	border-color: var(--rotf-blood);
}

.rotf-cal-day.has-events {
	background: rgba(201, 165, 90, 0.05);
}

.rotf-cal-day-num {
	display: block;
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: var(--rotf-bone);
	margin-bottom: 6px;
	font-weight: 700;
}

.rotf-cal-day.is-today .rotf-cal-day-num {
	color: var(--rotf-blood-bright);
}

.rotf-cal-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rotf-cal-events li {
	margin-bottom: 4px;
}

.rotf-cal-events a {
	display: block;
	background: var(--rotf-black);
	border-left: 3px solid var(--rotf-blood);
	padding: 3px 6px;
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-paper);
	text-decoration: none !important;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.rotf-cal-events a:hover {
	background: var(--rotf-blood);
	color: var(--rotf-paper);
}

.rotf-cal-event-time {
	color: var(--rotf-gold);
	margin-right: 4px;
	font-weight: 700;
}

/* ==========================================================================
   Forms (notices, layout)
   ========================================================================== */

.rotf-form-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

@media (max-width: 600px) {
	.rotf-form-row {
		grid-template-columns: 1fr;
	}
}

.rotf-notice {
	padding: var(--space-md);
	border-left: 4px solid;
	margin-bottom: var(--space-lg);
	font-family: var(--font-typewriter);
}

.rotf-notice-success {
	background: rgba(72, 120, 60, 0.15);
	border-color: #6c9a4f;
	color: var(--rotf-bone);
}

.rotf-notice-error {
	background: rgba(184, 18, 26, 0.15);
	border-color: var(--rotf-blood);
	color: var(--rotf-bone);
}

.rotf-form-note {
	font-family: var(--font-typewriter);
	font-size: 0.8rem;
	color: var(--rotf-smoke);
	margin-top: var(--space-md);
}

/* ==========================================================================
   Quotes archive
   ========================================================================== */

.rotf-quotes-list {
	display: grid;
	gap: var(--space-lg);
}

.rotf-quote-card {
	background: var(--rotf-coal);
	border-left: 4px solid var(--rotf-gold);
	padding: var(--space-lg);
	margin: 0;
	position: relative;
}

.rotf-quote-card::before {
	content: '"';
	font-family: var(--font-display);
	font-size: 6rem;
	line-height: 1;
	color: var(--rotf-blood);
	position: absolute;
	top: -10px;
	left: 12px;
	opacity: 0.3;
}

.rotf-quote-text {
	font-family: var(--font-typewriter);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--rotf-paper);
	margin: 0 0 var(--space-md);
	position: relative;
	z-index: 1;
}

.rotf-quote-attribution {
	font-family: var(--font-display);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.rotf-quote-attribution cite {
	color: var(--rotf-gold);
	font-style: normal;
	font-weight: 700;
}

.rotf-quote-film {
	display: block;
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-smoke);
	letter-spacing: 0.05em;
	text-transform: none;
	margin-top: 4px;
}

/* ==========================================================================
   Auto internal links inside content
   ========================================================================== */

.rotf-entry-content .rotf-auto-link {
	color: var(--rotf-gold);
	text-decoration: none;
	border-bottom: 1px dotted var(--rotf-gold);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.rotf-entry-content .rotf-auto-link:hover {
	color: var(--rotf-blood-bright);
	border-bottom-color: var(--rotf-blood-bright);
	border-bottom-style: solid;
}

/* ==========================================================================
   Entry content typography (for converted markdown)
   ========================================================================== */

.rotf-entry-content h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	letter-spacing: 0.08em;
	color: var(--rotf-gold);
	text-transform: uppercase;
	margin: var(--space-lg) 0 var(--space-sm);
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--rotf-blood);
}

.rotf-entry-content h2:first-child {
	margin-top: 0;
}

.rotf-entry-content h3 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	letter-spacing: 0.06em;
	color: var(--rotf-bone);
	text-transform: uppercase;
	margin: var(--space-md) 0 var(--space-xs);
}

.rotf-entry-content p {
	margin: 0 0 var(--space-md);
	line-height: 1.7;
}

.rotf-entry-content ul,
.rotf-entry-content ol {
	margin: 0 0 var(--space-md) var(--space-md);
	padding-left: var(--space-sm);
}

.rotf-entry-content ul li,
.rotf-entry-content ol li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
}

.rotf-entry-content strong {
	color: var(--rotf-bone);
	font-weight: 700;
}

.rotf-entry-content em {
	color: var(--rotf-paper);
	font-style: italic;
}

/* ==========================================================================
   True Story
   ========================================================================== */

.rotf-truestory-subtitle {
	font-family: var(--font-typewriter);
	font-size: 1.15rem;
	color: var(--rotf-gold);
	letter-spacing: 0.03em;
	margin: 0 0 var(--space-sm);
	font-style: italic;
}

.rotf-truestory-date {
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	color: var(--rotf-smoke);
	text-transform: uppercase;
	margin: 0 0 var(--space-md);
}

.rotf-truestory-sources {
	margin-top: var(--space-xl);
	padding: var(--space-md);
	background: var(--rotf-coal);
	border-left: 4px solid var(--rotf-gold);
}

.rotf-truestory-sources-heading {
	font-family: var(--font-display);
	font-size: 0.9rem;
	letter-spacing: 0.15em;
	color: var(--rotf-gold);
	text-transform: uppercase;
	margin: 0 0 var(--space-xs);
}

.rotf-truestory-sources ul {
	margin: 0;
	padding-left: var(--space-md);
	list-style: none;
}

.rotf-truestory-sources li {
	font-family: var(--font-typewriter);
	font-size: 0.85rem;
	padding: 4px 0;
}

.rotf-truestory-sources a {
	color: var(--rotf-paper);
	text-decoration: none;
	border-bottom: 1px dotted var(--rotf-blood);
}

.rotf-truestory-sources a:hover {
	color: var(--rotf-blood-bright);
}

.rotf-truestory-back {
	margin-top: var(--space-xl);
	padding-top: var(--space-md);
	border-top: 1px solid var(--rotf-ash);
}

/* Archive grid */
.rotf-truestory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: var(--space-lg);
}

.rotf-truestory-card {
	background: var(--rotf-coal);
	border: 1px solid var(--rotf-ash);
	border-top: 3px solid var(--rotf-blood);
	transition: transform 0.2s ease, border-color 0.2s ease;
	overflow: hidden;
}

.rotf-truestory-card:hover {
	transform: translateY(-4px);
	border-top-color: var(--rotf-gold);
}

.rotf-truestory-card-link {
	display: block;
	text-decoration: none !important;
	color: inherit;
	height: 100%;
}

.rotf-truestory-card-image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--rotf-black);
}

.rotf-truestory-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rotf-truestory-card-body {
	padding: var(--space-md);
}

.rotf-truestory-card-cat {
	display: inline-block;
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--rotf-blood-bright);
	background: rgba(184, 18, 26, 0.1);
	padding: 2px 8px;
	margin-bottom: 8px;
}

.rotf-truestory-card-title {
	font-family: var(--font-display);
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	color: var(--rotf-paper);
	margin: 0 0 6px;
	text-transform: uppercase;
	line-height: 1.2;
}

.rotf-truestory-card-subtitle {
	font-family: var(--font-typewriter);
	font-size: 0.9rem;
	color: var(--rotf-gold);
	margin: 0 0 6px;
	font-style: italic;
}

.rotf-truestory-card-date {
	display: block;
	font-family: var(--font-display);
	font-size: 0.7rem;
	color: var(--rotf-smoke);
	letter-spacing: 0.15em;
	margin-bottom: 8px;
}

.rotf-truestory-card-excerpt {
	font-size: 0.9rem;
	color: var(--rotf-paper);
	margin: 0;
	line-height: 1.55;
}

/* ==========================================================================
   Hero background image
   ========================================================================== */

.rotf-hero-has-image {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.rotf-hero-has-image .rotf-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: var(--rotf-hero-focal, center center);
	background-repeat: no-repeat;
	z-index: -2;
	/* Slight desaturation and contrast bump to fit the gritty palette */
	filter: grayscale(0.3) contrast(1.05) brightness(0.95);
}

/* Single image: just show it (no animation) */
.rotf-hero-has-image:not(.rotf-hero-slideshow) .rotf-hero-bg {
	opacity: 1;
}

/* Slideshow: each layer starts hidden; the inline <style> block sets up
   the dynamic keyframes based on the actual number of images uploaded.
   The PHP also sets a negative animation-delay on each layer to stagger them. */
.rotf-hero-slideshow .rotf-hero-bg {
	opacity: 0;
	transform-origin: center center;
}

/* Single-image Ken Burns (slow zoom only, no fade) */
.rotf-hero-ken-burns:not(.rotf-hero-slideshow) .rotf-hero-bg {
	animation: rotf-hero-kenburns-single 30s ease-out infinite alternate;
	transform-origin: center center;
}

@keyframes rotf-hero-kenburns-single {
	from { transform: scale(1); }
	to   { transform: scale(1.15); }
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.rotf-hero-slideshow .rotf-hero-bg {
		animation: none !important;
		opacity: 0;
	}
	.rotf-hero-slideshow .rotf-hero-bg-1 {
		opacity: 1;
	}
	.rotf-hero-ken-burns .rotf-hero-bg {
		animation: none !important;
		transform: none;
	}
}

.rotf-hero-has-image .rotf-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg,
			rgba(10, 10, 10, calc(var(--rotf-hero-overlay, 0.7) * 0.7)) 0%,
			rgba(10, 10, 10, var(--rotf-hero-overlay, 0.7)) 50%,
			rgba(10, 10, 10, calc(var(--rotf-hero-overlay, 0.7) * 0.95)) 100%
		),
		radial-gradient(ellipse at center,
			rgba(184, 18, 26, 0.15) 0%,
			rgba(10, 10, 10, 0) 60%
		);
	z-index: -1;
	mix-blend-mode: multiply;
}

.rotf-hero-has-image .rotf-hero-inner {
	position: relative;
	z-index: 1;
}

/* Reinforce text legibility on top of image */
.rotf-hero-has-image .rotf-hero-title {
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.rotf-hero-has-image .rotf-hero-eyebrow,
.rotf-hero-has-image .rotf-hero-subtitle {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.rotf-hero-has-image::after {
	/* Diagonal red slash overlay still shows nicely */
	z-index: 0;
}

/* ==========================================================================
   External links section (no-follow links at bottom of post)
   ========================================================================== */

.rotf-extlinks-section {
	background: var(--rotf-coal, #15110e);
	padding: var(--space-lg) 0;
	margin-top: var(--space-xl);
	border-top: 1px solid rgba(201, 165, 90, 0.15);
}

.rotf-extlinks-header {
	margin-bottom: var(--space-md);
}

.rotf-extlinks-title {
	font-family: var(--font-display);
	font-size: 1.6rem;
	letter-spacing: 0.03em;
	color: var(--rotf-paper);
	margin: 0;
	text-transform: uppercase;
}

.rotf-extlinks-list {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-md);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

.rotf-extlink-item {
	margin: 0;
}

.rotf-extlink {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(244, 240, 230, 0.1);
	border-left: 3px solid var(--rotf-gold);
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.rotf-extlink:hover {
	background: rgba(184, 18, 26, 0.1);
	border-left-color: var(--rotf-blood-bright, #e63d45);
	transform: translateX(2px);
}

.rotf-extlink-title {
	font-family: var(--font-typewriter);
	font-size: 0.95rem;
	color: var(--rotf-paper);
	font-weight: 600;
}

.rotf-extlink-host {
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-smoke, rgba(244, 240, 230, 0.55));
	letter-spacing: 0.05em;
}

.rotf-extlinks-disclaimer {
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-smoke);
	opacity: 0.5;
	margin: 0;
	font-style: italic;
}

@media (max-width: 600px) {
	.rotf-extlinks-list {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   True Story timeline sidebar
   ========================================================================== */

.rotf-ts-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: var(--space-xl);
	align-items: start;
}

.rotf-ts-main {
	max-width: 760px;
	min-width: 0;
}

.rotf-ts-sidebar {
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}

/* Custom scrollbar inside the timeline */
.rotf-ts-sidebar::-webkit-scrollbar { width: 6px; }
.rotf-ts-sidebar::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
.rotf-ts-sidebar::-webkit-scrollbar-thumb { background: var(--rotf-gold); border-radius: 3px; }

.rotf-ts-timeline {
	background: var(--rotf-coal, #15110e);
	border: 1px solid rgba(244, 240, 230, 0.1);
	border-left: 3px solid var(--rotf-blood, #b8121a);
	padding: var(--space-md);
}

.rotf-ts-timeline-heading {
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--rotf-gold);
	margin: 0 0 var(--space-md);
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(201, 165, 90, 0.2);
}

.rotf-ts-timeline-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

/* The vertical line running through the timeline */
.rotf-ts-timeline-list::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: linear-gradient(180deg, var(--rotf-gold), rgba(201, 165, 90, 0.2));
}

.rotf-ts-timeline-year {
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	color: var(--rotf-gold);
	margin: 14px 0 6px 24px;
	padding-bottom: 2px;
	border-bottom: 1px dashed rgba(201, 165, 90, 0.3);
	text-transform: uppercase;
}

.rotf-ts-timeline-year:first-child {
	margin-top: 0;
}

.rotf-ts-timeline-item {
	position: relative;
	margin: 0;
}

.rotf-ts-timeline-link {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 8px 0 8px 0;
	text-decoration: none;
	color: var(--rotf-paper);
	transition: color 0.2s ease;
}

.rotf-ts-timeline-link:hover {
	color: var(--rotf-blood-bright, #e63d45);
}

.rotf-ts-timeline-dot {
	display: block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--rotf-coal);
	border: 2px solid var(--rotf-gold);
	flex-shrink: 0;
	margin-top: 4px;
	z-index: 1;
	position: relative;
	transition: all 0.2s ease;
}

.rotf-ts-timeline-link:hover .rotf-ts-timeline-dot {
	background: var(--rotf-blood);
	border-color: var(--rotf-blood-bright);
	transform: scale(1.2);
}

.rotf-ts-timeline-item-current .rotf-ts-timeline-dot {
	background: var(--rotf-blood, #b8121a);
	border-color: var(--rotf-gold);
	box-shadow: 0 0 0 3px rgba(184, 18, 26, 0.3);
}

.rotf-ts-timeline-item-current .rotf-ts-timeline-link {
	color: var(--rotf-gold);
	font-weight: 600;
}

.rotf-ts-timeline-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rotf-ts-timeline-title {
	font-family: var(--font-typewriter);
	font-size: 0.82rem;
	line-height: 1.35;
}

.rotf-ts-timeline-date {
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-smoke, rgba(244, 240, 230, 0.5));
	letter-spacing: 0.05em;
}

/* Tablet: still side-by-side but narrower */
@media (max-width: 1100px) {
	.rotf-ts-layout {
		grid-template-columns: minmax(0, 1fr) 240px;
	}
}

/* Mobile: timeline becomes a collapsible horizontal scroller above the content */
@media (max-width: 900px) {
	.rotf-ts-layout {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}
	.rotf-ts-sidebar {
		position: static;
		max-height: none;
		order: 2;
		margin-top: var(--space-lg);
	}
	.rotf-ts-main {
		max-width: none;
	}
	.rotf-ts-timeline {
		max-height: 380px;
		overflow-y: auto;
	}
	.rotf-ts-timeline-heading {
		position: sticky;
		top: 0;
		background: var(--rotf-coal);
		margin: 0 calc(-1 * var(--space-md)) var(--space-md);
		padding: 4px var(--space-md) 8px;
		z-index: 1;
	}
}

/* ==========================================================================
   Featured image consistency: make all featured images fill their container
   regardless of original upload size
   ========================================================================== */

/* Single article featured image - full column width, natural height (no crop).
   Image fills the available width and grows tall enough to maintain its aspect ratio.
   Whole image is always visible. Capped at 700px tall on large viewports to stop
   ultra-portrait shots from dominating the page. */
.rotf-single-thumb,
.rotf-single-featured {
	display: block;
	width: 100%;
	margin-bottom: var(--space-lg);
	background: var(--rotf-coal, #15110e);
	border-bottom: 3px solid var(--rotf-blood, #b8121a);
	overflow: hidden;
	text-align: center;
}

.rotf-single-thumb img,
.rotf-single-featured img,
.rotf-single-thumb .wp-post-image,
.rotf-single-featured .wp-post-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

/* On large screens, cap absolute height so very-tall portraits don't take over.
   The image stays full-width within its column up to this point. */
@media (min-width: 900px) {
	.rotf-single-thumb img,
	.rotf-single-featured img {
		max-height: 700px;
		width: auto; /* if max-height kicks in, shrink width proportionally */
	}
}

/* True Story card images: enforce fixed aspect ratio + cover */
.rotf-truestory-card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--rotf-coal, #15110e);
}

.rotf-truestory-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Character cards */
.rotf-character-image {
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--rotf-coal, #15110e);
}

.rotf-character-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* Cast/crew portraits */
.rotf-person-image,
.rotf-person-card-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--rotf-coal, #15110e);
}

.rotf-person-image img,
.rotf-person-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* Film/related-film posters: 2:3 portrait */
.rotf-film-poster img,
.rotf-film-poster-large img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.rotf-film-poster,
.rotf-film-poster-large {
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--rotf-coal, #15110e);
}

/* Catch-all: any WP featured image inside our containers should never overflow */
.rotf-single img.wp-post-image,
.rotf-single-thumb img.wp-post-image {
	max-width: 100%;
}

/* Small image warning: if the natural size is smaller than container,
   the upscaling will look soft. We use a subtle filter to mask this. */
.rotf-single-thumb img,
.rotf-truestory-card-image img,
.rotf-character-image img {
	image-rendering: auto;
}


/* ==========================================================================
   Film "Also Known As"
   ========================================================================== */

.rotf-film-aka {
	margin: var(--space-sm) 0 var(--space-md);
	padding: 10px 14px;
	background: rgba(0, 0, 0, 0.25);
	border-left: 3px solid var(--rotf-gold, #c9a55a);
	display: inline-block;
	max-width: 100%;
}

.rotf-film-aka-label {
	display: block;
	font-family: var(--font-display);
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rotf-gold, #c9a55a);
	margin-bottom: 4px;
}

.rotf-film-aka-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rotf-film-aka-list li {
	font-family: var(--font-typewriter);
	font-size: 0.95rem;
	color: var(--rotf-paper, #f4f0e6);
	font-style: italic;
	line-height: 1.4;
	margin: 0;
	padding: 0;
}

.rotf-film-aka-list li:not(:last-child)::after {
	content: ' ';
}


/* ==========================================================================
   Shop / Products
   ========================================================================== */

.rotf-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.rotf-product-card {
	background: var(--rotf-coal, #15110e);
	border: 1px solid rgba(244, 240, 230, 0.08);
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
	position: relative;
}

.rotf-product-card:hover {
	border-color: var(--rotf-gold, #c9a55a);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.rotf-product-featured::before {
	content: 'Featured';
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--rotf-blood, #b8121a);
	color: var(--rotf-paper, #f4f0e6);
	font-family: var(--font-display);
	font-size: 0.65rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 4px 10px;
	z-index: 2;
}

.rotf-product-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.4);
	position: relative;
	padding: 12px;
	box-sizing: border-box;
}

.rotf-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	transition: transform 0.4s ease;
}

.rotf-product-card:hover .rotf-product-image img {
	transform: scale(1.04);
}

.rotf-product-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--font-display);
	font-size: 2rem;
	color: var(--rotf-gold, #c9a55a);
	letter-spacing: 0.15em;
}

.rotf-product-body {
	padding: var(--space-md);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.rotf-product-cat {
	font-family: var(--font-display);
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rotf-gold, #c9a55a);
	margin-bottom: 6px;
}

.rotf-product-title {
	font-family: var(--font-display);
	font-size: 1.1rem;
	line-height: 1.25;
	margin: 0 0 8px;
	letter-spacing: 0.02em;
}

.rotf-product-title a {
	color: var(--rotf-paper, #f4f0e6);
	text-decoration: none;
}

.rotf-product-title a:hover {
	color: var(--rotf-blood-bright, #e63d45);
}

.rotf-product-excerpt {
	font-family: var(--font-typewriter);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--rotf-smoke, rgba(244, 240, 230, 0.7));
	margin: 0 0 var(--space-md);
	flex: 1;
}

.rotf-product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.rotf-product-price {
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--rotf-gold, #c9a55a);
	letter-spacing: 0.02em;
}

.rotf-product-buy {
	font-size: 0.8rem;
	padding: 8px 14px;
}

.rotf-product-vendor {
	font-family: var(--font-typewriter);
	font-size: 0.7rem;
	color: var(--rotf-smoke);
	opacity: 0.7;
	margin: 8px 0 0;
	font-style: italic;
}

/* Single product page */
.rotf-product-single {
	display: grid;
	grid-template-columns: minmax(0, 400px) 1fr;
	gap: var(--space-xl);
	align-items: start;
}

.rotf-product-single-image {
	background: var(--rotf-coal, #15110e);
	border: 1px solid rgba(244, 240, 230, 0.08);
	overflow: hidden;
}

.rotf-product-single-image img {
	width: 100%;
	height: auto;
	display: block;
}

.rotf-product-single-details {
	min-width: 0;
}

.rotf-product-single-price {
	font-family: var(--font-display);
	font-size: 1.8rem;
	color: var(--rotf-gold, #c9a55a);
	letter-spacing: 0.02em;
	margin: 0 0 var(--space-md);
}

.rotf-product-single-cta {
	margin: var(--space-lg) 0 var(--space-md);
	padding: var(--space-md);
	background: rgba(0, 0, 0, 0.3);
	border-left: 3px solid var(--rotf-blood, #b8121a);
}

.rotf-product-single-cta .rotf-btn {
	font-size: 1rem;
	padding: 12px 24px;
}

.rotf-product-disclosure {
	font-family: var(--font-typewriter);
	font-size: 0.75rem;
	color: var(--rotf-smoke);
	font-style: italic;
	opacity: 0.7;
	margin-top: var(--space-md);
	line-height: 1.5;
}

@media (max-width: 700px) {
	.rotf-product-single {
		grid-template-columns: 1fr;
	}
	.rotf-product-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-md);
	}
}

@media (max-width: 480px) {
	.rotf-product-grid {
		grid-template-columns: 1fr;
	}
}

/* Shop category nav (horizontal pills) */
.rotf-shop-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 12px;
	margin: 0 0 var(--space-lg);
	padding: 0 0 var(--space-md);
	border-bottom: 1px solid rgba(244, 240, 230, 0.08);
}

.rotf-shop-cat {
	display: inline-block;
	padding: 7px 16px;
	font-family: var(--font-display);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rotf-paper, #f4f0e6);
	text-decoration: none;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(244, 240, 230, 0.12);
	transition: all 0.18s ease;
	white-space: nowrap;
}

.rotf-shop-cat:hover {
	color: var(--rotf-gold, #c9a55a);
	border-color: var(--rotf-gold, #c9a55a);
}

.rotf-shop-cat.is-active {
	background: var(--rotf-blood, #b8121a);
	border-color: var(--rotf-blood, #b8121a);
	color: var(--rotf-paper, #f4f0e6);
}

.rotf-shop-cat.is-active:hover {
	color: var(--rotf-paper, #f4f0e6);
	background: var(--rotf-blood-bright, #e63d45);
	border-color: var(--rotf-blood-bright, #e63d45);
}

