/*
 * The Remote 1.4.0: The Rerun (title pages, people, hubs, directories, posters, the in-story title card).
 * Uses the theme tokens from theremote.css; lights down via html[data-theme="dark"].
 */

:root {
	--rr-poster-ratio: 2 / 3;
	--rr-radius: 6px;
	--rr-shadow: 0 1px 2px rgba(21, 22, 29, .08), 0 8px 24px -12px rgba(21, 22, 29, .35);
	--rr-shadow-lift: 0 2px 4px rgba(21, 22, 29, .1), 0 18px 40px -16px rgba(21, 22, 29, .5);
	--rr-coral: #FF7A6E;
}
html[data-theme="dark"] {
	--rr-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -12px rgba(0, 0, 0, .8);
	--rr-shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 20px 44px -16px rgba(0, 0, 0, .9);
}

/* ---------- Designed fallback poster ---------- */
.rmt-fp {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	min-height: 100%;
	aspect-ratio: var(--rr-poster-ratio);
	padding: 9% 9% 8%;
	overflow: hidden;
	background: var(--fp-bg, #121A3D);
	color: var(--fp-fg, #F5F1E8);
	container-type: inline-size;
	isolation: isolate;
}
.rmt-fp__art {
	position: absolute;
	inset: 0 0 34% 0;
	width: 100%;
	height: 66%;
	z-index: -1;
}
.rmt-fp::after { /* grain line under the art */
	content: "";
	position: absolute;
	left: 9%; right: 9%;
	bottom: 34%;
	height: 2px;
	background: currentColor;
	opacity: .85;
}
.rmt-fp__label {
	font-family: var(--mono);
	font-size: 10px;
	font-size: clamp(8px, 5.4cqi, 12px);
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .8;
	margin-bottom: .5em;
}
.rmt-fp__title {
	font-family: var(--serif);
	font-weight: 400;
	line-height: .98;
	letter-spacing: -.01em;
	overflow-wrap: break-word;
	hyphens: auto;
	text-wrap: balance;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rmt-fp--l .rmt-fp__title { font-size: 26px; font-size: clamp(18px, 15cqi, 64px); }
.rmt-fp--m .rmt-fp__title { font-size: 21px; font-size: clamp(15px, 11.5cqi, 48px); }
.rmt-fp--s .rmt-fp__title { font-size: 17px; font-size: clamp(12px, 8.6cqi, 36px); }
.rmt-fp__mark {
	position: absolute;
	top: 6%; right: 7%;
	font-family: var(--mono);
	font-size: 9px;
	font-size: clamp(7px, 4.4cqi, 11px);
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .7;
}

/* ---------- Poster card ---------- */
.rmt-poster { position: relative; min-width: 0; }
.rmt-poster__media {
	position: relative;
	display: block;
	aspect-ratio: var(--rr-poster-ratio);
	overflow: hidden;
	border-radius: var(--rr-radius);
	background: var(--media-bg);
	box-shadow: var(--rr-shadow);
	transform: perspective(700px) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg));
	transition: transform .25s ease, box-shadow .25s ease;
}
.rmt-poster__media:not(.is-loaded):has(img)::before { /* shimmer while the image loads */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%) var(--media-bg);
	background-size: 220% 100%;
	animation: rr-shimmer 1.4s linear infinite;
}
@keyframes rr-shimmer { to { background-position: -120% 0; } }
.rmt-poster__media img,
.rmt-poster__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rmt-poster:hover .rmt-poster__media,
.rmt-poster__media:focus-visible { box-shadow: var(--rr-shadow-lift); }
.rmt-poster__play {
	position: absolute;
	right: 8px; bottom: 8px;
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--red);
	color: #FFFFFF;
	font-size: 11px;
	padding-left: 2px;
}
.rmt-poster__title {
	margin: 10px 0 2px;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}
.rmt-poster__title a:hover { color: var(--red-text); }
.rmt-poster__meta {
	margin: 0;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .04em;
	color: var(--muted);
}

/* Shelves (sideways) and grids */
.rmt-shelf {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(132px, 168px);
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding: 4px 2px 14px;
	margin-inline: -2px;
	scrollbar-width: thin;
}
.rmt-shelf > * { scroll-snap-align: start; }
.rmt-postergrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 28px 18px;
}
@media (max-width: 600px) {
	.rmt-postergrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.rmt-shelf { grid-auto-columns: 42%; }
}

