/* FreeSide+ Player. One dark look: a player-first single column, violet for
   "what's active", magenta only on the episode that's playing. */
:root {
	--fx-bg: #0a0a0f;
	--fx-raised: #111119;
	--fx-card: #16161f;
	--fx-card-2: #1c1c27;
	--fx-line: #262630;
	--fx-line-2: #36364a;
	--fx-violet: #8b5cf6;
	--fx-indigo: #6366f1;
	--fx-magenta: #d926d9;
	--fx-blue: #3b82f6;
	--fx-green: #22c55e;
	--fx-text: #f4f4f7;
	--fx-soft: #c9c9d4;
	--fx-muted: #8b8b98;
	--fx-faint: #6b6b7a;
	--fx-pill: 999px;
	--fx-r: 12px;
	--fx-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fx-display: "Space Grotesk", "Inter", system-ui, sans-serif;
	--fx-max: 1080px;
	--fx-watch-max: 1440px;
	--fx-top-bg: rgba(10, 10, 15, .9);
	--fx-hero-scrim: linear-gradient(90deg, rgba(10, 10, 15, .96) 0%, rgba(10, 10, 15, .78) 55%, rgba(10, 10, 15, .35) 100%);
	--fx-tile-scrim: linear-gradient(0deg, rgba(10, 10, 15, .92), rgba(10, 10, 15, .2));
	color-scheme: dark;
}

html[data-theme="light"] {
	--fx-bg: #f4f1f8;
	--fx-raised: #ffffff;
	--fx-card: #ffffff;
	--fx-card-2: #efeaf7;
	--fx-line: #e5deef;
	--fx-line-2: #d3c9e4;
	--fx-text: #16141c;
	--fx-soft: #3b3546;
	--fx-muted: #6a6374;
	--fx-faint: #8a8294;
	--fx-top-bg: rgba(244, 241, 248, .92);
	--fx-hero-scrim: linear-gradient(90deg, rgba(244, 241, 248, .96) 0%, rgba(244, 241, 248, .82) 55%, rgba(244, 241, 248, .4) 100%);
	--fx-tile-scrim: linear-gradient(0deg, rgba(22, 20, 28, .78), rgba(22, 20, 28, .15));
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Components set display:grid/flex, which would otherwise beat [hidden]. */
body.fx [hidden] { display: none !important; }
html { background: var(--fx-bg); scroll-padding-top: 76px; }
body.fx {
	margin: 0;
	background: var(--fx-bg);
	color: var(--fx-text);
	font: 15px/1.55 var(--fx-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.fx a { color: inherit; text-decoration: none; }
body.fx img { max-width: 100%; display: block; }
body.fx button { font: inherit; color: inherit; }
body.fx :focus-visible { outline: 2px solid var(--fx-violet); outline-offset: 2px; border-radius: 6px; }

.ms {
	font-family: "Material Symbols Outlined";
	font-weight: normal;
	font-style: normal;
	font-size: 18px;
	line-height: 1;
	display: inline-block;
	width: 1em;
	overflow: hidden;
	vertical-align: -4px;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	-webkit-font-feature-settings: "liga";
	font-feature-settings: "liga";
	user-select: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.fx-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--fx-violet); color: #fff !important;
	padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.fx-skip:focus { top: 12px; }

.fx-wrap {
	max-width: var(--fx-max);
	margin-inline: auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.fx-main { min-height: 60vh; padding-block: 0 40px; }
.fx-muted { color: var(--fx-muted); margin: 4px 0 0; }

/* ---------- top bar ---------- */
.fx-top {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 30;
	background: rgba(10, 10, 15, .86);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--fx-line);
}
.fx-top .fx-wrap { max-width: 1280px; }
.fx-nav { display: flex; align-items: center; gap: 24px; height: 62px; }
.fx-brand {
	font: 700 21px/1 var(--fx-display);
	letter-spacing: -.02em;
	white-space: nowrap;
	flex: none;
}
.fx-brand span { color: var(--fx-violet); }
.fx-brand--sm { font-size: 18px; }
.fx-links {
	display: flex; gap: 20px;
	flex: 1; min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.fx-links::-webkit-scrollbar { display: none; }
.fx-links a {
	font-size: 14px; font-weight: 500;
	color: var(--fx-muted);
	white-space: nowrap;
	padding-block: 6px;
	border-bottom: 2px solid transparent;
	transition: color .15s;
}
.fx-links a:hover { color: var(--fx-text); }
.fx-links a[aria-current] { color: var(--fx-text); border-bottom-color: var(--fx-violet); }
.fx-search {
	display: flex; align-items: center; gap: 8px;
	background: var(--fx-card);
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-pill);
	padding: 0 8px 0 13px;
	height: 38px;
	width: 230px;
	color: var(--fx-faint);
	flex: none;
}
.fx-search:focus-within { border-color: var(--fx-violet); }
.fx-search input {
	flex: 1; min-width: 0;
	background: none; border: 0; outline: 0;
	color: var(--fx-text);
	font: 13.5px var(--fx-sans);
}
.fx-search input::placeholder { color: var(--fx-faint); }
.fx-search kbd {
	background: var(--fx-card-2);
	border: 1px solid var(--fx-line-2);
	border-radius: 5px;
	padding: 1px 6px;
	font: 11px var(--fx-sans);
	color: var(--fx-muted);
}
.fx-iconbtn {
	width: 38px; height: 38px; flex: none;
	display: grid; place-items: center;
	border: 1px solid var(--fx-line);
	border-radius: 50%;
	background: var(--fx-card);
	color: var(--fx-text);
	cursor: pointer;
}
.fx-iconbtn:hover { border-color: var(--fx-violet); color: var(--fx-violet); }
.fx-genres-bar {
	border-top: 1px solid var(--fx-line);
	background: var(--fx-top-bg);
}
.fx-genres {
	display: flex; flex-wrap: wrap; gap: 8px;
	padding: 10px 0 12px;
}
.fx-filter {
	display: inline-flex; align-items: center; gap: 7px;
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-pill);
	background: var(--fx-card);
	color: var(--fx-muted);
	padding: 7px 13px;
	font: 600 13px var(--fx-sans);
	cursor: pointer;
	white-space: nowrap;
}
.fx-filter span {
	font-size: 11px; font-weight: 600;
	color: var(--fx-faint);
	font-variant-numeric: tabular-nums;
}
.fx-filter:hover, .fx-filter.is-on, .fx-filter[aria-pressed="true"] {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, var(--fx-violet), var(--fx-indigo));
}
.fx-filter:hover span, .fx-filter.is-on span, .fx-filter[aria-pressed="true"] span { color: rgba(255,255,255,.85); }
.fx-wrap--wide { max-width: var(--fx-watch-max); }
.fx-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin: 16px 0 14px;
	font-size: 13px; color: var(--fx-muted);
}
.fx-crumbs a { color: var(--fx-muted); }
.fx-crumbs a:hover { color: var(--fx-text); }

