.h4f-reactions-shell,
.h4f-reactions-ranking {
	--h4f-rx-bg: #080812;
	--h4f-rx-panel: rgba(17, 16, 32, .94);
	--h4f-rx-panel-2: rgba(11, 13, 25, .98);
	--h4f-rx-card: rgba(255, 255, 255, .045);
	--h4f-rx-card-strong: rgba(255, 255, 255, .075);
	--h4f-rx-border: rgba(188, 164, 255, .18);
	--h4f-rx-border-strong: rgba(168, 131, 255, .38);
	--h4f-rx-text: #fbf9ff;
	--h4f-rx-muted: rgba(230, 224, 244, .72);
	--h4f-rx-soft: rgba(230, 224, 244, .46);
	--h4f-rx-purple: #9d6cff;
	--h4f-rx-cyan: #57dcff;
	--h4f-rx-pink: #ff68d2;
	--h4f-rx-green: #8dffc1;
}

.h4f-reactions-shell {
	position: relative;
	max-width: min(1280px, 100%);
	margin: 34px auto;
	padding: clamp(20px, 3vw, 30px);
	border-radius: 30px;
	border: 1px solid var(--h4f-rx-border-strong);
	background:
		radial-gradient(circle at top right, rgba(87, 220, 255, .10), transparent 26%),
		radial-gradient(circle at bottom left, rgba(255, 104, 210, .14), transparent 30%),
		linear-gradient(145deg, rgba(18, 16, 36, .98), rgba(8, 10, 20, .99));
	box-shadow: 0 28px 72px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255,255,255,.06);
	color: var(--h4f-rx-text);
	overflow: hidden;
}

.h4f-reactions-shell__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(290px, .9fr);
	gap: 18px;
	align-items: stretch;
	margin-bottom: 16px;
}

.h4f-reactions-shell__feature,
.h4f-reactions-shell__stats {
	border-radius: 24px;
	border: 1px solid rgba(255,255,255,.08);
	background: linear-gradient(155deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.h4f-reactions-shell__feature {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 16px;
	padding: 18px;
	align-items: center;
}

.h4f-reactions-shell__poster {
	height: 160px;
	border-radius: 20px;
	overflow: hidden;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.07);
}

.h4f-reactions-shell__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.h4f-reactions-shell__copy { min-width: 0; }

.h4f-reactions-shell__eyebrow {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 11px;
	border-radius: 999px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.09);
	color: #e4d6ff;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.h4f-reactions-shell h3,
.h4f-reactions-ranking h1 {
	margin: 12px 0 0;
	color: #fff !important;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 950;
	letter-spacing: -.055em;
	line-height: .95;
}

.h4f-reactions-shell p,
.h4f-reactions-ranking__hero p {
	margin: 12px 0 0;
	color: var(--h4f-rx-muted);
	font-size: 14px;
	line-height: 1.65;
}

.h4f-reactions-shell__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.h4f-reactions-shell__links a,
.h4f-reactions-ranking__quicklinks a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.10);
	background: rgba(255,255,255,.04);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 850;
	transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.h4f-reactions-shell__links a:hover,
.h4f-reactions-ranking__quicklinks a:hover,
.h4f-reactions-ranking__quicklinks a.is-active {
	transform: translateY(-1px);
	border-color: rgba(168,131,255,.48);
	background: rgba(157,108,255,.15);
}

.h4f-reactions-shell__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 12px;
}

.h4f-reactions-shell__stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
	padding: 16px 14px;
	border-radius: 18px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.09);
	color: var(--h4f-rx-text) !important;
	text-decoration: none !important;
}

.h4f-reactions-shell__stat strong {
	display: block;
	font-size: clamp(22px, 2vw, 32px);
	font-weight: 950;
	letter-spacing: -.05em;
	line-height: .98;
}

