/* Hentai4Free 2.2.0 — drawer styles extracted from header.php so the HTML parser can reach body content sooner. */

/* Source block: h4f-premium-drawer-fixed-css */

html.h4f-drawer-lock,
body.h4f-drawer-lock {
	overflow: hidden !important;
	touch-action: none;
}

.h4f-premium-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 999997;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(3, 3, 10, .66);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, visibility .22s ease;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.h4f-premium-drawer-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.h4f-premium-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 999998;
	width: min(760px, 100vw);
	max-width: 100vw;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 166px;
	background: #070610;
	border-right: 1px solid rgba(157, 108, 255, .28);
	box-shadow: 32px 0 80px rgba(0, 0, 0, .58);
	transform: translateX(-106%);
	transition: transform .26s cubic-bezier(.22, .8, .24, 1);
	overflow: hidden;
	visibility: hidden;
}

.h4f-premium-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
}

.h4f-premium-drawer__panel {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(100% 72% at 18% 0%, rgba(157, 108, 255, .14), transparent 54%),
		radial-gradient(90% 70% at 100% 14%, rgba(255, 180, 93, .08), transparent 52%),
		linear-gradient(180deg, rgba(15, 13, 30, .98), rgba(5, 5, 13, .99));
}

.h4f-premium-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 24px 26px 22px;
	border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.h4f-premium-drawer__close {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #d11cff, #9d6cff);
	box-shadow: 0 18px 38px rgba(157, 108, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .20);
	cursor: pointer;
}

.h4f-premium-drawer__close span {
	position: absolute;
	width: 22px;
	height: 2px;
	border-radius: 999px;
	background: #fff;
}

.h4f-premium-drawer__close span:first-child { transform: rotate(45deg); }
.h4f-premium-drawer__close span:last-child { transform: rotate(-45deg); }

.h4f-premium-drawer__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.h4f-premium-drawer__logo img {
	display: block;
	width: auto;
	max-width: 270px;
	max-height: 58px;
	object-fit: contain;
}

.h4f-premium-drawer__scroll {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 24px 28px 32px;
}

.h4f-premium-drawer__nav,
.h4f-premium-drawer__group {
	display: grid;
	gap: 12px;
}

.h4f-premium-drawer__group {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .075);
}

.h4f-premium-drawer__label {
	margin: 0 0 6px;
	color: rgba(221, 211, 255, .72);
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .28em;
	text-transform: uppercase;
}

