/* Violet homepage UI refinements ? rails, Editor Picks, pinned badge */

/* ------------------------------------------------------------------ */
/* Homepage layout â€” wide zone (marker: .violet-home-wide-zone only)  */
/* ------------------------------------------------------------------ */

/*
 * Parent header outputs only get_option('defaulttheme') on <body>, not
 * body_class(), so body.home never appears on production. Scope via the
 * child homepage wide-zone marker instead.
 */

body:has(.violet-home-wide-zone) {
	overflow-x: hidden;
}

#content:has(.violet-home-wide-zone),
#content.violet-home-content {
	max-width: 100%;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	overflow-x: visible;
}

#content:has(.violet-home-wide-zone) > .wrapper,
#content.violet-home-content > .wrapper {
	max-width: 1220px;
	margin-left: auto;
	margin-right: auto;
	width: auto;
	float: none;
}

.violet-home-wide-zone {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow: visible;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Main hero slider â€” full wide zone, controlled active slide           */
/* ------------------------------------------------------------------ */

.violet-hero-shell.slidernew {
	position: relative;
	margin-top: 82px;
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.violet-hero-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.violet-hero-shell.violet-hero-pending .violet-hero-slider {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.violet-hero-shell.violet-hero-ready .violet-hero-slider,
.violet-hero-shell:not(.violet-hero-pending) .violet-hero-slider {
	visibility: visible;
	opacity: 1;
	transition: opacity 140ms ease;
}

.violet-hero-slider .swiper-wrapper {
	align-items: center;
}

.violet-hero-slider .swiper-slide {
	width: min(1120px, calc(100vw - 260px));
	flex: 0 0 min(1120px, calc(100vw - 260px));
	flex-shrink: 0;
	box-sizing: border-box;
}

.violet-hero-slider .swiper-slide a {
	display: block;
	line-height: 0;
}

.violet-hero-slider .slider-content {
	width: 100%;
	height: auto;
	display: block;
	margin-top: 0;
	transition: none;
}

.violet-hero-pagination.swiper-pagination {
	position: relative;
	margin-top: 24px;
}

@media (max-width: 1024px) {
	.violet-hero-slider .swiper-slide {
		width: min(920px, calc(100vw - 120px));
		flex: 0 0 min(920px, calc(100vw - 120px));
	}
}

@media (max-width: 768px) {
	.violet-hero-shell.slidernew {
		margin-top: 38px;
	}

	.violet-hero-slider .swiper-slide {
		width: min(720px, 94vw);
		flex: 0 0 min(720px, 94vw);
	}

	.violet-hero-pagination.swiper-pagination {
		margin-top: 18px;
	}
}

@media (max-width: 430px) {
	.violet-hero-slider .swiper-slide {
		width: 94vw;
		flex: 0 0 94vw;
	}
}

/* ------------------------------------------------------------------ */
/* Popular Today â€” full wide zone, content-aligned heading              */
/* ------------------------------------------------------------------ */

.violet-popular-today-section {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 0 20px;
	padding: 0;
	overflow: visible;
	box-sizing: border-box;
}

.violet-popular-today-section > .bixbox.hothome {
	overflow: visible;
	padding-bottom: 0;
	max-width: 1220px;
	margin-left: auto;
	margin-right: auto;
	width: auto;
	float: none;
}

.violet-popular-today-section > .bixbox.hothome .releases {
	max-width: 1220px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

.violet-popular-today-section .violet-rail-shell--bleed {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	box-sizing: border-box;
	overflow: hidden;
	--violet-rail-arrow-edge-inset: 28px;
}

.violet-popular-today-section .violet-rail-shell--bleed .violet-rail-prev {
	left: var(--violet-rail-arrow-edge-inset);
}

.violet-popular-today-section .violet-rail-shell--bleed .violet-rail-next {
	right: var(--violet-rail-arrow-edge-inset);
}

.violet-popular-today-section .violet-popular-today-slider {
	display: block;
	visibility: visible;
	opacity: 1;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.violet-popular-today-section .violet-popular-today-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.violet-popular-today-section .violet-popular-today-slider .swiper-slide {
	width: var(--violet-rail-card-width) !important;
	max-width: var(--violet-rail-card-width) !important;
	flex: 0 0 var(--violet-rail-card-width) !important;
	box-sizing: border-box;
}

.violet-popular-today-section .violet-home-rail .bs,
.violet-popular-today-section .violet-home-rail .full .bs {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Browse by Genre â€” horizontal cover slider                          */
/* ------------------------------------------------------------------ */

.bixbox.violet-home-genres {
	max-width: 1220px;
	margin: 12px auto 24px;
	padding: 0 35px;
	background: transparent !important;
	overflow: visible;
	box-sizing: border-box;
}

.violet-home-genres .violet-genre-header.releases {
	max-width: none;
	margin: 0 0 12px;
	padding: 8px 15px;
	border-bottom: 1px solid var(--accents, #7f00ff);
	box-sizing: border-box;
}

.violet-home-genres .violet-genre-header h2 {
	margin: 0;
	padding: 0;
	font-size: 1.4rem;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: normal;
}

.violet-home-genres .violet-genre-rail-shell {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	--violet-genre-card-width: 210px;
	--violet-rail-arrow-y: 56px;
	--violet-rail-arrow-edge-inset: 28px;
}

.violet-home-genres .violet-genre-rail-shell .violet-rail-prev {
	left: var(--violet-rail-arrow-edge-inset);
}

.violet-home-genres .violet-genre-rail-shell .violet-rail-next {
	right: var(--violet-rail-arrow-edge-inset);
}

.violet-home-genres .violet-rail-nav {
	z-index: 8;
	pointer-events: auto;
}

.violet-genre-slider {
	width: 100%;
	overflow: hidden;
}

.violet-genre-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.violet-genre-slider .swiper-slide {
	width: var(--violet-genre-card-width) !important;
	max-width: var(--violet-genre-card-width) !important;
	flex: 0 0 var(--violet-genre-card-width) !important;
	height: auto;
	box-sizing: border-box;
}

.violet-genre-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 110px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(192, 132, 252, 0.16);
	background: linear-gradient(135deg, rgba(36, 24, 54, 0.95), rgba(18, 16, 28, 0.98));
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	box-sizing: border-box;
}

.violet-genre-tile__media,
.violet-genre-tile__overlay,
.violet-genre-tile__label,
.violet-genre-tile__chev {
	position: relative;
	z-index: 2;
}

.violet-genre-tile__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.violet-genre-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transform: scale(1);
	transition: transform 0.35s ease;
}

.violet-genre-tile__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(8, 6, 14, 0.88) 0%, rgba(8, 6, 14, 0.55) 42%, rgba(8, 6, 14, 0.28) 100%),
		linear-gradient(0deg, rgba(8, 6, 14, 0.72) 0%, rgba(8, 6, 14, 0.08) 70%);
	pointer-events: none;
	transition: background 0.18s ease;
}

.violet-genre-tile__label {
	min-width: 0;
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.violet-genre-tile__chev {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.1rem;
	line-height: 1;
	transition: color 0.18s ease, transform 0.18s ease;
}

.violet-genre-tile:hover,
.violet-genre-tile:focus-visible {
	border-color: rgba(192, 132, 252, 0.48);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.violet-genre-tile:hover .violet-genre-tile__media img,
.violet-genre-tile:focus-visible .violet-genre-tile__media img {
	transform: scale(1.04);
}

.violet-genre-tile:hover .violet-genre-tile__overlay,
.violet-genre-tile:focus-visible .violet-genre-tile__overlay {
	background:
		linear-gradient(90deg, rgba(8, 6, 14, 0.82) 0%, rgba(8, 6, 14, 0.45) 45%, rgba(88, 45, 145, 0.22) 100%),
		linear-gradient(0deg, rgba(8, 6, 14, 0.62) 0%, rgba(8, 6, 14, 0.04) 72%);
}

.violet-genre-tile:hover .violet-genre-tile__chev,
.violet-genre-tile:focus-visible .violet-genre-tile__chev {
	color: #e9d5ff;
	transform: translateX(3px);
}

.violet-genre-tile:focus-visible {
	outline: 2px solid #c4a3ff;
	outline-offset: 2px;
}

@media (max-width: 1023px) {
	.bixbox.violet-home-genres {
		padding-left: 24px;
		padding-right: 24px;
	}

	.violet-home-genres .violet-genre-rail-shell {
		--violet-genre-card-width: 200px;
	}
}

@media (max-width: 767px) {
	.bixbox.violet-home-genres {
		padding-left: 16px;
		padding-right: 16px;
	}

	.violet-home-genres .violet-genre-rail-shell {
		--violet-genre-card-width: 188px;
	}

	.violet-genre-tile {
		min-height: 100px;
		padding: 10px 12px;
	}

	.violet-genre-tile__label {
		font-size: 0.8125rem;
	}
}

@media (max-width: 429px) {
	.violet-home-genres .violet-genre-rail-shell {
		--violet-genre-card-width: 180px;
	}
}

/* ------------------------------------------------------------------ */
/* Single-row catalog rails (Popular Today / New Series / Completed)  */
/* ------------------------------------------------------------------ */

/*
 * Geometry: shell is position:relative full width.
 * Prev/next are absolute overlays; Y is set per-rail from cover .limit.
 */
.violet-rail-shell {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	gap: 0;
	overflow: visible;
	--violet-rail-arrow-y: 120px;
	--violet-rail-card-width: 150px;
}

.violet-home-rail,
.pop-list.violet-home-rail,
.pop-list.violet-home-rail.hidden {
	position: relative;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.violet-home-rail .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

/* Fixed slide width for slidesPerView:auto ? prevents single-item stretch */
.violet-home-rail .swiper-slide {
	width: var(--violet-rail-card-width) !important;
	max-width: var(--violet-rail-card-width);
	height: auto;
	box-sizing: border-box;
	flex-shrink: 0;
}

.violet-home-rail .bs,
.violet-home-rail .full .bs,
.hothome.full .violet-home-rail .bs {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
	display: block;
}

.violet-home-rail .bs .bsx {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

.violet-rail-nav {
	position: absolute;
	top: var(--violet-rail-arrow-y);
	transform: translateY(-50%);
	left: auto;
	right: auto;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(20, 16, 28, 0.78);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	z-index: 6;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.violet-rail-prev {
	left: 12px;
}

.violet-rail-next {
	right: 12px;
}

.violet-rail-nav:hover {
	background: rgba(92, 45, 145, 0.95);
	transform: translateY(-50%) scale(1.04);
}

.violet-rail-nav:focus-visible {
	outline: 2px solid #c4a3ff;
	outline-offset: 2px;
}

.violet-rail-nav.is-hidden,
.violet-rail-nav[hidden] {
	display: none !important;
}

.violet-rail-paging {
	margin-top: 10px;
	min-height: 0;
}

.violet-rail-paging.is-hidden,
.violet-rail-paging[hidden],
.violet-rail-shell.is-locked .violet-rail-paging,
.violet-rail-shell.is-single .violet-rail-paging {
	display: none !important;
	margin: 0;
	min-height: 0;
}

.violet-home-rail .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

.violet-home-rail .swiper-pagination-bullet-active {
	background: #9b6dff;
}

.violet-home-layout-rail > .pop-list-desktop,
.hotslid .pop-list-desktop {
	display: none !important;
}

.violet-home-layout-grid .violet-home-cards {
	overflow: hidden;
	width: 100%;
}

.violet-home-layout-grid .violet-home-cards::after {
	content: "";
	display: table;
	clear: both;
}

.violet-home-layout-grid .violet-home-cards .bs {
	display: block;
}

@media (min-width: 768px) {
	.violet-rail-shell {
		--violet-rail-card-width: 160px;
	}
}

@media (min-width: 1024px) {
	.violet-rail-shell {
		--violet-rail-card-width: 168px;
	}
}

@media (max-width: 640px) {
	.violet-rail-nav {
		display: none !important;
	}

	.violet-rail-shell {
		--violet-rail-card-width: 132px;
	}
}

/* ------------------------------------------------------------------ */
/* Pinned badge (Vortex-style) â€” Violet homepage cards only           */
/* ------------------------------------------------------------------ */

.violet-card-shell {
	position: relative;
}

/* Cover wrappers are the positioning ancestors for the badge. */
.violet-card-shell .limit,
.violet-card-shell .imgu {
	position: relative;
}

.violet-card-shell .violet-home-cover-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	background: rgba(24, 24, 27, 0.85);
}

.violet-card-shell .violet-home-pinned-badge {
	position: absolute;
	bottom: 5px;
	left: 5px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	max-width: calc(100% - 10px);
	height: auto;
	padding: 3px 6px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	background: rgba(9, 9, 11, 0.8); /* zinc-950 @ 80% */
	color: #fafafa;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	box-shadow: none;
	pointer-events: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.violet-card-shell .violet-home-pinned-badge svg {
	display: block;
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	fill: currentColor;
}

.violet-card-shell .violet-home-pinned-badge > span {
	display: inline-block;
	line-height: 1;
	white-space: nowrap;
}

/* Latest Comics/Novels cards are full-width list rows */
.latest-updates .violet-card-shell {
	position: relative;
	display: block;
	width: 100%;
	float: none;
}

.latest-updates .violet-card-shell .bs {
	float: none;
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Editor Picks â€” aligned bixbox section + featured Violet card       */
/* ------------------------------------------------------------------ */

/*
 * Heading mismatch cause: EP overrode `.releases` with custom padding/margin
 * and `display: block`, breaking sibling `.releases` / `.releases h2` rhythm.
 *
 * Right clipping causes: section `width: 100%` + `overflow: visible` with
 * cover translateX peeks; card `max-width: none`; custom heading padding that
 * shifted visual edges vs sibling content path.
 */
.bixbox.violet-editor-picks,
.violet-editor-picks {
	display: block;
	position: relative;
	width: auto;
	max-width: 100%;
	min-width: 0;
	float: none;
	clear: both;
	margin-top: 0;
	margin-bottom: 18px;
	padding: 10px;
	background: transparent !important;
	border: 0;
	border-radius: 0;
	box-shadow: none !important;
	overflow: hidden;
	box-sizing: border-box;
	grid-template-columns: none;
	grid-template-rows: none;
	grid-template-areas: none;
	grid-column: auto;
	grid-row: auto;
}

.violet-editor-picks,
.violet-editor-picks > .releases,
.violet-editor-picks .violet-ep-card,
.violet-editor-picks .violet-ep-main,
.violet-editor-picks .violet-ep-info,
.violet-editor-picks .violet-ep-panel,
.violet-editor-picks .violet-ep-covers {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

/*
 * Heading: inherit sibling `.releases` / `.releases h2` styles.
 * Only harmless float/clear resets â€” no custom padding, margin, or h2 restyle.
 */
.violet-editor-picks > .releases.violet-ep-header {
	float: none;
	clear: both;
	max-width: 100%;
}

/* ---- Desktop card surface ---- */
.violet-editor-picks > .violet-ep-card,
.violet-editor-picks .violet-ep-card {
	position: relative;
	display: block;
	width: auto;
	max-width: 100%;
	float: none;
	clear: both;
	margin-left: 0;
	margin-right: 0;
	margin-inline: 0;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	height: auto;
	padding: clamp(20px, 1.4vw, 23px);
	border-radius: 16px;
	border: 1px solid rgba(192, 132, 252, 0.30);
	background:
		radial-gradient(
			circle at 14% 28%,
			rgba(139, 92, 246, 0.24),
			transparent 34%
		),
		radial-gradient(
			circle at 88% 8%,
			rgba(217, 70, 239, 0.10),
			transparent 30%
		),
		linear-gradient(
			135deg,
			rgba(28, 20, 43, 0.98),
			rgba(16, 16, 28, 0.99) 55%,
			rgba(12, 14, 21, 0.99)
		);
	color: #f0ebf8;
	box-shadow:
		0 18px 42px rgba(0, 0, 0, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Restrained top accent â€” fully contained */
.violet-editor-picks .violet-ep-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	inset-inline: 0;
	width: auto;
	max-width: 100%;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(139, 92, 246, 0.75) 18%,
		rgba(217, 70, 239, 0.55) 52%,
		rgba(139, 92, 246, 0.2) 78%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 2;
}

.violet-editor-picks .violet-ep-main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.violet-editor-picks .violet-ep-main > * {
	min-width: 0;
	max-width: 100%;
}

.violet-editor-picks .violet-ep-covers {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 190px;
	justify-self: start;
	overflow: hidden;
}

.violet-editor-picks .violet-ep-info {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.violet-editor-picks .violet-ep-stack {
	position: relative;
	width: min(100%, 185px);
	aspect-ratio: 2 / 3;
	height: auto;
	max-width: 100%;
	perspective: 900px;
	overflow: hidden;
}

/* Soft wash behind cover â€” no negative horizontal inset */
.violet-editor-picks .violet-ep-stack::before {
	content: "";
	position: absolute;
	inset: 12% 0 0 0;
	inset-inline: 0;
	border-radius: 40%;
	background: radial-gradient(
		ellipse at 50% 55%,
		rgba(139, 92, 246, 0.28),
		rgba(217, 70, 239, 0.08) 45%,
		transparent 70%
	);
	filter: blur(14px);
	opacity: 0.7;
	pointer-events: none;
	z-index: 0;
}

.violet-editor-picks.is-single .violet-ep-stack {
	width: min(100%, 185px);
}

.violet-editor-picks .violet-ep-cover {
	position: absolute;
	inset: 0;
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	transform: translateX(0) scale(0.92);
	opacity: 0;
	z-index: 1;
	pointer-events: none;
	background: #1c1628;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.violet-editor-picks .violet-ep-cover.is-active {
	opacity: 1;
	z-index: 20;
	transform: translateX(0) scale(1);
	pointer-events: auto;
}

.violet-editor-picks .violet-ep-cover.is-prev {
	opacity: 0.48;
	z-index: 12;
	transform: translateX(-6px) scale(0.94) rotate(-2deg);
}

.violet-editor-picks .violet-ep-cover.is-next {
	opacity: 0.48;
	z-index: 12;
	transform: translateX(6px) scale(0.94) rotate(2deg);
}

.violet-editor-picks.is-single .violet-ep-cover {
	transform: none;
	opacity: 1;
}

.violet-editor-picks .violet-ep-cover img,
.violet-editor-picks .violet-ep-cover__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: 100%;
}

.violet-editor-picks .violet-ep-cover__placeholder {
	background: linear-gradient(145deg, #2e2444, #14101c);
}

.violet-editor-picks.is-single .violet-ep-dots {
	display: none !important;
	margin: 0;
	padding: 0;
	height: 0;
	overflow: hidden;
}

.violet-editor-picks .violet-ep-dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	max-width: 100%;
}

.violet-editor-picks .violet-ep-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
}

.violet-editor-picks .violet-ep-dot:focus-visible {
	outline: 2px solid #c4a3ff;
	outline-offset: 2px;
}

.violet-editor-picks .violet-ep-dot.is-active {
	background: #c084fc;
	transform: scale(1.12);
}

.violet-editor-picks .violet-ep-panel {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.violet-editor-picks .violet-ep-panel[hidden] {
	display: none !important;
}

.violet-editor-picks .violet-ep-series-title {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 1.6vw, 1.6875rem); /* ~24â€“27px */
	font-weight: 650;
	line-height: 1.25;
	overflow-wrap: anywhere;
	word-break: break-word;
	letter-spacing: 0.01em;
	color: #fff;
}

.violet-editor-picks .violet-ep-series-title a {
	color: inherit;
	text-decoration: none;
}

.violet-editor-picks .violet-ep-series-title a:hover {
	color: #e4d4ff;
}

.violet-editor-picks .violet-ep-tagline {
	margin: 0 0 10px;
	color: rgba(240, 235, 248, 0.68);
	font-size: 0.875rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.violet-editor-picks .violet-ep-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.violet-editor-picks .violet-ep-genres li {
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 11px;
	line-height: 1.35;
	color: rgba(240, 235, 248, 0.84);
	transition: border-color 0.15s ease;
}

.violet-editor-picks .violet-ep-genres li:hover {
	border-color: rgba(192, 132, 252, 0.35);
}

.violet-editor-picks .violet-ep-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.violet-editor-picks .violet-ep-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.violet-editor-picks .violet-ep-badge--type {
	background: rgba(139, 92, 246, 0.22);
	color: #e0d0ff;
}

.violet-editor-picks .violet-ep-badge--status {
	background: rgba(217, 70, 239, 0.12);
	color: #f0d6ff;
}

.violet-editor-picks .violet-ep-synopsis {
	margin: 0 0 16px;
	color: rgba(240, 235, 248, 0.74);
	line-height: 1.5;
	font-size: 0.875rem;
}

.violet-editor-picks .violet-ep-synopsis p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.violet-editor-picks .violet-ep-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 0;
}

.violet-editor-picks .violet-ep-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	height: auto;
	padding: 0 16px;
	border-radius: 10px;
	border: 0;
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.violet-editor-picks .violet-ep-cta:focus-visible {
	outline: 2px solid #c4a3ff;
	outline-offset: 2px;
}

.violet-editor-picks .violet-ep-cta--primary {
	background: linear-gradient(135deg, #9b6dff, #7c3aed);
	color: #fff;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.violet-editor-picks .violet-ep-cta--primary:hover {
	filter: brightness(1.08);
	color: #fff;
}

.violet-editor-picks .violet-ep-cta--secondary {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(192, 132, 252, 0.35);
	color: #fff;
	box-shadow: none;
}

.violet-editor-picks .violet-ep-cta--secondary:hover {
	background: rgba(139, 92, 246, 0.18);
	border-color: rgba(192, 132, 252, 0.55);
	color: #fff;
}

.violet-editor-picks .violet-ep-cta--secondary.bookmarked {
	background: rgba(100, 90, 130, 0.35);
	border-color: rgba(192, 132, 252, 0.28);
	color: #fff;
}

/* ---- Tablet: ~700â€“1023px ---- */
@media (max-width: 1023px) {
	.violet-editor-picks > .violet-ep-card,
	.violet-editor-picks .violet-ep-card {
		float: none;
		width: auto;
		max-width: 100%;
		clear: both;
		box-sizing: border-box;
		padding: 18px 20px;
		border-radius: 15px;
	}

	.violet-editor-picks .violet-ep-main {
		grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
		gap: 20px;
	}

	.violet-editor-picks .violet-ep-covers {
		max-width: 168px;
	}

	.violet-editor-picks .violet-ep-stack,
	.violet-editor-picks.is-single .violet-ep-stack {
		width: min(100%, 160px);
	}

	.violet-editor-picks .violet-ep-series-title {
		font-size: clamp(1.25rem, 2vw, 1.45rem);
	}

	.violet-editor-picks .violet-ep-synopsis p {
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.violet-editor-picks .violet-ep-cta {
		min-height: 40px;
	}
}

/* ---- Mobile: compact horizontal card ---- */
@media (max-width: 699px) {
	.bixbox.violet-editor-picks,
	.violet-editor-picks {
		margin-top: 0;
		margin-bottom: 18px;
		overflow: hidden;
	}

	.violet-editor-picks > .violet-ep-card,
	.violet-editor-picks .violet-ep-card {
		float: none;
		width: auto;
		max-width: 100%;
		clear: both;
		box-sizing: border-box;
		padding: 10px 11px;
		border-radius: 14px;
		min-height: 0;
		height: auto;
		border-color: rgba(192, 132, 252, 0.30);
		background:
			radial-gradient(
				circle at 12% 30%,
				rgba(139, 92, 246, 0.28),
				transparent 36%
			),
			radial-gradient(
				circle at 92% 6%,
				rgba(217, 70, 239, 0.12),
				transparent 28%
			),
			linear-gradient(
				135deg,
				rgba(28, 20, 43, 0.98),
				rgba(16, 16, 28, 0.99) 55%,
				rgba(12, 14, 21, 0.99)
			);
		box-shadow:
			0 12px 28px rgba(0, 0, 0, 0.22),
			inset 0 1px 0 rgba(255, 255, 255, 0.035);
	}

	.violet-editor-picks .violet-ep-main {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 10px;
		align-items: start;
		min-height: 0;
	}

	.violet-editor-picks .violet-ep-covers {
		width: 84px;
		max-width: 84px;
		justify-self: start;
		align-items: center;
		min-height: 0;
	}

	.violet-editor-picks .violet-ep-stack,
	.violet-editor-picks.is-single .violet-ep-stack {
		width: 100%;
		max-width: 84px;
		margin: 0;
		aspect-ratio: 2 / 3;
		height: auto;
		min-height: 0;
	}

	.violet-editor-picks .violet-ep-stack::before {
		inset: 12% 0 0 0;
		inset-inline: 0;
		filter: blur(10px);
		opacity: 0.55;
	}

	.violet-editor-picks .violet-ep-cover {
		border-radius: 9px;
		border-color: rgba(192, 132, 252, 0.28);
		box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
	}

	.violet-editor-picks .violet-ep-cover.is-prev {
		transform: translateX(-4px) scale(0.94) rotate(-2deg);
	}

	.violet-editor-picks .violet-ep-cover.is-next {
		transform: translateX(4px) scale(0.94) rotate(2deg);
	}

	.violet-editor-picks .violet-ep-dots {
		gap: 4px;
		margin-top: 6px;
	}

	.violet-editor-picks .violet-ep-dot {
		width: 5px;
		height: 5px;
	}

	.violet-editor-picks .violet-ep-info {
		width: 100%;
		min-width: 0;
		text-align: left;
		overflow: hidden;
		padding: 0;
		margin: 0;
	}

	.violet-editor-picks .violet-ep-series-title {
		margin: 0 0 7px;
		font-size: clamp(0.9375rem, 3.5vw, 1rem); /* ~15â€“16px */
		font-weight: 650;
		line-height: 1.22;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.violet-editor-picks .violet-ep-tagline,
	.violet-editor-picks .violet-ep-synopsis,
	.violet-editor-picks .violet-ep-alias,
	.violet-editor-picks .violet-ep-aliases,
	.violet-editor-picks .violet-ep-alt-title,
	.violet-editor-picks .violet-ep-other-names {
		display: none !important;
		margin: 0 !important;
		padding: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		overflow: hidden !important;
	}

	.violet-editor-picks .violet-ep-genres {
		margin: 0 0 5px;
		gap: 4px;
	}

	.violet-editor-picks .violet-ep-genres li {
		padding: 3px 5px;
		font-size: 9px;
	}

	.violet-editor-picks .violet-ep-badges {
		margin: 0 0 10px;
		gap: 4px;
	}

	.violet-editor-picks .violet-ep-badge {
		padding: 3px 6px;
		font-size: 9px;
	}

	/* Read Now + square icon-only Bookmark */
	.violet-editor-picks .violet-ep-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 38px;
		gap: 7px;
		align-items: stretch;
		width: 100%;
		margin: 0;
	}

	.violet-editor-picks .violet-ep-cta {
		flex: none;
		min-width: 0;
		transform: none;
	}

	.violet-editor-picks .violet-ep-cta--primary {
		width: 100%;
		min-height: 38px;
		height: 38px;
		padding: 0 10px;
		font-size: 0.72rem;
		border-radius: 8px;
		box-shadow: none;
		gap: 4px;
	}

	.violet-editor-picks .violet-ep-cta--primary:hover {
		filter: brightness(1.06);
	}

	.violet-editor-picks .violet-ep-cta--secondary {
		width: 38px;
		height: 38px;
		min-height: 38px;
		padding: 0;
		border-radius: 8px;
		gap: 0;
	}

	.violet-editor-picks .violet-ep-cta--secondary span {
		display: none;
	}

	.violet-editor-picks .violet-ep-cta--secondary i {
		font-size: 0.95rem;
		margin: 0;
	}
}

/* ---- Very narrow phones ---- */
@media (max-width: 379px) {
	.violet-editor-picks .violet-ep-main {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 8px;
	}

	.violet-editor-picks .violet-ep-covers {
		width: 76px;
		max-width: 76px;
	}

	.violet-editor-picks .violet-ep-stack,
	.violet-editor-picks.is-single .violet-ep-stack {
		max-width: 76px;
	}

	.violet-editor-picks .violet-ep-card {
		padding: 10px;
	}

	.violet-editor-picks .violet-ep-actions {
		grid-template-columns: minmax(0, 1fr) 36px;
		gap: 6px;
	}

	.violet-editor-picks .violet-ep-cta--primary {
		min-height: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 0.6875rem;
	}

	.violet-editor-picks .violet-ep-cta--secondary {
		width: 36px;
		height: 36px;
		min-height: 36px;
	}
}

/* ------------------------------------------------------------------ */
/* Load More ? Latest Comics / Latest Novels                          */
/* ------------------------------------------------------------------ */

.violet-load-more-wrap,
.latest-wrap-btn.violet-load-more-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 18px 0 28px;
	padding: 0;
	float: none;
	clear: both;
}

.violet-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	height: 44px;
	padding: 0 28px;
	margin: 0 auto;
	border: 1px solid rgba(180, 140, 255, 0.65);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(48, 34, 72, 0.95), rgba(28, 18, 44, 0.98));
	color: #f4efff;
	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.violet-load-more:hover {
	border-color: #c9a8ff;
	background: linear-gradient(135deg, #9b6dff, #6b3fa0);
	color: #fff;
	transform: translateY(-1px);
}

.violet-load-more:focus-visible {
	outline: 2px solid #c4a3ff;
	outline-offset: 3px;
}

.violet-load-more.is-loading,
.violet-load-more:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
	pointer-events: none;
}

.violet-latest-comics,
.violet-latest-novels {
	clear: both;
}

.violet-latest-novels {
	margin-top: 8px;
}

@media (max-width: 600px) {
	.violet-load-more {
		min-width: 180px;
		width: min(100%, 280px);
	}
}
