/*
 * TV & Movie Catalog
 *
 * One bold thing: titles set like the billing on a film poster (tall, tight,
 * condensed). Everything around them stays quiet so the posters carry the
 * colour. Dark "projection booth" ground, warm "projector light" text, one
 * tungsten accent.
 */

/* Tokens ------------------------------------------------------------------ */

:root {
	--bg: var(--wp--preset--color--base, #0f1318);
	--surface: var(--wp--preset--color--surface, #171d24);
	--raised: var(--wp--preset--color--raised, #202833);
	--ink: var(--wp--preset--color--contrast, #ece7dc);
	--muted: var(--wp--preset--color--muted, #9aa1ab);
	--accent: var(--wp--preset--color--accent, #e0a84f);
	--on-accent: #15100a;
	--line: rgb(236 231 220 / 12%);
	--shade: 15 19 24;
	--font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--font-billing: var(--wp--preset--font-family--billing, "Arial Narrow", sans-serif);
	--wide: var(--wp--style--global--wide-size, 1320px);
	--gap: clamp(0.75rem, 1.6vw, 1.25rem);
	--radius: 4px;
	color-scheme: dark;
}

/*
 * A light ground (Appearance → TV & Movie Catalog): body class tvmc-light, or
 * tvmc-auto, which follows the visitor's device. The two blocks must match.
 */
.tvmc-light {
	--bg: #f4f4f2;
	--surface: #ffffff;
	--raised: #e7e8e6;
	--ink: #171a1f;
	--muted: #5a626c;
	--accent: #9c5a12;
	--on-accent: #ffffff;
	--line: rgb(23 26 31 / 12%);
	--shade: 244 244 242;
	color-scheme: light;
}

@media (prefers-color-scheme: light) {
	.tvmc-auto {
		--bg: #f4f4f2;
		--surface: #ffffff;
		--raised: #e7e8e6;
		--ink: #171a1f;
		--muted: #5a626c;
		--accent: #9c5a12;
		--on-accent: #ffffff;
		--line: rgb(23 26 31 / 12%);
		--shade: 244 244 242;
		color-scheme: light;
	}
}

/* Base -------------------------------------------------------------------- */

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--accent);
	text-underline-offset: 0.18em;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-weight: 650;
	line-height: 1.05;
	margin: 0 0 0.5em;
}

h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.container {
	width: min(100% - 2rem, var(--wide));
	margin-inline: auto;
}

.narrow {
	width: min(100% - 2rem, 760px);
}

/* The billing: the one loud element. */
.billing {
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-weight: 700;
	font-size: clamp(2.6rem, 6.5vw, 5.75rem);
	line-height: 0.9;
	letter-spacing: -0.012em;
	margin: 0 0 0.35em;
	text-wrap: balance;
	max-width: 16ch;
}

.billing--feature {
	font-size: clamp(3rem, 9vw, 7.5rem);
	max-width: 12ch;
}

.billing--page {
	font-size: clamp(2.1rem, 4.5vw, 3.6rem);
	max-width: none;
}

.billing a {
	color: inherit;
	text-decoration: none;
}

/* Header ------------------------------------------------------------------ */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: 10;
}

.site-header__inner {
	width: min(100% - 2rem, var(--wide));
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.75rem;
	padding-block: 0.8rem;
}

.site-title {
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--ink);
	text-decoration: none;
}

.custom-logo {
	display: block;
	max-height: 44px;
	width: auto;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	color: var(--accent);
}

.site-search {
	display: flex;
	flex: 1 1 16rem;
	max-width: 26rem;
}

.site-header .site-search {
	margin-left: auto;
}

.site-search input,
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--line);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	background: var(--bg);
	color: var(--ink);
	font: inherit;
}

.site-search button,
.search-form .search-submit {
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--raised);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

.search-form {
	display: flex;
	max-width: 30rem;
}

.site-search__field {
	position: relative;
	display: flex;
	flex: 1;
	min-width: 0;
}

