/* 华影剧汇 v2 — 深色影院主题 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

:root {
  --hxj-bg: #0a0c10;
  --hxj-bg2: #12161f;
  --hxj-surface: #181e2a;
  --hxj-surface2: #1f2736;
  --hxj-line: rgba(255, 255, 255, 0.08);
  --hxj-line2: rgba(255, 255, 255, 0.14);
  --hxj-text: #f1f5f9;
  --hxj-muted: #94a3b8;
  --hxj-gold: #e8a838;
  --hxj-gold-dim: rgba(232, 168, 56, 0.16);
  --hxj-coral: #d4624a;
  --hxj-teal: #2dd4bf;
  --hxj-radius: 16px;
  --hxj-radius-sm: 10px;
  --hxj-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  --hxj-glow: 0 0 0 1px rgba(232, 168, 56, 0.22), 0 12px 32px rgba(232, 168, 56, 0.12);
}

body.body-tpl-hxj {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a2235 0%, var(--hxj-bg) 55%);
  color: var(--hxj-text);
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

body.body-tpl-hxj .container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

body.nav-open {
  overflow: hidden;
}

#root,
.site-outlet {
  min-height: 100%;
}

.app-shell.tpl-hxj {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-outlet {
  flex: 1;
}

/* ── Header v3：单行居中导航 ── */
.hxj-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hxj-line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hxj-header__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--hxj-coral) 0%, var(--hxj-gold) 45%, var(--hxj-teal) 100%);
}

.hxj-header__shell {
  padding-bottom: 0;
}

.hxj-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  min-height: 64px;
}

.hxj-header__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.hxj-header__logo {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--hxj-surface2);
  border: 1px solid rgba(232, 168, 56, 0.35);
  display: grid;
  place-items: center;
  color: var(--hxj-gold);
  overflow: hidden;
}

.hxj-header__logo-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 200deg, var(--hxj-coral), var(--hxj-gold), var(--hxj-teal), var(--hxj-coral));
  opacity: 0.55;
  z-index: 0;
}

.hxj-header__logo svg {
  position: relative;
  z-index: 1;
}

.hxj-header__titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hxj-header__site {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hxj-text);
  white-space: nowrap;
}

.hxj-header__sub {
  font-size: 0.68rem;
  color: var(--hxj-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.hxj-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hxj-header__nav--desktop {
  padding: 0 8px;
}

.hxj-nav__a {
  position: relative;
  text-decoration: none;
  color: var(--hxj-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px 12px;
  white-space: nowrap;
  transition: color 0.2s;
}

.hxj-nav__a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hxj-gold), var(--hxj-teal));
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.hxj-nav__a:hover {
  color: var(--hxj-text);
}

.hxj-nav__a.is-active {
  color: var(--hxj-text);
}

.hxj-nav__a.is-active::after {
  transform: scaleX(1);
}

.hxj-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.hxj-header__search {
  width: 100%;
  max-width: 260px;
}

.hxj-header__search-field {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hxj-line);
  border-radius: 10px;
  padding: 0 6px 0 12px;
  transition: border-color 0.2s, background 0.2s;
}

.hxj-header__search-field:focus-within {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.06);
}

.hxj-header__search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--hxj-text);
  font-size: 0.84rem;
  padding: 9px 0;
  outline: none;
  min-width: 0;
}

.hxj-header__search-field input::placeholder {
  color: var(--hxj-muted);
}

.hxj-header__search-ico {
  color: var(--hxj-muted);
  flex-shrink: 0;
}

.hxj-header__search-submit {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hxj-teal), #14b8a6);
  color: #042f2e;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.hxj-header__search-submit:hover {
  opacity: 0.88;
}

.hxj-header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hxj-header__login,
.hxj-header__register {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.hxj-header__login {
  color: var(--hxj-muted);
}

.hxj-header__login:hover {
  color: var(--hxj-text);
}

.hxj-header__register {
  background: linear-gradient(135deg, var(--hxj-gold), #d4921a);
  color: #1a1208;
  font-weight: 700;
  padding-inline: 14px;
}

.hxj-header__register:hover {
  filter: brightness(1.06);
}

.hxj-header__menubtn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hxj-line);
  border-radius: 10px;
  background: var(--hxj-surface);
  cursor: pointer;
  padding: 8px;
}

