/**
 * Hentai4Free — Trending This Week
 * Loaded only on the unique /trending-this-week/ page.
 */

body.h4f-trending-week-page {
	--h4f-ttw-bg: #0b0b14;
	--h4f-ttw-panel: rgba(24, 23, 42, .84);
	--h4f-ttw-panel-strong: #19182b;
	--h4f-ttw-line: rgba(166, 137, 255, .24);
	--h4f-ttw-text: #f8f6ff;
	--h4f-ttw-muted: #b9b4ca;
	--h4f-ttw-violet: #9d76ff;
	--h4f-ttw-cyan: #5eddf3;
	--h4f-ttw-warm: #f6ad4f;
	background: var(--h4f-ttw-bg);
}

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

.h4f-ttw {
	color: var(--h4f-ttw-text);
	background:
		radial-gradient(circle at 82% 0%, rgba(83, 221, 243, .14), transparent 28rem),
		radial-gradient(circle at 4% 13%, rgba(157, 118, 255, .16), transparent 30rem),
		var(--h4f-ttw-bg);
	padding-bottom: 68px;
}

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

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

.h4f-ttw-hero::after {
	content: "";
	position: absolute;
	inset: auto -7% -55% auto;
	width: 520px;
	height: 520px;
	border: 1px solid rgba(94, 221, 243, .15);
	border-radius: 50%;
	box-shadow: 0 0 0 42px rgba(157, 118, 255, .035), 0 0 0 84px rgba(94, 221, 243, .025);
	pointer-events: none;
}

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

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

.h4f-ttw-kicker span {
	display: inline-grid;
	place-items: center;
	width: 19px;
	height: 19px;
	border: 1px solid rgba(94, 221, 243, .55);
	border-radius: 6px;
	color: #fff;
	background: rgba(94, 221, 243, .11);
}

.h4f-ttw-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-ttw-hero p {
	max-width: 680px;
	margin: 0;
	color: var(--h4f-ttw-muted);
	font-size: 15px;
	line-height: 1.7;
}

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

.h4f-ttw-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-ttw-button:hover {
	transform: translateY(-2px);
}

.h4f-ttw-button--primary {
	color: #0a0b13;
	background: linear-gradient(115deg, var(--h4f-ttw-cyan), #9fc2ff);
}

.h4f-ttw-button--ghost {
	border-color: rgba(157, 118, 255, .5);
	color: #f6f4ff;
	background: rgba(157, 118, 255, .09);
}

.h4f-ttw-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 16px;
	border: 1px solid var(--h4f-ttw-line);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(29, 28, 51, .9), rgba(13, 13, 25, .84));
	box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

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

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

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

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

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

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

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

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

.h4f-ttw-section__head h2,
.h4f-ttw-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-ttw-section__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	color: var(--h4f-ttw-cyan);
	font-size: 11px;
	font-weight: 800;
	text-decoration: none !important;
}

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

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

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

.h4f-ttw-card:hover {
	z-index: 1;
	border-color: rgba(94, 221, 243, .54);
	box-shadow: 0 18px 34px rgba(0, 0, 0, .3);
	transform: translateY(-4px);
}

.h4f-ttw-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	color: inherit;
	background: linear-gradient(135deg, #2d2952, #12121f);
	text-decoration: none !important;
}

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

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

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

.h4f-ttw-card__fallback {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: rgba(255, 255, 255, .85);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: .13em;
	background:
		radial-gradient(circle at 85% 15%, rgba(94, 221, 243, .42), transparent 35%),
		linear-gradient(135deg, #4a347e, #12121f 72%);
}

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

.h4f-ttw-card__rank {
	left: 10px;
	padding: 8px 9px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 8px;
	color: #fff;
	background: rgba(13, 13, 23, .78);
	backdrop-filter: blur(10px);
}

.h4f-ttw-card__momentum {
	right: 10px;
	padding: 7px 8px;
	border-radius: 7px;
	color: #04161b;
	background: var(--h4f-ttw-cyan);
	font-size: 8px;
}

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

.h4f-ttw-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-ttw-card__body h3 a {
	color: #fff;
	text-decoration: none !important;
}

.h4f-ttw-card__body h3 a:hover {
	color: var(--h4f-ttw-cyan);
}

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

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

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

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

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

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

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

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

.h4f-ttw-card--featured .h4f-ttw-card__rank {
	border-color: rgba(246, 173, 79, .65);
	color: #19100a;
	background: var(--h4f-ttw-warm);
}

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

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

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

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

.h4f-ttw-format {
	min-width: 0;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(34, 31, 57, .62), rgba(13, 13, 24, .52));
}

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

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

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

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

.h4f-ttw-card--compact .h4f-ttw-card__momentum {
	display: none;
}

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

.h4f-ttw-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(28, 26, 47, .73);
	text-decoration: none !important;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.h4f-ttw-term:hover {
	border-color: rgba(157, 118, 255, .65);
	background: rgba(38, 35, 65, .93);
	color: #fff;
	transform: translateY(-3px);
}

.h4f-ttw-term__media {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #3e3170, #171724);
}

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

.h4f-ttw-term__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 11, 20, .02), rgba(20, 19, 36, .74));
}

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

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

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

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

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

.h4f-ttw-term--compact {
	display: inline-grid;
	grid-template-columns: none;
	border-radius: 12px;
	background: rgba(25, 23, 43, .77);
}

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

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

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

.h4f-ttw-section--tags {
	padding: 25px;
	border: 1px solid rgba(94, 221, 243, .18);
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(94, 221, 243, .07), transparent 35%),
		rgba(20, 19, 36, .7);
}

.h4f-ttw-about {
	margin-top: 54px;
	padding: 28px;
	border: 1px solid rgba(246, 173, 79, .22);
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(246, 173, 79, .11), transparent 54%),
		linear-gradient(145deg, rgba(30, 26, 39, .86), rgba(16, 15, 27, .85));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	.h4f-ttw-card__momentum {
		display: none;
	}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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