/* Public catalogue theme. Loaded after the older page styles; private workspaces opt out. */
body.hongguo-mode:not(.admin-mode) {
  --hg-background: #131414;
  --hg-surface: #202121;
  --hg-text: #f5f5f5;
  --hg-muted: #9d9d9d;
  --hg-accent: #ff8c2c;
  --hg-accent-soft: #ffc08c;
  --hg-line: rgba(255, 255, 255, .09);
  --hg-container-width: calc(100% - 200px);
  --hg-container-max: 1720px;
  --hg-card-gap: 22.333333px;
  --hg-header-height: 64px;
  --pink: var(--hg-accent);
  --pink-soft: var(--hg-accent-soft);
  --text: var(--hg-text);
  --muted: var(--hg-muted);
  --line: var(--hg-line);
  margin: 0;
  min-width: 0;
  color: var(--hg-text);
  background-color: var(--hg-background);
  background-image: linear-gradient(180deg, rgba(112, 75, 48, .32), transparent 320px);
  background-repeat: no-repeat;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  scrollbar-width: none;
}

body.hongguo-mode:not(.admin-mode)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Only a public route opts the viewport scrollbar into the reference geometry. */
html:has(body.hongguo-mode:not(.admin-mode)) {
  scrollbar-width: none;
}

html:has(body.hongguo-mode:not(.admin-mode))::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.hongguo-mode:not(.admin-mode):has(main.hg-detail-page, main.hg-play-page, main.hg-rank-page) {
  background-image: none;
}

body.hongguo-mode:not(.admin-mode) :is(main.hongguo-category-route, main.hg-detail-page, main.hg-rank-page) {
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header, .topbar) {
  position: relative;
  top: auto;
  height: var(--hg-header-height);
  min-height: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header-inner, .topbar-inner) {
  display: flex;
  align-items: center;
  gap: 0;
  width: var(--hg-container-width);
  max-width: var(--hg-container-max);
  height: var(--hg-header-height);
  margin: 0 auto;
  padding: 0;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .topbar-inner > .brand) {
  position: static;
  display: inline-flex;
  align-items: center;
  flex: 0 0 110px;
  width: 110px;
  height: 32px;
  margin: 0 82px 0 0;
  padding: 0;
  gap: 8px;
  transform: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .hg-footer-brand) .brand-mark {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #ffb260, #ff8c2c 60%, #c65310);
  box-shadow: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .hg-footer-brand) .brand-copy b {
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 32px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .hg-footer-brand) .brand-copy small {
  display: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-primary-nav, .topbar-inner > .primary-nav) {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 40px;
  overflow: visible;
  scrollbar-width: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-primary-nav, .primary-nav)::-webkit-scrollbar {
  display: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-primary-nav, .primary-nav) > .nav-link {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  color: #e0dddd;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-primary-nav, .primary-nav) > .nav-link:is(.is-active, [aria-current="page"]) {
  color: var(--hg-accent);
  background: transparent;
  box-shadow: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-top-actions, .top-actions) {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: 24px;
  gap: 12px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) {
  display: flex;
  align-items: center;
  width: 280px;
  min-width: 0;
  height: 40px;
  padding: 0 14px 0 16px;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: #9b9693;
  background: rgba(255, 255, 255, .06);
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--hg-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) input::placeholder {
  color: #8c8580;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) kbd {
  display: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) .search-glyph {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  border-color: #b5aaa3;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) .search-glyph::after {
  background: #b5aaa3;
}

body.hongguo-mode:not(.admin-mode) .hg-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #b5aaa3;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-container, .hg-page-shell, .route-page > .page-shell, .home-page > .page-shell) {
  box-sizing: border-box;
  width: var(--hg-container-width);
  max-width: var(--hg-container-max);
  margin: 0 auto;
  padding: 24px 0 0;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-category-results {
  min-width: 0;
}