/* ---------- shared controls ---------- */
.fx-panel {
	background: var(--fx-raised);
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-r);
}
.fx-block { padding: 16px 18px; }
.fx-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.fx-h {
	display: flex; align-items: center; gap: 8px;
	margin: 0;
	font: 600 14.5px/1.3 var(--fx-sans);
	color: var(--fx-text);
}
.fx-h .ms { color: var(--fx-blue); }
.fx-h--info { color: var(--fx-blue); font-size: 13.5px; margin-bottom: 9px; }
.fx-h--lg { font: 600 19px/1.2 var(--fx-display); letter-spacing: -.01em; }
.fx-h--lg .ms { color: var(--fx-violet); font-size: 22px; }
.fx-h--rail { font: 600 20px/1.2 var(--fx-display); letter-spacing: -.01em; }
.fx-h--rail .ms { color: var(--fx-violet); font-size: 22px; }
.fx-count { font-size: 12px; color: var(--fx-faint); font-weight: 500; white-space: nowrap; }

.fx-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--fx-card);
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-pill);
	padding: 6px 13px;
	font-size: 12.5px; font-weight: 500;
	color: var(--fx-muted);
	white-space: nowrap;
}
.fx-chip .ms { font-size: 15px; vertical-align: -3px; }
a.fx-chip:hover { color: var(--fx-text); border-color: var(--fx-line-2); }

