/* Faith TV Series. Styled after faithtabernacle.com: square corners, heavy uppercase Roboto, crimson accents.
   Scoped to .ftvs (sections), .ftvs-dialog (player) and the shared .ftvs-btn / .ftvs-kicker / .ftvs-badge. */

.ftvs,
.ftvs-dialog {
	--ftvs-accent: #c40d3c;
	--ftvs-accent-dark: color-mix(in srgb, var(--ftvs-accent) 82%, #000);
	--ftvs-accent-text: color-mix(in srgb, var(--ftvs-accent) 55%, #fff);
	--ftvs-font: Roboto, "Helvetica Neue", Arial, sans-serif;
	--ftvs-text: #fff;
	--ftvs-muted: rgba(255, 255, 255, 0.72);
	--ftvs-thumb-bg: #111;
	--ftvs-gap: 20px;
	--ftvs-card-w: clamp(230px, 24vw, 330px);
}

.ftvs {
	position: relative;
	color: var(--ftvs-text);
}

.ftvs--light {
	--ftvs-accent-text: var(--ftvs-accent);
	--ftvs-text: #1b1b1b;
	--ftvs-muted: #555;
	--ftvs-thumb-bg: #e4e4e4;
}

.ftvs [hidden],
.ftvs-dialog [hidden] {
	display: none !important;
}

.ftvs *,
.ftvs-dialog * {
	box-sizing: border-box;
}

/* ---------- Shared pieces ---------- */

.ftvs-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	color: var(--ftvs-accent-text);
	font-family: var(--ftvs-font);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.ftvs-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 5px 9px 5px 20px;
	background: var(--ftvs-accent);
	color: #fff;
	font-family: var(--ftvs-font);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ftvs-badge::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: #fff;
	animation: ftvs-blink 1.6s ease-in-out infinite;
}

.ftvs-badge--corner {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ftvs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 30px;
	border: 0;
	border-radius: 0;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.21);
	font-family: var(--ftvs-font);
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ftvs-btn svg {
	flex: none;
}

.ftvs-btn--primary,
.ftvs-btn--primary:visited {
	background: var(--ftvs-accent);
	color: #fff !important;
}

.ftvs-btn--light,
.ftvs-btn--light:visited {
	background: rgba(255, 255, 255, 0.92);
	color: #222 !important;
}

.ftvs-btn:hover,
.ftvs-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	outline: none;
}

.ftvs-btn--primary:hover,
.ftvs-btn--primary:focus-visible {
	background: var(--ftvs-accent-dark);
}

.ftvs-btn--light:hover,
.ftvs-btn--light:focus-visible {
	background: #fff;
}

.ftvs-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Section heading (title="..." eyebrow="...") */
.ftvs__head {
	margin: 0 0 24px;
}

.ftvs__title {
	margin: 0;
	color: var(--ftvs-heading-color, inherit);
	font-family: var(--ftvs-font);
	font-size: var(--ftvs-heading-size, clamp(28px, 4vw, 44px));
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

/* ---------- Cards (row, grid, showcase strip) ---------- */

.ftvs__viewport {
	position: relative;
}

.ftvs__track {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 10px 4px 14px;
	display: flex;
	gap: var(--ftvs-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 4px;
	scrollbar-width: none;
}

.ftvs__track::-webkit-scrollbar {
	display: none;
}

.ftvs__item {
	flex: 0 0 var(--ftvs-card-w);
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.ftvs--grid .ftvs__track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	row-gap: 32px;
	overflow: visible;
}

.ftvs__card {
	display: block;
	color: inherit !important;
	text-decoration: none !important;
	outline: none;
}

.ftvs__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ftvs-thumb-bg);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ftvs__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, filter 0.3s ease;
}

/* A dark wash that lifts on hover, so the play button reads. */
.ftvs__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45));
	opacity: 0.8;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.ftvs__card:hover .ftvs__thumb,