.hxj-header__menubtn span {
  display: block;
  height: 2px;
  background: var(--hxj-text);
  border-radius: 2px;
}

.hxj-header__drawer {
  display: none;
}

/* 搜索页复用搜索框 */
.hxj-header__search-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--hxj-teal), #14b8a6);
  color: #042f2e;
  white-space: nowrap;
}

/* ── Hero ── */
.hxj-hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--hxj-line);
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(212, 98, 74, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(232, 168, 56, 0.1) 0%, transparent 55%);
}

.hxj-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hxj-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hxj-gold);
  margin-bottom: 12px;
}

.hxj-hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--hxj-gold);
  border-radius: 2px;
}

.hxj-hero__h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hxj-hero__lead {
  margin: 0 0 22px;
  color: var(--hxj-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 52ch;
}

.hxj-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hxj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.hxj-btn:hover {
  transform: translateY(-1px);
}

.hxj-btn--primary {
  background: linear-gradient(135deg, var(--hxj-gold), #c98a20);
  color: #0a0c10;
  box-shadow: var(--hxj-glow);
}

.hxj-btn--ghost {
  background: transparent;
  border-color: var(--hxj-line2);
  color: var(--hxj-text);
}

.hxj-btn--ghost:hover {
  border-color: rgba(232, 168, 56, 0.35);
  background: var(--hxj-gold-dim);
}

.hxj-hero__stats {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hxj-line);
}

.hxj-hero__stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--hxj-gold);
  font-weight: 800;
}

.hxj-hero__stat span {
  font-size: 0.75rem;
  color: var(--hxj-muted);
}

.hxj-spotlight {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius);
  overflow: hidden;
  box-shadow: var(--hxj-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hxj-spotlight:hover {
  border-color: rgba(232, 168, 56, 0.35);
  box-shadow: var(--hxj-glow);
}

.hxj-spotlight__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hxj-spotlight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hxj-spotlight__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--hxj-coral), #a83d2e);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.hxj-spotlight__body {
  padding: 16px 18px 18px;
}

.hxj-spotlight__label {
  font-size: 0.72rem;
  color: var(--hxj-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.hxj-spotlight__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.hxj-spotlight__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hxj-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Home sections ── */
.hxj-main {
  padding: 28px 0 48px;
}

.hxj-block {
  margin-bottom: 40px;
}

.hxj-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hxj-line);
}

.hxj-block__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hxj-block__head h2::before {
  content: '';
  width: 4px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--hxj-gold), var(--hxj-coral));
  border-radius: 4px;
}

.hxj-block__sub {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--hxj-muted);
  line-height: 1.5;
}

.hxj-link-more {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hxj-gold);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 56, 0.3);
  transition: background 0.2s;
}

.hxj-link-more:hover {
  background: var(--hxj-gold-dim);
}

/* Horizontal featured card */
.hxj-horiz-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hxj-horiz-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.hxj-horiz-card:hover {
  border-color: rgba(232, 168, 56, 0.3);
  transform: translateX(4px);
}

.hxj-horiz-card__media {
  position: relative;
  overflow: hidden;
}

.hxj-horiz-card__img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

.hxj-horiz-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}

.hxj-horiz-card:hover .hxj-horiz-card__overlay {
  opacity: 1;
}

.hxj-horiz-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--hxj-teal);
}

.hxj-horiz-card__body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hxj-horiz-card__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.hxj-horiz-card__desc {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--hxj-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hxj-horiz-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--hxj-muted);
}

.hxj-horiz-card__meta strong {
  color: var(--hxj-gold);
}

/* Rank cards */
.hxj-rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hxj-rank-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.hxj-rank-card:hover {
  border-color: rgba(232, 168, 56, 0.35);
  transform: translateY(-3px);
}

.hxj-rank-card__num {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hxj-gold), var(--hxj-coral));
  color: #0a0c10;
  font-size: 0.85rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.hxj-rank-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.hxj-rank-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hxj-rank-card__dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.hxj-rank-card__body {
  padding: 10px 12px 12px;
}

.hxj-rank-card__title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hxj-rank-card__stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--hxj-muted);
}

.hxj-rank-card__stats strong {
  color: var(--hxj-gold);
}

/* Latest strip cards */
.hxj-strip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hxj-strip-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 14px;
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.hxj-strip-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  background: var(--hxj-surface2);
}

.hxj-strip-card__thumb {
  width: 88px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}

