/* Episode player UI — scoped under body.epx-enabled */



body.epx-enabled {

	--epx-bg: #121212;

	--epx-surface: #212121;

	--epx-panel: #242424;

	--epx-notice: #2d2d2d;

	--epx-btn: #333333;

	--epx-btn-hover: #3d3d3d;

	--epx-accent: #58c038;

	--epx-text: #ffffff;

	--epx-muted: #aaaaaa;

	--epx-disabled: #666666;

	--epx-radius: 6px;

}



/* ── Root ─────────────────────────────────────────────────── */



.epx {

	background: var(--epx-bg);

	color: var(--epx-text);

	padding: 14px 16px 16px;

	font-family: inherit;

}



.megavid .epx {

	width: 100%;

	box-sizing: border-box;

}



body.epx-enabled #mobilepisode,

body.epx-enabled.single-post #sidebar #mainepisode {

	display: none !important;

}



/* ── Toolbar ──────────────────────────────────────────────── */



.epx-toolbar {

	display: flex;

	justify-content: flex-end;

	padding-bottom: 12px;

}



.epx-toolbar .iconx {

	float: none;

	margin: 0;

	display: flex;

	flex-wrap: wrap;

	align-items: center;

	justify-content: flex-end;

	gap: 14px;

}



.epx-toolbar .iconx .icol,

.epx-toolbar .iconx a .icol {

	display: inline-flex;

	align-items: center;

	gap: 6px;

	margin: 0;

	padding: 0;

	font-size: 13px;

	font-weight: 500;

	color: var(--epx-muted);

	background: transparent;

	cursor: pointer;

	line-height: 1.3;

}



.epx-toolbar .iconx .icol span {

	display: inline !important;

}



.epx-toolbar .iconx .icol i,

.epx-toolbar .iconx a .icol i {

	font-size: 14px;

	color: var(--epx-muted);

}



