/* H4F Manga HUB 1.1.0 – premium discovery system. Fully scoped. */
.h4f-manga-hub-page,
body.h4f-premium-ui .h4f-manga-hub-page {
	--h4f-hub-bg: #090912;
	--h4f-hub-surface: rgba(19, 18, 34, .82);
	--h4f-hub-surface-strong: rgba(14, 13, 28, .94);
	--h4f-hub-border: rgba(210, 191, 255, .16);
	--h4f-hub-border-strong: rgba(177, 134, 255, .42);
	--h4f-hub-text: #f8f5ff;
	--h4f-hub-muted: rgba(224, 218, 241, .69);
	--h4f-hub-soft: rgba(220, 212, 239, .48);
	--h4f-hub-purple: #a473ff;
	--h4f-hub-cyan: #55dcff;
	position: relative;
	padding: clamp(30px, 4.5vw, 70px) 0 clamp(56px, 7vw, 112px);
	background:
		radial-gradient(circle at 18% 2%, rgba(157,108,255,.14), transparent 26%),
		radial-gradient(circle at 88% 8%, rgba(40,231,255,.08), transparent 24%),
		linear-gradient(180deg, rgba(8,8,17,.1), rgba(7,8,16,.56));
	color: var(--h4f-hub-muted);
}
.h4f-manga-hub-page *, .h4f-manga-hub-page *::before, .h4f-manga-hub-page *::after { box-sizing: border-box; }
.h4f-manga-hub-page .container { max-width: 1270px; }
.h4f-manga-hub-page a { text-decoration: none !important; }
.h4f-manga-hub-page h1, .h4f-manga-hub-page h2, .h4f-manga-hub-page h3 { color: var(--h4f-hub-text) !important; }