/* ---------- Sections ---------- */
.rmt-tbody { padding-block: 8px var(--gap-section); }
.rmt-tsec { margin-top: var(--gap-section); scroll-margin-top: 72px; }
.rmt-tsec__title {
	margin: 0 0 20px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 28px;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.1;
	padding-top: 14px;
	border-top: 2px solid var(--ink);
}
.rmt-tsec__title em { font-style: italic; color: var(--muted); font-size: .7em; margin-left: .3em; }

/* ---------- Title hero ---------- */
.rmt-th {
	position: relative;
	isolation: isolate;
	color: #F5F1E8;
	background: var(--midnight);
	overflow: hidden;
}
.rmt-th__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.rmt-th__media img,
.rmt-th__media .rmt-fp {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: auto;
}
.rmt-th__media .rmt-fp { padding: 0; }
.rmt-th__media .rmt-fp__art { inset: 0; height: 100%; opacity: .55; }
.rmt-th__media .rmt-fp::after,
.rmt-th__media .rmt-fp__title,
.rmt-th__media .rmt-fp__mark,
.rmt-th__media .rmt-fp__label { display: none; }
.rmt-th__img--blur { filter: blur(28px) saturate(1.2); transform: scale(1.15); }
.rmt-th::before { /* scrim */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(var(--scrim), .92) 0%, rgba(var(--scrim), .72) 45%, rgba(var(--scrim), .25) 100%),
		linear-gradient(0deg, rgba(var(--scrim), .95) 0%, rgba(var(--scrim), 0) 55%);
}
.rmt-th--plain::before { background: linear-gradient(0deg, rgba(var(--scrim), .9), rgba(var(--scrim), .35)); }
.rmt-th__inner {
	display: grid;
	grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 48px);
	align-items: end;
	padding-block: clamp(96px, 16vw, 220px) clamp(28px, 4vw, 48px);
}
.rmt-th__poster {
	transform: translateY(clamp(24px, 4vw, 56px));
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
	border: 1px solid rgba(245, 241, 232, .15);
}
.rmt-th__copy { min-width: 0; }
.rmt-th__kicker, .rmt-th__kicker a { color: var(--rr-coral); }
.rmt-th__kicker a:hover { color: #FFFFFF; }
.rmt-th__title {
	margin: 6px 0 12px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 44px;
	font-size: clamp(36px, 6.4vw, 88px);
	line-height: .98;
	letter-spacing: -.015em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.rmt-th__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.rmt-th__facts li + li::before { content: "·"; margin: 0 .7em; opacity: .6; }
.rmt-th__facts a { border-bottom: 1px solid rgba(245, 241, 232, .35); }
.rmt-th__facts a:hover { color: var(--rr-coral); border-color: currentColor; }
.rmt-th__dek {
	max-width: 60ch;
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.5;
	color: rgba(245, 241, 232, .88);
}
.rmt-th__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rmt-btn--ghost-light {
	background: transparent;
	color: #F5F1E8;
	border: 1px solid rgba(245, 241, 232, .4);
}
.rmt-btn--ghost-light:hover { color: #121A3D; background: #F5F1E8; border-color: #F5F1E8; }
.rmt-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.rmt-qbtn--light { border-color: rgba(245, 241, 232, .4); color: #F5F1E8; min-height: 52px; padding: 0 20px; }
.rmt-qbtn--light:hover { background: rgba(245, 241, 232, .12); }
.rmt-qbtn--light[aria-pressed="true"] { background: #F5F1E8; color: #121A3D; border-color: #F5F1E8; }

@media (max-width: 700px) {
	.rmt-th__inner { grid-template-columns: 1fr; padding-top: 72px; }
	.rmt-th__poster { width: 42%; max-width: 180px; transform: none; }
	.rmt-th__title { font-size: clamp(32px, 10vw, 48px); }
	.rmt-th__actions > * { flex: 1 1 auto; justify-content: center; }
}

/* Section nav */
.rmt-tnav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--bg);
	border-bottom: 1px solid var(--rule);
	margin-top: clamp(24px, 4vw, 56px);
}
.rmt-tnav__list {
	display: flex;
	gap: 22px;
	margin: 0 auto;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}
.rmt-tnav__list::-webkit-scrollbar { display: none; }
.rmt-tnav a {
	display: inline-block;
	padding: 14px 0 12px;
	font-size: 13px;
	font-weight: 600;
	border-bottom: 2px solid transparent;
}
.rmt-tnav a:hover { border-color: var(--red); color: var(--ink); }

/* Where to watch */
.rmt-where__tabs { margin-bottom: 14px; }
.rmt-where__tabs .rmt-seg__btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.rmt-where__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rmt-where__row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto auto;
	gap: 12px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--rule);
}
.rmt-where__type {
	justify-self: start;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--chip);
}
.rmt-where__type--stream { background: var(--red); color: #FFFFFF; }
.rmt-where__type--broadcast { background: var(--midnight); color: #F5F1E8; }
.rmt-where__type--theatres { background: var(--rr-coral); color: #15161D; }
.rmt-where__platform { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
a.rmt-where__platform:hover { color: var(--red-text); }
.rmt-where__date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rmt-where__go { font-size: 13px; font-weight: 600; color: var(--red-text); }
.rmt-where__none { color: var(--muted); max-width: 60ch; }
@media (max-width: 600px) {
	.rmt-where__row { grid-template-columns: auto minmax(0, 1fr); }
	.rmt-where__date, .rmt-where__go { grid-column: 2; }
}

/* Our take */
.rmt-take__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.rmt-take__grid:not(:has(.rmt-take__review)) { grid-template-columns: minmax(0, var(--measure)); }
.rmt-take__summary { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin: 0 0 16px; }
.rmt-take__why { font-size: 17px; line-height: 1.6; margin: 0 0 16px; }
.rmt-take__why strong {
	display: block;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--red-text);
	margin-bottom: 4px;
}
.rmt-take__site a { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--rule); }
.rmt-take__review {
	display: grid;
	gap: 6px;
	padding: 20px;
	background: var(--midnight);
	color: #F5F1E8;
	border-radius: var(--rr-radius);
}
.rmt-take__review:hover { color: #F5F1E8; background: #1A2350; }
.rmt-take__score { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--rr-coral); }
.rmt-take__score small { font-size: 20px; color: rgba(245, 241, 232, .6); }
.rmt-take__rtitle { font-weight: 600; }
@media (max-width: 800px) { .rmt-take__grid { grid-template-columns: 1fr; } }

/* Next on TV */
.rmt-ontv__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rmt-ontv__row {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr) 56px;
	gap: 12px;
	align-items: baseline;
	padding: 12px 0;
	border-bottom: 1px solid var(--rule);
	font-size: 15px;
}
.rmt-ontv__when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rmt-ontv__ch { font-weight: 600; }
.rmt-ontv__ep { color: var(--muted); }
.rmt-ontv__reg { font-family: var(--mono); font-size: 11px; text-align: right; color: var(--muted); }
.rmt-linklike { background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.rmt-linklike:hover { color: var(--red-text); }
@media (max-width: 600px) {
	.rmt-ontv__row { grid-template-columns: 1fr auto; }
	.rmt-ontv__ep { grid-column: 1 / -1; }
}

/* Seasons */
.rmt-seasons__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}
.rmt-seasons__item {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--red);
	border-radius: var(--rr-radius);
}
.rmt-seasons__n { font-family: var(--serif); font-size: 20px; }
.rmt-seasons__meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* Cast & crew */
.rmt-cast__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 24px 16px;
}
.rmt-cast__link { display: grid; gap: 2px; text-align: center; justify-items: center; }
.rmt-cast__img {
	display: block;
	width: 112px;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--media-bg);
	margin-bottom: 8px;
	box-shadow: var(--rr-shadow);
	transition: transform .2s ease;
}
a.rmt-cast__link:hover .rmt-cast__img { transform: scale(1.04); }
.rmt-cast__img img { width: 100%; height: 100%; object-fit: cover; }
.rmt-cast__name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.rmt-cast__role { font-size: 13px; color: var(--muted); line-height: 1.3; }