/* Suggestions while typing (assets/js/search-suggest.js). */
.suggest {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 50;
	width: max(100%, 20rem);
	max-width: calc(100vw - 2rem);
	max-height: min(70vh, 34rem);
	overflow-y: auto;
	margin: 0;
	padding: 0.3rem;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
}

.suggest__item {
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	gap: 0.75rem;
	align-items: center;
	padding: 0.4rem 0.5rem;
	border-radius: var(--radius);
	cursor: pointer;
}

.suggest__frame {
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 2px;
	background: var(--raised);
}

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

.suggest__text {
	display: grid;
	min-width: 0;
}

.suggest__title {
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.suggest__meta {
	color: var(--muted);
	font-size: 0.85rem;
}

.suggest__all {
	margin-top: 0.3rem;
	padding: 0.55rem 0.5rem;
	border-top: 1px solid var(--line);
	color: var(--accent);
	font-weight: 600;
	cursor: pointer;
}

.suggest [aria-selected="true"],
.suggest [role="option"]:hover {
	background: var(--raised);
}

/* Buttons ----------------------------------------------------------------- */

.button {
	display: inline-block;
	padding: 0.7rem 1.15rem;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
	font: 600 1rem/1.1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	filter: brightness(1.08);
}

.button--quiet {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

/* Main ------------------------------------------------------------------- */

.site-main {
	padding-bottom: 3rem;
}

/* Featured title (home) and title headers share the backdrop treatment. */

.feature,
.title-head {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--surface);
}

.backdrop {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.feature::after,
.title-head::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, var(--bg) 0%, rgb(var(--shade) / 60%) 48%, rgb(var(--shade) / 15%) 100%),
		linear-gradient(to right, rgb(var(--shade) / 82%) 0%, rgb(var(--shade) / 0%) 65%);
}

.feature {
	display: flex;
	align-items: flex-end;
	min-height: clamp(440px, 74vh, 760px);
}

.feature__inner {
	padding-block: 4rem 2.5rem;
}

.feature__overview {
	max-width: 58ch;
	font-size: 1.08rem;
	line-height: 1.55;
	margin: 0 0 1.5rem;
}

.feature__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.1rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	color: var(--muted);
}

.facts a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
}

.facts a:hover {
	border-bottom-color: var(--accent);
}

.facts__rating {
	color: var(--accent);
	font-weight: 700;
}

/* Shelves ----------------------------------------------------------------- */

.shelves {
	padding-top: 2rem;
}

.shelf {
	margin-block: 2.25rem;
}

.shelf__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.shelf__title {
	margin: 0;
}

.shelf__more {
	white-space: nowrap;
	text-decoration: none;
	font-weight: 500;
}

.shelf__row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 42%;
	gap: var(--gap);
	margin: 0;
	padding: 0 0 0.75rem;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--raised) transparent;
}

.shelf__row > li {
	scroll-snap-align: start;
	min-width: 0;
}

/* Cards ------------------------------------------------------------------- */

.card__link {
	display: block;
	color: var(--ink);
	text-decoration: none;
}

.card__frame {
	position: relative;
	display: block;
	margin-bottom: 0.55rem;
}

.poster {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--raised);
	/* A missing image shows the plain frame, not its alt text. */
	color: transparent;
	font-size: 0;
}

.poster--wide {
	aspect-ratio: 16 / 9;
}

/* No image: the title itself, set as billing. */
.poster--empty {
	display: flex;
	align-items: flex-end;
	padding: 0.75rem;
	background: linear-gradient(160deg, var(--raised), var(--surface));
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 0.95;
	color: var(--muted);
	overflow: hidden;
}