.fx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	background: var(--fx-card);
	border: 1px solid var(--fx-line);
	border-radius: 9px;
	padding: 8px 13px;
	font-size: 13px; font-weight: 500;
	color: var(--fx-soft);
	cursor: pointer;
	white-space: nowrap;
	transition: color .15s, border-color .15s, background .15s;
}
.fx-btn:hover { color: var(--fx-text); border-color: var(--fx-line-2); }
.fx-btn[aria-pressed="true"] { color: #fff; border-color: var(--fx-violet); background: rgba(139, 92, 246, .16); }
.fx-btn--accent { background: linear-gradient(135deg, var(--fx-violet), var(--fx-indigo)); border-color: transparent; color: #fff; }
.fx-btn--accent:hover { color: #fff; border-color: transparent; filter: brightness(1.08); }

.fx-cta {
	display: inline-flex; align-items: center; gap: 8px;
	border: 0; border-radius: var(--fx-pill);
	padding: 12px 22px;
	font: 600 14px var(--fx-sans);
	background: linear-gradient(135deg, var(--fx-violet), var(--fx-magenta));
	color: #fff !important;
	cursor: pointer;
}
.fx-cta:hover { filter: brightness(1.08); }
.fx-cta--ghost { background: var(--fx-card); border: 1px solid var(--fx-line-2); color: var(--fx-text) !important; }

/* ---------- watch page ---------- */
.fx-watch { padding-top: 4px; padding-bottom: 32px; }
.fx-watch-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 22px;
	align-items: start;
}
.fx-watch-main { display: grid; gap: 14px; min-width: 0; }
.fx-watch-side {
	position: sticky;
	top: 148px;
	display: grid;
	gap: 12px;
	min-width: 0;
}
.fx-watch-head { display: grid; gap: 10px; }
.fx-watch-show { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fx-violet); }
.fx-watch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fx-titlebar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fx-title {
	margin: 0;
	font: 700 clamp(22px, 3vw, 32px)/1.2 var(--fx-display);
	letter-spacing: -.02em;
	text-wrap: balance;
}
.fx-title-num { color: var(--fx-violet); margin-right: 6px; }
.fx-share {
	display: inline-flex; align-items: center; gap: 7px;
	border: 0; border-radius: var(--fx-pill);
	padding: 9px 18px;
	font-size: 13.5px; font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--fx-violet), var(--fx-magenta));
	cursor: pointer;
}

.fx-stage { position: relative; }
.fx-player {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	background: #000;
	border: 1px solid var(--fx-line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.fx-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fx-player-empty {
	position: absolute; inset: 0;
	display: grid; place-content: center; justify-items: center; gap: 8px;
	color: var(--fx-muted);
}
.fx-player-empty .ms { font-size: 40px; }
.fx-player-empty p { margin: 0; }

.fx-watch.is-theater .fx-stage {
	width: min(calc(100vw - 32px), 1560px);
	left: 50%;
	transform: translateX(-50%);
}
body.fx-lights-off::before {
	content: "";
	position: fixed; inset: 0;
	background: rgba(0, 0, 0, .9);
	z-index: 40;
}
body.fx-lights-off .fx-stage { z-index: 41; }
body.fx-lights-off .fx-controlbar { position: relative; z-index: 41; }

.fx-upnext {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 10px 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--fx-line);
	border-radius: 14px;
	background: var(--fx-raised);
}
.fx-upnext img { width: 64px; height: 96px; object-fit: cover; border-radius: 8px; grid-row: span 2; }
.fx-upnext-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-violet); }
.fx-upnext-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.fx-upnext:hover { border-color: var(--fx-violet); }

.fx-controlbar {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 12px 16px;
}
.fx-np { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
.fx-np-line { font-size: 13px; color: var(--fx-muted); }
.fx-np-line b { color: var(--fx-text); font-weight: 600; }
.fx-np-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--fx-green); }
.fx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fx-green); box-shadow: 0 0 8px var(--fx-green); flex: none; }
.fx-step, .fx-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.fx-grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }

.fx-servers { display: flex; gap: 9px; flex-wrap: wrap; }
.fx-srv {
	display: inline-flex; align-items: center; gap: 9px;
	background: var(--fx-card);
	border: 1px solid var(--fx-line);
	border-radius: var(--fx-pill);
	padding: 7px 15px 7px 7px;
	font-size: 13.5px; font-weight: 600;
	color: var(--fx-soft);
	cursor: pointer;
	transition: color .15s, border-color .15s;
}
.fx-srv:hover { color: var(--fx-text); border-color: var(--fx-line-2); }
.fx-srv-n {
	width: 22px; height: 22px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--fx-card-2);
	font-size: 11.5px;
	color: var(--fx-muted);
}
.fx-srv[aria-pressed="true"] {
	background: linear-gradient(135deg, var(--fx-blue), var(--fx-violet));
	border-color: transparent;
	color: #fff;
}
.fx-srv[aria-pressed="true"] .fx-srv-n { background: rgba(255, 255, 255, .22); color: #fff; }
.fx-hint { display: flex; align-items: center; gap: 6px; margin: 13px 0 0; font-size: 12px; color: var(--fx-faint); }
.fx-hint .ms { font-size: 15px; }

.fx-dls { display: grid; gap: 8px; }
.fx-dl {
	display: flex; align-items: center; gap: 12px;
	background: var(--fx-card);
	border: 1px solid var(--fx-line);
	border-radius: 10px;
	padding: 9px 12px;
	transition: border-color .15s;
}
.fx-dl:hover { border-color: var(--fx-blue); }
.fx-dl-ic {
	width: 32px; height: 32px; flex: none;
	display: grid; place-items: center;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--fx-blue), var(--fx-indigo));
	font: 700 14px var(--fx-display);
	color: #fff;
}
.fx-dl-txt { display: flex; flex-direction: column; min-width: 0; }
.fx-dl-txt b { font-size: 13.5px; font-weight: 600; }
.fx-dl-txt small { font-size: 11.5px; color: var(--fx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dl-go { margin-left: auto; color: var(--fx-muted); }

.fx-facts {
	display: flex; flex-wrap: wrap; gap: 10px 28px;
	margin: 14px 0 0;
	padding: 13px 18px;
}
.fx-facts div { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.fx-facts dt { display: flex; align-items: center; gap: 6px; color: var(--fx-muted); }
.fx-facts dt .ms { color: var(--fx-blue); font-size: 16px; vertical-align: -3px; }
.fx-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.fx-overview { margin-top: 14px; }
.fx-overview p { margin: 0; color: var(--fx-soft); font-size: 14.5px; line-height: 1.7; max-width: 72ch; }

.fx-watch-side .fx-episodes { margin-top: 0; }
.fx-episodes { margin-top: 28px; }
.fx-episodes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fx-seasons { display: flex; gap: 7px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; padding-bottom: 2px; }
.fx-season {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--fx-card);
	border: 1px solid var(--fx-line);
	border-radius: 9px;
	padding: 7px 13px;
	font-size: 13px; font-weight: 600;
	color: var(--fx-muted);
	cursor: pointer;
	white-space: nowrap;
}
.fx-season:hover { color: var(--fx-text); }
.fx-season[aria-selected="true"] { background: var(--fx-card-2); border-color: var(--fx-line-2); color: var(--fx-text); }
.fx-season-n { font-size: 11px; color: var(--fx-faint); font-weight: 500; font-variant-numeric: tabular-nums; }

.fx-watch-side .fx-eplist { max-height: min(70vh, 720px); }
.fx-eplist {
	list-style: none; margin: 0; padding: 0 6px 0 0;
	display: grid; gap: 8px;
	max-height: 620px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--fx-magenta) transparent;
}
.fx-eplist::-webkit-scrollbar { width: 6px; }
.fx-eplist::-webkit-scrollbar-thumb { background: var(--fx-magenta); border-radius: 99px; }
.fx-ep {
	display: flex; align-items: center; gap: 14px;
	background: var(--fx-card);
	border: 1px solid var(--fx-line);
	border-radius: 11px;
	padding: 9px 14px 9px 10px;
	transition: border-color .15s, background .15s;
}
.fx-ep:hover { border-color: var(--fx-line-2); }
.fx-ep-num {
	width: 38px; flex: none;
	text-align: center;
	font: 700 16px var(--fx-display);
	color: var(--fx-violet);
	font-variant-numeric: tabular-nums;
}
.fx-ep-thumb {
	width: 40px; height: 60px; flex: none;
	border-radius: 6px;
	overflow: hidden;
	background: linear-gradient(160deg, #2a1d4d, #120d22);
}
.fx-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fx-ep-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fx-ep-eb { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-faint); }
.fx-ep-title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-ep-dur { font-size: 12px; color: var(--fx-faint); flex: none; font-variant-numeric: tabular-nums; }
.fx-ep-play {
	width: 30px; height: 30px; flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid var(--fx-line-2);
	color: var(--fx-muted);
}
.fx-ep[aria-current] {
	background: linear-gradient(100deg, rgba(139, 92, 246, .2), rgba(217, 38, 217, .08));
	border-color: var(--fx-magenta);
	box-shadow: 0 0 0 1px rgba(217, 38, 217, .35), 0 8px 30px -10px rgba(217, 38, 217, .35);
}
.fx-ep[aria-current] .fx-ep-num { color: var(--fx-magenta); }
.fx-ep[aria-current] .fx-ep-play { background: linear-gradient(135deg, var(--fx-violet), var(--fx-magenta)); border-color: transparent; color: #fff; }
.fx-ep.is-loading { opacity: .6; }

/* ---------- browse ---------- */
.fx-hero {
	position: relative;
	display: flex; align-items: center; gap: 36px;
	margin-top: 22px;
	padding: 36px 40px;
	border: 1px solid var(--fx-line);
	border-radius: 20px;
	overflow: hidden;
	isolation: isolate;
	background: var(--fx-bg);
}
.fx-hero-bg {
	position: absolute; inset: -40px;
	width: calc(100% + 80px); height: calc(100% + 80px);
	max-width: none;
	object-fit: cover;
	filter: blur(38px) saturate(1.3);
	opacity: .45;
	z-index: -2;
}
.fx-hero::after {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	background: var(--fx-hero-scrim);
}
.fx-hero-copy { flex: 1; min-width: 0; max-width: 600px; }
.fx-kicker {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: #b79cff;
}
.fx-hero-title {
	margin: 0 0 12px;
	font: 700 clamp(30px, 4.4vw, 48px)/1.04 var(--fx-display);
	letter-spacing: -.025em;
	text-wrap: balance;
}
.fx-hero-num { display: block; font-size: .5em; color: var(--fx-violet); letter-spacing: 0; margin-bottom: 6px; }
.fx-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; font-size: 13px; color: var(--fx-muted); }
.fx-hero-desc { margin: 0 0 22px; max-width: 54ch; color: var(--fx-soft); font-size: 15px; line-height: 1.65; }
.fx-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.fx-hero-poster {
	flex: none;
	width: 210px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 92, 246, .25);
	transform: rotate(2deg);
}
.fx-hero-poster img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }

.fx-hero { margin-bottom: 8px; }

.fx-rail { margin-top: 30px; }
.fx-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.fx-rail-head .fx-h a:hover { color: #c9b6ff; }
.fx-rail-count { font: 500 12.5px var(--fx-sans); color: var(--fx-faint); margin-left: 4px; }
.fx-rail-link {
	display: inline-flex; align-items: center; gap: 2px;
	background: none; border: 0; cursor: pointer;
	font-size: 13px; font-weight: 500;
	color: var(--fx-muted);
	white-space: nowrap;
}
.fx-rail-link:hover { color: var(--fx-text); }
.fx-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 164px;
	gap: 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	padding-bottom: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--fx-line-2) transparent;
}
.fx-row::-webkit-scrollbar { height: 6px; }
.fx-row::-webkit-scrollbar-thumb { background: var(--fx-line-2); border-radius: 99px; }

.fx-card { display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; min-width: 0; }
.fx-poster {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--fx-line);
	background: linear-gradient(160deg, #2a1d4d, #120d22);
	transition: transform .18s, border-color .18s, box-shadow .18s;
}
.fx-poster img { width: 100%; height: 100%; object-fit: cover; }
.fx-poster-empty {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	background: radial-gradient(80% 60% at 70% 20%, rgba(217, 38, 217, .28), transparent 70%), linear-gradient(160deg, #2a1d4d, #120d22);
}
.fx-poster-empty .fx-brand { font-size: 17px; opacity: .85; }
.fx-poster-play {
	position: absolute; left: 10px; bottom: 10px;
	width: 34px; height: 34px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--fx-violet), var(--fx-magenta));
	color: #fff;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .18s, transform .18s;
}
.fx-card:hover .fx-poster, .fx-card:focus-visible .fx-poster { transform: translateY(-3px); border-color: var(--fx-violet); box-shadow: 0 16px 34px -12px rgba(139, 92, 246, .45); }
.fx-card:hover .fx-poster-play, .fx-card:focus-visible .fx-poster-play { opacity: 1; transform: none; }
.fx-card-title {
	font-size: 13.5px; font-weight: 600; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.fx-card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--fx-faint); margin-top: -3px; }
