/**
 * Hentai4Free — Popular This Month
 * Loaded only on /popular-this-month/.
 */

body.h4f-popular-month-page {
	--h4f-ptm-bg: #100c12;
	--h4f-ptm-panel: rgba(36, 25, 31, .86);
	--h4f-ptm-panel-strong: #261820;
	--h4f-ptm-line: rgba(255, 177, 75, .28);
	--h4f-ptm-text: #fff9f3;
	--h4f-ptm-muted: #d2bbb5;
	--h4f-ptm-gold: #ffc46b;
	--h4f-ptm-coral: #ff8f70;
	--h4f-ptm-wine: #c85471;
	background: var(--h4f-ptm-bg);
}

.h4f-ptm,
.h4f-ptm * {
	box-sizing: border-box;
}

.h4f-ptm {
	color: var(--h4f-ptm-text);
	background:
		radial-gradient(circle at 86% 0%, rgba(255, 143, 112, .17), transparent 30rem),
		radial-gradient(circle at 3% 11%, rgba(255, 196, 107, .12), transparent 30rem),
		var(--h4f-ptm-bg);
	padding-bottom: 68px;
}

.h4f-ptm-shell {
	width: min(1380px, calc(100% - 40px));
	margin: 0 auto;
}

.h4f-ptm-hero {
	position: relative;
	overflow: hidden;
	padding: 58px 0 48px;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.h4f-ptm-hero::before {
	position: absolute;
	inset: -40% auto auto 60%;
	width: 680px;
	height: 680px;
	border: 1px solid rgba(255, 196, 107, .12);
	border-radius: 50%;
	box-shadow: 0 0 0 44px rgba(255, 143, 112, .035), 0 0 0 88px rgba(255, 196, 107, .025);
	content: "";
	pointer-events: none;
}

.h4f-ptm-hero .h4f-ptm-shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
	gap: 42px;
	align-items: end;
}

.h4f-ptm-kicker,
.h4f-ptm-section__eyebrow,
.h4f-ptm-term__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--h4f-ptm-gold);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.h4f-ptm-kicker span {
	display: inline-grid;
	width: 19px;
	height: 19px;
	border: 1px solid rgba(255, 196, 107, .6);
	border-radius: 6px;
	place-items: center;
	color: #fff;
	background: rgba(255, 196, 107, .12);
}

.h4f-ptm-hero h1 {
	max-width: 780px;
	margin: 13px 0 12px;
	color: #fff;
	font-size: clamp(35px, 5vw, 66px);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.055em;
}

.h4f-ptm-hero p {
	max-width: 680px;
	margin: 0;
	color: var(--h4f-ptm-muted);
	font-size: 15px;
	line-height: 1.7;
}

.h4f-ptm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.h4f-ptm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 17px;
	border: 1px solid transparent;
	border-radius: 11px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
	text-decoration: none !important;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.h4f-ptm-button:hover {
	transform: translateY(-2px);
}

.h4f-ptm-button--primary {
	color: #25140d;
	background: linear-gradient(115deg, var(--h4f-ptm-gold), #ffe2a7);
}

.h4f-ptm-button--ghost {
	border-color: rgba(255, 143, 112, .52);
	color: #fffaf5;
	background: rgba(200, 84, 113, .10);
}

.h4f-ptm-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 16px;
	border: 1px solid var(--h4f-ptm-line);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(53, 33, 42, .9), rgba(21, 13, 20, .88));
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.h4f-ptm-hero__stats div {
	display: grid;
	gap: 6px;
	min-width: 0;
	padding: 7px 10px;
	border-right: 1px solid rgba(255, 255, 255, .09);
}

.h4f-ptm-hero__stats div:last-child {
	border-right: 0;
}

.h4f-ptm-hero__stats strong {
	overflow-wrap: anywhere;
	color: #fff;
	font-size: clamp(18px, 2vw, 27px);
	font-weight: 800;
	letter-spacing: -.045em;
}