.poster--empty span {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.card__link:hover .poster {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.card__rating {
	position: absolute;
	left: 0.4rem;
	bottom: 0.4rem;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	background: rgb(15 19 24 / 88%);
	color: var(--accent);
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1.2;
}

.card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-weight: 600;
	line-height: 1.3;
}

.card__line {
	display: block;
	margin-top: 0.15rem;
	color: var(--muted);
	font-size: 0.875rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Grids ------------------------------------------------------------------- */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr));
	gap: 1.5rem var(--gap);
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.grid--seasons {
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 140px), 1fr));
}

/* Catalog listing ---------------------------------------------------------- */

.catalog {
	padding-top: 2.25rem;
}

.catalog__intro {
	max-width: 65ch;
	color: var(--muted);
}

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
	margin: 0 0 2rem;
	padding: 1rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.filters__field {
	display: grid;
	gap: 0.3rem;
	font-size: 0.875rem;
	color: var(--muted);
}

.filters select,
.filters input {
	height: 2.6rem;
	min-width: 10rem;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}

.filters__field--year input {
	min-width: 0;
	width: 6.5rem;
}

.filters__reset {
	align-self: center;
	font-size: 0.95rem;
}

.empty-state {
	margin-block: 3rem;
	color: var(--muted);
	max-width: 60ch;
}

.empty-state h1 {
	color: var(--ink);
}

.empty-state--page {
	padding-top: 2rem;
}

/* Title page -------------------------------------------------------------- */

.title-head__inner {
	display: grid;
	grid-template-columns: minmax(110px, 34%) 1fr;
	align-items: end;
	gap: 1.25rem;
	padding-block: 5rem 2rem;
}

.title-head--compact .title-head__inner {
	padding-top: 3.5rem;
}

.title-head__poster .poster {
	box-shadow: 0 0 0 1px var(--line);
}

.title-head__text .billing {
	font-size: clamp(2.1rem, 6vw, 5.25rem);
}

.title-head__original {
	margin: -0.2rem 0 0.9rem;
	color: var(--muted);
	font-size: 1.05rem;
}

.title-head__parent {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.title-head__parent a {
	color: var(--ink);
}

.title-head__tagline {
	margin: 0 0 1.25rem;
	font-style: italic;
	color: var(--muted);
}

.score {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0 0 1rem;
}

.score__value {
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--accent);
}

.title-body {
	display: grid;
	gap: 2.5rem;
	padding-top: 2rem;
}

.title-body__main {
	min-width: 0;
}

.title-body__main > section {
	margin-bottom: 2.5rem;
}

.prose {
	max-width: 68ch;
	font-size: 1.06rem;
	line-height: 1.7;
}

.prose p:first-child {
	margin-top: 0;
}

.trailer__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
}

.trailer__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.shelf__row--people {
	grid-auto-columns: 36%;
}

.details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.55rem 1.25rem;
	margin: 0;
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.details dt {
	color: var(--muted);
}

.details dd {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.details a {
	color: var(--ink);
}

.details__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}

/* In the side column the label goes above its value: names never wrap word by word. */
.title-body__side .details {
	grid-template-columns: 1fr;
	gap: 0;
}

.title-body__side .details dt {
	font-size: 0.85rem;
}

.title-body__side .details dd {
	margin-bottom: 0.85rem;
}

.title-body__side .details dd:last-child {
	margin-bottom: 0;
}

.details--inline {
	background: none;
	border: 0;
	padding: 0;
	margin-bottom: 1.5rem;
}

/* Season and episode ------------------------------------------------------ */

.season__body > * {
	max-width: 900px;
}