.fx-pill {
	background: rgba(139, 92, 246, .16);
	color: #c9b6ff;
	border-radius: 5px;
	padding: 1px 6px;
	font-size: 11px; font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.fx-progress { height: 3px; border-radius: 99px; background: var(--fx-line); overflow: hidden; }

.fx-series { margin-top: 42px; }
.fx-series .fx-h { margin-bottom: 14px; }
.fx-series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fx-tile {
	position: relative;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 108px;
	padding: 14px;
	border: 1px solid var(--fx-line);
	border-radius: 12px;
	overflow: hidden;
	isolation: isolate;
	background: var(--fx-card);
}
.fx-tile img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 25%;
	opacity: .32;
	z-index: -1;
	transition: opacity .18s;
}
.fx-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fx-tile-scrim); }
.fx-tile:hover { border-color: var(--fx-violet); }
.fx-tile:hover img { opacity: .5; }
.fx-tile-name { font: 600 15.5px/1.2 var(--fx-display); }
.fx-tile-n { font-size: 12px; color: var(--fx-muted); margin-top: 3px; }

/* ---------- listings, articles, empty ---------- */
.fx-listing { padding-top: 26px; }
.fx-listing-head { margin-bottom: 20px; }
.fx-page-title { margin: 0; font: 700 28px/1.15 var(--fx-display); letter-spacing: -.02em; text-wrap: balance; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.fx-pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.fx-pager .page-numbers {
	min-width: 38px; height: 38px;
	display: inline-grid; place-items: center;
	padding: 0 10px;
	border: 1px solid var(--fx-line);
	border-radius: 9px;
	background: var(--fx-card);
	font-size: 13.5px; font-weight: 600;
	color: var(--fx-muted);
}
.fx-pager .page-numbers.current { background: linear-gradient(135deg, var(--fx-violet), var(--fx-indigo)); border-color: transparent; color: #fff; }
.fx-pager a.page-numbers:hover { color: var(--fx-text); border-color: var(--fx-line-2); }
.fx-empty { text-align: center; padding-block: 70px; display: grid; justify-items: center; gap: 10px; }
.fx-empty > .ms { font-size: 44px; color: var(--fx-violet); }
.fx-empty p { margin: 0 0 10px; color: var(--fx-muted); max-width: 46ch; }
.fx-article { padding-top: 30px; max-width: 760px; }
.fx-prose { color: var(--fx-soft); line-height: 1.75; margin-top: 18px; }
.fx-prose a { color: #c9b6ff; text-decoration: underline; }

/* ---------- footer ---------- */
.fx-foot { border-top: 1px solid var(--fx-line); margin-top: 20px; }
.fx-foot .fx-wrap { max-width: 1280px; }
.fx-foot-inner { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding-block: 28px; }
.fx-foot-links { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.fx-foot-links a { font-size: 13px; color: var(--fx-muted); }
.fx-foot-links a:hover { color: var(--fx-text); }
.fx-foot-note { margin: 0; font-size: 12.5px; color: var(--fx-faint); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
	.fx-watch-grid { grid-template-columns: 1fr; }
	.fx-watch-side { position: static; }
}
@media (max-width: 900px) {
	.fx-hero { padding: 28px 24px; }
	.fx-hero-poster { width: 150px; }
}
@media (max-width: 720px) {
	.fx-nav { gap: 14px; height: auto; padding-block: 10px; flex-wrap: wrap; }
	.fx-links { order: 3; flex-basis: 100%; gap: 18px; }
	.fx-search { width: auto; flex: 1; }
	.fx-search kbd { display: none; }
	.fx-tools .fx-btn span:not(.ms), .fx-tools [data-fx-theater] { display: none; }
	.fx-step { width: 100%; }
	.fx-step .fx-btn { flex: 1; }
	.fx-player { border-radius: 12px; }
	.fx-ep-dur { display: none; }
	.fx-eplist { max-height: 520px; }
	.fx-row { grid-auto-columns: 132px; gap: 11px; }
}
@media (max-width: 560px) {
	.fx-hero { flex-direction: column-reverse; align-items: flex-start; gap: 18px; padding: 22px 18px; }
	.fx-hero-poster { width: 112px; transform: none; }
	.fx-hero-desc { font-size: 14px; }
	.fx-title { flex-basis: 100%; margin-left: 0; font-size: 19px; }
	.fx-ep { gap: 10px; padding: 8px 10px 8px 6px; }
	.fx-ep-num { width: 30px; font-size: 14px; }
	.fx-ep-thumb { width: 34px; height: 51px; }
	.fx-facts { gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Skip layout/paint for off-screen rails and the series grid until scrolled near,
   so the homepage paints without laying out the whole page first. Sized to match
   each section's real height to avoid scroll jank. */
.fx-defer { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.fx-defer--series { contain-intrinsic-size: auto 2300px; }