.h4f-ptm-hero__stats span {
	color: var(--h4f-ptm-muted);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.h4f-ptm-content {
	padding-top: 42px;
}

.h4f-ptm-section {
	margin-top: 52px;
}

.h4f-ptm-section:first-child {
	margin-top: 0;
}

.h4f-ptm-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.h4f-ptm-section__head h2,
.h4f-ptm-about h2 {
	margin: 7px 0 0;
	color: #fff;
	font-size: clamp(21px, 2.1vw, 30px);
	font-weight: 760;
	line-height: 1.05;
	letter-spacing: -.035em;
}

.h4f-ptm-section__intro {
	margin: -7px 0 18px;
	color: var(--h4f-ptm-muted);
	font-size: 12px;
	line-height: 1.6;
}

.h4f-ptm-section__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	color: var(--h4f-ptm-gold);
	font-size: 11px;
	font-weight: 800;
	text-decoration: none !important;
}

.h4f-ptm-section__all:hover {
	color: #fff;
}

.h4f-ptm-spotlight {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .9fr));
	gap: 15px;
}

.h4f-ptm-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 15px;
	background: var(--h4f-ptm-panel);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .13);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.h4f-ptm-card:hover {
	z-index: 1;
	border-color: rgba(255, 196, 107, .58);
	box-shadow: 0 18px 34px rgba(0, 0, 0, .32);
	transform: translateY(-4px);
}

.h4f-ptm-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	color: inherit;
	background: linear-gradient(135deg, #54373d, #170f16);
	text-decoration: none !important;
}

.h4f-ptm-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.h4f-ptm-card:hover .h4f-ptm-card__cover img {
	transform: scale(1.055);
}

.h4f-ptm-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 10, 15, .05), rgba(16, 10, 15, .06) 42%, rgba(16, 10, 15, .93));
	pointer-events: none;
}

.h4f-ptm-card__fallback {
	display: grid;
	width: 100%;
	height: 100%;
	color: rgba(255, 255, 255, .86);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: .13em;
	place-items: center;
	background:
		radial-gradient(circle at 85% 15%, rgba(255, 196, 107, .44), transparent 35%),
		linear-gradient(135deg, #7a3a4d, #170f16 72%);
}

.h4f-ptm-card__rank,
.h4f-ptm-card__badge {
	position: absolute;
	z-index: 1;
	top: 10px;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.h4f-ptm-card__rank {
	left: 10px;
	padding: 8px 9px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 8px;
	color: #fff;
	background: rgba(24, 14, 20, .8);
	backdrop-filter: blur(10px);
}

.h4f-ptm-card__badge {
	right: 10px;
	padding: 7px 8px;
	border-radius: 7px;
	color: #42220f;
	background: var(--h4f-ptm-gold);
	font-size: 8px;
}

.h4f-ptm-card__body {
	padding: 12px 12px 13px;
}

.h4f-ptm-card__body h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.h4f-ptm-card__body h3 a {
	color: #fff;
	text-decoration: none !important;
}

.h4f-ptm-card__body h3 a:hover {
	color: var(--h4f-ptm-gold);
}

.h4f-ptm-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	margin-top: 9px;
	color: var(--h4f-ptm-muted);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
}

.h4f-ptm-card__meta > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.h4f-ptm-card__rating {
	display: inline-flex;
	min-width: 0;
}

.h4f-ptm-card__rating .post-total-rating,
.h4f-ptm-card__rating .rating,
.h4f-ptm-card__rating i {
	color: var(--h4f-ptm-gold) !important;
	font-size: 10px !important;
}

.h4f-ptm-card--featured .h4f-ptm-card__cover {
	aspect-ratio: 16 / 12;
}

.h4f-ptm-card--featured .h4f-ptm-card__cover img {
	object-position: center 24%;
}

.h4f-ptm-card--featured .h4f-ptm-card__body {
	padding: 15px 16px 16px;
}

.h4f-ptm-card--featured .h4f-ptm-card__body h3 {
	font-size: 19px;
}

.h4f-ptm-card--featured .h4f-ptm-card__rank {
	border-color: rgba(255, 196, 107, .75);
	color: #42220f;
	background: var(--h4f-ptm-gold);
}

.h4f-ptm-grid {
	display: grid;
	gap: 14px;
}

.h4f-ptm-grid--titles {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.h4f-ptm-grid--compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h4f-ptm-format-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px;
}

.h4f-ptm-format {
	min-width: 0;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(52, 31, 42, .63), rgba(20, 13, 20, .55));
}