.h4f-premium-drawer__item {
	position: relative;
	min-height: 72px;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 12px 14px;
	border-radius: 18px;
	border: 1px solid transparent;
	color: #f7f2ff !important;
	text-decoration: none !important;
	background: transparent;
	transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.h4f-premium-drawer__item:hover,
.h4f-premium-drawer__item.is-active {
	transform: translateY(-1px);
	border-color: rgba(157, 108, 255, .34);
	background: rgba(157, 108, 255, .12);
	box-shadow: 0 18px 38px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.h4f-premium-drawer__icon {
	width: 54px;
	height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(255, 255, 255, .055);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.h4f-premium-drawer__item.is-active .h4f-premium-drawer__icon {
	background: linear-gradient(135deg, rgba(157, 108, 255, .45), rgba(255, 180, 93, .16));
}

.h4f-premium-drawer__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: #d9ccff;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.h4f-premium-drawer__text strong {
	display: block;
	color: #f7f2ff;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -.025em;
}

.h4f-premium-drawer__text small {
	display: block;
	margin-top: 4px;
	color: rgba(221, 211, 255, .62);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.h4f-premium-drawer__badge {
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255, 180, 93, .18);
	color: #ffb45d;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.h4f-premium-drawer__network {
	margin-top: 28px;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 16px;
	padding: 18px;
	border-radius: 18px;
	text-decoration: none !important;
	color: #fff !important;
	background: linear-gradient(135deg, #d11cff, #9d35ff 54%, #ff39c8);
	box-shadow: 0 22px 48px rgba(198, 38, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .20);
}

.h4f-premium-drawer__network-icon,
.h4f-premium-drawer__network-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(255, 255, 255, .16);
}

.h4f-premium-drawer__network-icon {
	width: 54px;
	height: 54px;
	font-size: 24px;
}

.h4f-premium-drawer__network-arrow {
	width: 34px;
	height: 34px;
	font-size: 18px;
	font-weight: 900;
}

.h4f-premium-drawer__network strong,
.h4f-premium-drawer__promo strong {
	display: block;
	color: #fff;
	font-size: 16px;
	font-weight: 900;
}

.h4f-premium-drawer__network span,
.h4f-premium-drawer__promo span {
	display: block;
	margin-top: 4px;
	color: rgba(255, 255, 255, .78);
	font-size: 12px;
	font-weight: 700;
}

.h4f-premium-drawer__promo {
	margin-top: 22px;
	padding: 22px;
	border-radius: 20px;
	border: 1px solid rgba(157, 108, 255, .22);
	background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.h4f-premium-drawer__promo a {
	display: inline-flex;
	margin-top: 18px;
	padding: 12px 18px;
	border-radius: 12px;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 900;
	background: linear-gradient(135deg, #9d6cff, #7c3dff);
	box-shadow: 0 16px 34px rgba(157, 108, 255, .24);
}

.h4f-premium-drawer__rail {
	display: grid;
	grid-auto-rows: minmax(96px, 1fr);
	border-left: 1px solid rgba(255, 255, 255, .075);
	background: #090914;
}

.h4f-premium-drawer__rail-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 96px;
	padding: 12px 8px;
	overflow: hidden;
	text-align: center;
	text-decoration: none !important;
	color: #fff !important;
	background:
		linear-gradient(180deg, rgba(6, 6, 14, .02), rgba(6, 6, 14, .80)),
		var(--h4f-rail-bg, linear-gradient(135deg, #3b2366, #111221));
	border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.h4f-premium-drawer__rail-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(90px 80px at 45% 30%, rgba(255,255,255,.16), transparent 60%),
		linear-gradient(135deg, transparent, rgba(157,108,255,.18));
	opacity: .82;
}

.h4f-premium-drawer__rail-card span {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: 13px;
	font-weight: 950;
	line-height: 1.1;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-shadow: 0 2px 16px rgba(0,0,0,.65);
}

@media (max-width: 767px) {
	.h4f-premium-drawer {
		width: 100vw;
		grid-template-columns: minmax(0, 1fr) 150px;
	}

	.h4f-premium-drawer__head { padding: 22px 20px; }
	.h4f-premium-drawer__close { width: 54px; height: 54px; border-radius: 15px; }
	.h4f-premium-drawer__logo img { max-width: 230px; max-height: 52px; }
	.h4f-premium-drawer__scroll { padding: 22px 20px 28px; }

	.h4f-premium-drawer__item {
		min-height: 68px;
		grid-template-columns: 52px minmax(0, 1fr) auto;
		gap: 14px;
		padding: 10px 12px;
		border-radius: 16px;
	}

	.h4f-premium-drawer__icon { width: 52px; height: 52px; }
	.h4f-premium-drawer__text strong { font-size: 19px; }
	.h4f-premium-drawer__badge { padding: 7px 9px; font-size: 11px; }
	.h4f-premium-drawer__rail { grid-auto-rows: minmax(86px, 1fr); }
	.h4f-premium-drawer__rail-card span { font-size: 12px; }
}

@media (max-width: 520px) {
	.h4f-premium-drawer { grid-template-columns: minmax(0, 1fr) 132px; }
	.h4f-premium-drawer__text strong { font-size: 18px; }
	.h4f-premium-drawer__rail-card span { font-size: 11px; }
}

/* Source block: h4f-premium-drawer-v2-mobile-polish-css */

/* H4F drawer v2.1 — mobile polish + real internal scroll */
html.h4f-drawer-lock,
body.h4f-drawer-lock {
	overflow: hidden !important;
}

body.h4f-drawer-lock {
	touch-action: auto !important;
}

.h4f-premium-drawer {
	height: 100dvh;
	max-height: 100dvh;
	min-height: 0;
}

.h4f-premium-drawer__panel {
	min-height: 0;
	overflow: hidden;
}

.h4f-premium-drawer__scroll {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.h4f-premium-drawer__rail {
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
	.h4f-premium-drawer {
		grid-template-columns: minmax(0, 1fr) 134px !important;
	}

	.h4f-premium-drawer__head {
		min-height: 112px;
		padding: 18px 18px 16px !important;
		gap: 12px;
		align-items: center;
		background:
			radial-gradient(90% 70% at 50% 0%, rgba(157,108,255,.14), transparent 65%),
			rgba(7, 6, 16, .74);
	}

	.h4f-premium-drawer__close {
		width: 56px !important;
		height: 56px !important;
		border-radius: 16px !important;
		box-shadow:
			0 16px 34px rgba(198, 38, 255, .34),
			inset 0 1px 0 rgba(255,255,255,.22);
	}

	.h4f-premium-drawer__logo {
		flex: 1 1 auto;
		justify-content: center;
		min-width: 0;
		padding-right: 2px;
	}

	.h4f-premium-drawer__logo img {
		max-width: min(210px, 100%) !important;
		max-height: 50px !important;
	}

	.h4f-premium-drawer__scroll {
		padding: 22px 20px calc(118px + env(safe-area-inset-bottom)) !important;
	}

	.h4f-premium-drawer__rail {
		padding-bottom: calc(86px + env(safe-area-inset-bottom));
		background:
			linear-gradient(180deg, rgba(157,108,255,.10), rgba(255,180,93,.06)),
			#090914;
	}

	.h4f-premium-drawer__rail-card {
		min-height: 108px;
	}

	.h4f-premium-drawer__item {
		min-height: 64px !important;
		grid-template-columns: 50px minmax(0, 1fr) auto !important;
		gap: 14px !important;
		padding: 10px 12px !important;
	}

	.h4f-premium-drawer__icon {
		width: 50px !important;
		height: 50px !important;
		border-radius: 14px;
	}

	.h4f-premium-drawer__text strong {
		font-size: 18px !important;
		line-height: 1.05;
	}

	.h4f-premium-drawer__text small {
		font-size: 11px;
		line-height: 1.18;
	}

	.h4f-premium-drawer__group {
		margin-top: 22px;
		padding-top: 22px;
	}

	.h4f-premium-drawer__label {
		font-size: 12px;
		letter-spacing: .24em;
	}

	.h4f-premium-drawer__network {
		margin-top: 24px;
		grid-template-columns: 50px minmax(0, 1fr) 32px;
		gap: 14px;
		padding: 16px;
		border-radius: 18px;
	}

	.h4f-premium-drawer__network-icon {
		width: 50px;
		height: 50px;
	}

	.h4f-premium-drawer__promo {
		margin-top: 20px;
		padding: 18px;
	}
}

@media (max-width: 420px) {
	.h4f-premium-drawer {
		grid-template-columns: minmax(0, 1fr) 124px !important;
	}

	.h4f-premium-drawer__logo img {
		max-width: min(184px, 100%) !important;
	}

	.h4f-premium-drawer__scroll {
		padding-left: 18px !important;
		padding-right: 16px !important;
	}

	.h4f-premium-drawer__rail-card span {
		font-size: 10px !important;
	}
}