.ftvs__card:focus-visible .ftvs__thumb {
	transform: translateY(-4px);
	box-shadow: 0 0 0 3px #fff, 0 16px 32px rgba(0, 0, 0, 0.45);
}

.ftvs--light .ftvs__card:hover .ftvs__thumb,
.ftvs--light .ftvs__card:focus-visible .ftvs__thumb {
	box-shadow: 0 0 0 3px var(--ftvs-accent), 0 16px 32px rgba(0, 0, 0, 0.25);
}

.ftvs__card:hover .ftvs__thumb img,
.ftvs__card:focus-visible .ftvs__thumb img {
	transform: scale(1.06);
}

.ftvs__card:hover .ftvs__thumb::after,
.ftvs__card:focus-visible .ftvs__thumb::after {
	opacity: 1;
}

.ftvs__play {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ftvs-accent);
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.ftvs__play svg {
	margin-left: 3px;
}

.ftvs__card:hover .ftvs__play,
.ftvs__card:focus-visible .ftvs__play {
	opacity: 1;
}

.ftvs__play--big {
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
}

.ftvs__play--big svg {
	margin-left: 5px;
}

.ftvs__head .ftvs-kicker {
	color: var(--ftvs-eyebrow-color, var(--ftvs-accent-text));
	font-size: var(--ftvs-eyebrow-size, 14px);
}