/* Shared headings */
.h4f-hub-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #dbcaff; font-size: 10px; font-weight: 900; letter-spacing: .125em; line-height: 1.2; text-transform: uppercase; }
.h4f-hub-kicker > span { color: var(--h4f-hub-cyan); font-size: 12px; }
.h4f-hub-kicker--muted { color: var(--h4f-hub-soft); }
.h4f-hub-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 18px; padding: 0 4px; }
.h4f-hub-section-heading h2 { margin: 0; font-size: clamp(28px, 3.7vw, 44px); font-weight: 950; letter-spacing: -.055em; line-height: .98; }
.h4f-hub-section-heading p { max-width: 455px; margin: 0; color: var(--h4f-hub-muted); font-size: 13px; line-height: 1.58; }
.h4f-hub-section-heading--compact { align-items: center; margin-bottom: 15px; }
.h4f-hub-text-link { display: inline-flex; align-items: center; gap: 8px; color: #cab1ff !important; font-size: 12px; font-weight: 850; white-space: nowrap; }
.h4f-hub-text-link:hover { color: #fff !important; }
.h4f-hub-text-link span { font-size: 17px; }

/* Hub hero */
.h4f-hub-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(290px, .62fr); gap: 30px; align-items: stretch; min-height: 360px; padding: clamp(28px, 4.6vw, 62px); overflow: hidden; border: 1px solid var(--h4f-hub-border-strong); border-radius: 31px; background: linear-gradient(132deg, rgba(19,15,39,.95), rgba(12,15,30,.94) 54%, rgba(8,20,37,.93)); box-shadow: 0 28px 76px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.075); }
.h4f-hub-hero__orb { position: absolute; border-radius: 50%; filter: blur(5px); pointer-events: none; }
.h4f-hub-hero__orb--one { width: 350px; height: 350px; left: -138px; bottom: -192px; background: rgba(255,79,216,.18); }
.h4f-hub-hero__orb--two { width: 300px; height: 300px; top: -175px; right: 17%; background: rgba(40,231,255,.13); }
.h4f-hub-hero__content { position: relative; z-index: 1; align-self: center; }
.h4f-hub-hero h1 { margin: 0; font-size: clamp(46px, 6.4vw, 78px); font-weight: 950; letter-spacing: -.07em; line-height: .91; }
.h4f-hub-hero p { max-width: 660px; margin: 20px 0 0; color: rgba(234,229,247,.79); font-size: clamp(15px, 1.45vw, 18px); line-height: 1.64; }
.h4f-hub-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.h4f-hub-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; color: #fbf9ff !important; font-size: 12px; font-weight: 850; letter-spacing: .01em; }
.h4f-hub-button--primary { border-color: rgba(169,121,255,.58); background: linear-gradient(135deg, rgba(157,108,255,.96), rgba(78,102,232,.92)); box-shadow: 0 14px 30px rgba(78,67,208,.31); }
.h4f-hub-button--soft { background: rgba(255,255,255,.07); }
.h4f-hub-button:hover { transform: translateY(-2px); color: #fff !important; box-shadow: 0 18px 36px rgba(0,0,0,.28); }
.h4f-hub-hero-feature { position: relative; z-index: 1; display: flex; min-height: 248px; overflow: hidden; align-items: end; border: 1px solid rgba(255,255,255,.12); border-radius: 21px; background: linear-gradient(145deg, rgba(157,108,255,.22), rgba(40,231,255,.08)); box-shadow: 0 18px 36px rgba(0,0,0,.22); color: inherit !important; }
.h4f-hub-hero-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.h4f-hub-hero-feature:hover img { transform: scale(1.05); }
.h4f-hub-hero-feature__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,14,.02), rgba(7,7,15,.94) 94%); }
.h4f-hub-hero-feature__copy { position: relative; z-index: 1; display: block; width: 100%; padding: 18px; }
.h4f-hub-hero-feature__eyebrow { display: block; margin-bottom: 8px; color: #cbb7ff; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.h4f-hub-hero-feature strong { display: -webkit-box; overflow: hidden; color: #fff; font-size: 21px; font-weight: 900; letter-spacing: -.035em; line-height: 1.08; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.h4f-hub-hero-feature small { display: block; margin-top: 8px; color: rgba(236,230,248,.69); font-size: 11px; font-weight: 750; }
.h4f-hub-hero__stats { position: relative; z-index: 1; display: grid; gap: 10px; align-self: center; }
.h4f-hub-stat { padding: 17px 18px; border: 1px solid rgba(255,255,255,.10); border-radius: 17px; background: rgba(7,7,18,.45); backdrop-filter: blur(12px); }
.h4f-hub-stat strong { display: block; color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.h4f-hub-stat span { display: block; margin-top: 5px; color: var(--h4f-hub-soft); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }

/* Home discovery paths */
.h4f-hub-paths, .h4f-hub-showcase, .h4f-hub-directory, .h4f-hub-fresh, .h4f-hub-featured, .h4f-hub-related { margin-top: clamp(30px, 4.2vw, 58px); }
.h4f-hub-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.h4f-hub-path-card { position: relative; display: flex; min-height: 286px; overflow: hidden; align-items: end; border: 1px solid rgba(255,255,255,.12); border-radius: 21px; background: linear-gradient(150deg, rgba(25,17,44,.94), rgba(10,16,31,.94)); color: inherit !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 14px 30px rgba(0,0,0,.20); }
.h4f-hub-path-card__media { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 2px; opacity: .78; }
.h4f-hub-path-card__media img { width: 100%; height: 100%; object-fit: cover; }
.h4f-hub-path-card__media img:first-child { grid-row: 1 / span 2; }
.h4f-hub-path-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,18,.1), rgba(8,9,17,.95) 88%); }
.h4f-hub-path-card__copy { position: relative; z-index: 1; display: block; width: 100%; padding: 18px; }
.h4f-hub-path-card__icon { display: inline-flex; width: 35px; height: 35px; align-items: center; justify-content: center; margin-bottom: 12px; border: 1px solid rgba(207,187,255,.38); border-radius: 11px; background: rgba(157,108,255,.20); color: #eee6ff; font-size: 16px; }
.h4f-hub-path-card__eyebrow { display: block; color: #c8b3ff; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.h4f-hub-path-card strong { display: block; margin-top: 5px; color: #fff; font-size: 27px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.h4f-hub-path-card small { display: block; min-height: 38px; margin-top: 9px; color: rgba(233,227,245,.69); font-size: 12px; line-height: 1.48; }
.h4f-hub-path-card__terms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.h4f-hub-path-card__terms em { padding: 5px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(7,7,15,.43); color: rgba(249,246,255,.84); font-size: 9px; font-style: normal; font-weight: 800; }
.h4f-hub-path-card:hover { transform: translateY(-4px); border-color: rgba(177,134,255,.55); box-shadow: 0 24px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(157,108,255,.14); color: inherit !important; }

/* Manga rails */
.h4f-hub-manga-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.h4f-hub-manga-card { display: block; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.10); border-radius: 15px; background: rgba(255,255,255,.04); color: inherit !important; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.h4f-hub-manga-card__cover { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 2.88; background: linear-gradient(145deg, rgba(157,108,255,.38), rgba(40,231,255,.12)); }
.h4f-hub-manga-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.h4f-hub-manga-card__rank { position: absolute; top: 8px; left: 8px; display: inline-flex; min-width: 26px; height: 26px; align-items: center; justify-content: center; padding: 0 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(9,8,20,.76); color: #fff; font-size: 10px; font-weight: 900; backdrop-filter: blur(8px); }
.h4f-hub-manga-card__body { display: block; min-height: 85px; padding: 10px; }
.h4f-hub-manga-card strong { display: -webkit-box; overflow: hidden; color: #f7f4ff; font-size: 12px; font-weight: 850; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.h4f-hub-manga-card small { display: block; overflow: hidden; margin-top: 7px; color: var(--h4f-hub-soft); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.h4f-hub-manga-card:hover { transform: translateY(-3px); border-color: rgba(174,131,255,.5); color: inherit !important; }
.h4f-hub-manga-card:hover img { transform: scale(1.055); }

/* Index directory */
.h4f-hub-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.h4f-hub-directory-card { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 19px; overflow: hidden; border: 1px solid rgba(255,255,255,.10); border-radius: 20px; background: linear-gradient(154deg, rgba(22,18,41,.90), rgba(12,14,28,.91)); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 29px rgba(0,0,0,.18); color: inherit !important; }
.h4f-hub-directory-card__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; transition: opacity .25s ease, transform .3s ease; }
.h4f-hub-directory-card__shade { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(19,15,37,.96), rgba(12,13,25,.9) 64%, rgba(10,15,29,.58)); }
.h4f-hub-directory-card::after { content: ""; position: absolute; right: -51px; bottom: -66px; width: 180px; height: 180px; border-radius: 50%; background: rgba(157,108,255,.13); transition: transform .25s ease, background .25s ease; }
.h4f-hub-directory-card--parodies::after, .h4f-hub-directory-card--characters::after { background: rgba(255,79,216,.12); }
.h4f-hub-directory-card--genres::after, .h4f-hub-directory-card--tags::after { background: rgba(40,231,255,.11); }
.h4f-hub-directory-card__icon, .h4f-hub-directory-card__copy, .h4f-hub-directory-card__meta { position: relative; z-index: 1; }
.h4f-hub-directory-card__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(199,177,255,.38); border-radius: 12px; background: rgba(157,108,255,.16); color: #e6d9ff; font-size: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.h4f-hub-directory-card__copy { display: block; margin-top: 21px; }
.h4f-hub-directory-card__eyebrow { display: block; margin-bottom: 7px; color: var(--h4f-hub-soft); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.h4f-hub-directory-card strong { display: block; color: #fff; font-size: 22px; font-weight: 900; letter-spacing: -.038em; line-height: 1.08; }
.h4f-hub-directory-card small { display: block; margin-top: 9px; color: var(--h4f-hub-muted); font-size: 12px; line-height: 1.5; }
.h4f-hub-directory-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; color: var(--h4f-hub-soft); font-size: 11px; font-weight: 800; }
.h4f-hub-directory-card__meta i { color: #9beaff; font-size: 18px; font-style: normal; transition: transform .2s ease; }
.h4f-hub-directory-card:hover { transform: translateY(-4px); border-color: rgba(176,136,255,.48); box-shadow: 0 22px 45px rgba(0,0,0,.32), 0 0 0 1px rgba(157,108,255,.12); color: inherit !important; }
.h4f-hub-directory-card:hover::after { transform: scale(1.17); background: rgba(157,108,255,.22); }
.h4f-hub-directory-card:hover .h4f-hub-directory-card__cover { opacity: .42; transform: scale(1.06); }
.h4f-hub-directory-card:hover .h4f-hub-directory-card__meta i { transform: translateX(4px); }

/* Index page breadcrumb & hero */
.h4f-hub-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--h4f-hub-soft); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.h4f-hub-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; color: #cab2ff !important; }
.h4f-hub-breadcrumb a:hover { color: #fff !important; }
.h4f-hub-index-hero, .h4f-hub-index-shell { border: 1px solid var(--h4f-hub-border); box-shadow: 0 20px 60px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.06); }
.h4f-hub-index-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(21px, 3vw, 35px); border-radius: 25px; background: linear-gradient(127deg, rgba(23,16,44,.94), rgba(10,15,29,.94)); }
.h4f-hub-index-hero__icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border: 1px solid rgba(191,161,255,.44); border-radius: 18px; background: linear-gradient(135deg, rgba(157,108,255,.36), rgba(40,231,255,.14)); color: #f3ebff; font-size: 28px; box-shadow: 0 12px 26px rgba(0,0,0,.20); }
.h4f-hub-index-hero h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); font-weight: 950; letter-spacing: -.06em; line-height: .96; }
.h4f-hub-index-hero p { max-width: 730px; margin: 12px 0 0; color: var(--h4f-hub-muted); font-size: 14px; line-height: 1.6; }
.h4f-hub-index-hero__count { min-width: 108px; padding: 14px; border: 1px solid rgba(255,255,255,.10); border-radius: 15px; background: rgba(255,255,255,.045); text-align: center; }
.h4f-hub-index-hero__count strong { display: block; color: #fff; font-size: 27px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.h4f-hub-index-hero__count span { display: block; margin-top: 5px; color: var(--h4f-hub-soft); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

/* Featured term cards */
.h4f-hub-feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.h4f-hub-feature-card { position: relative; display: flex; min-width: 0; min-height: 205px; overflow: hidden; align-items: end; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: linear-gradient(145deg, rgba(22,17,42,.92), rgba(10,14,27,.94)); color: inherit !important; box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.h4f-hub-feature-card__mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr 1fr; gap: 2px; opacity: .78; }
.h4f-hub-feature-card__mosaic img { width: 100%; height: 100%; object-fit: cover; }
.h4f-hub-feature-card__mosaic img:first-child { grid-row: 1 / span 2; }
.h4f-hub-feature-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,14,.04), rgba(8,8,18,.97) 91%); }
.h4f-hub-feature-card__content { position: relative; z-index: 1; display: block; width: 100%; padding: 13px; }
.h4f-hub-feature-card__rank { display: inline-flex; min-width: 25px; height: 25px; align-items: center; justify-content: center; margin-bottom: 23px; padding: 0 7px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; background: rgba(9,8,19,.7); color: #fff; font-size: 10px; font-weight: 900; }
.h4f-hub-feature-card strong { display: -webkit-box; overflow: hidden; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: -.02em; line-height: 1.12; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.h4f-hub-feature-card small { display: block; margin-top: 6px; color: rgba(234,228,246,.65); font-size: 10px; font-weight: 750; }
.h4f-hub-feature-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; color: #a7eaff; font-size: 10px; font-weight: 850; }
.h4f-hub-feature-card__cta i { font-size: 14px; font-style: normal; transition: transform .2s ease; }
.h4f-hub-feature-card:hover { transform: translateY(-3px); border-color: rgba(176,136,255,.52); color: inherit !important; box-shadow: 0 20px 38px rgba(0,0,0,.32); }
.h4f-hub-feature-card:hover .h4f-hub-feature-card__cta i { transform: translateX(3px); }

/* Search and all index terms */
.h4f-hub-index-shell { margin-top: 22px; padding: clamp(17px, 2.7vw, 29px); border-radius: 22px; background: linear-gradient(180deg, rgba(20,17,34,.80), rgba(10,12,23,.84)); }
.h4f-hub-index-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.h4f-hub-search { display: flex; flex: 1 1 auto; align-items: center; max-width: 650px; min-height: 48px; padding: 4px 6px 4px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(5,6,15,.46); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.h4f-hub-search:focus-within { border-color: rgba(105,222,255,.58); box-shadow: 0 0 0 4px rgba(40,231,255,.08), inset 0 1px 0 rgba(255,255,255,.05); }
.h4f-hub-search__icon { margin-right: 9px; color: #a07dff; font-size: 22px; line-height: 1; }
.h4f-hub-search input { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff !important; font-size: 13px; font-weight: 650; }
.h4f-hub-search input::placeholder { color: rgba(221,215,239,.48); }
.h4f-hub-search button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255,255,255,.07); color: #e9e1ff; font-size: 20px; line-height: 1; cursor: pointer; }
.h4f-hub-index-toolbar__summary { flex: 0 0 auto; margin: 0; color: var(--h4f-hub-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.h4f-hub-index-toolbar__summary span { color: #bfa7ff; }
.h4f-hub-filter-rail { display: flex; gap: 7px; margin: 20px -2px 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.h4f-hub-filter-rail::-webkit-scrollbar { display: none; }
.h4f-hub-filter-chip { flex: 0 0 auto; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.045); color: rgba(233,228,247,.66); font-size: 11px; font-weight: 850; cursor: pointer; }
.h4f-hub-filter-chip:hover { border-color: rgba(176,136,255,.45); background: rgba(157,108,255,.14); color: #fff; }
.h4f-hub-filter-chip.is-active { border-color: rgba(109,226,255,.48); background: linear-gradient(135deg, rgba(157,108,255,.31), rgba(40,231,255,.14)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.h4f-hub-index-results { margin-top: 25px; }
.h4f-hub-index-group { padding: 0 0 28px; }
.h4f-hub-index-group + .h4f-hub-index-group { padding-top: 25px; border-top: 1px solid rgba(255,255,255,.075); }
.h4f-hub-index-group__header { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.h4f-hub-index-group__header h2 { display: inline-flex; min-width: 35px; height: 35px; align-items: center; justify-content: center; margin: 0; padding: 0 10px; border: 1px solid rgba(186,152,255,.32); border-radius: 10px; background: rgba(157,108,255,.12); color: #e8deff !important; font-size: 16px; font-weight: 900; line-height: 1; }
.h4f-hub-index-group__header span { color: var(--h4f-hub-soft); font-size: 11px; font-weight: 800; }
.h4f-hub-term-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.h4f-hub-term-grid li { min-width: 0; }
.h4f-hub-term-grid a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; background: rgba(255,255,255,.035); color: rgba(238,234,249,.86) !important; font-size: 12px; font-weight: 720; }
.h4f-hub-term-grid a:hover { transform: translateY(-1px); border-color: rgba(169,126,255,.43); background: rgba(157,108,255,.14); color: #fff !important; }
.h4f-hub-term-grid a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h4f-hub-term-grid small { display: inline-flex; flex: 0 0 auto; min-width: 22px; height: 22px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.20); color: rgba(206,195,232,.63); font-size: 10px; font-weight: 850; }
.h4f-hub-empty-state { margin: 28px 0 0; padding: 30px 18px; border: 1px dashed rgba(178,143,255,.34); border-radius: 16px; background: rgba(157,108,255,.055); color: var(--h4f-hub-muted); text-align: center; font-size: 14px; }
.h4f-hub-empty-state strong { display: block; color: #fff; font-size: 16px; }
.h4f-hub-empty-state p { margin: 8px 0 0; }
.h4f-hub-admin-note { font-size: 12px; }
.h4f-hub-admin-note a { color: #bca1ff !important; }

/* Cross-index discovery */
.h4f-hub-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.h4f-hub-related-grid > a { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; background: rgba(255,255,255,.04); color: inherit !important; }
.h4f-hub-related-grid > a:hover { transform: translateY(-2px); border-color: rgba(176,136,255,.48); background: rgba(157,108,255,.11); color: inherit !important; }
.h4f-hub-related-grid__icon { display: inline-flex; width: 34px; height: 34px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid rgba(198,175,255,.35); border-radius: 10px; background: rgba(157,108,255,.15); color: #e9deff; font-size: 15px; }
.h4f-hub-related-grid > a > span:nth-child(2) { min-width: 0; }
.h4f-hub-related-grid strong { display: block; overflow: hidden; color: #fff; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.h4f-hub-related-grid small { display: block; overflow: hidden; margin-top: 4px; color: var(--h4f-hub-soft); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.h4f-hub-related-grid i { margin-left: auto; color: #a7eaff; font-size: 16px; font-style: normal; }

/* Fresh row */
.h4f-hub-fresh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.h4f-hub-fresh-card { position: relative; display: flex; min-height: 120px; overflow: hidden; align-items: end; border: 1px solid rgba(255,255,255,.10); border-radius: 15px; background: linear-gradient(145deg, rgba(22,17,42,.93), rgba(9,14,26,.95)); color: inherit !important; }
.h4f-hub-fresh-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .3s ease, opacity .3s ease; }
.h4f-hub-fresh-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,14,.05), rgba(7,7,16,.93)); }
.h4f-hub-fresh-card > span { position: relative; z-index: 1; display: block; width: 100%; padding: 12px; }
.h4f-hub-fresh-card strong { display: -webkit-box; overflow: hidden; color: #fff; font-size: 13px; font-weight: 850; line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.h4f-hub-fresh-card small { display: block; margin-top: 6px; color: rgba(234,228,246,.63); font-size: 10px; font-weight: 750; }
.h4f-hub-fresh-card:hover { transform: translateY(-2px); border-color: rgba(176,136,255,.48); color: inherit !important; }
.h4f-hub-fresh-card:hover img { opacity: .68; transform: scale(1.06); }

@media (max-width: 1100px) {
	.h4f-hub-manga-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.h4f-hub-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.h4f-hub-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h4f-hub-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h4f-hub-term-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.h4f-manga-hub-page { padding: 27px 0 57px; }
	.h4f-hub-section-heading, .h4f-hub-section-heading--compact { display: block; margin-bottom: 15px; padding: 0 1px; }
	.h4f-hub-section-heading h2 { font-size: 31px; }
	.h4f-hub-section-heading p { margin-top: 10px; font-size: 13px; }
	.h4f-hub-section-heading--compact .h4f-hub-text-link { margin-top: 12px; }
	.h4f-hub-hero { grid-template-columns: 1fr; gap: 21px; min-height: 0; padding: 25px 20px; border-radius: 23px; }
	.h4f-hub-hero h1 { font-size: 47px; }
	.h4f-hub-hero p { font-size: 14px; }
	.h4f-hub-hero-feature { min-height: 216px; }
	.h4f-hub-path-grid { grid-template-columns: 1fr; gap: 10px; }
	.h4f-hub-path-card { min-height: 220px; }
	.h4f-hub-path-card small { min-height: 0; }
	.h4f-hub-manga-rail { display: flex; gap: 10px; overflow-x: auto; margin-right: -12px; padding: 0 12px 5px 0; scrollbar-width: none; }
	.h4f-hub-manga-rail::-webkit-scrollbar { display: none; }
	.h4f-hub-manga-card { flex: 0 0 144px; }
	.h4f-hub-card-grid, .h4f-hub-fresh-grid { grid-template-columns: 1fr; gap: 10px; }
	.h4f-hub-directory-card { min-height: 202px; }
	.h4f-hub-index-hero { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 19px; border-radius: 19px; }
	.h4f-hub-index-hero__icon { width: 49px; height: 49px; border-radius: 14px; font-size: 22px; }
	.h4f-hub-index-hero h1 { font-size: 31px; }
	.h4f-hub-index-hero p { margin-top: 9px; font-size: 13px; }
	.h4f-hub-index-hero__count { display: flex; grid-column: 1 / -1; width: 100%; align-items: center; justify-content: space-between; padding: 10px 12px; text-align: left; }
	.h4f-hub-index-hero__count strong { font-size: 22px; }
	.h4f-hub-index-hero__count span { margin: 0; }
	.h4f-hub-feature-grid { display: flex; gap: 10px; overflow-x: auto; margin-right: -12px; padding: 0 12px 5px 0; scrollbar-width: none; }
	.h4f-hub-feature-grid::-webkit-scrollbar { display: none; }
	.h4f-hub-feature-card { flex: 0 0 165px; min-height: 195px; }
	.h4f-hub-index-shell { margin-top: 16px; padding: 15px; border-radius: 17px; }
	.h4f-hub-index-toolbar { align-items: stretch; flex-direction: column; gap: 9px; }
	.h4f-hub-search { max-width: none; min-height: 45px; }
	.h4f-hub-index-toolbar__summary { padding-left: 3px; }
	.h4f-hub-filter-rail { margin-top: 16px; }
	.h4f-hub-term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
	.h4f-hub-term-grid a { min-height: 40px; padding: 7px 8px 7px 10px; font-size: 11px; }
	.h4f-hub-index-group { padding-bottom: 22px; }
	.h4f-hub-index-group + .h4f-hub-index-group { padding-top: 21px; }
	.h4f-hub-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
	.h4f-hub-hero__actions { display: grid; grid-template-columns: 1fr; }
	.h4f-hub-term-grid { grid-template-columns: 1fr; }
}