.h4f-ptm-format .h4f-ptm-section__head {
	margin-bottom: 14px;
}

.h4f-ptm-format .h4f-ptm-section__head h2 {
	font-size: 20px;
}

.h4f-ptm-card--compact .h4f-ptm-card__body {
	padding: 10px;
}

.h4f-ptm-card--compact .h4f-ptm-card__body h3 {
	font-size: 12px;
}

.h4f-ptm-card--compact .h4f-ptm-card__badge {
	display: none;
}

.h4f-ptm-grid--terms {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.h4f-ptm-term {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 14px;
	color: #fff;
	background: rgba(43, 26, 35, .75);
	text-decoration: none !important;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.h4f-ptm-term:hover {
	border-color: rgba(255, 143, 112, .7);
	color: #fff;
	background: rgba(67, 35, 46, .95);
	transform: translateY(-3px);
}

.h4f-ptm-term__media {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #704055, #1c121a);
}

.h4f-ptm-term__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.h4f-ptm-term__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(16, 10, 15, .02), rgba(39, 23, 32, .76));
}

.h4f-ptm-term__content {
	display: grid;
	gap: 5px;
	min-width: 0;
	padding: 12px;
}

.h4f-ptm-term__eyebrow {
	color: var(--h4f-ptm-gold);
	font-size: 8px;
}