.ftvs__name {
	display: block;
	margin-top: 14px;
	color: var(--ftvs-card-color, inherit);
	font-family: var(--ftvs-font);
	font-size: var(--ftvs-card-size, 16px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ftvs__meta {
	display: block;
	margin-top: 5px;
	color: var(--ftvs-meta-color, var(--ftvs-accent-text));
	font-family: var(--ftvs-font);
	font-size: var(--ftvs-meta-size, 11px);
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ftvs__desc {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	color: var(--ftvs-text-color, var(--ftvs-muted));
	font-size: var(--ftvs-text-size, 14px);
	line-height: 1.5;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Arrows: crimson squares like the site's buttons. */
.ftvs__arrow {
	position: absolute;
	z-index: 4;
	width: 48px;
	height: 48px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 0;
	background: var(--ftvs-accent);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ftvs__arrow:hover,
.ftvs__arrow:focus-visible {
	background: var(--ftvs-accent-dark);
	transform: scale(1.06);
	outline: none;
}

.ftvs__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ftvs__viewport .ftvs__arrow {
	top: calc(var(--ftvs-card-w) * 9 / 32 + 10px);
	margin-top: -24px;
}

.ftvs__viewport .ftvs__arrow--prev {
	left: -12px;
}

.ftvs__viewport .ftvs__arrow--next {
	right: -12px;
}

@media (hover: none) {
	.ftvs__viewport .ftvs__arrow {
		display: none !important;
	}
}

/* ---------- Showcase ---------- */

.ftvs-show {
	--ftvs-accent-text: color-mix(in srgb, var(--ftvs-accent) 55%, #fff);
	--ftvs-muted: rgba(255, 255, 255, 0.72);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(28px, 5vw, 64px) clamp(18px, 4.5vw, 64px) clamp(20px, 3vw, 36px);
	background: #0d0d0d;
	color: #fff;
}

.ftvs-show__backdrop {
	position: absolute;
	z-index: -2;
	inset: 0;
	overflow: hidden;
}

.ftvs-show__backdrop img {
	position: absolute;
	inset: -12%;
	width: 124%;
	height: 124%;
	max-width: none;
	object-fit: cover;
	filter: blur(42px) saturate(1.35) brightness(0.55);
	opacity: 0;
	transition: opacity 0.9s ease;
}

.ftvs-show__backdrop img.is-on {
	opacity: 1;
}

/* Dark wash plus the crimson diagonal from the church home page. */
.ftvs-show::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(112deg, transparent 54%, color-mix(in srgb, var(--ftvs-accent) 30%, transparent) 54%, color-mix(in srgb, var(--ftvs-accent) 30%, transparent) 66%, transparent 66%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.3) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 38%);
}

.ftvs-show__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
}

.ftvs-show__info,
.ftvs-cf__caption {
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.ftvs-show__info.is-swapping,
.ftvs-cf__caption.is-swapping {
	opacity: 0;
	transform: translateY(10px);
}

.ftvs-feature__title {
	margin: 0;
	color: var(--ftvs-series-color, #fff);
	font-family: var(--ftvs-font);
	font-size: var(--ftvs-series-size, clamp(34px, 5vw, 64px));
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	text-wrap: balance;
}

.ftvs-kicker__label {
	color: var(--ftvs-meta-color, inherit);
}

.ftvs-feature__meta {
	margin: 14px 0 0;
	color: var(--ftvs-meta-color, var(--ftvs-accent-text));
	font-family: var(--ftvs-font);
	font-size: var(--ftvs-meta-size, 13px);
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.ftvs-feature__desc {
	display: -webkit-box;
	max-width: 520px;
	margin: 14px 0 0;
	overflow: hidden;
	color: var(--ftvs-text-color, rgba(255, 255, 255, 0.82));
	font-size: var(--ftvs-text-size, 16px);
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ftvs-show__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
}

.ftvs-show__art {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border: 4px solid #fff;
	background: #000;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
	transform: perspective(1600px) rotateY(-9deg) rotateX(2deg);
	transform-origin: 60% 50%;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
	outline: none;
}

.ftvs-show__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.ftvs-show__art img.is-swapping {
	opacity: 0;
	transform: scale(1.03);
}

.ftvs-show__art .ftvs__play {
	opacity: 0.95;
	transform: scale(1);
}

.ftvs-show__art:hover,
.ftvs-show__art:focus-visible {
	transform: perspective(1600px) rotateY(0deg) rotateX(0deg) scale(1.015);
	box-shadow: 0 34px 80px rgba(0, 0, 0, 0.7);
}

.ftvs-show__art:hover .ftvs__play,
.ftvs-show__art:focus-visible .ftvs__play {
	transform: scale(1.08);
}

.ftvs-show__art:focus-visible {
	outline: 3px solid var(--ftvs-accent-text);
	outline-offset: 5px;
}

.ftvs-show__strip {
	--ftvs-card-w: clamp(150px, 15vw, 210px);
	--ftvs-gap: 16px;
	margin-top: clamp(26px, 4vw, 44px);
}

.ftvs-show__strip .ftvs__name {
	margin-top: 10px;
	font-size: var(--ftvs-card-size, 13px);
}

.ftvs-show__strip .ftvs__meta {
	font-size: var(--ftvs-meta-size, 10px);
}

.ftvs-show__strip .ftvs__card {
	opacity: 0.62;
	transition: opacity 0.25s ease;
}

.ftvs-show__strip .ftvs__card:hover,
.ftvs-show__strip .ftvs__card:focus-visible,
.ftvs-show__strip .ftvs__card[aria-current="true"] {
	opacity: 1;
}

.ftvs-show__strip .ftvs__card[aria-current="true"] .ftvs__thumb {
	box-shadow: 0 0 0 3px #fff, 0 12px 26px rgba(0, 0, 0, 0.5);
}

.ftvs-show__strip .ftvs__play {
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
}

.ftvs-show__strip .ftvs__play svg {
	width: 18px;
	height: 18px;
}

/* Rotation timer: fills while the featured series is on screen. */
.ftvs__bar {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	display: none;
	background: rgba(255, 255, 255, 0.28);
}

.ftvs__card[aria-current="true"] .ftvs__bar {
	display: block;
}

.ftvs__bar span,
.ftvs-cf__bar span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--ftvs-accent);
	transform: scaleX(0);
	transform-origin: left center;
}

[data-ftvs-timer].is-running {
	animation: ftvs-fill var(--ftvs-autoplay, 7s) linear forwards;
}

.ftvs.is-paused [data-ftvs-timer] {
	animation-play-state: paused;
}

.ftvs--no-autoplay .ftvs__bar,
.ftvs--no-autoplay .ftvs-cf__bar {
	display: none !important;
}

/* ---------- Coverflow ---------- */

.ftvs-cf {
	--cf-w: clamp(220px, 46vw, 640px);
}

@supports (width: 1cqw) {
	.ftvs-cf {
		container-type: inline-size;
		--cf-w: clamp(220px, 50cqw, 640px);
	}
}

.ftvs-cf__stage {
	position: relative;
	height: calc(var(--cf-w) * 9 / 16 + 56px);
	overflow: hidden;
	perspective: 1600px;
	touch-action: pan-y;
	user-select: none;
}

.ftvs-cf__track {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	transform-style: preserve-3d;
}

.ftvs-cf__slide {
	position: absolute;
	top: 26px;
	left: 50%;
	width: var(--cf-w);
	margin: 0 0 0 calc(var(--cf-w) / -2);
	padding: 0;
	transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.7s ease, filter 0.7s ease;
	will-change: transform;
}

.ftvs:not(.is-ready) .ftvs-cf__slide {
	transition: none;
}

.ftvs-cf__slide .ftvs__thumb {
	border: 3px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

.ftvs-cf__slide .ftvs__card:hover .ftvs__thumb,
.ftvs-cf__slide .ftvs__card:focus-visible .ftvs__thumb {
	transform: none;
}

.ftvs-cf__slide[data-pos="0"] {
	z-index: 5;
	transform: none;
}

.ftvs-cf__slide[data-pos="0"] .ftvs__thumb {
	border: 4px solid #fff;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}

.ftvs-cf__slide[data-pos="0"] .ftvs__play {
	opacity: 0.95;
	transform: scale(1);
}

.ftvs-cf__slide[data-pos="1"] {
	z-index: 4;
	transform: translateX(64%) translateZ(-220px) rotateY(-40deg);
	filter: brightness(0.5);
	cursor: pointer;
}

.ftvs-cf__slide[data-pos="-1"] {
	z-index: 4;
	transform: translateX(-64%) translateZ(-220px) rotateY(40deg);
	filter: brightness(0.5);
	cursor: pointer;
}

.ftvs-cf__slide[data-pos="2"] {
	z-index: 3;
	transform: translateX(112%) translateZ(-460px) rotateY(-46deg);
	filter: brightness(0.3);
	cursor: pointer;
}

.ftvs-cf__slide[data-pos="-2"] {
	z-index: 3;
	transform: translateX(-112%) translateZ(-460px) rotateY(46deg);
	filter: brightness(0.3);
	cursor: pointer;
}

.ftvs-cf__slide[data-pos="far-right"] {
	z-index: 1;
	transform: translateX(150%) translateZ(-640px) rotateY(-50deg);
	opacity: 0;
	pointer-events: none;
}

.ftvs-cf__slide[data-pos="far-left"] {
	z-index: 1;
	transform: translateX(-150%) translateZ(-640px) rotateY(50deg);
	opacity: 0;
	pointer-events: none;
}

.ftvs-cf__slide:not([data-pos="0"]) .ftvs__play {
	display: none;
}

.ftvs-cf__stage .ftvs__arrow {
	top: calc(26px + var(--cf-w) * 9 / 32);
	margin-top: -24px;
}

.ftvs-cf__stage .ftvs__arrow--prev {
	left: 8px;
}

.ftvs-cf__stage .ftvs__arrow--next {
	right: 8px;
}

.ftvs-cf__caption {
	max-width: 760px;
	margin: 8px auto 0;
	text-align: center;
}

.ftvs-cf__caption .ftvs-kicker,
.ftvs-cf__caption .ftvs-show__actions {
	justify-content: center;
}

.ftvs-cf__caption .ftvs-feature__title {
	color: var(--ftvs-series-color, inherit);
	font-size: var(--ftvs-series-size, clamp(28px, 3.6vw, 44px));
}

.ftvs-cf__caption .ftvs-feature__desc {
	margin-left: auto;
	margin-right: auto;
	color: var(--ftvs-text-color, var(--ftvs-muted));
	-webkit-line-clamp: 2;
}

.ftvs-cf__caption .ftvs-show__actions {
	margin-top: 22px;
}

.ftvs-cf__count {
	color: var(--ftvs-meta-color, var(--ftvs-muted));
	font-family: var(--ftvs-font);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.18em;
	font-variant-numeric: tabular-nums;
}

.ftvs-cf__bar {
	display: block;
	width: 180px;
	height: 3px;
	margin: 22px auto 0;
	background: color-mix(in srgb, currentColor 22%, transparent);
}

/* Narrow column (phones, sidebars): one big card with the next ones peeking in. */
@container (max-width: 620px) {
	.ftvs-cf__stage {
		--cf-w: 72cqw;
		height: calc(var(--cf-w) * 9 / 16 + 36px);
	}
	.ftvs-cf__slide {
		top: 16px;
	}
	.ftvs-cf__slide[data-pos="1"] {
		transform: translateX(86%) translateZ(-150px) rotateY(-26deg);
	}
	.ftvs-cf__slide[data-pos="-1"] {
		transform: translateX(-86%) translateZ(-150px) rotateY(26deg);
	}
	.ftvs-cf__slide[data-pos="2"],
	.ftvs-cf__slide[data-pos="-2"] {
		opacity: 0;
		pointer-events: none;
	}
	.ftvs-cf__stage .ftvs__arrow {
		top: calc(16px + var(--cf-w) * 9 / 32);
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}
}

@supports not (width: 1cqw) {
	@media (max-width: 600px) {
		.ftvs-cf__stage {
			--cf-w: 72vw;
			height: calc(var(--cf-w) * 9 / 16 + 36px);
		}
		.ftvs-cf__slide {
			top: 16px;
		}
		.ftvs-cf__slide[data-pos="1"] {
			transform: translateX(86%) translateZ(-150px) rotateY(-26deg);
		}
		.ftvs-cf__slide[data-pos="-1"] {
			transform: translateX(-86%) translateZ(-150px) rotateY(26deg);
		}
		.ftvs-cf__slide[data-pos="2"],
		.ftvs-cf__slide[data-pos="-2"] {
			opacity: 0;
			pointer-events: none;
		}
	}
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.ftvs,
	.ftvs-dialog {
		--ftvs-accent-text: #e8849b;
		--ftvs-accent-dark: #a00a31;
	}
	.ftvs--light {
		--ftvs-accent-text: var(--ftvs-accent);
	}
	.ftvs-show {
		--ftvs-accent-text: #e8849b;
	}
	.ftvs-show::before {
		background:
			linear-gradient(112deg, transparent 54%, rgba(196, 13, 60, 0.3) 54%, rgba(196, 13, 60, 0.3) 66%, transparent 66%),
			linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.3) 100%),
			linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 38%);
	}
	.ftvs-list__label::after,
	.ftvs-list__rows li + li {
		border-color: rgba(128, 128, 128, 0.28);
	}
	.ftvs-btn--ghost,
	.ftvs-btn--ghost:visited {
		box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.55);
	}
	.ftvs-cf__bar {
		background: rgba(128, 128, 128, 0.28);
	}
}

/* Touch screens swipe the carousel; the peeking cards show there is more. */
@media (hover: none) {
	.ftvs-cf__stage .ftvs__arrow {
		display: none !important;
	}
}

/* ---------- Featured + list (the phone layout) ---------- */

.ftvs-list {
	max-width: 760px;
}

.ftvs-list__art .ftvs__play,
.ftvs__play--mid {
	width: 62px;
	height: 62px;
	margin: -31px 0 0 -31px;
	opacity: 0.95;
}

.ftvs-list__art .ftvs__play svg {
	margin-left: 4px;
}

.ftvs-list__art:hover .ftvs__thumb,
.ftvs-list__art:focus-visible .ftvs__thumb {
	transform: none;
}

.ftvs-list__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 8px;
}

.ftvs-list__meta .ftvs__meta {
	margin: 0;
}

.ftvs-list .ftvs-list__title {
	color: var(--ftvs-series-color, inherit);
	font-size: var(--ftvs-series-size, clamp(26px, 5.5vw, 38px));
}

.ftvs-list .ftvs-list__desc {
	margin: 10px 0 20px;
	color: var(--ftvs-text-color, var(--ftvs-muted));
	-webkit-line-clamp: 2;
}

.ftvs-list__watch {
	width: 100%;
}

.ftvs-list__label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 36px 0 4px;
	font-family: var(--ftvs-font);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.ftvs-list__label::after {
	content: "";
	flex: 1;
	border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.ftvs-list__rows {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.ftvs-list__rows li {
	margin: 0;
}

.ftvs-list__rows li + li {
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.ftvs-list:not(.is-open) .is-extra {
	display: none;
}

.ftvs-list__row {
	display: grid !important;
	grid-template-columns: 128px minmax(0, 1fr) 16px;
	gap: 14px;
	align-items: center;
	padding: 12px 0;
}

.ftvs-list__row .ftvs__thumb {
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.ftvs-list__row:hover .ftvs__thumb,
.ftvs-list__row:focus-visible .ftvs__thumb {
	transform: none;
	box-shadow: 0 0 0 2px currentColor, 0 6px 14px rgba(0, 0, 0, 0.35);
}

.ftvs-list__row .ftvs__name {
	margin-top: 0;
	font-size: var(--ftvs-card-size, 15px);
}

.ftvs-list__row .ftvs__meta {
	font-size: var(--ftvs-meta-size, 10px);
}

.ftvs-list__row svg {
	opacity: 0.4;
}

.ftvs-btn--ghost,
.ftvs-btn--ghost:visited {
	width: 100%;
	background: transparent;
	color: inherit !important;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent);
}

.ftvs-btn--ghost:hover,
.ftvs-btn--ghost:focus-visible {
	box-shadow: inset 0 0 0 1px currentColor;
}

/* ---------- Phone vs desktop versions ---------- */

@media (max-width: 767px) {
	.ftvs-only-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.ftvs-only-mobile {
		display: none !important;
	}
}

.ftvs-switch > .ftvs__head {
	margin-bottom: 24px;
}

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
	.ftvs-show__stage {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.ftvs-show__art {
		order: -1;
		transform: none;
	}
	.ftvs-show::before {
		background:
			linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.35) 100%);
	}
}

@media (max-width: 600px) {
	.ftvs {
		--ftvs-card-w: 72vw;
		--ftvs-gap: 14px;
	}
	.ftvs--grid .ftvs__track {
		grid-template-columns: 1fr;
	}
	.ftvs-show__strip {
		--ftvs-card-w: 42vw;
	}
	.ftvs-btn {
		padding: 17px 20px;
	}
	.ftvs-show__actions .ftvs-btn {
		flex: 1 1 100%;
	}
	.ftvs-show {
		padding: 18px 14px 14px;
	}
	.ftvs__play--big {
		width: 60px;
		height: 60px;
		margin: -30px 0 0 -30px;
	}
	.ftvs__play--big svg {
		width: 26px;
		height: 26px;
		margin-left: 4px;
	}
}

/* ---------- Player dialog ---------- */

html.ftvs-lock {
	overflow: hidden;
}

.ftvs-dialog {
	width: min(1080px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	overflow: auto;
	overscroll-behavior: contain;
	background: #121212;
	color: #f1f1f1;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
	font-size: 16px;
	line-height: 1.5;
}

.ftvs-dialog[open] {
	animation: ftvs-pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ftvs-dialog::backdrop {
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(3px);
}

.ftvs-dialog button {
	font: inherit;
}

.ftvs-dialog__bar {
	position: sticky;
	top: 0;
	z-index: 5;
	height: 0;
}

.ftvs-dialog__btn {
	position: absolute;
	top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	cursor: pointer;
	font-family: var(--ftvs-font);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.ftvs-dialog__btn:hover,
.ftvs-dialog__btn:focus-visible {
	background: var(--ftvs-accent);
	outline: none;
}

.ftvs-dialog__close {
	right: 14px;
	width: 42px;
	padding: 0;
	justify-content: center;
}

.ftvs-dialog__back {
	left: 14px;
}

.ftvs-dialog__player {
	position: relative;
	z-index: 1;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ftvs-dialog__player video {
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
}

.ftvs-dialog__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #000 center / cover no-repeat;
	cursor: pointer;
}

.ftvs-dialog__poster::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

.ftvs-dialog__poster span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 88px;
	height: 88px;
	margin: -44px 0 0 -44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ftvs-accent);
	color: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
	transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.ftvs-dialog__poster span svg {
	margin-left: 5px;
}

.ftvs-dialog__poster:hover span,
.ftvs-dialog__poster:focus-visible span {
	transform: scale(1.1);
}

.ftvs-dialog__poster:focus-visible {
	outline: 3px solid var(--ftvs-accent-text);
	outline-offset: -3px;
}

.ftvs-dialog__error {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 12px 18px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-size: 14px;
}

.ftvs-dialog__body {
	position: relative;
	overflow: hidden;
	border-top: 4px solid var(--ftvs-accent);
}

/* Soft glow of the series artwork behind the text. */
.ftvs-dialog__ambient {
	position: absolute;
	top: -30%;
	left: -10%;
	width: 120%;
	max-width: none;
	height: 520px;
	object-fit: cover;
	filter: blur(70px) saturate(1.5);
	opacity: 0.32;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
	mask-image: linear-gradient(180deg, #000 30%, transparent);
}

.ftvs-dialog__inner {
	position: relative;
	padding: 28px 32px 34px;
}

.ftvs-dialog__title {
	margin: 0;
	color: #fff;
	font-family: var(--ftvs-font);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.ftvs-dialog__now {
	margin: 10px 0 0;
	color: var(--ftvs-accent-text);
	font-family: var(--ftvs-font);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ftvs-dialog__desc {
	max-width: 780px;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.8);
	white-space: pre-line;
}

.ftvs-dialog__status {
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.7);
}

.ftvs-dialog__label {
	margin: 30px 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	font-family: var(--ftvs-font);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ftvs-dialog__eps,
.ftvs-dialog__cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ftvs-dialog__eps li + li {
	margin-top: 4px;
}

.ftvs-dialog__ep {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 18px;
	align-items: center;
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ftvs-dialog__ep:hover,
.ftvs-dialog__ep:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	outline: none;
}

.ftvs-dialog__ep:focus-visible {
	box-shadow: inset 0 0 0 2px var(--ftvs-accent-text);
}

.ftvs-dialog__ep[aria-current="true"] {
	background: rgba(255, 255, 255, 0.09);
	box-shadow: inset 4px 0 0 var(--ftvs-accent);
}

.ftvs-dialog__ep-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.ftvs-dialog__ep-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ftvs-dialog__ep:hover .ftvs-dialog__ep-thumb img {
	transform: scale(1.05);
}

.ftvs-dialog__ep-len {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 2px 6px;
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-family: var(--ftvs-font);
	font-size: 12px;
	font-weight: 700;
}

/* "Now playing" bars on the current episode; they move while the video plays. */
.ftvs-eq {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: rgba(0, 0, 0, 0.5);
}

.ftvs-dialog__ep[aria-current="true"] .ftvs-eq {
	display: flex;
}

.ftvs-eq i {
	display: block;
	width: 5px;
	height: 24px;
	background: #fff;
	transform-origin: bottom;
	transform: scaleY(0.4);
	animation: ftvs-eq 0.9s ease-in-out infinite alternate;
	animation-play-state: paused;
}

.ftvs-eq i:nth-child(2) {
	animation-delay: -0.3s;
	transform: scaleY(0.9);
}

.ftvs-eq i:nth-child(3) {
	animation-delay: -0.6s;
	transform: scaleY(0.6);
}

.ftvs-dialog.is-playing .ftvs-eq i {
	animation-play-state: running;
}

.ftvs-dialog__ep-num {
	display: block;
	margin-bottom: 4px;
	color: var(--ftvs-accent-text);
	font-family: var(--ftvs-font);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.ftvs-dialog__ep-title {
	display: block;
	color: #fff;
	font-family: var(--ftvs-font);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.ftvs-dialog__ep-meta {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

.ftvs-dialog__ep-desc {
	display: -webkit-box;
	margin-top: 6px;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ftvs-dialog__cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 20px;
	margin-top: 26px;
}

.ftvs-dialog__cat {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.ftvs-dialog__cat-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.ftvs-dialog__cat:hover .ftvs-dialog__cat-thumb,
.ftvs-dialog__cat:focus-visible .ftvs-dialog__cat-thumb {
	transform: translateY(-3px);
	box-shadow: 0 0 0 3px #fff, 0 12px 26px rgba(0, 0, 0, 0.5);
}

.ftvs-dialog__cat:focus-visible {
	outline: none;
}

.ftvs-dialog__cat-name {
	display: block;
	margin-top: 10px;
	font-family: var(--ftvs-font);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.ftvs-dialog__tv {
	margin-top: 30px;
}

.ftvs-dialog__grab {
	display: none;
}

.ftvs-dialog__powered {
	margin: 26px 0 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
}

.ftvs-dialog__powered b {
	color: #fff;
	font-family: Poppins, var(--ftvs-font);
	font-weight: 800;
	letter-spacing: 0.02em;
}

@media (max-width: 600px) {
	.ftvs-dialog {
		width: 100vw;
		max-width: 100vw;
		height: auto;
		max-height: 92dvh;
		margin: auto 0 0;
		border-top: 4px solid var(--ftvs-accent);
		transition: transform 0.25s ease;
	}
	.ftvs-dialog[open] {
		animation: ftvs-sheet 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	.ftvs-dialog.is-dragging {
		transition: none;
	}
	.ftvs-dialog__grab {
		display: block;
		position: relative;
		height: 28px;
		background: #121212;
		touch-action: none;
		cursor: grab;
	}
	.ftvs-dialog__grab::before {
		content: "";
		position: absolute;
		left: 50%;
		top: 11px;
		width: 44px;
		height: 4px;
		margin-left: -22px;
		border-radius: 2px;
		background: rgba(255, 255, 255, 0.3);
	}
	.ftvs-dialog__body {
		border-top: 0;
	}
	.ftvs-dialog__inner {
		padding: 20px 16px 26px;
	}
	.ftvs-dialog__ep {
		grid-template-columns: 128px 1fr;
		gap: 12px;
		padding: 8px 6px;
	}
	.ftvs-dialog__ep-title {
		font-size: 15px;
	}
	.ftvs-dialog__ep-desc {
		display: none;
	}
}

/* ---------- Motion ---------- */

@keyframes ftvs-fill {
	to {
		transform: scaleX(1);
	}
}

@keyframes ftvs-blink {
	50% {
		opacity: 0.25;
	}
}

@keyframes ftvs-eq {
	0% {
		transform: scaleY(0.25);
	}
	100% {
		transform: scaleY(1);
	}
}

@keyframes ftvs-sheet {
	from {
		transform: translateY(100%);
	}
}

@keyframes ftvs-pop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ftvs *,
	.ftvs *::before,
	.ftvs *::after,
	.ftvs-dialog,
	.ftvs-dialog *,
	.ftvs-dialog *::before,
	.ftvs-dialog *::after {
		animation: none !important;
		transition: none !important;
	}
	.ftvs-show__art {
		transform: none;
	}
}