.h4f-reactions-shell__stat span {
	display: block;
	margin-top: 8px;
	color: var(--h4f-rx-soft);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.h4f-reactions-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.h4f-reaction-button {
	position: relative;
	display: block;
	min-height: 132px;
	padding: 16px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
	color: var(--h4f-rx-text);
	cursor: pointer;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
	text-align: left;
}

.h4f-reaction-button:hover {
	transform: translateY(-2px);
	border-color: rgba(166,121,255,.44);
	box-shadow: 0 16px 34px rgba(0,0,0,.22), 0 0 0 1px rgba(157,108,255,.10);
}

.h4f-reaction-button.is-active {
	border-color: rgba(87,220,255,.52);
	background: linear-gradient(135deg, rgba(157,108,255,.24), rgba(87,220,255,.14));
	box-shadow: 0 18px 36px rgba(0,0,0,.22), 0 0 0 1px rgba(87,220,255,.12);
}

.h4f-reaction-button__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.h4f-reaction-button__icon {
	display: inline-flex;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.11);
	font-size: 19px;
	font-weight: 900;
}

.h4f-reaction-button__count {
	display: inline-flex;
	min-width: 44px;
	height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0 11px;
	border-radius: 999px;
	background: rgba(10, 10, 18, .68);
	border: 1px solid rgba(255,255,255,.10);
	font-size: 12px;
	font-weight: 900;
	color: #fff;
}

.h4f-reaction-button__text {
	display: block;
	margin-top: 18px;
}

.h4f-reaction-button__text strong {
	display: block;
	font-size: 19px;
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -.03em;
	color: #fff;
}

.h4f-reaction-button__text small {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.55;
	font-weight: 700;
	color: var(--h4f-rx-muted);
}

.h4f-reactions-feedback {
	min-height: 22px;
	margin-top: 12px;
	color: #d8fbff;
	font-size: 12px;
	font-weight: 800;
}
.h4f-reactions-feedback[data-state="error"] { color: #ffc6c6; }
.h4f-reactions-feedback[data-state="muted"] { color: var(--h4f-rx-soft); }

.h4f-reactions-related {
	margin-top: 16px;
	padding: 16px;
	border-radius: 22px;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(255,255,255,.03);
}

.h4f-reactions-related__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.h4f-reactions-related__head h4 {
	margin: 0;
	color: #fff !important;
	font-size: 19px;
	font-weight: 900;
	letter-spacing: -.03em;
}

.h4f-reactions-related__head a {
	color: #dccbff !important;
	font-size: 12px;
	font-weight: 850;
	text-decoration: none !important;
}

.h4f-reactions-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.h4f-reactions-related-card,
.h4f-reactions-ranking-card {
	display: block;
	overflow: hidden;
	border-radius: 20px;
	border: 1px solid rgba(255,255,255,.09);
	background: rgba(255,255,255,.04);
	color: inherit !important;
	text-decoration: none !important;
}

.h4f-reactions-related-card img,
.h4f-reactions-ranking-card__visual img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 2.8;
	object-fit: cover;
}