.episodes {
	margin: 2rem 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.episode-row {
	border-bottom: 1px solid var(--line);
}

.episode-row__link {
	display: grid;
	grid-template-columns: 38% 1fr;
	gap: 1rem;
	padding-block: 1rem;
	color: var(--ink);
	text-decoration: none;
}

.episode-row__link:hover .episode-row__title {
	color: var(--accent);
}

.episode-row__text {
	display: grid;
	align-content: start;
	gap: 0.2rem;
	min-width: 0;
}

.episode-row__number,
.episode-row__meta,
.episode__number {
	color: var(--muted);
	font-size: 0.875rem;
}

.episode-row__title {
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-weight: 650;
	font-size: 1.4rem;
	line-height: 1.1;
}

.episode-row__overview {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	padding-block: 1.75rem 1rem;
	font-weight: 600;
}

.crumbs a {
	color: var(--ink);
}

.episode__still {
	margin-bottom: 1.5rem;
}

.episode__number {
	margin: 0 0 0.3rem;
}

.episode-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.episode-nav a {
	display: grid;
	gap: 0.2rem;
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
}

.episode-nav span {
	color: var(--muted);
	font-weight: 400;
	font-size: 0.875rem;
}

.episode-nav__next {
	grid-column: 2;
	text-align: right;
}

/* Person ------------------------------------------------------------------ */

.person__inner {
	display: grid;
	gap: 1.5rem;
	padding-block: 2.5rem 1rem;
}

.person__photo {
	max-width: 260px;
}

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

.filmography tbody {
	border-top: 1px solid var(--line);
}

.filmography th,
.filmography td {
	padding: 0.5rem 0.75rem 0.5rem 0;
	text-align: left;
	vertical-align: top;
}

.filmography th {
	width: 5.5rem;
	color: var(--muted);
	font-weight: 600;
}

.filmography td a {
	color: var(--ink);
	font-weight: 600;
}

.filmography__role {
	color: var(--muted);
}

/* News -------------------------------------------------------------------- */

.news-strip {
	margin-block: 2.5rem;
}

.news-strip__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1.5rem var(--gap);
}

.news-item__link {
	display: grid;
	gap: 0.6rem;
	color: var(--ink);
	text-decoration: none;
}

.news-item__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius);
}

.news-item__title {
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-weight: 650;
	font-size: 1.35rem;
	line-height: 1.1;
}

.news-item__link:hover .news-item__title {
	color: var(--accent);
}

.news-item__date {
	display: block;
	margin-top: 0.3rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.article {
	padding-top: 2.5rem;
}

.article__meta {
	color: var(--muted);
}

.article__image {
	margin: 0 0 2rem;
}

.article__image img {
	width: 100%;
	border-radius: var(--radius);
}

/* Pagination -------------------------------------------------------------- */

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1rem;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	border-top: 1px solid var(--line);
	padding-block: 2rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.site-footer__inner {
	width: min(100% - 2rem, var(--wide));
	margin-inline: auto;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--ink);
}

/* Comments ---------------------------------------------------------------- */

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	padding-block: 1rem;
	border-bottom: 1px solid var(--line);
}

.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	padding: 0.6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

.comment-form .submit {
	padding: 0.7rem 1.15rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
	font: 600 1rem var(--font-body);
	cursor: pointer;
}

/* Forms inside news and pages (contact forms, polls) --------------------- */