.hxj-strip-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hxj-strip-card__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hxj-strip-card__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hxj-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hxj-strip-card__date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hxj-teal);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  white-space: nowrap;
}

.hxj-strip-card__new {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--hxj-coral);
  margin-right: 6px;
}

/* Poster grid (category) */
.hxj-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.hxj-poster-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.hxj-poster-card:hover {
  border-color: rgba(232, 168, 56, 0.3);
  transform: translateY(-2px);
}

.hxj-poster-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.hxj-poster-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hxj-poster-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

.hxj-poster-card:hover .hxj-poster-card__overlay {
  opacity: 1;
}

.hxj-poster-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--hxj-teal);
}

.hxj-poster-card__body {
  padding: 10px 12px;
}

.hxj-poster-card__title {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hxj-poster-card__meta {
  font-size: 0.72rem;
  color: var(--hxj-muted);
  display: flex;
  justify-content: space-between;
}

/* ── Footer ── */
.hxj-footer {
  margin-top: auto;
  background: var(--hxj-bg2);
  border-top: 1px solid var(--hxj-line);
  position: relative;
}

.hxj-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hxj-coral), var(--hxj-gold), var(--hxj-teal));
}

.hxj-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 36px 0 28px;
}

.hxj-footer__brand-name {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hxj-gold);
}

.hxj-footer__about {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hxj-muted);
  line-height: 1.7;
  max-width: 36ch;
}

.hxj-footer__col h3 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hxj-text);
}

.hxj-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hxj-footer__links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--hxj-muted);
  transition: color 0.2s;
}

.hxj-footer__links a:hover {
  color: var(--hxj-gold);
}

.hxj-footer__bottom {
  padding: 16px 0 24px;
  border-top: 1px solid var(--hxj-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--hxj-muted);
}

.hxj-footer__bottom a {
  color: var(--hxj-muted);
  text-decoration: none;
}

.hxj-footer__bottom a:hover {
  color: var(--hxj-gold);
}

.hxj-footer__biz {
  margin: 0;
  padding: 0 0 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--hxj-muted);
}

.hxj-footer__biz strong {
  color: var(--hxj-gold);
  font-weight: 700;
}

/* ── 底部 Telegram 浮动按钮 ── */
.ababseo-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #1d8fd0);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.38);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ababseo-float:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(42, 171, 238, 0.48);
}

.ababseo-float:focus-visible {
  outline: 2px solid var(--hxj-gold);
  outline-offset: 3px;
}

.ababseo-tg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.ababseo-text {
  white-space: nowrap;
  line-height: 1;
}

/* ── Category pages ── */
.hxj-catpage {
  padding-bottom: 48px;
}

.hxj-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--hxj-muted);
  padding: 18px 0 0;
}

.hxj-breadcrumb a {
  color: var(--hxj-muted);
  text-decoration: none;
}

.hxj-breadcrumb a:hover {
  color: var(--hxj-gold);
}

.hxj-breadcrumb__sep {
  opacity: 0.4;
}

.hxj-cat-banner {
  margin: 16px 0 24px;
  padding: 28px 28px 24px;
  border-radius: var(--hxj-radius);
  background:
    linear-gradient(135deg, rgba(232, 168, 56, 0.12) 0%, rgba(212, 98, 74, 0.08) 50%, transparent 100%),
    var(--hxj-surface);
  border: 1px solid var(--hxj-line);
}

.hxj-cat-banner.hxj-cat-banner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hxj-cat-banner__h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
}

.hxj-cat-banner__lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hxj-muted);
  line-height: 1.65;
  max-width: 60ch;
}

.hxj-sort-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hxj-sort-chips button {
  border: 1px solid var(--hxj-line);
  background: var(--hxj-bg2);
  color: var(--hxj-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.hxj-sort-chips button:hover {
  color: var(--hxj-text);
  border-color: var(--hxj-line2);
}

.hxj-sort-chips button.is-active {
  background: var(--hxj-gold-dim);
  border-color: rgba(232, 168, 56, 0.45);
  color: var(--hxj-gold);
}

.hxj-catpage__meta {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: var(--hxj-muted);
}

.hxj-catpage__empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--hxj-muted);
  background: var(--hxj-surface);
  border-radius: var(--hxj-radius-sm);
  border: 1px dashed var(--hxj-line);
}