.epx-toolbar .iconx .icol.expand i { color: #00a58d; }

.epx-toolbar .iconx .icol.light i { color: #ecbc2a; }



.epx-toolbar .iconx a.epx-report {

	margin: 0;

	border: 0;

	color: inherit;

	text-decoration: none;

}



.epx-toolbar .iconx a:not(.epx-report) {

	margin: 0;

	border: 1px solid #ee1111;

	border-radius: 4px;

	color: #ee1111;

	text-decoration: none;

}



.epx-toolbar .iconx a:not(.epx-report):hover {

	background: #ee1111;

	color: #fff;

}



.epx-toolbar .iconx a:not(.epx-report):hover .icol,

.epx-toolbar .iconx a:not(.epx-report):hover .icol i {

	color: #fff;

}



.epx-toolbar .iconx a:not(.epx-report) .icol {

	padding: 6px 14px;

}



.epx-toolbar .iconx a:not(.epx-report) .icol.download i {

	color: #ee1111;

}



@media (max-width: 1225px) {

	.epx-toolbar .iconx .icol span,

	.epx-toolbar .iconx .icol.expand {

		display: inline-flex !important;

	}

}



/* ── Server + notice bar ──────────────────────────────────── */



.epx-meta {

	display: flex;

	align-items: stretch;

	justify-content: space-between;

	gap: 16px;

	margin-bottom: 14px;

	padding: 12px;

	background: var(--epx-surface);

	border-radius: var(--epx-radius);

}



.epx-notice {

	flex: 1 1 auto;

	min-width: 0;

	margin: 0;

	padding: 14px 16px;

	background: var(--epx-notice);

	border-radius: var(--epx-radius);

	font-size: 14px;

	line-height: 1.55;

	color: var(--epx-muted);

}



.epx-notice strong {

	color: var(--epx-text);

	font-weight: 700;

}



.epx-servers {

	flex: 0 0 auto;

	display: flex;

	align-items: center;

	gap: 10px;

	align-self: center;

	white-space: nowrap;

}



.epx-servers__label {

	display: inline-flex;

	align-items: center;

	gap: 6px;

	font-size: 14px;

	font-weight: 700;

	color: var(--epx-text);

	text-transform: uppercase;

}



.epx-servers__cc {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	min-width: 28px;

	height: 22px;

	padding: 0 6px;

	border-radius: 4px;

	background: var(--epx-accent);

	color: #fff;

	font-size: 11px;

	font-weight: 800;

	line-height: 1;

	text-transform: uppercase;

}



.epx-servers__sub {

	color: var(--epx-text);

	font-weight: 700;

}



.epx-servers__picker {

	display: flex;

	align-items: center;

}



.epx-servers__list {

	display: flex;

	flex-wrap: wrap;

	gap: 8px;

	align-items: center;

}



.epx-servers__btn {

	appearance: none;

	border: 0;

	display: inline-flex;

	align-items: center;

	justify-content: center;

	min-width: 72px;

	padding: 10px 20px;

	border-radius: var(--epx-radius);

	background: var(--epx-accent);

	color: #fff;

	font-size: 13px;

	font-weight: 700;

	line-height: 1;

	cursor: pointer;

	transition: filter 0.15s ease;

}



.epx-servers__btn:hover,

.epx-servers__btn.is-active {

	filter: brightness(1.06);

	color: #fff;

}



.epx-servers__btn.is-active {

	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);

}



select.mirror.epx-mirror-native,

.epx-servers__picker select.mirror {

	position: absolute !important;

	width: 1px !important;

	height: 1px !important;

	padding: 0 !important;

	margin: -1px !important;

	overflow: hidden !important;

	clip: rect(0, 0, 0, 0) !important;

	border: 0 !important;

	opacity: 0 !important;

	pointer-events: none !important;

}



/* ── Episode panel ────────────────────────────────────────── */



.epx-picker {

	background: var(--epx-panel);

	border-radius: var(--epx-radius);

	padding: 16px 16px 18px;

}



.epx-episodes {

	background: transparent;

}



/* Range tabs */



.epx-ranges {

	display: flex;

	flex-wrap: wrap;

	align-items: flex-end;

	gap: 0;

	border-bottom: 1px solid #333;

	margin-bottom: 16px;

	padding-bottom: 0;

}



.epx-range {

	appearance: none;

	border: 0;

	background: transparent;

	padding: 0 0 10px;

	margin: 0 24px 0 0;

	color: var(--epx-muted);

	font-size: 14px;

	font-weight: 700;

	line-height: 1.2;

	cursor: pointer;

	position: relative;

}



.epx-ranges--single .epx-range {

	margin-right: 0;

	cursor: default;

	color: var(--epx-text);

}



.epx-range.is-active {

	color: var(--epx-text);

}



.epx-range.is-active::after,

.epx-ranges--single .epx-range.is-active::after {

	content: "";

	position: absolute;

	left: 0;

	right: 0;

	bottom: -1px;

	height: 3px;

	background: var(--epx-accent);

	border-radius: 2px 2px 0 0;

}



/* Episode number buttons */



.epx-episodes__list {

	display: flex;

	flex-wrap: wrap;

	gap: 8px;

}



.epx-episodes__link {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 48px;

	height: 48px;

	min-width: 48px;

	flex: 0 0 48px;

	padding: 0;

	margin: 0;

	border: 0;

	border-radius: var(--epx-radius);

	background: var(--epx-btn);

	color: #fff;

	font-size: 14px;

	font-weight: 700;

	line-height: 1;

	text-decoration: none;

	box-sizing: border-box;

	cursor: pointer;

	transition: background 0.15s ease;

}



a.epx-episodes__link:hover {

	background: var(--epx-btn-hover);

	color: #fff;

}



.epx-episodes__link.is-current {

	background: var(--epx-accent);

	color: #fff;

	cursor: default;

}



/* Bottom navigation */



.epx-footer {

	display: grid;

	grid-template-columns: 1fr 1.6fr 1fr;

	gap: 10px;

	margin-top: 16px;

}



.epx-footer__prev,

.epx-footer__all,

.epx-footer__next {

	min-width: 0;

}



.epx-footer__link {

	display: flex;

	align-items: center;

	justify-content: center;

	gap: 8px;

	width: 100%;

	min-height: 46px;

	padding: 10px 14px;

	border: 0;

	border-radius: var(--epx-radius);

	background: var(--epx-btn);

	color: #fff;

	font-size: 14px;

	font-weight: 600;

	line-height: 1.2;

	text-decoration: none;

	box-sizing: border-box;

	cursor: pointer;

	transition: background 0.15s ease;

}



.epx-footer__link--all {

	background: var(--epx-accent);

	font-weight: 700;

}



a.epx-footer__link:not(.epx-footer__link--all):hover {

	background: var(--epx-btn-hover);

	color: #fff;

}



a.epx-footer__link--all:hover {

	filter: brightness(1.06);

	color: #fff;

}



.epx-footer__link.is-disabled {

	opacity: 0.4;

	cursor: not-allowed;

	pointer-events: none;

	color: #999;

}



.epx-footer__grid {

	display: inline-block;

	width: 12px;

	height: 12px;

	position: relative;

	flex-shrink: 0;

}



.epx-footer__grid::before {

	content: "";

	position: absolute;

	top: 0;

	left: 0;

	width: 5px;

	height: 5px;

	background: currentColor;

	box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor, 7px 7px 0 currentColor;

}



/* ── Series page ──────────────────────────────────────────── */



.bixbox.bxcl.epcheck.epx-series-block {

	background: transparent;

	border: 0;

	box-shadow: none;

	padding: 0;

}



.bixbox.bxcl.epcheck.epx-series-block .epx {

	background: transparent;

	padding: 0;

}



.bixbox.bxcl.epcheck.epx-series-block .epx-picker {

	background: var(--epx-panel);

}



.bixbox.bxcl.epcheck.epx-series-block .releases {

	margin-bottom: 14px;

	border-bottom: 1px solid #333;

	padding: 0 0 12px;

}



.bixbox.bxcl.epcheck.epx-series-block .releases h2 {

	font-size: 16px;

	font-weight: 600;

	color: var(--epx-text);

}



.bixbox.bxcl.epcheck.epx-series-block .lastend {

	display: none;

}



.epx-highlights {

	display: grid;

	grid-template-columns: 1fr 1fr;

	gap: 12px;

	text-align: center;

	margin: 0 0 16px;

}



.epx-highlight a {

	display: block;

	color: inherit;

	text-decoration: none;

	background: transparent !important;

	padding: 0 !important;

	margin: 0 !important;

	box-shadow: none !important;

}



.epx-highlight__label {

	display: block;

	font-size: 14px;

	color: var(--epx-muted);

}



.epx-highlight__num {

	display: block;

	font-size: 20px;

	font-weight: 700;

	color: var(--epx-text);

	margin-top: 4px;

}



.epx-highlight a:hover .epx-highlight__num {

	color: var(--epx-accent);

}



.bixbox.infx.epx-seo {

	background: var(--epx-panel);

	border: 0;

	box-shadow: none;

	border-radius: var(--epx-radius);

	color: var(--epx-muted);

	padding: 14px 16px;

	margin-top: 12px;

}



.bixbox.infx.epx-seo p {

	margin: 0;

	line-height: 1.6;

	font-size: 14px;

}



.darkmode .bixbox.bxcl.epcheck.epx-series-block {

	background: transparent;

	box-shadow: none;

}



.darkmode .bixbox.infx.epx-seo {

	background: var(--epx-panel);

	box-shadow: none;

}



/* ── Theme overrides ──────────────────────────────────────── */



body.epx-enabled.darkmode .epx a.epx-episodes__link,

body.epx-enabled.darkmode .epx a.epx-footer__link {

	color: #fff;

}



body.epx-enabled.darkmode .epx a.epx-episodes__link:hover {

	color: #fff;

}



/* ── Responsive ───────────────────────────────────────────── */



@media (max-width: 900px) {

	.epx-meta {

		flex-direction: column;

	}



	.epx-servers {

		align-self: flex-start;

		flex-wrap: wrap;

	}

}



@media (max-width: 600px) {

	.epx {

		padding: 12px;

	}



	.epx-toolbar .iconx {

		justify-content: flex-start;

		gap: 10px;

	}



	.epx-episodes__list {

		gap: 6px;

	}



	.epx-episodes__link {

		width: 42px;

		height: 42px;

		min-width: 42px;

		flex: 0 0 42px;

		font-size: 13px;

	}



	.epx-footer {

		grid-template-columns: 1fr;

	}

}