.prose :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], textarea, select) {
	box-sizing: border-box;
	width: 100%;
	max-width: 34rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

.prose :is(button, input[type="submit"], input[type="button"]) {
	padding: 0.6rem 1.15rem;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
	font: 600 1rem/1.1 var(--font-body);
	cursor: pointer;
}

.prose :is(input, textarea, select, button):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/*
 * Forminator colours its text for a light page, with selectors this sheet
 * cannot outrank; only the text colour is taken over (its buttons and
 * colours stay as set in Forminator).
 */
.forminator-ui :is(.forminator-question, .forminator-description, .forminator-label, .forminator-radio, .forminator-radio-label, .forminator-checkbox-label, .forminator-chart-legend li, .forminator-note) {
	color: var(--ink) !important;
}

/* Links ------------------------------------------------------------------- */

.links {
	margin: 2rem 0;
}

.links h2 {
	margin: 0 0 1rem;
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-size: 1.6rem;
}

.links__group + .links__group {
	margin-top: 1.4rem;
}

.links__type {
	margin: 0 0 0.5rem;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 600;
}

.links__count {
	margin-left: 0.3rem;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 400;
}

.links__rows {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.link-row {
	display: grid;
	grid-template-areas: "quality language label host";
	grid-template-columns: 3.6rem 7rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.9rem;
	padding: 0.65rem 0.4rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.link-row:hover,
.link-row:focus-visible {
	background: var(--surface);
}

.link-row:hover .link-row__label,
.link-row:focus-visible .link-row__label {
	color: var(--accent);
}

.link-row__quality {
	grid-area: quality;
	justify-self: start;
	padding: 0.1rem 0.4rem;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	color: var(--accent);
	font-family: var(--font-billing);
	font-stretch: 75%;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}

.link-row__language {
	grid-area: language;
	color: var(--muted);
	font-size: 0.92rem;
}

.link-row__label {
	grid-area: label;
	overflow: hidden;
	font-size: 1rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.link-row__host {
	grid-area: host;
	color: var(--muted);
	font-size: 0.85rem;
}

@media (max-width: 699px) {
	.link-row {
		grid-template-areas:
			"quality language"
			"label label"
			"host host";
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0.2rem 0.6rem;
	}

	.link-row--no-quality {
		grid-template-areas:
			"language language"
			"label label"
			"host host";
	}

	.link-row__label {
		overflow-wrap: anywhere;
		white-space: normal;
	}
}

/* Visitor switch (Appearance → TV & Movie Catalog → Visitor switch) -------- */

/*
 * The visitor's choice is a class on <html>; it wins over the site's own
 * scheme on <body>. The two blocks repeat the tokens above.
 */
html.tvmc-light body {
	--bg: #f4f4f2;
	--surface: #ffffff;
	--raised: #e7e8e6;
	--ink: #171a1f;
	--muted: #5a626c;
	--accent: #9c5a12;
	--on-accent: #ffffff;
	--line: rgb(23 26 31 / 12%);
	--shade: 244 244 242;
	color-scheme: light;
}

html.tvmc-dark body {
	--bg: var(--wp--preset--color--base, #0f1318);
	--surface: var(--wp--preset--color--surface, #171d24);
	--raised: var(--wp--preset--color--raised, #202833);
	--ink: var(--wp--preset--color--contrast, #ece7dc);
	--muted: var(--wp--preset--color--muted, #9aa1ab);
	--accent: var(--wp--preset--color--accent, #e0a84f);
	--on-accent: #15100a;
	--line: rgb(236 231 220 / 12%);
	--shade: 15 19 24;
	color-scheme: dark;
}

.scheme-switch,
.search-pop__button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}

.scheme-switch[hidden] {
	display: none;
}

.scheme-switch:hover,
.search-pop__button:hover {
	background: var(--raised);
}

.scheme-switch[data-scheme="dark"] .scheme-switch__moon,
.scheme-switch[data-scheme="light"] .scheme-switch__sun {
	display: none;
}

.search-pop {
	position: relative;
}

.search-pop__button::-webkit-details-marker {
	display: none;
}

.search-pop__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	z-index: 70;
	width: min(92vw, 420px);
	padding: 0.75rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	box-shadow: 0 18px 40px rgb(0 0 0 / 30%);
}

.search-pop__panel .search-form {
	width: 100%;
}

/* Episode cards (Latest episodes) ----------------------------------------- */

.shelf__row--wide {
	grid-auto-columns: 72%;
}

.card__tag {
	position: absolute;
	left: 0.45rem;
	top: 0.45rem;
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
}

@media (min-width: 700px) {
	.shelf__row--wide {
		grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
	}
}

@media (min-width: 1100px) {
	.shelf__row--wide {
		grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
	}
}

/* Elementor --------------------------------------------------------------- */

/*
 * Widgets the site owner has not colored follow the theme (and light, dark
 * and the visitor switch). Elementor's own defaults are one class strong; a
 * color chosen in Elementor is several classes strong and still wins.
 */
body .elementor-icon,
body .elementor-icon:hover {
	color: var(--accent);
	fill: var(--accent);
}

body .elementor-view-framed .elementor-icon {
	border-color: var(--accent);
}

body .elementor-view-stacked .elementor-icon {
	background-color: var(--accent);
	color: var(--on-accent);
	fill: var(--on-accent);
}

body .elementor-icon-list-icon i,
body .elementor-icon-list-icon svg {
	color: var(--accent);
	fill: var(--accent);
}

body .elementor-widget-divider {
	--divider-color: var(--line);
}

body .elementor-button {
	background-color: var(--accent);
	color: var(--on-accent);
	fill: var(--on-accent);
}

/* Ad slots (Appearance → TV & Movie Catalog → Ads) ---------------------- */

.ad {
	display: flex;
	justify-content: center;
	margin: 1.5rem auto;
	max-width: 100%;
	overflow: hidden;
}

.site-main > .ad--header,
.site-main > .ad--footer_before {
	width: min(100% - 2rem, var(--wide));
}

.grid > .ad {
	grid-column: 1 / -1;
	margin: 0;
}

.episodes > .ad {
	margin: 0;
	padding-block: 1rem;
	border-bottom: 1px solid var(--line);
}

.ad--mobile_bar {
	position: fixed;
	inset: auto 0 0;
	z-index: 60;
	margin: 0;
	padding: 4px;
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.has-mobile-bar {
	padding-bottom: 64px;
}

.ad--preview {
	align-items: center;
	gap: 0.5rem;
	min-height: 90px;
	padding: 0.75rem;
	border: 2px dashed var(--accent);
	border-radius: var(--radius);
	background: var(--raised);
	color: var(--ink);
	font-size: 0.9rem;
	text-align: center;
}

.ad--mobile_bar.ad--preview {
	min-height: 56px;
}

@media (max-width: 699px) {
	.ad--desktop {
		display: none;
	}
}

@media (min-width: 700px) {
	.ad--mobile,
	.ad--mobile_bar {
		display: none;
	}

	.has-mobile-bar {
		padding-bottom: 0;
	}
}

/* Wider screens ----------------------------------------------------------- */

@media (min-width: 700px) {
	.shelf__row {
		grid-auto-columns: calc((100% - 4 * var(--gap)) / 5);
	}

	.shelf__row--people {
		grid-auto-columns: calc((100% - 5 * var(--gap)) / 6);
	}

	.grid {
		grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	}

	.title-head__inner {
		grid-template-columns: clamp(180px, 24vw, 300px) 1fr;
		gap: 2.25rem;
		padding-block: 9rem 2.5rem;
	}

	.title-head--compact .title-head__inner {
		grid-template-columns: clamp(150px, 18vw, 220px) 1fr;
		padding-top: 6rem;
	}

	.episode-row__link {
		grid-template-columns: 240px 1fr;
		gap: 1.5rem;
	}

	.person__inner {
		grid-template-columns: clamp(200px, 24vw, 300px) 1fr;
		gap: 2.5rem;
		align-items: start;
	}

	.person__photo {
		max-width: none;
	}
}

@media (min-width: 1100px) {
	.shelf__row {
		grid-auto-columns: calc((100% - 6 * var(--gap)) / 7);
	}

	.title-body {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 3rem;
	}

	.shelf__row--people {
		grid-auto-columns: calc((100% - 5 * var(--gap)) / 6);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Classes WordPress outputs and expects every theme to style. ------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed !important;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	clip-path: none;
	background: var(--accent);
	color: var(--on-accent);
}

.alignleft {
	float: left;
	margin: 0.25rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.25rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	color: var(--muted);
	font-size: 0.875rem;
}

.wp-caption-text {
	margin-top: 0.5rem;
}

.sticky .news-item__title::before {
	content: "★ ";
	color: var(--accent);
}

.bypostauthor > .comment-body {
	border-left: 3px solid var(--accent);
	padding-left: 0.75rem;
}