.h4f-ptm-term strong {
	overflow: hidden;
	color: #fff;
	font-size: 13px;
	font-weight: 760;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.h4f-ptm-term small {
	overflow: hidden;
	color: var(--h4f-ptm-muted);
	font-size: 9px;
	font-weight: 650;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.h4f-ptm-tag-cloud,
.h4f-ptm-genre-rail {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.h4f-ptm-term--compact {
	display: inline-grid;
	grid-template-columns: none;
	border-radius: 12px;
	background: rgba(44, 25, 34, .79);
}

.h4f-ptm-term--compact .h4f-ptm-term__content {
	gap: 4px;
	padding: 11px 13px;
}

.h4f-ptm-term--compact strong {
	font-size: 12px;
}

.h4f-ptm-term--compact small {
	font-size: 8px;
}

.h4f-ptm-section--tags {
	padding: 25px;
	border: 1px solid rgba(255, 196, 107, .22);
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(255, 196, 107, .09), transparent 38%),
		rgba(35, 20, 29, .74);
}

.h4f-ptm-about {
	margin-top: 54px;
	padding: 28px;
	border: 1px solid rgba(255, 143, 112, .24);
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(255, 143, 112, .11), transparent 54%),
		linear-gradient(145deg, rgba(47, 26, 36, .88), rgba(21, 13, 20, .88));
}

.h4f-ptm-about h2 {
	max-width: 760px;
}

.h4f-ptm-about p {
	max-width: 910px;
	margin: 13px 0 0;
	color: var(--h4f-ptm-muted);
	font-size: 14px;
	line-height: 1.75;
}

@media (max-width: 1200px) {
	.h4f-ptm-grid--titles {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.h4f-ptm-grid--terms {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.h4f-ptm-hero .h4f-ptm-shell {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.h4f-ptm-hero__stats {
		max-width: 620px;
	}

	.h4f-ptm-spotlight {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.h4f-ptm-card--featured .h4f-ptm-card__cover {
		aspect-ratio: 4 / 5;
	}

	.h4f-ptm-card--featured .h4f-ptm-card__body h3 {
		font-size: 14px;
	}

	.h4f-ptm-grid--titles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.h4f-ptm {
		padding-bottom: 44px;
	}

	.h4f-ptm-shell {
		width: min(100% - 28px, 680px);
	}

	.h4f-ptm-hero {
		padding: 38px 0 32px;
	}

	.h4f-ptm-hero h1 {
		font-size: 38px;
	}

	.h4f-ptm-hero p {
		font-size: 13px;
		line-height: 1.6;
	}

	.h4f-ptm-hero__stats {
		padding: 10px;
		border-radius: 14px;
	}

	.h4f-ptm-hero__stats div {
		padding: 7px;
	}

	.h4f-ptm-hero__stats strong {
		font-size: 16px;
	}

	.h4f-ptm-hero__stats span {
		font-size: 7px;
	}

	.h4f-ptm-content {
		padding-top: 28px;
	}

	.h4f-ptm-section {
		margin-top: 37px;
	}

	.h4f-ptm-section__head {
		align-items: flex-end;
		margin-bottom: 14px;
	}

	.h4f-ptm-section__head h2,
	.h4f-ptm-about h2 {
		font-size: 22px;
	}

	.h4f-ptm-section__all {
		font-size: 10px;
	}

	.h4f-ptm-section__intro {
		margin-top: -4px;
		font-size: 11px;
	}

	.h4f-ptm-spotlight {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.h4f-ptm-card {
		border-radius: 11px;
	}

	.h4f-ptm-card__rank {
		top: 6px;
		left: 6px;
		padding: 6px 7px;
		font-size: 8px;
	}

	.h4f-ptm-card__badge {
		display: none;
	}

	.h4f-ptm-card__body,
	.h4f-ptm-card--featured .h4f-ptm-card__body {
		padding: 9px;
	}

	.h4f-ptm-card__body h3,
	.h4f-ptm-card--featured .h4f-ptm-card__body h3 {
		font-size: 11px;
	}

	.h4f-ptm-card__meta {
		display: block;
		margin-top: 6px;
		font-size: 8px;
	}

	.h4f-ptm-card__rating {
		margin-bottom: 3px;
	}

	.h4f-ptm-grid--titles,
	.h4f-ptm-grid--compact {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 9px;
	}

	.h4f-ptm-format-columns {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.h4f-ptm-format {
		padding: 14px;
		border-radius: 14px;
	}

	.h4f-ptm-grid--terms {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.h4f-ptm-term {
		grid-template-columns: 55px minmax(0, 1fr);
		border-radius: 11px;
	}

	.h4f-ptm-term__content {
		padding: 9px;
	}

	.h4f-ptm-term strong {
		font-size: 11px;
	}

	.h4f-ptm-term small {
		font-size: 8px;
	}

	.h4f-ptm-section--tags,
	.h4f-ptm-about {
		padding: 18px;
		border-radius: 15px;
	}

	.h4f-ptm-tag-cloud,
	.h4f-ptm-genre-rail {
		gap: 7px;
	}

	.h4f-ptm-term--compact .h4f-ptm-term__content {
		padding: 9px 10px;
	}

	.h4f-ptm-term--compact strong {
		font-size: 10px;
	}

	.h4f-ptm-term--compact small {
		font-size: 7px;
	}

	.h4f-ptm-about p {
		font-size: 13px;
		line-height: 1.65;
	}
}

@media (max-width: 390px) {
	.h4f-ptm-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.h4f-ptm-button {
		width: 100%;
	}

	.h4f-ptm-grid--titles,
	.h4f-ptm-grid--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.h4f-ptm-spotlight {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.h4f-ptm-spotlight .h4f-ptm-card--featured {
		grid-column: span 2;
	}

	.h4f-ptm-spotlight .h4f-ptm-card--featured .h4f-ptm-card__cover {
		aspect-ratio: 16 / 10;
	}

	.h4f-ptm-grid--terms {
		grid-template-columns: 1fr;
	}
}