.hxj-catpage__more {
  text-align: center;
  margin-top: 28px;
}

.hxj-catpage__more button {
  border: 1px solid rgba(232, 168, 56, 0.35);
  background: var(--hxj-gold-dim);
  color: var(--hxj-gold);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.hxj-catpage__more button:hover {
  background: rgba(232, 168, 56, 0.28);
}

/* Category hub bento */
.hxj-cat-bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hxj-cat-bento__tile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 20px 20px 18px;
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius);
  border-left: 4px solid var(--hxj-gold);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.hxj-cat-bento__tile:hover {
  background: var(--hxj-surface2);
  transform: translateY(-2px);
  border-left-color: var(--hxj-coral);
}

.hxj-cat-bento__tile--hot {
  border-left-color: var(--hxj-coral);
}

.hxj-cat-bento__tile--new {
  border-left-color: var(--hxj-teal);
}

.hxj-cat-bento__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hxj-gold-dim);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hxj-cat-bento__name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hxj-cat-bento__desc {
  display: block;
  font-size: 0.8rem;
  color: var(--hxj-muted);
  line-height: 1.55;
}

.hxj-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hxj-genre-pills__a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hxj-line);
  color: var(--hxj-muted);
  transition: all 0.2s;
}

.hxj-genre-pills__a:hover {
  color: var(--hxj-text);
  border-color: var(--hxj-line2);
}

.hxj-genre-pills__a.is-active {
  background: var(--hxj-gold-dim);
  border-color: rgba(232, 168, 56, 0.4);
  color: var(--hxj-gold);
}

/* ── Misc ── */
.player-error {
  margin: 0;
  padding: 14px 18px;
  background: rgba(212, 98, 74, 0.15);
  color: #f0a090;
  font-size: 14px;
  font-weight: 700;
}

/* ── Play / Detail / Search / Info ── */
.hxj-play-page {
  padding-bottom: 40px;
}

.hxj-play-player {
  margin: 16px 0 20px;
}

.hxj-play-player__frame {
  border-radius: var(--hxj-radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hxj-line);
  box-shadow: var(--hxj-shadow);
}

.hxj-play-player__video {
  width: 100%;
  max-height: min(72vh, 720px);
  background: #000;
  vertical-align: top;
}

.hxj-play-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hxj-line);
}

.hxj-play-head__h1 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 900;
  line-height: 1.35;
}

.hxj-play-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.82rem;
  color: var(--hxj-muted);
  margin-bottom: 10px;
}

.hxj-play-head__score {
  color: var(--hxj-gold);
  font-weight: 800;
}

.hxj-play-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hxj-play-head__tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hxj-surface2);
  border: 1px solid var(--hxj-line);
  color: var(--hxj-muted);
}

.hxj-play-head__cat {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hxj-muted);
}

.hxj-play-head__cat a {
  color: var(--hxj-gold);
  text-decoration: none;
}

.hxj-play-block {
  margin-bottom: 28px;
}

.hxj-play-block__h {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.hxj-play-block__p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hxj-muted);
  line-height: 1.75;
}

.hxj-detail-page {
  padding-bottom: 40px;
}

.hxj-detail-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin: 16px 0 32px;
  padding: 20px;
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius);
}

.hxj-detail-hero__media {
  position: relative;
}

.hxj-detail-hero__poster {
  width: 100%;
  border-radius: var(--hxj-radius-sm);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hxj-detail-hero__badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hxj-detail-hero__badges span {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--hxj-surface2);
  border: 1px solid var(--hxj-line);
  color: var(--hxj-muted);
}

.hxj-detail-hero__h1 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.3;
}

.hxj-detail-hero__kw {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--hxj-teal);
}

.hxj-detail-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hxj-detail-hero__stats span {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--hxj-bg2);
  border: 1px solid var(--hxj-line);
  color: var(--hxj-muted);
}

.hxj-detail-hero__desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--hxj-muted);
  line-height: 1.75;
}

.hxj-detail-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hxj-search-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  max-width: 520px;
}

.hxj-search-form .hxj-header__search-field {
  flex: 1;
}

.hxj-info-card {
  background: var(--hxj-surface);
  border: 1px solid var(--hxj-line);
  border-radius: var(--hxj-radius);
  padding: 24px;
  line-height: 1.75;
  color: var(--hxj-muted);
}