.h4f-reactions-related-card span { display: block; padding: 10px; }
.h4f-reactions-related-card strong { display: block; color: #fff; font-size: 12px; font-weight: 850; line-height: 1.35; }
.h4f-reactions-related-card small { display: block; margin-top: 6px; color: var(--h4f-rx-soft); font-size: 10px; font-weight: 700; }

.h4f-reactions-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	padding: 12px 15px;
	border-radius: 12px;
	background: rgba(8, 10, 18, .94);
	border: 1px solid rgba(255,255,255,.12);
	box-shadow: 0 18px 48px rgba(0,0,0,.34);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	transform: translate(-50%, 16px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
}
.h4f-reactions-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.h4f-reactions-toast[data-state="error"] { color: #ffd8d8; }
.h4f-reactions-toast[data-state="muted"] { color: #d5d1e6; }

body.h4f-reactions-mounted .h4f-my-library-single-action { display: none !important; }

/* Card badges sitewide */
.h4f-reaction-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.h4f-reaction-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 9px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(12,14,24,.72);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .02em;
}

.h4f-reaction-card-badge strong { font-size: 10px; font-weight: 900; color: #fff; }
.h4f-reaction-card-badge small { font-size: 10px; font-weight: 800; color: var(--h4f-rx-soft); }
.h4f-reaction-card-badge--rising { border-color: rgba(87,220,255,.34); }
.h4f-reaction-card-badge--gem { border-color: rgba(255,104,210,.35); }
.h4f-reaction-card-badge--save { border-color: rgba(157,108,255,.35); }
.h4f-reaction-card-badge--like { border-color: rgba(255,255,255,.18); }
.h4f-reaction-card-badge--fire { border-color: rgba(255,177,102,.34); }

/* Rankings */
.h4f-reactions-ranking {
	max-width: min(1280px, 100%);
	margin: 22px auto;
}

.h4f-reactions-ranking__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: end;
	padding: clamp(22px, 3.8vw, 34px);
	border-radius: 28px;
	border: 1px solid var(--h4f-rx-border-strong);
	background: linear-gradient(145deg, rgba(20, 16, 38, .97), rgba(9, 12, 23, .98));
	box-shadow: 0 24px 56px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
}

.h4f-reactions-ranking__quicklinks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.h4f-reactions-ranking__featured {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.h4f-reactions-ranking__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.h4f-reactions-ranking-card {
	position: relative;
}

.h4f-reactions-ranking-card__visual {
	position: relative;
	display: block;
}

.h4f-reactions-ranking-card__rank {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	min-width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	padding: 0 9px;
	border-radius: 999px;
	background: rgba(8,10,18,.84);
	border: 1px solid rgba(255,255,255,.13);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
}

.h4f-reactions-ranking-card__body {
	padding: 13px;
}

.h4f-reactions-ranking-card__body h3 { margin: 0; }
.h4f-reactions-ranking-card__body h3 a { color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 850; line-height: 1.35; }
.h4f-reactions-ranking-card__score { margin-top: 10px; color: #fff; font-size: 13px; font-weight: 900; }
.h4f-reactions-ranking-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.h4f-reactions-ranking-card__meta span {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.045);
	border: 1px solid rgba(255,255,255,.08);
	color: var(--h4f-rx-soft);
	font-size: 10px;
	font-weight: 800;
}

.h4f-reactions-ranking-card.is-featured .h4f-reactions-ranking-card__visual img {
	aspect-ratio: 16 / 10;
}

.h4f-reactions-ranking-card.is-featured .h4f-reactions-ranking-card__body h3 a {
	font-size: 18px;
	line-height: 1.25;
}

.h4f-reactions-ranking-card.is-hidden-by-preference { display: none; }

@media (max-width: 1200px) {
	.h4f-reactions-shell__hero,
	.h4f-reactions-ranking__hero { grid-template-columns: 1fr; }
	.h4f-reactions-shell__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.h4f-reactions-ranking__featured,
	.h4f-reactions-ranking__grid,
	.h4f-reactions-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.h4f-reactions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h4f-reactions-shell__feature { grid-template-columns: 88px minmax(0, 1fr); }
	.h4f-reactions-shell__poster { height: 132px; }
}

@media (max-width: 767px) {
	.h4f-reactions-shell { padding: 18px; border-radius: 22px; margin: 22px auto; }
	.h4f-reactions-shell__feature { grid-template-columns: 1fr; }
	.h4f-reactions-shell__poster { display: none; }
	.h4f-reactions-shell__stats { grid-template-columns: 1fr; }
	.h4f-reactions-grid,
	.h4f-reactions-ranking__featured,
	.h4f-reactions-ranking__grid,
	.h4f-reactions-related__grid { grid-template-columns: 1fr; }
	.h4f-reactions-shell h3,
	.h4f-reactions-ranking h1 { font-size: 31px; }
	.h4f-reactions-shell p,
	.h4f-reactions-ranking__hero p { font-size: 13px; }
}