/* A ranking route is a list of real works and playable episode links. */
body.hongguo-mode:not(.admin-mode) .hg-rank-page {
  padding: 0;
  background: transparent;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-header {
  margin: 0 0 72px;
  padding: 6px 0 0;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-header h1 {
  margin: 0;
  color: #f5f5f5;
  font-size: 30px;
  font-weight: 500;
  line-height: 46px;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-header p {
  margin: 12px 0 0;
  color: #888889;
  font-size: 14px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-tabs {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0 0 40px;
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-tabs > a {
  flex: 0 0 auto;
  padding: 0;
  color: rgba(255, 255, 255, .4);
  font-size: 20px;
  line-height: 28px;
  white-space: nowrap;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-tabs > a[aria-current="page"] {
  color: #fff;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-row {
  display: flex;
  align-items: stretch;
  gap: 32px;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-cover {
  position: relative;
  display: block;
  flex: 0 0 158px;
  width: 158px;
  height: 216px;
  overflow: hidden;
  border-radius: 12px;
  background: #282828;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-position {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px 0 12px 0;
  color: #dedede;
  background: #454545;
  font-size: 16px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-position.is-top-three {
  color: #fff1d1;
  background: #9c772c;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-title > a {
  min-width: 0;
  max-width: 100%;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-title h2 {
  margin: 0;
  overflow: hidden;
  color: #f5f5f5;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-title > span {
  color: #8d8d8d;
  font-size: 12px;
  line-height: 20px;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-metrics > span {
  padding: 0 8px;
  border-radius: 4px;
  color: #d4ba7b;
  background: rgba(158, 120, 44, .14);
  font-size: 12px;
  line-height: 25px;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #a0a0a0;
  font-size: 14px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-summary {
  display: -webkit-box;
  max-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #919191;
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-episodes {
  display: flex;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin-top: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-episodes > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #dedede;
  background: #282929;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-episodes > .hg-rank-play {
  flex-basis: 168px;
  width: 168px;
  color: #ffd4b3;
  background: #443226;
}

body.hongguo-mode:not(.admin-mode) .hg-rank-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 40px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--hg-line);
}

body.hongguo-mode:not(.admin-mode) .hg-rank-secondary > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #b0a293;
  font-size: 14px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) .hg-catalog-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 48px 24px;
  gap: 14px;
  color: #a3a3a3;
  text-align: center;
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) .hg-catalog-state :is(h1, h2, h3, p) {
  margin: 0;
  max-width: 580px;
}

body.hongguo-mode:not(.admin-mode) .hg-catalog-state :is(h1, h2, h3) {
  color: #dfdfdf;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

body.hongguo-mode:not(.admin-mode) .hg-catalog-state.is-error {
  color: #d6b59a;
}

body.hongguo-mode:not(.admin-mode) .hg-catalog-state :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--hg-accent);
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-category-page, .library-catalog-page, .curated-column-page, .search-page, .rank-page, .topic-detail-page) {
  padding: 0;
  background: transparent;
  font-family: inherit;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-category-page, .library-catalog-page, .curated-column-page) > .page-shell {
  display: block;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-breadcrumb, .breadcrumbs, .play-breadcrumb) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 22px;
  height: auto;
  margin: 0 0 24px;
  color: #888889;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-breadcrumb, .breadcrumbs) a {
  color: #989898;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-type-tabs, .hg-category-types, .library-catalog-page .route-tabs) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-type-tabs, .hg-category-types, .library-catalog-page .route-tabs) > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, .4);
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  white-space: nowrap;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-type-tabs, .hg-category-types, .library-catalog-page .route-tabs) > :is(.is-current, .is-active, [aria-current="page"], [aria-selected="true"]) {
  color: #fff;
  background: transparent;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-genre-tabs, .hg-category-genres, .library-catalog-page .route-filters) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 0 40px;
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-genre-tabs, .hg-category-genres, .library-catalog-page .route-filters) > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, .4);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-genre-tabs, .hg-category-genres, .library-catalog-page .route-filters) > :is(.is-current, .is-active, .is-selected, [aria-current="page"], [aria-selected="true"]) {
  color: #fff;
  background: transparent;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-section-heading, .section-heading) {
  margin: 0 0 24px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-section-heading, .section-heading) h2 {
  margin: 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-category-page, .library-catalog-page, .curated-column-page) .route-head {
  margin: 0 0 24px;
  padding: 0;
  gap: 0;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-category-page, .library-catalog-page, .curated-column-page) .route-head h1 {
  margin: 0 0 16px;
  color: var(--hg-text);
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-category-page, .library-catalog-page, .curated-column-page) .route-head .section-kicker {
  display: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-grid, .hg-category-page .drama-grid, .library-catalog-page .drama-grid, .curated-column-page .drama-grid, .search-page .drama-grid, .rank-page .ranking-grid, .home-page .drama-grid, .topic-detail-page .topic-catalog-grid) {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px var(--hg-card-gap);
  width: 100%;
  margin: 0;
  padding: 0;
  min-width: 0;
  align-items: start;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card, .drama-card) {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-cover, .drama-card > .poster, .poster-art) {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 158 / 216;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background-color: #292929;
  background-image: var(--poster-art, none);
  background-position: center;
  background-size: cover;
  box-shadow: none;
  transform: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-cover, .drama-card > .poster)::before {
  content: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-image, .hg-card-cover > img, .poster-art > img) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.hongguo-mode:not(.admin-mode) .hg-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 24px;
  color: #918a83;
  background: linear-gradient(155deg, #3a322b, #242627 75%);
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) .hg-card-placeholder > [aria-hidden="true"] {
  margin-bottom: 8px;
  color: #a89788;
  font-size: 36px;
  line-height: 44px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-title, .drama-card .card-title) {
  display: block;
  height: auto;
  min-height: 0;
  margin: 12px 0 8px;
  padding: 0;
  overflow: hidden;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-copy, .drama-card .card-copy, .library-card-body, .ranking-card-body) {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-tags, .drama-card .card-meta, .library-card-tags, .ranking-card-tags) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-height: 25px;
  margin: 0;
  color: #8e8e8e;
  font-size: 12px;
  font-weight: 400;
  line-height: 25px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-tags, .library-card-tags, .ranking-card-tags) > :is(span, a) {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #8f8f8f;
  background: #242424;
  font-size: 12px;
  font-weight: 400;
  line-height: 25px;
  white-space: nowrap;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card-cover, .drama-card .poster) :is(.hg-card-episodes, .poster-duration, .episode-badge) {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  font-size: 12px;
  line-height: 20px;
}

body.hongguo-mode:not(.admin-mode) .hg-card-label {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 4px;
  color: #ead4c1;
  background: rgba(0, 0, 0, .6);
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.hongguo-mode:not(.admin-mode) .hg-card-rank {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  border-radius: 0 0 12px 0;
  color: #e2e2e2;
  background: rgba(0, 0, 0, .65);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

body.hongguo-mode:not(.admin-mode) .hg-card-rank.is-top-three {
  color: #fff;
  background: #aa632b;
}

body.hongguo-mode:not(.admin-mode) .hg-card-metric {
  display: block;
  margin: 8px 0 0;
  color: #858585;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-card, .drama-card):is(:hover, :focus-visible) :is(.hg-card-cover, .poster) {
  transform: none;
  box-shadow: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-pagination, .library-catalog-page .pagination, .curated-column-page .pagination, .search-page .pagination, .rank-page .pagination) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
  margin: 48px auto 0;
  padding: 0;
  gap: 12px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-pagination, .library-catalog-page .pagination, .curated-column-page .pagination, .search-page .pagination, .rank-page .pagination) > :is(a, button, .hg-page-number, .page-number, .pagination-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #a2a2a2;
  background: #252525;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-pagination, .pagination) > :is(.is-active, .current, .pagination-btn--active, [aria-current="page"]) {
  color: #191919;
  background: var(--hg-accent);
}

body.hongguo-mode:not(.admin-mode) :is(.hg-pagination, .pagination) > [aria-disabled="true"] {
  opacity: .45;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-footer, .site-footer) {
  margin: 0;
  padding: 0;
  border: 0;
  color: #737373;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-footer-inner, .site-footer > .footer-outer) {
  width: var(--hg-container-width);
  max-width: var(--hg-container-max);
  margin: 0 auto;
  padding: 40px 0 50px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-footer-lines, .hg-footer-links, .footer-links) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0 0 10px;
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-footer-lines, .hg-footer-links) :is(p, a) {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.hongguo-mode:not(.admin-mode) .hg-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}

body.hongguo-mode:not(.admin-mode) .hg-footer-brand .brand-copy b {
  color: #8c8c8c;
  font-size: 20px;
  line-height: 28px;
}

body.hongguo-mode:not(.admin-mode) .site-footer :is(.brand-mark, .brand-icon) {
  background: linear-gradient(140deg, #ffb260, #ff8c2c 60%, #c65310);
  box-shadow: none;
}

body.hongguo-mode:not(.admin-mode) .sw-update-notice {
  border-color: rgba(255, 140, 44, .33);
  color: #f5f5f5;
  background: #202121f2;
  font-family: inherit;
}

body.hongguo-mode:not(.admin-mode) .sw-update-notice button {
  border-color: rgba(255, 140, 44, .4);
  color: var(--hg-accent-soft);
  background: transparent;
  font-family: inherit;
}

body.hongguo-mode:not(.admin-mode) .sw-update-notice .sw-update-notice__refresh {
  border-color: var(--hg-accent);
  color: #fff;
  background: var(--hg-accent);
}

body.hongguo-mode:not(.admin-mode) .sw-update-notice button:focus-visible {
  outline: 2px solid var(--hg-accent-soft);
}

body.hongguo-mode:not(.admin-mode) :is(.hg-utility-menu, .hg-category-menu) {
  position: relative;
  flex: 0 0 auto;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-utility-menu, .hg-category-menu) > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  color: #e0dddd;
  font-size: 16px;
  line-height: 24px;
  list-style: none;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-utility-menu, .hg-category-menu) > summary::-webkit-details-marker {
  display: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-utility-menu, .hg-category-menu) > :is(.hg-utility-panel, .hg-utility-links, .hg-category-menu-panel) {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: 238px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  gap: 4px;
  border: 1px solid var(--hg-line);
  border-radius: 12px;
  background: #282421;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .32);
}

body.hongguo-mode:not(.admin-mode) :is(.hg-utility-menu, .hg-category-menu):not([open]) > :is(.hg-utility-panel, .hg-utility-links, .hg-category-menu-panel) {
  display: none;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-utility-menu, .hg-category-menu) :is(.hg-utility-panel, .hg-utility-links, .hg-category-menu-panel) > :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #ddd9d5;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-utility-menu, .hg-category-menu) :is(.hg-utility-panel, .hg-utility-links, .hg-category-menu-panel) > :is(a, button):hover {
  background: rgba(255, 255, 255, .055);
}

body.hongguo-mode:not(.admin-mode) :is(.route-empty, .source-note, .related-state) {
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) .route-empty {
  min-height: 230px;
  padding: 40px 24px;
  border-color: var(--hg-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

body.hongguo-mode:not(.admin-mode) :is(.route-empty, .catalog-empty, .hg-catalog-state, .empty-state) {
  font-family: inherit;
}

body.hongguo-mode:not(.admin-mode) :is(.route-empty, .catalog-empty, .hg-catalog-state, .empty-state) :is(h1, h2, h3, p, a, button) {
  font-family: inherit;
}

body.hongguo-mode:not(.admin-mode) :is(.route-empty, .catalog-empty, .empty-state) :is(h1, h2, h3) {
  color: #e0e0e0;
}

body.hongguo-mode:not(.admin-mode) :is(.route-empty-kicker, .catalog-empty-kicker) {
  color: #9d9d9d;
  font-family: inherit;
}

body.hongguo-mode:not(.admin-mode) .route-empty-link {
  border-color: rgba(255, 140, 44, .34);
  color: var(--hg-accent-soft);
  background: rgba(255, 140, 44, .07);
}

body.hongguo-mode:not(.admin-mode) .route-empty-link:hover {
  border-color: var(--hg-accent);
  color: #fff;
  background: rgba(255, 140, 44, .14);
}

body.hongguo-mode:not(.admin-mode) :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--hg-accent-soft);
  outline-offset: 4px;
}

/* Existing detail and player hooks retain their entitlement and playback behavior. */
body.hongguo-mode:not(.admin-mode) .drama-overview-page .detail-hero {
  border-color: var(--hg-line);
  background: var(--hg-surface);
}

body.hongguo-mode:not(.admin-mode) .drama-overview-page .detail-title {
  font-family: inherit;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-overview-heading > .section-kicker {
  display: none;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-overview-layout {
  display: block;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-summary, .detail-hero) {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 212px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-cover, .detail-cover) {
  flex: 0 0 152px;
  width: 152px;
  height: 212px;
  aspect-ratio: 152 / 212;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #282828;
  background-image: var(--poster-art, none);
  background-position: center;
  background-size: cover;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-cover, .detail-cover)::before,
body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-cover, .detail-cover)::after {
  display: none;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-hero-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-title {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-description {
  display: -webkit-box;
  max-height: 48px;
  margin: 0;
  color: #959595;
  font-size: 16px;
  line-height: 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-stats :is(.detail-metrics, .series-rating) {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 6px;
  border: 0;
  border-radius: 0;
  color: #b8ab94;
  background: transparent;
  font-size: 12px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-stats .series-rating :is(button, select) {
  width: auto;
  min-height: 25px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #d3c9bb;
  background: #292725;
  font-size: 12px;
  line-height: 25px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-tags > span {
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #a8a8a8;
  background: #282929;
  font-size: 12px;
  line-height: 25px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-tools {
  position: relative;
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-tools > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  color: #d2d2d2;
  background: #272727;
  font-size: 14px;
  line-height: 24px;
  list-style: none;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-tools > summary::-webkit-details-marker {
  display: none;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-tools > :not(summary) {
  max-width: calc(100vw - 32px);
}

body.hongguo-mode:not(.admin-mode) .hg-detail-tools-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-wrap: wrap;
  width: 420px;
  padding: 16px;
  gap: 12px;
  border: 1px solid var(--hg-line);
  border-radius: 12px;
  background: #252626;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
}

body.hongguo-mode:not(.admin-mode) .hg-detail-tools:not([open]) > :not(summary) {
  display: none;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.detail-actions, .detail-interactions, .detail-tags) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-actions .continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 46px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--hg-accent);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-actions :is(.button-glass, .follow-button) {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #d2d2d2;
  background: #272727;
  font-size: 14px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .episode-heading {
  margin: 24px 0 16px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-episodes, .detail-episodes) {
  display: grid;
  grid-template-columns: repeat(auto-fill, 56px);
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 12px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-episodes .episode-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  padding: 4px;
  gap: 1px;
  border: 0;
  border-radius: 12px;
  color: #bbb;
  background: #242626;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-episodes .episode-button small {
  width: 100%;
  overflow: hidden;
  color: #949494;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-episodes .episode-button.is-current {
  color: #fff;
  background: var(--hg-accent);
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-episodes .episode-button.is-current small {
  color: #fff;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .public-comments {
  margin: 40px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .public-comment-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .public-comment-item {
  min-height: 138px;
  padding: 18px 16px;
  border: 0;
  border-radius: 12px;
  background: #202222;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .public-comment-item-head {
  flex-wrap: wrap;
  gap: 6px 12px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .public-comment-item p {
  color: #a5a5a5;
  font-size: 14px;
  line-height: 22px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-related-sidebar {
  margin-top: 40px;
}

body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-related-sidebar .drama-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px var(--hg-card-gap);
}

body.hongguo-mode:not(.admin-mode) :is(.detail-related-sidebar, .play-related-sidebar) :is(.drama-card, .hg-card) .card-title {
  margin: 10px 0 6px;
  font-size: 16px;
  line-height: 24px;
}

body.hongguo-mode:not(.admin-mode) :is(.drama-overview-page, .drama-play-page) :is(.episode-button, .episode-offer-card, .public-comments) {
  border-color: var(--hg-line);
}

body.hongguo-mode:not(.admin-mode) .drama-play-page .play-mobile-nav {
  background: #1a1b1b;
}

body.hongguo-mode:not(.admin-mode) .hg-play-page {
  margin: 0;
  padding: 0;
  background: #000;
}

body.hongguo-mode:not(.admin-mode) .hg-play-page > .play-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  width: 100%;
  min-width: 0;
  height: calc(100dvh - var(--hg-header-height));
  min-height: 480px;
  margin: 0;
  padding: 0;
  gap: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage .video-stage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage .episode-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage > .play-breadcrumb {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  z-index: 5;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  color: #bababa;
  background: rgba(0, 0, 0, .55);
  font-size: 12px;
  line-height: 20px;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage > :is(.playback-status, .source-note, [data-detail-retry], .hg-play-stage-notices) {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 5;
  width: auto;
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  color: #cfcfcf;
  background: rgba(0, 0, 0, .68);
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage > :is(.playback-status, .hg-play-stage-notices) {
  bottom: 16px;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage > .source-note {
  bottom: 56px;
}

body.hongguo-mode:not(.admin-mode) .hg-player-stage > [data-detail-retry] {
  bottom: 96px;
  min-height: 44px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-stage-notices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-stage-notices > :is(p, button) {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel {
  width: 360px;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: #131414;
  scrollbar-color: #454545 transparent;
  scrollbar-width: thin;
}

body.hongguo-mode:not(.admin-mode) .hg-play-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 0 26px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-tabs > button {
  min-height: 28px;
  padding: 0;
  border: 0;
  color: #727272;
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) .hg-play-tabs > :is([aria-pressed="true"], [aria-selected="true"], .is-active) {
  color: #fff;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel :is(.hg-play-video-panel, .hg-play-comments-panel) {
  min-width: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-work-info {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-work-info::after {
  content: "";
  display: block;
  clear: both;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-work-info .detail-poster {
  position: relative;
  float: left;
  width: 84px;
  height: 118px;
  margin: 0 14px 14px 0;
  padding: 6px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #282828;
  background-image: var(--poster-art, none);
  background-position: center;
  background-size: cover;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-work-info .detail-poster > :is(b, span) {
  display: none;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-work-info > h2 {
  margin: 0 0 10px;
  color: #eee;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-work-info .detail-description {
  color: #838383;
  font-size: 12px;
  line-height: 20px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel :is(.play-info, .episode-offer-card, .episode-heading, .play-ep-grid) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-info {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-info > b {
  flex: 0 0 100%;
  font-size: 16px;
  line-height: 24px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-info > span {
  font-size: 12px;
  line-height: 20px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .episode-offer-card {
  margin-top: 16px;
  padding: 14px;
  border-color: var(--hg-line);
  border-radius: 10px;
  background: #202222;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .episode-heading {
  margin: 24px 0 16px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-ep-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-ep-grid .episode-button {
  width: 100%;
  height: 54px;
  min-height: 54px;
  min-width: 0;
  padding: 3px;
  border: 0;
  border-radius: 12px;
  color: #9a9a9a;
  background: #252626;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  overflow: hidden;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-ep-grid .episode-button small {
  display: block;
  overflow: hidden;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-ep-grid .episode-button.is-current {
  color: #fff;
  background: var(--hg-accent);
}

body.hongguo-mode:not(.admin-mode) :is(.hg-episode-groups, .hg-episode-pages) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-episode-groups, .hg-episode-pages) > button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  color: #838383;
  background: #232424;
  font-family: inherit;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
}

body.hongguo-mode:not(.admin-mode) :is(.hg-episode-groups, .hg-episode-pages) > :is(.is-active, [aria-pressed="true"], [aria-selected="true"]) {
  color: #fff;
  background: #3b2b20;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-related-sidebar {
  margin-top: 28px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-related-sidebar .drama-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
}

body.hongguo-mode:not(.admin-mode) .hg-play-panel .public-comments {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.hongguo-mode:not(.admin-mode) .home-page .hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100dvh - var(--hg-header-height));
  min-height: 520px;
  max-height: 960px;
  background-color: #131414;
}

body.hongguo-mode:not(.admin-mode) .home-page .hero-copy {
  position: relative;
  top: auto;
  left: auto;
  bottom: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--hg-container-width);
  max-width: var(--hg-container-max);
  margin: 0 auto;
  padding: 0;
  gap: 20px;
}

body.hongguo-mode:not(.admin-mode) .home-page .hero-copy h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}

body.hongguo-mode:not(.admin-mode) .home-page .hero-subtitle {
  max-width: 640px;
  margin: 0;
  color: #a3a3a3;
  font-size: 18px;
  line-height: 30px;
}

body.hongguo-mode:not(.admin-mode) .home-page .hero.is-empty .hero-scene {
  background: radial-gradient(ellipse at 70% 30%, #403024 0, #1c1d1d 45%, #131414 80%);
}

body.hongguo-mode:not(.admin-mode) .home-page .hero.is-empty .hero-vignette {
  background: linear-gradient(90deg, #131414 12%, transparent 95%);
}

body.hongguo-mode:not(.admin-mode) .home-page :is(.scene-grain, .scene-sun, .scene-horizon, .scene-cliff, .scene-person, .hero-scroll-cue, .heading-mark, .section-kicker, .rank-decoration, .editorial-art, .editorial-index) {
  display: none;
}

body.hongguo-mode:not(.admin-mode) .home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

body.hongguo-mode:not(.admin-mode) .home-page .button-primary {
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--hg-accent);
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
}

body.hongguo-mode:not(.admin-mode) .home-page :is(.content-section, .new-section, .topic-section) {
  padding: 40px 0 0;
}

body.hongguo-mode:not(.admin-mode) .home-page .editorial-banner {
  min-height: 0;
  margin: 40px 0 0;
  padding: 28px;
  border: 1px solid var(--hg-line);
  border-radius: 12px;
  background: #1c1d1d;
}

body.hongguo-mode:not(.admin-mode) .home-page .editorial-copy {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.hongguo-mode:not(.admin-mode) .home-page .editorial-copy h2 {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 24px;
  line-height: 34px;
}

body.hongguo-mode:not(.admin-mode) .home-page :is(.shortcut-card, .creator-callout, .rank-section) {
  border-color: var(--hg-line);
  background: #1c1d1d;
}

@media (min-width: 981px) {
  body.hongguo-mode:not(.admin-mode) .hg-category-types.is-genreless {
    margin-bottom: 36px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-category-genres:is([data-content-type="ai-drama"], [data-content-type="comic-drama"]) > a {
    min-height: 22px;
    line-height: 22px;
  }
}

@media (min-width: 1880px) {
  body.hongguo-mode:not(.admin-mode) {
    --hg-container-width: calc(100% - 640px);
  }
}

@media (min-width: 2352px) {
  body.hongguo-mode:not(.admin-mode) :is(.hg-card-grid, .hg-category-page .drama-grid, .library-catalog-page .drama-grid, .curated-column-page .drama-grid, .search-page .drama-grid, .rank-page .ranking-grid, .home-page .drama-grid, .topic-detail-page .topic-catalog-grid) {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .topbar-inner > .brand) {
    margin-right: 40px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-primary-nav, .primary-nav) {
    gap: 24px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) {
    width: 220px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.hongguo-mode:not(.admin-mode) {
    --hg-container-width: calc(100% - 48px);
    --hg-card-gap: 20px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-card-grid, .hg-category-page .drama-grid, .library-catalog-page .drama-grid, .curated-column-page .drama-grid, .search-page .drama-grid, .rank-page .ranking-grid, .home-page .drama-grid, .topic-detail-page .topic-catalog-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 30px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .topbar-inner > .brand) {
    margin-right: 24px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-primary-nav, .primary-nav) {
    gap: 20px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) {
    width: 190px;
  }
}

@media (max-width: 767px) {
  body.hongguo-mode:not(.admin-mode) {
    --hg-container-width: calc(100% - 32px);
    --hg-card-gap: 14px;
    --hg-header-height: 56px;
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    background-image: linear-gradient(180deg, rgba(112, 75, 48, .24), transparent 240px);
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-header-inner, .topbar-inner) {
    justify-content: space-between;
    gap: 8px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .topbar-inner > .brand) {
    display: inline-flex !important;
    position: static;
    flex: 0 1 110px;
    width: 110px;
    min-width: 0;
    height: 32px;
    margin: 0 auto 0 0;
    transform: none;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .topbar-inner > .brand) .brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-brand, .topbar-inner > .brand) .brand-copy b {
    font-size: 22px;
    line-height: 30px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-primary-nav, .topbar-inner > .primary-nav) {
    display: none !important;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-top-actions, .topbar-inner > .top-actions) {
    display: flex !important;
    flex: 0 0 auto;
    margin-left: 0;
    gap: 6px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box) {
    display: none;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-header-search, .topbar .search-box).is-open {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 0;
    display: flex;
    width: 100%;
    height: 40px;
    background: #302a26;
  }
  body.hongguo-mode:not(.admin-mode) :is(.mobile-menu, .mobile-search-trigger, .profile-button) {
    flex: 0 0 36px;
    width: 36px;
    height: 40px;
  }
  body.hongguo-mode:not(.admin-mode) .profile-button :is(.profile-name, .chevron) {
    display: none;
  }
  body.hongguo-mode:not(.admin-mode) .mobile-nav {
    top: var(--hg-header-height);
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100dvh - var(--hg-header-height));
    background: #24211f;
  }
  body.hongguo-mode:not(.admin-mode) .mobile-nav a.is-active {
    color: var(--hg-accent-soft);
    background: rgba(255, 139, 56, .12);
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-container, .hg-page-shell, .route-page > .page-shell, .home-page > .page-shell) {
    padding-top: 18px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-breadcrumb, .breadcrumbs) {
    min-height: 20px;
    margin-bottom: 20px;
    gap: 6px;
    font-size: 12px;
    line-height: 20px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-type-tabs, .hg-category-types, .library-catalog-page .route-tabs) {
    flex-wrap: nowrap;
    gap: 24px;
    max-width: 100%;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-type-tabs, .hg-category-types, .library-catalog-page .route-tabs) > :is(a, button) {
    min-height: 28px;
    font-size: 18px;
    line-height: 28px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-genre-tabs, .hg-category-genres, .library-catalog-page .route-filters) {
    flex-wrap: nowrap;
    gap: 22px;
    max-width: 100%;
    margin-bottom: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-genre-tabs, .hg-category-genres, .library-catalog-page .route-filters) > :is(a, button) {
    min-height: 32px;
    font-size: 14px;
    line-height: 22px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-genre-tabs, .hg-category-genres, .library-catalog-page .route-filters) > :is(.is-current, .is-active, .is-selected, [aria-current="page"], [aria-selected="true"]) {
    color: var(--hg-accent);
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-card-grid, .hg-category-page .drama-grid, .library-catalog-page .drama-grid, .curated-column-page .drama-grid, .search-page .drama-grid, .rank-page .ranking-grid, .home-page .drama-grid, .topic-detail-page .topic-catalog-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-card-cover, .drama-card > .poster, .poster-art) {
    border-radius: 10px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-card-title, .drama-card .card-title) {
    margin: 10px 0 6px;
    font-size: 15px;
    line-height: 24px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-card-tags, .library-card-tags, .ranking-card-tags) {
    gap: 4px 6px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-card-tags, .library-card-tags, .ranking-card-tags) > :is(span, a) {
    min-height: 22px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 22px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-pagination, .library-catalog-page .pagination, .curated-column-page .pagination, .search-page .pagination, .rank-page .pagination) {
    flex-wrap: wrap;
    margin-top: 32px;
    gap: 8px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-footer-inner, .site-footer > .footer-outer) {
    padding: 32px 0 36px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-footer-lines, .hg-footer-links, .footer-links) {
    gap: 6px 16px;
  }
  body.hongguo-mode:not(.admin-mode) :is(.hg-footer-lines, .hg-footer-links, .hg-footer-inner) {
    overflow-wrap: anywhere;
  }
  body.hongguo-mode:not(.admin-mode) .bottom-nav {
    border-color: var(--hg-line);
    background: #1c1d1d;
  }
  body.hongguo-mode:not(.admin-mode) .bottom-nav a.is-active {
    color: var(--hg-accent);
  }
  body.hongguo-mode:not(.admin-mode) .drama-play-page > .play-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-summary, .detail-hero) {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-cover, .detail-cover) {
    flex: 0 0 104px;
    width: 104px;
    height: 145px;
    border-radius: 10px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-hero-main {
    display: flex;
    flex-basis: calc(100% - 120px);
    gap: 12px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-title {
    font-size: 18px;
    line-height: 26px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-description {
    font-size: 14px;
    line-height: 22px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-actions :is(.continue-button, .button-glass, .follow-button) {
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page :is(.hg-detail-episodes, .detail-episodes) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .public-comment-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .public-comment-item {
    min-height: 112px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-related-sidebar .drama-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px var(--hg-card-gap);
    overflow: visible;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-related-sidebar :is(.drama-card, .hg-card) {
    flex: none;
    width: 100%;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-page .detail-related-sidebar .poster {
    height: auto;
    aspect-ratio: 158 / 216;
  }
  body.hongguo-mode:not(.admin-mode) .hg-play-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  body.hongguo-mode:not(.admin-mode) .hg-player-stage {
    height: min(calc(100dvh - var(--hg-header-height)), calc(100vw * 16 / 9));
    min-height: 320px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-play-panel {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 24px 16px;
    overflow: visible;
  }
  body.hongguo-mode:not(.admin-mode) .hg-play-panel .play-related-sidebar .drama-grid {
    gap: 26px 14px;
  }
  body.hongguo-mode:not(.admin-mode) .home-page .hero {
    height: calc(100dvh - var(--hg-header-height));
    min-height: 420px;
    max-height: 720px;
  }
  body.hongguo-mode:not(.admin-mode) .home-page .hero-copy {
    width: var(--hg-container-width);
    gap: 18px;
  }
  body.hongguo-mode:not(.admin-mode) .home-page .hero-copy h1 {
    max-width: 100%;
    font-size: 32px;
    line-height: 44px;
    overflow-wrap: anywhere;
  }
  body.hongguo-mode:not(.admin-mode) .home-page .hero-subtitle {
    display: block;
    max-width: 100%;
    font-size: 15px;
    line-height: 24px;
  }
  body.hongguo-mode:not(.admin-mode) .home-page .editorial-banner {
    padding: 20px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-catalog-state {
    min-height: 280px;
    padding: 40px 16px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-header {
    margin-bottom: 28px;
    padding-top: 0;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-header h1 {
    font-size: 26px;
    line-height: 38px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-header p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 22px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-tabs {
    max-width: 100%;
    margin-bottom: 24px;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-tabs > a {
    font-size: 18px;
    line-height: 28px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-list {
    gap: 32px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-row {
    gap: 16px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-cover {
    flex-basis: 100px;
    width: 100px;
    height: 137px;
    border-radius: 10px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-body {
    gap: 6px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-title h2 {
    font-size: 18px;
    line-height: 26px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-title > span {
    font-size: 11px;
    line-height: 18px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-tags {
    gap: 4px 10px;
    font-size: 12px;
    line-height: 20px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-summary {
    max-height: 44px;
    font-size: 14px;
    line-height: 22px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-episodes {
    margin-top: 8px;
    gap: 8px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-episodes > a {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-rank-episodes > .hg-rank-play {
    flex-basis: 144px;
    width: 144px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-tools > summary {
    min-height: 44px;
    padding: 0 16px;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-tools[open] {
    flex-basis: 100%;
    width: 100%;
  }
  body.hongguo-mode:not(.admin-mode) .hg-detail-tools-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hongguo-mode:not(.admin-mode) :is(.hg-card, .drama-card, .hg-card-cover, .poster) {
    transition: none;
    animation: none;
  }
}

/* Keep permission, loading and dialog hidden states authoritative. */
body.hongguo-mode:not(.admin-mode) [hidden] {
  display: none !important;
}