.hxj-info-card h2 {
  margin: 20px 0 8px;
  font-size: 1rem;
  color: var(--hxj-text);
}

.hxj-info-card h2:first-child {
  margin-top: 0;
}

.hxj-info-card p {
  margin: 0 0 12px;
}

.hxj-info-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.hxj-info-card li {
  margin-bottom: 8px;
}

.hxj-info-card__back {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid var(--hxj-line);
}

.hxj-catpage__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hxj-cat-banner__row {
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 721px) {
  .hxj-cat-banner__row {
    flex-direction: row;
    align-items: flex-start;
  }
}

.video-frame--nj-play .video-el,
.video-frame video {
  width: 100%;
  max-height: min(72vh, 720px);
  background: #000;
  border-radius: var(--hxj-radius-sm);
}

.app-bootstrap {
  display: grid;
  place-items: center;
  min-height: 70dvh;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse at center, #1a2235, var(--hxj-bg));
  color: var(--hxj-text);
}

.app-bootstrap__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--hxj-gold);
  animation: appBootstrapSpin 0.9s linear infinite;
  margin: 0 auto 14px;
}

.app-bootstrap__msg {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hxj-muted);
}

@keyframes appBootstrapSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hxj-header__bar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .hxj-header__nav--desktop,
  .hxj-header__search--desktop,
  .hxj-header__auth--desktop {
    display: none;
  }

  .hxj-header__menubtn {
    display: flex;
  }

  .hxj-header__drawer {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
  }

  .hxj-header__drawer.is-open {
    max-height: 520px;
    padding-bottom: 16px;
    border-top-color: var(--hxj-line);
  }

  .hxj-header__drawer .hxj-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0 8px;
  }

  .hxj-header__drawer .hxj-nav__a {
    padding: 12px 4px;
    border-radius: 8px;
  }

  .hxj-header__drawer .hxj-nav__a::after {
    left: 4px;
    right: auto;
    width: 28px;
  }

  .hxj-header__drawer .hxj-nav__a.is-active {
    background: rgba(255, 255, 255, 0.04);
  }

  .hxj-header__drawer .hxj-header__search {
    max-width: none;
    margin-bottom: 10px;
  }

  .hxj-header__drawer .hxj-header__auth {
    display: flex;
    padding-top: 4px;
  }
}

@media (max-width: 960px) {
  .hxj-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .hxj-hero {
    padding: 24px 0 20px;
  }

  .hxj-hero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hxj-hero__stats {
    gap: 14px;
    flex-wrap: wrap;
  }

  .hxj-hero__spotlight-wrap {
    order: -1;
  }

  .hxj-block__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hxj-rank-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hxj-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hxj-detail-hero {
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 16px;
  }

  .hxj-play-player__video {
    max-height: 56vh;
  }
}

@media (max-width: 640px) {
  body.body-tpl-hxj .container {
    width: min(100% - 24px, 1200px);
  }

  .hxj-horiz-card {
    grid-template-columns: 110px 1fr;
  }

  .hxj-horiz-card__title {
    font-size: 0.9rem;
  }

  .hxj-horiz-card__meta {
    gap: 8px;
    font-size: 0.72rem;
  }

  .hxj-cat-bento {
    grid-template-columns: 1fr;
  }

  .hxj-cat-banner {
    padding: 20px 18px;
  }

  .hxj-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hxj-strip-card {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  .hxj-strip-card__date {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
    font-size: 0.68rem;
  }

  .hxj-poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hxj-detail-hero {
    grid-template-columns: 1fr;
  }

  .hxj-detail-hero__media {
    max-width: 200px;
    margin: 0 auto;
  }

  .hxj-search-form {
    flex-direction: column;
  }

  .hxj-search-form .hxj-header__search-btn {
    width: 100%;
    min-height: 44px;
  }

  .hxj-header__search-btn,
  .hxj-btn,
  .hxj-sort-chips button {
    min-height: 44px;
  }

  .hxj-play-player__video {
    max-height: 50vh;
  }

  .hxj-header__sub {
    max-width: 10rem;
  }

  .hxj-header__menubtn {
    min-width: 44px;
    min-height: 44px;
  }

  .hxj-header__drawer .hxj-nav__a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .ababseo-float {
    padding: 12px;
    border-radius: 50%;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }

  .ababseo-text {
    display: none;
  }
}