/* Initials art (people without a headshot) */
.rmt-person__ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	background: var(--ph, #121A3D); /* 1.7.0: plain disc, no motif */
	color: #F5F1E8;
	font-family: var(--serif);
	font-size: 36px;
	font-size: clamp(20px, 30cqi, 120px);
	container-type: inline-size;
	letter-spacing: .02em;
}
.rmt-person__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Person page ---------- */
.rmt-ph {
	display: grid;
	grid-template-columns: minmax(160px, 300px) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: end;
	padding-block: clamp(40px, 6vw, 80px) 8px;
}
.rmt-ph__img {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--rr-radius);
	background: var(--media-bg);
	box-shadow: var(--rr-shadow-lift);
	container-type: inline-size;
}
.rmt-ph__img .rmt-person__ph { aspect-ratio: auto; font-size: 34cqi; }
.rmt-ph__name {
	margin: 6px 0 10px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 44px;
	font-size: clamp(36px, 6vw, 80px);
	line-height: 1;
	letter-spacing: -.01em;
}
.rmt-ph__desc { font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.rmt-ph__facts { color: var(--muted); }
.rmt-ph__facts a { border-color: var(--rule); }
.rmt-ph__facts a:hover { color: var(--red-text); }
.rmt-ph__bio { font-size: 18px; line-height: 1.6; max-width: var(--measure); }
@media (max-width: 700px) {
	.rmt-ph { grid-template-columns: 1fr; }
	.rmt-ph__img { width: 58%; max-width: 240px; }
}

/* People grid */
.rmt-peoplegrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 28px 18px;
}
.rmt-personcard a { display: grid; gap: 4px; }
.rmt-personcard__img {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--rr-radius);
	background: var(--media-bg);
	box-shadow: var(--rr-shadow);
	margin-bottom: 6px;
	container-type: inline-size;
}
.rmt-personcard__img .rmt-person__ph { aspect-ratio: auto; font-size: 30cqi; }
.rmt-personcard__name { font-weight: 600; }
.rmt-personcard__meta { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .rmt-peoplegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- The Rerun hub ---------- */
.rmt-rerun { padding-bottom: var(--gap-section); }
.rmt-rerun__head {
	padding-block: clamp(40px, 7vw, 96px) 8px;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 32px;
}
.rmt-rerun__title {
	margin: 8px 0 14px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: 48px;
	font-size: clamp(40px, 8vw, 112px);
	line-height: .95;
	letter-spacing: -.02em;
	max-width: 14ch;
}
.rmt-rerun__title em { color: var(--red-text); }
.rmt-rerun__search { display: flex; gap: 8px; max-width: 620px; margin-top: 24px; }
.rmt-rerun__search input,
.rmt-filters__q input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	padding: 0 18px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
}
.rmt-rerun__search input:focus,
.rmt-filters__q input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }

/* Decade tiles */
.rmt-decades {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}
.rmt-decade a {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 3 / 4;
	padding: 14px;
	overflow: hidden;
	border-radius: var(--rr-radius);
	color: #F5F1E8;
	background: var(--midnight);
	isolation: isolate;
}
.rmt-decade--1 a { background: #D42B1C; }
.rmt-decade--2 a { background: #15161D; }
.rmt-decade--3 a { background: #FF7A6E; color: #15161D; }
.rmt-decade--4 a { background: #23262F; }
.rmt-decade__posters {
	position: absolute;
	inset: 10% -10% auto;
	display: flex;
	justify-content: center;
	z-index: -1;
}
.rmt-decade__p {
	width: 44%;
	flex: 0 0 auto;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
	transform: rotate(-8deg) translateY(10px);
	transition: transform .3s ease;
}
.rmt-decade__p:nth-child(2) { transform: translateY(-6px); z-index: 1; margin-inline: -14%; }
.rmt-decade__p:nth-child(3) { transform: rotate(8deg) translateY(10px); }
.rmt-decade__p img, .rmt-decade__p .rmt-fp { width: 100%; height: 100%; object-fit: cover; }
.rmt-decade a:hover .rmt-decade__p:nth-child(1) { transform: rotate(-12deg) translate(-6px, 4px); }
.rmt-decade a:hover .rmt-decade__p:nth-child(3) { transform: rotate(12deg) translate(6px, 4px); }
.rmt-decade__label {
	font-family: var(--serif);
	font-size: 34px;
	font-size: clamp(24px, 3.4vw, 48px);
	line-height: 1;
}
.rmt-decade a:hover { color: inherit; }
@media (max-width: 800px) {
	.rmt-decades { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.rmt-decade { scroll-snap-align: start; }
}

/* Genre / term tiles */
.rmt-tiles {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}
.rmt-tile2 a {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4 / 3;
	padding: 12px 14px;
	overflow: hidden;
	border-radius: var(--rr-radius);
	color: #F5F1E8;
	background: var(--midnight);
	isolation: isolate;
}
.rmt-tile2__img {
	position: absolute;
	inset: 0;
	z-index: -1;
	transform: perspective(700px) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg));
	transition: transform .3s ease;
}
.rmt-tile2__img img, .rmt-tile2__img .rmt-fp { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.rmt-tile2__img .rmt-fp__title, .rmt-tile2__img .rmt-fp__mark, .rmt-tile2__img .rmt-fp__label, .rmt-tile2__img .rmt-fp::after { display: none; }
.rmt-tile2__img .rmt-fp__art { inset: 0; height: 100%; }
.rmt-tile2 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .2) 70%);
}
.rmt-tile2__name { font-family: var(--serif); font-size: 22px; line-height: 1.05; }
.rmt-tile2__count { font-family: var(--mono); font-size: 11px; opacity: .75; letter-spacing: .06em; }
.rmt-tile2 a:hover { color: #FFFFFF; }
.rmt-tile2 a:hover .rmt-tile2__img { transform: scale(1.05); }
@media (max-width: 600px) { .rmt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Platform chips */
.rmt-platforms { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rmt-platform {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 8px 0 18px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--paper);
	font-weight: 600;
}
.rmt-platform:hover { border-color: var(--ink); color: var(--ink); }
.rmt-platform__n {
	font-family: var(--mono);
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--chip);
	color: var(--muted);
}

/* A–Z */
.rmt-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.rmt-az > a {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	border-radius: 4px;
	font-family: var(--mono);
	font-size: 13px;
	border: 1px solid var(--rule);
}
.rmt-az > a:hover, .rmt-az > a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rmt-az--big > a { min-width: 44px; height: 44px; font-family: var(--serif); font-size: 20px; }
.rmt-az--bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.rmt-az--bar > a { flex: 0 0 auto; }
.rmt-az__letter { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 28px 0 8px; color: var(--red-text); scroll-margin-top: 72px; }
.rmt-az__list { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.rmt-az__list li { break-inside: avoid; padding: 4px 0; }
.rmt-az__n { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- Directories ---------- */
.rmt-dir { padding-bottom: var(--gap-section); }
.rmt-dir__head { padding-top: clamp(32px, 5vw, 64px); }
.rmt-dir__tabs {
	display: flex;
	gap: 6px;
	margin-top: 18px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.rmt-dir__tabs::-webkit-scrollbar { display: none; }
.rmt-dir__tab {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
}
.rmt-dir__tab--dec { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.rmt-dir__tab:hover { border-color: var(--ink); color: var(--ink); }
.rmt-dir__tab[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rmt-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 28px 0 14px;
	padding: 14px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--rr-radius);
}
.rmt-filters__q { flex: 1 1 240px; display: flex; }
.rmt-filters select {
	min-height: 44px;
	padding: 0 34px 0 14px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background-color: var(--bg);
	color: var(--ink);
	font-size: 14px;
	max-width: 100%;
}
.rmt-dir__count { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.rmt-dir__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rmt-dir__ontv { margin-top: 32px; }
@media (max-width: 600px) {
	.rmt-filters { padding: 10px; }
	.rmt-filters select { flex: 1 1 calc(50% - 8px); }
	.rmt-filters .rmt-btn { flex: 1 1 100%; }
}

/* ---------- In-story title card ---------- */
.rmt-tcard {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	margin: 2em 0;
	padding: 14px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-left: 4px solid var(--red);
	border-radius: var(--rr-radius);
	font-family: var(--sans);
}
.rmt-tcard__poster { border-radius: 4px; box-shadow: var(--rr-shadow); }
.rmt-tcard__body > p { margin: 0; }
.rmt-prose .rmt-tcard p { margin: 0; font-size: inherit; }
.rmt-tcard__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rmt-tcard__title { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin: 2px 0 4px !important; }
.rmt-tcard__title a { text-decoration: none; }
.rmt-tcard__where { font-size: 14px; font-weight: 600; margin-bottom: 10px !important; }
.rmt-tcard__where::before { content: "▶"; color: var(--red); font-size: 10px; margin-right: 6px; vertical-align: 1px; }
.rmt-tcard__go { margin-top: 8px; background: var(--ink); color: var(--bg); text-decoration: none; }
.rmt-tcard__go:hover { background: var(--red); color: #FFFFFF; }
.rmt-tlink { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rmt-tlink:hover { color: var(--red-text); }

/* Lightbox trigger in hero uses the site lightbox; this keeps the icon aligned. */
.rmt-th__actions .rmt-btn svg { margin-right: 6px; }
.rmt-trailer-lb { cursor: pointer; }

/* Data credit (one line) */
.rmt-entity .rmt-share { margin-top: var(--gap-section); }

@media (prefers-reduced-motion: reduce) {
	.rmt-poster__media, .rmt-tile2__img, .rmt-decade__p, .rmt-cast__img { transition: none; transform: none !important; }
	.rmt-poster__media::before { animation: none; }
}
@media print {
	.rmt-th { color: #000; background: none; }
	.rmt-th::before, .rmt-th__media, .rmt-tnav, .rmt-th__actions { display: none; }
}

/* =====================================================================
   1.6.0: poster peek, the title-page theatre, the screening room
   ===================================================================== */

/* ---------- Poster play chip (now a button) + peek state ---------- */
.rmt-poster__frame { position: relative; }
.rmt-poster__play { border: 0; cursor: pointer; z-index: 2; box-shadow: 0 6px 16px rgba(10, 15, 34, .35); transition: transform .2s ease, background-color .2s ease; }
.rmt-poster__play:hover { transform: scale(1.1); background: var(--red-text); }
.rmt-poster__play:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.rmt-poster.is-peeking .rmt-poster__media { box-shadow: var(--rr-shadow-lift); }
.rmt-poster--trailer .rmt-poster__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(10, 15, 34, .35), transparent 40%);
	opacity: 0;
	transition: opacity .25s ease;
}
.rmt-poster--trailer:hover .rmt-poster__media::after { opacity: 1; }

/* The flyout: a 16:9 window that fades and lifts in over the poster. */
.rmt-peek {
	position: fixed;
	z-index: 45;
	border-radius: 8px;
	overflow: hidden;
	background: #050817;
	box-shadow: 0 30px 80px rgba(5, 8, 23, .55), 0 0 0 1px rgba(245, 241, 232, .08);
	opacity: 0;
	transform: scale(.94) translateY(6px);
	transition: opacity .28s ease, transform .32s cubic-bezier(.2, .7, .2, 1);
	cursor: pointer;
}
.rmt-peek.is-on { opacity: 1; transform: none; }
.rmt-peek iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.rmt-peek::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 23, .85), transparent 45%); pointer-events: none; }
.rmt-peek__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #F5F1E8; pointer-events: none; }
.rmt-peek__title { font-family: var(--serif); font-size: 18px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmt-peek__cta { flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #FF7A6E; }

/* ---------- The theatre ---------- */
.rmt-th__playbig {
	position: absolute;
	left: 66%; top: 38%;
	z-index: 2;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	border: 0;
	background: transparent;
	color: #F5F1E8;
	cursor: pointer;
}
.rmt-th__playring {
	width: 84px; height: 84px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(212, 43, 28, .92);
	box-shadow: 0 0 0 10px rgba(212, 43, 28, .18), 0 24px 60px rgba(5, 8, 23, .5);
	transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease;
}
.rmt-th__playring svg { margin-left: 5px; }
.rmt-th__playbig:hover .rmt-th__playring { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(212, 43, 28, .14), 0 24px 60px rgba(5, 8, 23, .5); }
.rmt-th__playbig:focus-visible { outline: 0; }
.rmt-th__playbig:focus-visible .rmt-th__playring { outline: 3px solid #F5F1E8; outline-offset: 4px; }
.rmt-th__playlbl { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(5, 8, 23, .6); }
@media (max-width: 700px) {
	.rmt-th__playbig { left: 50%; top: 30%; }
	.rmt-th__playring { width: 64px; height: 64px; }
	.rmt-th__playring svg { width: 24px; height: 24px; }
}
.rmt-th__tagline { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); color: rgba(245, 241, 232, .8); }
.rmt-th__close {
	position: absolute;
	right: max(16px, env(safe-area-inset-right)); top: 16px;
	z-index: 4;
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	background: rgba(245, 241, 232, .14);
	color: #F5F1E8;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.rmt-th__close:hover { background: rgba(245, 241, 232, .26); }
/* Playing: the media layer comes forward as a 16:9 stage, the copy folds down beneath it. */
.rmt-th.is-playing { background: #050817; }
.rmt-th.is-playing::before { opacity: 0; }
.rmt-th.is-playing .rmt-th__playbig { display: none; }
.rmt-th.is-playing .rmt-th__media { position: relative; inset: auto; z-index: 1; aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; }
.rmt-th.is-playing .rmt-th__media > img, .rmt-th.is-playing .rmt-th__media > .rmt-fp { display: none; }
.rmt-th__frame { position: absolute; inset: 0; animation: rmtTheatreIn .5s ease both; }
.rmt-th__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@keyframes rmtTheatreIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.rmt-th.is-playing .rmt-th__inner { padding-block: 20px 28px; grid-template-columns: minmax(90px, 120px) minmax(0, 1fr); align-items: center; }
.rmt-th.is-playing .rmt-th__poster { transform: none; }
.rmt-th.is-playing .rmt-th__title { font-size: clamp(26px, 3vw, 40px); }
.rmt-th.is-playing .rmt-th__dek, .rmt-th.is-playing .rmt-th__tagline, .rmt-th.is-playing .rmt-th__kicker { display: none; }
.rmt-th.is-playing .rmt-th__actions [data-rmt-theatre] { display: none; }

/* ---------- The screening room (Rerun hub) ---------- */
.rmt-screen__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.rmt-screen__intro { margin: 0; color: var(--muted); max-width: 52ch; }
.rmt-screen__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin-top: 20px; }
.rmt-screen__item { min-width: 0; }
.rmt-screen__item--lead { grid-column: span 2; }
.rmt-screen__grid { align-items: start; }
.rmt-screen__btn {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	padding: 0;
	border-radius: var(--rr-radius);
	overflow: hidden;
	background: #050817;
	cursor: pointer;
	box-shadow: var(--rr-shadow);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.rmt-screen__btn:hover { transform: translateY(-3px); box-shadow: var(--rr-shadow-lift); }
.rmt-screen__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rmt-screen__btn:hover img { transform: scale(1.04); }
.rmt-screen__item--lead .rmt-screen__title { font-size: 24px; }
.rmt-screen__title { margin: 10px 0 2px; font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.15; }
.rmt-screen__title a:hover { color: var(--red-text); }
.rmt-screen__item:not(.rmt-screen__item--lead) .rmt-trailer__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.rmt-screen__item:not(.rmt-screen__item--lead) .rmt-trailer__play svg { width: 20px; height: 20px; }
@media (max-width: 1000px) { .rmt-screen__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
	.rmt-screen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.rmt-screen__item--lead { grid-column: span 2; grid-row: auto; }
	.rmt-screen__title { font-size: 15px; font-family: var(--sans); font-weight: 600; }
	.rmt-screen__item--lead .rmt-screen__title { font-size: 20px; font-family: var(--serif); font-weight: 400; }
}

@media (prefers-reduced-motion: reduce) {
	.rmt-peek, .rmt-th__frame, .rmt-screen__btn, .rmt-screen__btn img { transition: none; animation: none; }
}

/* ---------- 1.7.0: where-to-watch source tags, quiet fallback poster ---------- */
.rmt-where__src { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rmt-fp--quiet .rmt-fp__art { opacity: 1; }
.rmt-fp--quiet::after { display: none; }
.rmt-fp--quiet .rmt-fp__title { letter-spacing: -.01em; }

/* 1.9.3: nine decade tiles (1940s to 2020s) */
.rmt-decade--5 a { background: var(--midnight); }
.rmt-decade--6 a { background: #D42B1C; }
.rmt-decade--7 a { background: #15161D; }
.rmt-decade--8 a { background: #FF7A6E; color: #15161D; }
@media (min-width: 1101px) {
	.rmt-decades { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
	.rmt-decade a { padding: 10px; }
	.rmt-decade__label { font-size: clamp(18px, 1.8vw, 28px); }
}
@media (min-width: 801px) and (max-width: 1100px) {
	.rmt-decades { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.rmt-decade { scroll-snap-align: start; }
}

/* 1.9.9: Career at a glance (person pages) */
.rmt-ph__glance { font-size: 16px; line-height: 1.6; max-width: var(--measure); color: var(--muted); margin-top: 12px; }
.rmt-ph__glance a { color: var(--ink); }
